From c071df44dce77350e4bb273a9a3a7bf6388115e5 Mon Sep 17 00:00:00 2001 From: lu <99954486@qq.com> Date: 星期四, 03 七月 2025 14:16:30 +0800 Subject: [PATCH] 验退 --- DevApp/Gs.DevApp/UserControl/UcLookGx.cs | 21 ++++++--------------- 1 files changed, 6 insertions(+), 15 deletions(-) diff --git a/DevApp/Gs.DevApp/UserControl/UcLookGx.cs b/DevApp/Gs.DevApp/UserControl/UcLookGx.cs index 1dddcd1..d5ae8e4 100644 --- a/DevApp/Gs.DevApp/UserControl/UcLookGx.cs +++ b/DevApp/Gs.DevApp/UserControl/UcLookGx.cs @@ -1,16 +1,8 @@ -锘縰sing DevExpress.XtraEditors; -using Gs.DevApp.Entity; +锘縰sing Gs.DevApp.Entity; using Gs.DevApp.ToolBox; using Newtonsoft.Json; using System; -using System.Collections.Generic; -using System.ComponentModel; using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using System.Windows.Forms; namespace Gs.DevApp.UserControl { @@ -22,11 +14,11 @@ lookSearchSupplier.Properties.NullText = "璇烽�夋嫨"; lookSearchSupplier.EditValueChanged += LookSearchSupplier_EditValueChanged; - getSuppler(""); + //getSuppler(""); } - private bool _rdy; public bool IsReadly { set{ _rdy = value; this.lookSearchSupplier.ReadOnly = _rdy; } get { return _rdy; } } + private bool _rdy; public bool IsReadly { set { _rdy = value; this.lookSearchSupplier.ReadOnly = _rdy; } get { return _rdy; } } /// <summary> @@ -45,10 +37,9 @@ /// </summary> /// <param name="orgId"></param> /// <param name="_dftVale"></param> - public void getSuppler(string _dftVale = "") + public void getSuppler(string _dftVale = "", string _keyWhere = "") { lookSearchSupplier.EditValue = null; - string _keyWhere = ""; var pgq = new PageQueryModel(1, 999999, "a.processNo", "asc", "", " " + _keyWhere); var json = JsonConvert.SerializeObject(pgq); try @@ -58,7 +49,7 @@ var rtn = UtilityHelper.ReturnToTablePage(strReturn); var dt = rtn.rtnData.list; lookSearchSupplier.Properties.DataSource = dt; - lookSearchSupplier.Properties.DisplayMember = "processName"; + lookSearchSupplier.Properties.DisplayMember = "processNoAndName"; lookSearchSupplier.Properties.ValueMember = "processNo"; lookSearchSupplier.ForceInitialize(); lookSearchSupplier.Properties.BestFitMode = DevExpress.XtraEditors.Controls.BestFitMode.BestFitResizePopup; @@ -107,6 +98,6 @@ if (!string.IsNullOrEmpty(Code)) lookSearchSupplier.EditValue = (((Code.ToString().Trim()))); } - + } } \ No newline at end of file -- Gitblit v1.9.3