From a985c4d4b80fbf3eb4abbe385adcd0536fd29eda Mon Sep 17 00:00:00 2001
From: 啊鑫 <t2856754968@163.com>
Date: 星期五, 22 十一月 2024 15:04:23 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 DevApp/Gs.DevApp/UserControl/UcLookCk.cs |   12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/DevApp/Gs.DevApp/UserControl/UcLookCk.cs b/DevApp/Gs.DevApp/UserControl/UcLookCk.cs
index 0488a2b..cea9eca 100644
--- a/DevApp/Gs.DevApp/UserControl/UcLookCk.cs
+++ b/DevApp/Gs.DevApp/UserControl/UcLookCk.cs
@@ -12,11 +12,12 @@
         public UcLookCk()
         {
             InitializeComponent();
+            lookSearchSupplier.Properties.NullText = "璇烽�夋嫨";
             lookSearchSupplier.EditValueChanged +=
                 LookSearchSupplier_EditValueChanged;
 
         }
-
+        public bool IsReadly { get; set; }
         private string _KeyFile = "";
         public string KeyFile
         {
@@ -88,8 +89,13 @@
 
         public void SetIdOrCode(string Code)
         {
-            if (KeyFile == "depotId")
-                lookSearchSupplier.EditValue = Int64.Parse((Code.ToString().Trim()));
+            if (Code == "-1")
+            {
+                lookSearchSupplier.EditValue = null;
+                return;
+            }
+            if (KeyFile.ToUpper() == "depotId".ToUpper())
+                lookSearchSupplier.EditValue =Int64.Parse( ((Code.ToString().Trim())));
             else
                 lookSearchSupplier.EditValue = ((Code.ToString().Trim()));
         }

--
Gitblit v1.9.3