| | |
| | | var dt = rtn.rtnData.list; |
| | | lookSearchSupplier.Properties.DataSource = dt; |
| | | lookSearchSupplier.Properties.DisplayMember = "depotName"; |
| | | lookSearchSupplier.Properties.ValueMember = "depotId"; |
| | | lookSearchSupplier.Properties.ValueMember = "depotsCode"; |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | |
| | | /// <return>Object</return> |
| | | public string[] GetValue() |
| | | { |
| | | var id = lookSearchSupplier.EditValue.ToString(); |
| | | var code = lookSearchSupplier.EditValue.ToString(); |
| | | var name = lookSearchSupplier.Text.Trim(); |
| | | var code = ""; |
| | | var row = lookSearchSupplier.GetSelectedDataRow() as DataRowView; |
| | | if (row != null) code = row["depotCode"].ToString(); |
| | | string[] _ary = { id, name, code }; |
| | | string[] _ary = { code, name }; |
| | | return _ary; |
| | | } |
| | | |
| | | public void SetId(string id) |
| | | public void SetCode(string Code) |
| | | { |
| | | lookSearchSupplier.EditValue = long.Parse(id); |
| | | lookSearchSupplier.EditValue = Code; |
| | | } |
| | | } |
| | | } |