From b94097020bf79e3d5f046ac4fbd3c05efcda30b3 Mon Sep 17 00:00:00 2001 From: lu <99954486@qq.com> Date: 星期二, 03 十二月 2024 15:16:27 +0800 Subject: [PATCH] 删除了用户空间的id --- DevApp/Gs.DevApp/UserControl/UcLookSupplier.cs | 36 +++++++++++++++--------------------- 1 files changed, 15 insertions(+), 21 deletions(-) diff --git a/DevApp/Gs.DevApp/UserControl/UcLookSupplier.cs b/DevApp/Gs.DevApp/UserControl/UcLookSupplier.cs index 0f2f795..dddbe4d 100644 --- a/DevApp/Gs.DevApp/UserControl/UcLookSupplier.cs +++ b/DevApp/Gs.DevApp/UserControl/UcLookSupplier.cs @@ -5,6 +5,7 @@ using Gs.DevApp.Entity; using Gs.DevApp.ToolBox; using Newtonsoft.Json; +using static DevExpress.XtraPrinting.Native.PageSizeInfo; namespace Gs.DevApp.UserControl { @@ -18,17 +19,8 @@ LookSearchSupplier_EditValueChanged; getSuppler(); } - - private string _KeyFile = ""; - public string KeyFile - { - get { return _KeyFile; } - set - { - _KeyFile = value; - getSuppler(); - } - } + public bool IsReadly { get; set; } + /// <summary> /// 鏀瑰彉浜嬩欢 /// </summary> @@ -42,19 +34,24 @@ private void getSuppler() { - var pgq = new PageQueryModel(1, 999999, "supp_no", "asc", "", - " and fforbidstatus='A'"); - var json = JsonConvert.SerializeObject(pgq); + var _obj = new + { + currentPage = 1, + everyPageSize = 999999, + sortName = "", + keyWhere = "", + }; + var json = JsonConvert.SerializeObject(_obj); try { var strReturn = UtilityHelper.HttpPost("", - "MesSupplierManager/GetListPage", json); + "MesSupplierManager/GetListSelect", json); var rtn = UtilityHelper.ReturnToTablePage(strReturn); var dt = rtn.rtnData.list; lookSearchSupplier.Properties.DataSource = dt; lookSearchSupplier.Properties.DisplayMember = "suppName"; - // lookSearchSupplier.Properties.ValueMember = "suppNo"; - lookSearchSupplier.Properties.ValueMember = KeyFile; + lookSearchSupplier.Properties.ValueMember = "id"; + } catch (Exception ex) { @@ -95,10 +92,7 @@ lookSearchSupplier.EditValue = null; return; } - if (KeyFile == "id") - lookSearchSupplier.EditValue = Int64.Parse((Code.ToString().Trim())); - else - lookSearchSupplier.EditValue = ((Code.ToString().Trim())); + lookSearchSupplier.EditValue = Int64.Parse((Code.ToString().Trim())); } } } \ No newline at end of file -- Gitblit v1.9.3