コード例 #1
0
 void showCustomerPrompt()
 {
     _location = null;
     _customer = null;
     setPromptWidth();
     pnlScan.Visible = true;
     txtScan.Focus();
     txtScan.Clear();
     lblScan.Text        = "Customer >>";
     lblCustomer.Visible = false;
     _entryMode          = EntryMode.Customer;
 }
コード例 #2
0
 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;
 }
コード例 #3
0
        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);
        }
コード例 #4
0
 public bool IsLocationValid(MLoc location)
 {
     return(location != null && location.IsActive);
 }