From f064d6138dc73d8f54c66f0c6d3242d0376c71b4 Mon Sep 17 00:00:00 2001 From: cdk <2441919651@qq.com> Date: 星期五, 04 七月 2025 13:36:02 +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