| | |
| | | { |
| | | ToolBox.MsgHelper.Warning("提示:" + ex.Message); |
| | | } |
| | | |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | /// <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 = ""; |
| | |
| | | { |
| | | 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); |
| | | } |
| | | } |
| | | } |