Beispiel #1
0
        private void PageTitle(POSBillType posBillType)
        {
            switch (posBillType)
            {
            case POSBillType.Customer:
                CustomerViewModel.isCustomer   = true;
                CustomerViewModel.isReturnBill = false;
                CustomerViewModel.isCustomerPO = false;
                CustomerViewModel.PopupText    = "Customer Number";
                CustomerViewModel.Tag          = "customernopos";
                break;

            case POSBillType.ReturnBill:
                CustomerViewModel.isCustomer   = false;
                CustomerViewModel.isReturnBill = true;
                CustomerViewModel.isCustomerPO = false;
                CustomerViewModel.PopupText    = "Return Bill Number";
                CustomerViewModel.Tag          = "returnbillnopos";
                break;

            case POSBillType.CustomerPO:
                CustomerViewModel.isCustomer   = false;
                CustomerViewModel.isReturnBill = false;
                CustomerViewModel.isCustomerPO = true;
                CustomerViewModel.PopupText    = "Customer PO Number";
                CustomerViewModel.Tag          = "customerponopos";
                break;

            default:
                break;
            }
        }
Beispiel #2
0
 public CustomerWindow(POSBillType posBillType)
 {
     InitializeComponent();
     this.CustomerViewModel = new POS.ViewModel.CustomerViewModel(this);
     txtCustomerNo.Focus();
     PageTitle(posBillType);
 }
Beispiel #3
0
 public CustomerWindow(POSBillType posBillType, POSWindow posWindow)
 {
     InitializeComponent();
     this.CustomerViewModel = new POS.ViewModel.CustomerViewModel(this, posWindow);
     txtCustomerNo.Focus();
     PageTitle(posBillType);
     this.Loaded += CustomerWindow_Loaded;
 }