From 4fff01dd8941f97005cfffbcbfdd83e60b1c543d Mon Sep 17 00:00:00 2001
From: lu <99954486@qq.com>
Date: 星期三, 04 十二月 2024 15:06:44 +0800
Subject: [PATCH] 下拉组织

---
 DevApp/Gs.DevApp/DevFrm/Warehouse/Frm_MesInvItemArn.cs |   19 ++++++++-----------
 1 files changed, 8 insertions(+), 11 deletions(-)

diff --git a/DevApp/Gs.DevApp/DevFrm/Warehouse/Frm_MesInvItemArn.cs b/DevApp/Gs.DevApp/DevFrm/Warehouse/Frm_MesInvItemArn.cs
index 8746ab7..ce94a01 100644
--- a/DevApp/Gs.DevApp/DevFrm/Warehouse/Frm_MesInvItemArn.cs
+++ b/DevApp/Gs.DevApp/DevFrm/Warehouse/Frm_MesInvItemArn.cs
@@ -53,16 +53,14 @@
                 e.Graphics.DrawString(str, f, Brushes.Gray, r);
             };
             //璁剧疆浠撳簱閫夋嫨
-            this.txt_depotsId.KeyFile = "depotId";
             this.txt_depotsId.EditChanged += (s, e) =>
             {
-                txtDepotsId.Text = this.txt_depotsId.GetId();
+                txtDepotsCode.Text = this.txt_depotsId.GetCode();
             };
             //璁剧疆渚涘簲鍟嗛�夋嫨
-            this.txt_suppId.KeyFile = "id";
             this.txt_suppId.EditChanged += (s, e) =>
             {
-                txtSupplierId.Text = this.txt_suppId.GetId();
+                txtSupplierCode.Text = this.txt_suppId.GetCode();
             };
             //閫夋嫨闇�瑕佸叆搴撶殑鏄庣粏
             btnSelect.Click += (s, e) =>
@@ -146,7 +144,6 @@
                 _loading.Stop();
             };
         }
-
         /// <summary>
         ///     鍙屽嚮浜嬩欢
         /// </summary>
@@ -216,14 +213,14 @@
             toolBarMenu1.guidKey = "";
             string rowGuid, rowName;
             (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1,
-                lbGuid, txt_billNo, gridView1);
+                lbGuid, txt_billNo, gridView1, "billNo");
             toolBarMenu1.guidKey = rowGuid;
             if (string.IsNullOrEmpty(rowGuid))
             {
                 MsgHelper.Warning("璇峰厛閫夋嫨浣犺鎿嶄綔鐨勮锛�");
                 return;
             }
-            if (!MsgHelper.AskQuestion("浣犻�夋嫨浜嗐��" + rowName + "銆戯紝纭畾鎻愪氦妫�楠屽悧锛�"))
+            if (!MsgHelper.AskQuestion("浣犻�夋嫨浜嗐��" + rowName + "銆戯紝纭畾鎾ゅ洖宸叉彁浜ょ殑妫�楠屽悧锛�"))
                 return;
             UcLoading _loading = new UcLoading();
             var _obj = new
@@ -262,7 +259,7 @@
             toolBarMenu1.guidKey = "";
             string rowGuid, rowName;
             (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1,
-                lbGuid, txt_billNo, gridView1);
+                lbGuid, txt_billNo, gridView1, "billNo");
             toolBarMenu1.guidKey = rowGuid;
             if (string.IsNullOrEmpty(rowGuid))
             {
@@ -452,7 +449,7 @@
                     _obj.list.Add(new MesInvItemArnDetail
                     {
                         Guid = _guid,
-                        AboutGuid = Guid.Parse(row["aboutGuid"].ToString()),
+                        AboutGuid = Gs.DevApp.ToolBox.UtilityHelper.ToGuid(row["aboutGuid"].ToString()),
                         ItemId = int.Parse(row["itemId"].ToString()),
                         Quantity = decimal.Parse(row["quantity"].ToString())
                     });
@@ -506,7 +503,6 @@
                 pageBar1.TotalPages = dddd;
                 pageBar1.RecordCount = dd.rtnData.total; //璁板綍鎬绘暟
                 pageBar1.CurrentPage = curPage; //褰撳墠椤�
-                pageBar1.RowsCount = pageSize; //姣忛〉鏄剧ず
                 pageBar1.setTxt();
             }
             catch (Exception ex)
@@ -555,7 +551,6 @@
                         gcMx1.BindingContext = new BindingContext();
                         gcMx1.DataSource = dt;
                         gcMx1.ForceInitialize();
-
                     }
                     else
                     {
@@ -619,5 +614,7 @@
                 }
             }
         }
+
+    
     }
 }
\ No newline at end of file

--
Gitblit v1.9.3