From f489e359066e1036f13491ef128a355bc730afcb Mon Sep 17 00:00:00 2001
From: lu <99954486@qq.com>
Date: 星期二, 24 六月 2025 13:36:18 +0800
Subject: [PATCH] bug
---
DevApp/Gs.DevApp/UserControl/UcLookItems.cs | 14 +++++++++++++-
1 files changed, 13 insertions(+), 1 deletions(-)
diff --git a/DevApp/Gs.DevApp/UserControl/UcLookItems.cs b/DevApp/Gs.DevApp/UserControl/UcLookItems.cs
index 158dcdc..dc44ba6 100644
--- a/DevApp/Gs.DevApp/UserControl/UcLookItems.cs
+++ b/DevApp/Gs.DevApp/UserControl/UcLookItems.cs
@@ -28,17 +28,27 @@
if (EditChanged != null) EditChanged(this, e);
}
- public void getSuppler(string orgId)
+ /// <summary>
+ ///
+ /// </summary>
+ /// <param name="orgId">缁勭粐</param>
+ /// <param name="_dftVale">榛樿閫変腑鍊�</param>
+ /// <param name="strWhere">鏌ヨ鏉′欢</param>
+ /// <param name="strType">闄勫姞绫诲瀷锛氬綋涓猴細iqc,ipqc,fqc鏃讹紝鍏嶆锛岀壒鍒姞涓婅繃婊ゆ潯浠�</param>
+ 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 +62,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