From ec02022018c44e794fa53e40daa96321daaae4fc Mon Sep 17 00:00:00 2001 From: lu <99954486@qq.com> Date: 星期一, 02 六月 2025 15:21:30 +0800 Subject: [PATCH] 清理 --- DevApp/Gs.DevApp/UserControl/UcLookDaa.cs | 30 +++++++++++++++++------------- 1 files changed, 17 insertions(+), 13 deletions(-) diff --git a/DevApp/Gs.DevApp/UserControl/UcLookDaa.cs b/DevApp/Gs.DevApp/UserControl/UcLookDaa.cs index a097fd9..fd54ab9 100644 --- a/DevApp/Gs.DevApp/UserControl/UcLookDaa.cs +++ b/DevApp/Gs.DevApp/UserControl/UcLookDaa.cs @@ -1,31 +1,24 @@ -锘縰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 { public partial class UcLookDaa : DevExpress.XtraEditors.XtraUserControl { + public UcLookDaa() { InitializeComponent(); lookSearchSupplier.Properties.NullText = "璇烽�夋嫨"; lookSearchSupplier.EditValueChanged += LookSearchSupplier_EditValueChanged; - // getSuppler(); + // getSuppler(); } - public bool IsReadly { get; set; } + private bool _rdy; public bool IsReadly { set { _rdy = value; this.lookSearchSupplier.ReadOnly = _rdy; } get { return _rdy; } } /// <summary> /// 鏀瑰彉浜嬩欢 @@ -41,12 +34,14 @@ /// 璇诲彇宸ュ崟 /// </summary> /// <param name="orgId"></param> - public void getSuppler(string orgId,string _dftVale = "") + public void getSuppler(string orgId, string _dftVale = "",string strWhere="") { lookSearchSupplier.EditValue = null; string _keyWhere = ""; if (!string.IsNullOrEmpty(orgId)) _keyWhere = " and a.erp_sczz ='" + orgId + "'"; + if (!string.IsNullOrEmpty(strWhere)) + _keyWhere += strWhere; var pgq = new PageQueryModel(1, 999999, "a.daa001", "asc", "", " and 1=1" + _keyWhere); var json = JsonConvert.SerializeObject(pgq); @@ -118,7 +113,7 @@ } lookSearchSupplier.EditValue = (((Code.ToString().Trim()))); } - + /// <summary> /// 浜у搧id /// </summary> @@ -236,5 +231,14 @@ } return ""; } + + /// <summary> + /// 绫诲瀷锛屽鐢ㄤ簬鍒嗙被鏌ヨ + /// </summary> + public string category + { + set; + get; + } } } -- Gitblit v1.9.3