void showCustomerPrompt() { _location = null; _customer = null; setPromptWidth(); pnlScan.Visible = true; txtScan.Focus(); txtScan.Clear(); lblScan.Text = "Customer >>"; lblCustomer.Visible = false; _entryMode = EntryMode.Customer; }
void showLocationPrompt() { setPromptWidth(); txtScan.Clear(); txtScan.Focus(); lblScan.Text = "Location >>"; lblLocation.Visible = false; lblItemQty.Visible = false; _location = null; _item = null; _itemType = string.Empty; _bulkItemFlag = string.Empty; _entryMode = EntryMode.Location; }
public bool AddSerialNo(MItemH item, MLoc location, string serialno, string itemType, string bulk, string userName) { var repo = _dataRepositoryFactory .GetDataRepository <ILRyderCiscoSncycCntRepository>(); var saved = repo.Add(new LRyderCiscoSncycCnt { CustCode = item.CustCode, Serial = serialno, LocCode = location.LocCode, ItemCode = item.ItemCode, ProsDateTime = DateTime.Now, UserName = userName, BulkItem = bulk, ItemType = itemType }); return(true); }
public bool IsLocationValid(MLoc location) { return(location != null && location.IsActive); }