From cdca5a70b3fac5f804a6eabb7a3976f8c00e35e8 Mon Sep 17 00:00:00 2001
From: lu <99954486@qq.com>
Date: 星期二, 08 四月 2025 16:40:30 +0800
Subject: [PATCH] fqc

---
 DevApp/Gs.DevApp/UserControl/UcLookSupplier.cs |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/DevApp/Gs.DevApp/UserControl/UcLookSupplier.cs b/DevApp/Gs.DevApp/UserControl/UcLookSupplier.cs
index c4266f5..2643608 100644
--- a/DevApp/Gs.DevApp/UserControl/UcLookSupplier.cs
+++ b/DevApp/Gs.DevApp/UserControl/UcLookSupplier.cs
@@ -20,7 +20,7 @@
             lookSearchSupplier.EditValueChanged +=
                 LookSearchSupplier_EditValueChanged;
         }
-        public bool IsReadly { get; set; }
+          private bool _rdy; public bool IsReadly { set{ _rdy = value; this.lookSearchSupplier.ReadOnly = _rdy; } get { return _rdy; } }
 
         /// <summary>
         ///     鏀瑰彉浜嬩欢
@@ -33,6 +33,11 @@
             if (EditChanged != null) EditChanged(this, e);
         }
 
+        /// <summary>
+        /// 璇讳緵搴斿晢
+        /// </summary>
+        /// <param name="orgId"></param>
+        /// <param name="_dftVale"></param>
         public void getSuppler(string orgId, string _dftVale = "")
         {
             lookSearchSupplier.EditValue = null;
@@ -60,6 +65,7 @@
                 lookSearchSupplier.Properties.BestFitMode = DevExpress.XtraEditors.Controls.BestFitMode.BestFitResizePopup;
                 if (!string.IsNullOrEmpty(_dftVale))
                     SetIdOrCode(_dftVale);
+
             }
             catch (Exception ex)
             {
@@ -101,7 +107,8 @@
                 return;
             }
             //   lookSearchSupplier.EditValue = ((Code.ToString().Trim()));
-            lookSearchSupplier.EditValue = Int64.Parse((Code.ToString().Trim()));
+            if (!string.IsNullOrEmpty(Code))
+                lookSearchSupplier.EditValue = Int64.Parse((Code.ToString().Trim()));
         }
 
     }

--
Gitblit v1.9.3