Exemple #1
0
 public AddItemViewModel(AddItem addItem)
 {
     _addItem       = addItem;
     _posRepository = SettingHelpers.GetRepositoryImplementation();
     Barcode        = SettingHelpers.CurrentBarcode;
     GetUnitTypeList();
 }
Exemple #2
0
 public LoginViewModel(LoginScreen loginScreen)
 {
     _loginScreen   = loginScreen;
     _posRepository = SettingHelpers.GetRepositoryImplementation();
     _languageList  = new CollectionView(_posRepository.GetAllLanguage());
     _language      = "1";
     SettingHelpers.LocalizationDictionary = _posRepository.GetLanguageWiseLabels(int.Parse(Language));
 }
 public SuspendViewModel(SuspendBill suspendBill, POSWindow posWindow)
 {
     _suspendBill      = suspendBill;
     _posWindow        = posWindow;
     _posRepository    = SettingHelpers.GetRepositoryImplementation();
     ValidationMessage = string.Empty;
     if (_posWindow.ViewModel.CustomerInformation.Customer != null)
     {
         ReferenceName = _posWindow.ViewModel.CustomerInformation.Customer.Name;
     }
 }
Exemple #4
0
        public PaymentViewModel(PaymentWindow paymentWindow)
        {
            _paymentWindow = paymentWindow;
            _posRepository = SettingHelpers.GetRepositoryImplementation();
            POSWindowViewModel pos = new POSWindowViewModel();

            if (String.IsNullOrEmpty(SettingHelpers.TotalAmount))
            {
                SettingHelpers.TotalAmount = "0";
            }
            TotalAmount = Convert.ToDecimal(SettingHelpers.TotalAmount.Replace(SettingHelpers.CurrentCultureInfo.NumberFormat.CurrencySymbol, ""));
            if (SettingHelpers.IsCustomerPO)
            {
                SetPaymentModeAmountForCPO();
            }
            if (_posWindow.ViewModel.CustomerInformation.ReturnBill != null)
            {
                TotalAmount = TotalAmount - Convert.ToDecimal(_posWindow.ViewModel.CustomerInformation.ReturnBill.SubstituteItemsAmount);
                SetValueForReturnBillPayment();
            }
        }
Exemple #5
0
 public PaymentViewModel(PaymentWindow paymentWindow, POSWindow posWindow)
 {
     _paymentWindow             = paymentWindow;
     _posWindow                 = posWindow;
     _posRepository             = SettingHelpers.GetRepositoryImplementation();
     SettingHelpers.TotalAmount = _posWindow.ViewModel.BillSummary.OrderAmount.ToString();
     _itemProfileCollection     = _posWindow.ViewModel.ItemProfileCollectionNew;
     TotalAmount                = Convert.ToDecimal(SettingHelpers.TotalAmount.Replace(SettingHelpers.CurrentCultureInfo.NumberFormat.CurrencySymbol, ""));
     if (SettingHelpers.IsCustomerPO)
     {
         SettingHelpers.TotalAmount = (_posWindow.ViewModel.BillSummary.OrderAmount
                                       + (_posWindow.ViewModel.BillSummary.AdditionalAmount == null ? 0
             : _posWindow.ViewModel.BillSummary.AdditionalAmount.Value)).ToString();
         SetPaymentModeAmountForCPO();
         TotalAmount = Convert.ToDecimal(SettingHelpers.TotalAmount.Replace(SettingHelpers.CurrentCultureInfo.NumberFormat.CurrencySymbol, ""));
     }
     if (_posWindow.ViewModel.CustomerInformation.ReturnBill != null)
     {
         TotalAmount = TotalAmount - _posWindow.ViewModel.CustomerInformation.ReturnBill.SubstituteItemsAmount;
         SetValueForReturnBillPayment();
     }
 }
 public CustomerViewModel(CustomerWindow customerWindow, POSWindow posWindow)
 {
     _customerWindow = customerWindow;
     _posWindow      = posWindow;
     _posRepository  = SettingHelpers.GetRepositoryImplementation();
 }
 public LogOutViewModel(LogOut logoutWindow)
 {
     _logOUtWindow  = logoutWindow;
     _posRepository = SettingHelpers.GetRepositoryImplementation();
 }
 //public ObservableCollection<POSTempTranscationAC> tempCollection;
 public UnSuspendViewModel(UnsuspendBill unSuspendBill)
 {
     _posRepository = SettingHelpers.GetRepositoryImplementation();
     _unSuspendBill = unSuspendBill;
     GetUnsupendBillList();
 }
Exemple #9
0
 public LoginViewModel()
 {
     _posRepository = SettingHelpers.GetRepositoryImplementation();
 }
Exemple #10
0
 public SupervisorViewModel(SupervisorLogin supervisorLogin)
 {
     _supervisorLogin = supervisorLogin;
     ErrorMessage     = string.Empty;
     _posRepository   = SettingHelpers.GetRepositoryImplementation();
 }