From 08108c3ed78d2c40fcfdc8e1f4bd8376f7b1d3c8 Mon Sep 17 00:00:00 2001 From: lu <99954486@qq.com> Date: 星期一, 13 一月 2025 09:08:01 +0800 Subject: [PATCH] 细节 --- DevApp/Gs.DevApp/UserControl/UcLookDaa.cs | 25 ++++++++++++++++++++++--- 1 files changed, 22 insertions(+), 3 deletions(-) diff --git a/DevApp/Gs.DevApp/UserControl/UcLookDaa.cs b/DevApp/Gs.DevApp/UserControl/UcLookDaa.cs index 94e319d..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 { @@ -194,5 +198,20 @@ } 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