| | |
| | | public UcLookCk() |
| | | { |
| | | InitializeComponent(); |
| | | lookSearchSupplier.Properties.NullText = "请选择"; |
| | | lookSearchSupplier.EditValueChanged += |
| | | LookSearchSupplier_EditValueChanged; |
| | | |
| | | } |
| | | |
| | | public bool IsReadly { get; set; } |
| | | private string _KeyFile = ""; |
| | | public string KeyFile |
| | | { |
| | |
| | | |
| | | public void SetIdOrCode(string Code) |
| | | { |
| | | if (KeyFile == "depotId") |
| | | lookSearchSupplier.EditValue = Int64.Parse((Code.ToString().Trim())); |
| | | if (Code == "-1") |
| | | { |
| | | lookSearchSupplier.EditValue = null; |
| | | return; |
| | | } |
| | | if (KeyFile.ToUpper() == "depotId".ToUpper()) |
| | | lookSearchSupplier.EditValue =Int64.Parse( ((Code.ToString().Trim()))); |
| | | else |
| | | lookSearchSupplier.EditValue = ((Code.ToString().Trim())); |
| | | } |