From ada663bd38bc0c46d10d3a5955289a5ede463a2d Mon Sep 17 00:00:00 2001 From: lu <99954486@qq.com> Date: 星期四, 24 十月 2024 16:04:10 +0800 Subject: [PATCH] 1 --- DevApp/Gs.DevApp/UserControl/UcLookSupplier.cs | 13 ++++++++----- 1 files changed, 8 insertions(+), 5 deletions(-) diff --git a/DevApp/Gs.DevApp/UserControl/UcLookSupplier.cs b/DevApp/Gs.DevApp/UserControl/UcLookSupplier.cs index 2823fff..de318ae 100644 --- a/DevApp/Gs.DevApp/UserControl/UcLookSupplier.cs +++ b/DevApp/Gs.DevApp/UserControl/UcLookSupplier.cs @@ -60,6 +60,7 @@ { ToolBox.MsgHelper.Warning("鎻愮ず锛�" + ex.Message); } + } /// <summary> @@ -68,10 +69,7 @@ /// <return>Object</return> public string[] GetValue() { - - //object v = null; - //v = this.lookSearchSupplier.EditValue == null || this.lookSearchSupplier.EditValue == DBNull.Value ? string.Empty : this.lookSearchSupplier.EditValue.ToString(); - //return v; + //https://www.cnblogs.com/lhyqzx/p/6928817.html string id = this.lookSearchSupplier.EditValue.ToString(); string name = this.lookSearchSupplier.Text.Trim(); string code = ""; @@ -80,8 +78,13 @@ { code = row["suppNo"].ToString(); } - string[] _ary = { id, name,code }; + string[] _ary = { id, name, code }; return _ary; } + + public void SetId(string id) + { + lookSearchSupplier.EditValue = Int64.Parse(id); + } } } -- Gitblit v1.9.3