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 |   22 +++++-----------------
 1 files changed, 5 insertions(+), 17 deletions(-)

diff --git a/DevApp/Gs.DevApp/DevFrm/Warehouse/Frm_MesInvItemArn.cs b/DevApp/Gs.DevApp/DevFrm/Warehouse/Frm_MesInvItemArn.cs
index 3ffb5b5..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);
             };
-            txt_suppNo.EditChanged += (s, e) =>
-            {
-                var ddd = txt_suppNo.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();
-            };
-            txt_depotsCode.EditChanged += (s, e) =>
-            {
-                var ddd = txt_depotsCode.GetValue();
-                //lbCkName.Text = ddd[1];
             };
         }
 
@@ -264,8 +256,8 @@
         private void ToolBarMenu1_btnSaveClick(object sender, EventArgs e)
         {
             toolBarMenu1.isSetBtn = false;
-            var _ckCode = txt_depotsCode.GetValue()[2]; //浠撳簱缂栧彿 depots_code
-            var _gysCode = txt_suppNo.GetValue()[2]; //渚涘簲鍟嗙紪鍙�
+            var _ckCode = txt_depotsCode.GetCode(); //浠撳簱缂栧彿 depots_code
+            var _gysCode = txt_suppNo.GetCode(); //渚涘簲鍟嗙紪鍙�
             if (string.IsNullOrEmpty(_ckCode))
             {
                 MsgHelper.Warning("璇烽�夋嫨浠撳簱锛�");
@@ -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