From 236874a930147c27e46c673d8c1a607f1260e8aa Mon Sep 17 00:00:00 2001
From: lu <99954486@qq.com>
Date: 星期一, 31 三月 2025 12:43:43 +0800
Subject: [PATCH] 追溯码

---
 DevApp/Gs.DevApp/UserControl/UcLookDaa.cs |   29 ++++++++++++++++++++++++++---
 1 files changed, 26 insertions(+), 3 deletions(-)

diff --git a/DevApp/Gs.DevApp/UserControl/UcLookDaa.cs b/DevApp/Gs.DevApp/UserControl/UcLookDaa.cs
index 1749ff7..a097fd9 100644
--- a/DevApp/Gs.DevApp/UserControl/UcLookDaa.cs
+++ b/DevApp/Gs.DevApp/UserControl/UcLookDaa.cs
@@ -37,9 +37,13 @@
         {
             if (EditChanged != null) EditChanged(this, e);
         }
-
-        public void getSuppler(string orgId)
+        /// <summary>
+        /// 璇诲彇宸ュ崟
+        /// </summary>
+        /// <param name="orgId"></param>
+        public void getSuppler(string orgId,string _dftVale = "")
         {
+            lookSearchSupplier.EditValue = null;
             string _keyWhere = "";
             if (!string.IsNullOrEmpty(orgId))
                 _keyWhere = " and a.erp_sczz ='" + orgId + "'";
@@ -54,6 +58,10 @@
                 lookSearchSupplier.Properties.DataSource = dt;
                 lookSearchSupplier.Properties.DisplayMember = "daa001";
                 lookSearchSupplier.Properties.ValueMember = "guid";
+                lookSearchSupplier.ForceInitialize();
+                lookSearchSupplier.Properties.BestFitMode = DevExpress.XtraEditors.Controls.BestFitMode.BestFitResizePopup;
+                if (!string.IsNullOrEmpty(_dftVale))
+                    SetIdOrCode(_dftVale);
             }
             catch (Exception ex)
             {
@@ -200,7 +208,7 @@
         }
 
         /// <summary>
-        /// 绾垮埆
+        /// 浠诲姟鍗曞彿
         /// </summary>
         /// <returns></returns>
         public string GetRwd()
@@ -213,5 +221,20 @@
             }
             return "";
         }
+
+        /// <summary>
+        /// 鎶曟枡鍗曞彿
+        /// </summary>
+        /// <returns></returns>
+        public string GetTldh()
+        {
+            var row = lookSearchSupplier.GetSelectedDataRow() as DataRowView;
+            if (row != null)
+            {
+                string id = row["daa014"].ToString();
+                return id;
+            }
+            return "";
+        }
     }
 }

--
Gitblit v1.9.3