Esempio n. 1
0
 public AddItemViewModel(AddItem addItem)
 {
     _addItem       = addItem;
     _posRepository = SettingHelpers.GetRepositoryImplementation();
     Barcode        = SettingHelpers.CurrentBarcode;
     GetUnitTypeList();
 }
Esempio n. 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;
     }
 }
Esempio n. 4
0
 public PosController(IRoleRepository roleRepository,
                      IRepository <Language> langRepository,
                      IPosRepository posRepository,
                      IUserRepository userRepository,
                      IPublicUserRepository publicUserRepository)
 {
     _roleRepository       = roleRepository;
     _langRepository       = langRepository;
     _posRepository        = posRepository;
     _userRepository       = userRepository;
     _publicUserRepository = publicUserRepository;
 }
Esempio n. 5
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();
            }
        }
Esempio n. 6
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 ExtratoService(IExtratoRepository extratoRepository, IPosRepository posRepository)
 {
     _posRepository     = posRepository;
     _extratoRepository = extratoRepository;
 }
Esempio n. 8
0
 public PosController(IPosRepository _posRepository)
 {
     posRepository = _posRepository;
 }
Esempio n. 9
0
 public PosController(IPosRepository posRepository, IPosService posService)
 {
     _posRepository = posRepository;
     _posService    = posService;
 }
Esempio n. 10
0
 public PosService(IPosRepository posRepository)
 {
     _posRepository = posRepository;
 }
 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();
 }
Esempio n. 14
0
 public LoginViewModel()
 {
     _posRepository = SettingHelpers.GetRepositoryImplementation();
 }
Esempio n. 15
0
 public PosService(IPosRepository repository, IValidator <Pos> validator)
 {
     this.repository = repository;
     this.validator  = validator;
 }
Esempio n. 16
0
 public SupervisorViewModel(SupervisorLogin supervisorLogin)
 {
     _supervisorLogin = supervisorLogin;
     ErrorMessage     = string.Empty;
     _posRepository   = SettingHelpers.GetRepositoryImplementation();
 }