From 4a8df7e654aa502694bcff271b216c46e26c788b Mon Sep 17 00:00:00 2001 From: lu <99954486@qq.com> Date: 星期日, 06 四月 2025 10:46:27 +0800 Subject: [PATCH] 汽泡提示 --- DevApp/Gs.DevApp/UserControl/UcLookDaa.cs | 29 +++++++++++++++++++++++++---- 1 files changed, 25 insertions(+), 4 deletions(-) diff --git a/DevApp/Gs.DevApp/UserControl/UcLookDaa.cs b/DevApp/Gs.DevApp/UserControl/UcLookDaa.cs index 1e9886c..50f984f 100644 --- a/DevApp/Gs.DevApp/UserControl/UcLookDaa.cs +++ b/DevApp/Gs.DevApp/UserControl/UcLookDaa.cs @@ -25,7 +25,7 @@ // getSuppler(); } - public bool IsReadly { get; set; } + private bool _rdy; public bool IsReadly { set{ _rdy = value; this.lookSearchSupplier.ReadOnly = _rdy; } get { return _rdy; } } /// <summary> /// 鏀瑰彉浜嬩欢 @@ -37,9 +37,13 @@ { if (EditChanged != null) EditChanged(this, e); } - - public void getSuppler(string orgId) + /// <summary> + /// 璇诲彇宸ュ崟 + /// </summary> + /// <param name="orgId"></param> + public void getSuppler(string orgId,string _dftVale = "") { + lookSearchSupplier.EditValue = null; string _keyWhere = ""; if (!string.IsNullOrEmpty(orgId)) _keyWhere = " and a.erp_sczz ='" + orgId + "'"; @@ -56,6 +60,8 @@ lookSearchSupplier.Properties.ValueMember = "guid"; lookSearchSupplier.ForceInitialize(); lookSearchSupplier.Properties.BestFitMode = DevExpress.XtraEditors.Controls.BestFitMode.BestFitResizePopup; + if (!string.IsNullOrEmpty(_dftVale)) + SetIdOrCode(_dftVale); } catch (Exception ex) { @@ -202,7 +208,7 @@ } /// <summary> - /// 绾垮埆 + /// 浠诲姟鍗曞彿 /// </summary> /// <returns></returns> public string GetRwd() @@ -215,5 +221,20 @@ } return ""; } + + /// <summary> + /// 鎶曟枡鍗曞彿 + /// </summary> + /// <returns></returns> + public string GetTldh() + { + var row = lookSearchSupplier.GetSelectedDataRow() as DataRowView; + if (row != null) + { + string id = row["daa014"].ToString(); + return id; + } + return ""; + } } } -- Gitblit v1.9.3