From f73b812e0d7bc051191151f2625ce02a22ee3c3a Mon Sep 17 00:00:00 2001 From: lu <99954486@qq.com> Date: 星期四, 13 二月 2025 14:52:09 +0800 Subject: [PATCH] 细节 --- DevApp/Gs.DevApp/UserControl/UcLookDepartment.cs | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/DevApp/Gs.DevApp/UserControl/UcLookDepartment.cs b/DevApp/Gs.DevApp/UserControl/UcLookDepartment.cs index 5094542..85a4a7b 100644 --- a/DevApp/Gs.DevApp/UserControl/UcLookDepartment.cs +++ b/DevApp/Gs.DevApp/UserControl/UcLookDepartment.cs @@ -17,7 +17,6 @@ searchLookUpEdit1View.OptionsView.ColumnAutoWidth = true; lookSearchSupplier.EditValueChanged += LookSearchSupplier_EditValueChanged; - getSuppler(); } public bool IsReadly { get; set; } @@ -33,9 +32,12 @@ if (EditChanged != null) EditChanged(this, e); } - private void getSuppler() + public void getSuppler(string orgId) { - var pgq = new PageQueryModel(1, 999999, "a.FSubsidiary asc,a.departmentcode", "asc", "", " and 1=1"); + string _keyWhere = ""; + if (!string.IsNullOrEmpty(orgId)) + _keyWhere = " and a.FSubsidiary ='" + orgId + "'"; + var pgq = new PageQueryModel(1, 999999, "a.FSubsidiary asc,a.departmentcode", "asc", "", " and 1=1" + _keyWhere); var json = JsonConvert.SerializeObject(pgq); try { -- Gitblit v1.9.3