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/UcLookCustomer.cs | 18 +++++++----------- 1 files changed, 7 insertions(+), 11 deletions(-) diff --git a/DevApp/Gs.DevApp/UserControl/UcLookCustomer.cs b/DevApp/Gs.DevApp/UserControl/UcLookCustomer.cs index f5b2960..ceac918 100644 --- a/DevApp/Gs.DevApp/UserControl/UcLookCustomer.cs +++ b/DevApp/Gs.DevApp/UserControl/UcLookCustomer.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 { @@ -24,7 +16,7 @@ LookSearchSupplier_EditValueChanged; } - public bool IsReadly { get; set; } + private bool _rdy; public bool IsReadly { set { _rdy = value; this.lookSearchSupplier.ReadOnly = _rdy; } get { return _rdy; } } /// <summary> /// 鏀瑰彉浜嬩欢 @@ -37,8 +29,9 @@ if (EditChanged != null) EditChanged(this, e); } - public void getSuppler(string orgId) + public void getSuppler(string orgId, string _dftVale = "") { + lookSearchSupplier.EditValue = null; string _keyWhere = ""; if (!string.IsNullOrEmpty(orgId)) _keyWhere = " and a.FSubsidiary ='" + orgId + "'"; @@ -52,6 +45,9 @@ lookSearchSupplier.Properties.DataSource = dt; lookSearchSupplier.Properties.DisplayMember = "custName"; lookSearchSupplier.Properties.ValueMember = "id"; + lookSearchSupplier.Properties.BestFitMode = DevExpress.XtraEditors.Controls.BestFitMode.BestFitResizePopup; + if (!string.IsNullOrEmpty(_dftVale)) + SetIdOrCode(_dftVale); } catch (Exception ex) { -- Gitblit v1.9.3