From 3fb5533f30f178dcdf5965a41c39fb62c61da4d8 Mon Sep 17 00:00:00 2001
From: lu <99954486@qq.com>
Date: 星期四, 06 二月 2025 17:15:47 +0800
Subject: [PATCH] 细节

---
 DevApp/Gs.DevApp/UserControl/UcLookDaa.cs |  132 ++++++++++++++++++++++++++++++++++++++++++--
 1 files changed, 126 insertions(+), 6 deletions(-)

diff --git a/DevApp/Gs.DevApp/UserControl/UcLookDaa.cs b/DevApp/Gs.DevApp/UserControl/UcLookDaa.cs
index 19a95cc..1749ff7 100644
--- a/DevApp/Gs.DevApp/UserControl/UcLookDaa.cs
+++ b/DevApp/Gs.DevApp/UserControl/UcLookDaa.cs
@@ -22,7 +22,7 @@
             lookSearchSupplier.Properties.NullText = "璇烽�夋嫨";
             lookSearchSupplier.EditValueChanged +=
                 LookSearchSupplier_EditValueChanged;
-            getSuppler();
+           // getSuppler();
         }
 
         public bool IsReadly { get; set; }
@@ -38,9 +38,13 @@
             if (EditChanged != null) EditChanged(this, e);
         }
 
-        private void getSuppler()
+        public void getSuppler(string orgId)
         {
-            var pgq = new PageQueryModel(1, 999999, "a.daa001", "asc", "", " and 1=1");
+            string _keyWhere = "";
+            if (!string.IsNullOrEmpty(orgId))
+                _keyWhere = " and a.erp_sczz ='" + orgId + "'";
+            var pgq = new PageQueryModel(1, 999999, "a.daa001", "asc", "",
+                " and 1=1" + _keyWhere);
             var json = JsonConvert.SerializeObject(pgq);
             try
             {
@@ -56,7 +60,10 @@
                 MsgHelper.Warning("鎻愮ず锛�" + ex.Message);
             }
         }
-
+        /// <summary>
+        /// 宸ュ崟guid
+        /// </summary>
+        /// <returns></returns>
         public string GetId()
         {
             var row = lookSearchSupplier.GetSelectedDataRow() as DataRowView;
@@ -67,6 +74,10 @@
             }
             return "";
         }
+        /// <summary>
+        /// 宸ュ崟缂栧彿
+        /// </summary>
+        /// <returns></returns>
         public string GetCode()
         {
             var row = lookSearchSupplier.GetSelectedDataRow() as DataRowView;
@@ -77,12 +88,19 @@
             }
             return "";
         }
+        /// <summary>
+        /// 宸ュ崟鏂囨湰锛屽簲璇ユ槸缂栧彿
+        /// </summary>
+        /// <returns></returns>
         public string GetName()
         {
             var name = lookSearchSupplier.Text.Trim();
             return name;
         }
-
+        /// <summary>
+        /// 
+        /// </summary>
+        /// <param name="Code"></param>
         public void SetIdOrCode(string Code)
         {
             if (Code == "-1")
@@ -92,6 +110,108 @@
             }
             lookSearchSupplier.EditValue = (((Code.ToString().Trim())));
         }
- 
+       
+        /// <summary>
+        /// 浜у搧id
+        /// </summary>
+        /// <returns></returns>
+        public string GetPrdId()
+        {
+            var row = lookSearchSupplier.GetSelectedDataRow() as DataRowView;
+            if (row != null)
+            {
+                string id = row["daa002"].ToString();
+                return id;
+            }
+            return "";
+        }
+        /// <summary>
+        /// 浜у搧鍚嶇О
+        /// </summary>
+        /// <returns></returns>
+        public string GetPrdName()
+        {
+            var row = lookSearchSupplier.GetSelectedDataRow() as DataRowView;
+            if (row != null)
+            {
+                string id = row["itemName"].ToString();
+                return id;
+            }
+            return "";
+        }
+        /// <summary>
+        /// 浜у搧瑙勬牸鍨嬪彿
+        /// </summary>
+        /// <returns></returns>
+        public string GetPrdModel()
+        {
+            var row = lookSearchSupplier.GetSelectedDataRow() as DataRowView;
+            if (row != null)
+            {
+                string id = row["itemModel"].ToString();
+                return id;
+            }
+            return "";
+        }
+        /// <summary>
+        /// 浜у搧缂栫爜
+        /// </summary>
+        /// <returns></returns>
+        public string GetPrdNo()
+        {
+            var row = lookSearchSupplier.GetSelectedDataRow() as DataRowView;
+            if (row != null)
+            {
+                string id = row["itemNo"].ToString();
+                return id;
+            }
+            return "";
+        }
+
+
+        /// <summary>
+        /// 杞﹂棿
+        /// </summary>
+        /// <returns></returns>
+        public string GetWorkName()
+        {
+            var row = lookSearchSupplier.GetSelectedDataRow() as DataRowView;
+            if (row != null)
+            {
+                string id = row["dptnName"].ToString();
+                return id;
+            }
+            return "";
+        }
+
+        /// <summary>
+        /// 绾垮埆
+        /// </summary>
+        /// <returns></returns>
+        public string GetWorkXb()
+        {
+            var row = lookSearchSupplier.GetSelectedDataRow() as DataRowView;
+            if (row != null)
+            {
+                string id = row["xb"].ToString();
+                return id;
+            }
+            return "";
+        }
+
+        /// <summary>
+        /// 绾垮埆
+        /// </summary>
+        /// <returns></returns>
+        public string GetRwd()
+        {
+            var row = lookSearchSupplier.GetSelectedDataRow() as DataRowView;
+            if (row != null)
+            {
+                string id = row["daa021"].ToString();
+                return id;
+            }
+            return "";
+        }
     }
 }

--
Gitblit v1.9.3