public AddItemViewModel(AddItem addItem) { _addItem = addItem; _posRepository = SettingHelpers.GetRepositoryImplementation(); Barcode = SettingHelpers.CurrentBarcode; GetUnitTypeList(); }
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; } }
public PosController(IRoleRepository roleRepository, IRepository <Language> langRepository, IPosRepository posRepository, IUserRepository userRepository, IPublicUserRepository publicUserRepository) { _roleRepository = roleRepository; _langRepository = langRepository; _posRepository = posRepository; _userRepository = userRepository; _publicUserRepository = publicUserRepository; }
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(); } }
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; }
public PosController(IPosRepository _posRepository) { posRepository = _posRepository; }
public PosController(IPosRepository posRepository, IPosService posService) { _posRepository = posRepository; _posService = posService; }
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(); }
public LoginViewModel() { _posRepository = SettingHelpers.GetRepositoryImplementation(); }
public PosService(IPosRepository repository, IValidator <Pos> validator) { this.repository = repository; this.validator = validator; }
public SupervisorViewModel(SupervisorLogin supervisorLogin) { _supervisorLogin = supervisorLogin; ErrorMessage = string.Empty; _posRepository = SettingHelpers.GetRepositoryImplementation(); }