From f090facc03df282747691d6295229a25583f9712 Mon Sep 17 00:00:00 2001
From: lu <99954486@qq.com>
Date: 星期二, 22 四月 2025 08:09:25 +0800
Subject: [PATCH] iqc

---
 DevApp/Gs.DevApp/UserControl/UcLookItems.cs |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/DevApp/Gs.DevApp/UserControl/UcLookItems.cs b/DevApp/Gs.DevApp/UserControl/UcLookItems.cs
index 158dcdc..1e09a65 100644
--- a/DevApp/Gs.DevApp/UserControl/UcLookItems.cs
+++ b/DevApp/Gs.DevApp/UserControl/UcLookItems.cs
@@ -28,17 +28,20 @@
             if (EditChanged != null) EditChanged(this, e);
         }
 
-        public void getSuppler(string orgId)
+        public void getSuppler(string orgId, string _dftVale = "",string strWhere="",string strType="")
         {
             string _keyWhere = "";
             if (!string.IsNullOrEmpty(orgId))
                 _keyWhere = " and a.FSubsidiary ='" + orgId + "'";
+            if (!string.IsNullOrEmpty(strWhere))
+                _keyWhere += strWhere;
             var _obj = new
             {
                 currentPage = 1,
                 everyPageSize = 999999,
                 sortName = "",
                 keyWhere = _keyWhere,
+                keyType= strType
             };
             var json = JsonConvert.SerializeObject(_obj);
             try
@@ -52,6 +55,8 @@
                 lookSearchSupplier.Properties.ValueMember = "id";
                 lookSearchSupplier.ForceInitialize();
                 lookSearchSupplier.Properties.BestFitMode = DevExpress.XtraEditors.Controls.BestFitMode.BestFitResizePopup;
+                if (!string.IsNullOrEmpty(_dftVale))
+                    SetIdOrCode(_dftVale);
             }
             catch (Exception ex)
             {

--
Gitblit v1.9.3