From 779c4686f761f526a9a8546d3a2b01a2684fcbe7 Mon Sep 17 00:00:00 2001 From: kyy <3283105747@qq.com> Date: 星期六, 27 九月 2025 09:17:46 +0800 Subject: [PATCH] 修改工单字段配置 --- DevApp/Gs.DevApp/UserControl/UcLookKw.cs | 24 ++++++++++++------------ 1 files changed, 12 insertions(+), 12 deletions(-) diff --git a/DevApp/Gs.DevApp/UserControl/UcLookKw.cs b/DevApp/Gs.DevApp/UserControl/UcLookKw.cs index 9127ce3..0542bcf 100644 --- a/DevApp/Gs.DevApp/UserControl/UcLookKw.cs +++ b/DevApp/Gs.DevApp/UserControl/UcLookKw.cs @@ -31,28 +31,28 @@ } /// <summary> - /// 璇诲彇浠撳簱 + /// 璇诲彇搴撲綅 /// </summary> /// <param name="orgId"></param> /// <param name="_dftVale"></param> - public void getSuppler(string orgId, string _dftVale = "") + public void getSuppler(string orgId,string depotId, string _dftVale = "") { lookSearchSupplier.EditValue = null; string _keyWhere = ""; - if (!string.IsNullOrEmpty(orgId)) - _keyWhere = " and a.FSubsidiary ='" + orgId + "'"; - var pgq = new PageQueryModel(1, 999999, "org.FNumber asc ,a.depot_code", "asc", "", + if (!string.IsNullOrEmpty(orgId) && !string.IsNullOrEmpty(depotId)) + _keyWhere = " and a.FSubsidiary ='" + orgId + "' and b.depot_guid ='" + depotId + "'"; + var pgq = new PageQueryModel(1, 999999, "b.xh", "asc", "", " and is_ng='A'" + _keyWhere); var json = JsonConvert.SerializeObject(pgq); try { var strReturn = UtilityHelper.HttpPost("", - "MesDepotsManager/GetListPage", json); + "MesDepotSectionsManager/GetListPage", json); var rtn = UtilityHelper.ReturnToTablePage(strReturn); - var dt = rtn.rtnData.list; + var dt = rtn.rtnData.list; lookSearchSupplier.Properties.DataSource = dt; - lookSearchSupplier.Properties.DisplayMember = "depotName"; - lookSearchSupplier.Properties.ValueMember = "depotId"; + lookSearchSupplier.Properties.DisplayMember = "depotSectionCode"; + lookSearchSupplier.Properties.ValueMember = "guid"; lookSearchSupplier.ForceInitialize(); lookSearchSupplier.Properties.BestFitMode = DevExpress.XtraEditors.Controls.BestFitMode.BestFitResizePopup; if (!string.IsNullOrEmpty(_dftVale)) @@ -69,7 +69,7 @@ var row = lookSearchSupplier.GetSelectedDataRow() as DataRowView; if (row != null) { - string id = row["DepotId"].ToString(); + string id = row["Guid"].ToString(); return id; } return ""; @@ -79,7 +79,7 @@ var row = lookSearchSupplier.GetSelectedDataRow() as DataRowView; if (row != null) { - string id = row["DepotCode"].ToString(); + string id = row["DepotSectionCode"].ToString(); return id; } return ""; @@ -98,7 +98,7 @@ return; } if (!string.IsNullOrEmpty(Code)) - lookSearchSupplier.EditValue = Int64.Parse(((Code.ToString().Trim()))); + lookSearchSupplier.EditValue = (((Code.ToString().Trim()))); } /// <summary> -- Gitblit v1.9.3