示例#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
        /// <summary>
        /// Controls the backwards navigation, user can go backwards from any step
        /// </summary>
        /// <returns></returns>
        bool Back()
        {
            if (ScanValue.Equals("X"))
            {
                hideError();

                switch (_entryMode)
                {
                case EntryMode.SerialNo:
                case EntryMode.BulkItem:
                case EntryMode.ItemType:
                    showProductPrompt();
                    break;

                case EntryMode.Product:
                    showLocationPrompt();
                    break;

                case EntryMode.Location:
                    showCustomerPrompt();
                    break;

                case EntryMode.Customer:
                    _customer = null;
                    this.Close();
                    Application.Exit();
                    break;

                case EntryMode.Finished:
                case EntryMode.AdminRescan:
                    showProductPrompt();
                    break;

                default:
                    return(false);
                }
                return(true);
            }

            return(false);
        }
 public bool IsCustomerValid(MCustH customer)
 {
     return(customer != null && customer.IsCisco);
 }