From 66315d3ad5ab7fcc673cdf479742c6eff73df8ea Mon Sep 17 00:00:00 2001
From: lu <99954486@qq.com>
Date: 星期日, 27 十月 2024 07:57:50 +0800
Subject: [PATCH] 修改了检查guid

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

diff --git a/DevApp/Gs.DevApp/DevFrm/Warehouse/Frm_MesInvItemArn.cs b/DevApp/Gs.DevApp/DevFrm/Warehouse/Frm_MesInvItemArn.cs
index 0d757e2..18b0ae6 100644
--- a/DevApp/Gs.DevApp/DevFrm/Warehouse/Frm_MesInvItemArn.cs
+++ b/DevApp/Gs.DevApp/DevFrm/Warehouse/Frm_MesInvItemArn.cs
@@ -49,11 +49,8 @@
                     e.Bounds.Top + 45, e.Bounds.Right - 5, e.Bounds.Height - 5);
                 e.Graphics.DrawString(str, f, Brushes.Gray, r);
             };
-            ucLookSupplier1.EditChanged += (s, e) =>
-            {
-                var ddd = ucLookSupplier1.GetValue();
-                //  lbSupplierName.Text = ddd[1];
-            };
+            this.txt_depotsCode.KeyFile = "depotCode";
+            this.txt_suppNo.KeyFile = "suppNo";
             btnSelect.Click += (s, e) =>
             {
                 var frm = new SelectCgMx();
@@ -71,11 +68,6 @@
                     gcMx1.ForceInitialize();
                 };
                 frm.ShowDialog();
-            };
-            ucLookCk1.EditChanged += (s, e) =>
-            {
-                var ddd = ucLookCk1.GetValue();
-                //lbCkName.Text = ddd[1];
             };
         }
 
@@ -264,19 +256,19 @@
         private void ToolBarMenu1_btnSaveClick(object sender, EventArgs e)
         {
             toolBarMenu1.isSetBtn = false;
-            var _ckCode = ucLookCk1.GetValue()[2]; //浠撳簱缂栧彿 depots_code
-            var _gysCode = ucLookSupplier1.GetValue()[2]; //渚涘簲鍟嗙紪鍙�
+            var _ckCode = txt_depotsCode.GetCode(); //浠撳簱缂栧彿 depots_code
+            var _gysCode = txt_suppNo.GetCode(); //渚涘簲鍟嗙紪鍙�
             if (string.IsNullOrEmpty(_ckCode))
             {
                 MsgHelper.Warning("璇烽�夋嫨浠撳簱锛�");
-                ucLookCk1.Focus();
+                txt_depotsCode.Focus();
                 return;
             }
 
             if (string.IsNullOrEmpty(_gysCode))
             {
                 MsgHelper.Warning("璇烽�夋嫨渚涘簲鍟嗭紒");
-                ucLookSupplier1.Focus();
+                txt_suppNo.Focus();
                 return;
             }
 
@@ -302,11 +294,7 @@
                 var row = gvMx1.GetDataRow(i);
                 if (row != null)
                 {
-                    Guid? _guid = null;
-                    if (string.IsNullOrEmpty(row["guid"].ToString()))
-                        _guid = null;
-                    else
-                        _guid = Guid.Parse(row["guid"].ToString());
+                    Guid? _guid = UtilityHelper.ToGuid(row["guid"].ToString());
                     _obj.list.Add(new MesInvItemArnDetail
                     {
                         Guid = _guid,

--
Gitblit v1.9.3