1
lu
2024-10-24 ada663bd38bc0c46d10d3a5955289a5ede463a2d
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);
        }
    }
}