public ClientAccountDisplayViewModel() { _safeServ = new SafeServices(); _clientServ = new ClientServices(); _clientAccountServ = new ClientAccountServices(); _clientAccountAddDialog = new ClientAccountAddDialog(); _accountStatements = new ObservableCollection <StatementVM>(); _key = ""; _isFocused = true; Clients = new ObservableCollection <Client>(_clientServ.GetClients()); _currentWindow = Application.Current.Windows.OfType <MetroWindow>().LastOrDefault(); _accountStatements.Add(new StatementVM { ID = 1, Statement = "سند دفع له" }); _accountStatements.Add(new StatementVM { ID = 2, Statement = "سند قبض منه" }); _accountStatements.Add(new StatementVM { ID = 5, Statement = "تسوية إضافة له" }); _accountStatements.Add(new StatementVM { ID = 6, Statement = "تسوية تنزيل منه" }); clientAccounts = _clientAccountServ.GetAccounts(); Load(); }
public SafeDisplayViewModel() { _safeServ = new SafeServices(); _safeAddDialog = new SafeAddDialog(); _key = ""; _isFocused = true; _currentWindow = Application.Current.Windows.OfType <MetroWindow>().LastOrDefault(); _statementSuggestions = _safeServ.GetStatementSuggetions(); safes = _safeServ.GetSafes(); Load(); }
public SupplyUpdateViewModel() { _safeServ = new SafeServices(); _supplyServ = new SupplyServices(); _categoryServ = new CategoryServices(); _clientAccountServ = new ClientAccountServices(); _supplyCategoryServ = new SupplyCategoryServices(); _categoriesDialog = new CategoriesShowDialog(); _currentWindow = Application.Current.Windows.OfType <MetroWindow>().LastOrDefault(); _supplyCategories = new ObservableCollection <SupplyCategoryVM>(_supplyCategoryServ.GetSupplyCategoriesVM(ID)); _selectedSupply = _supplyServ.GetSupply(ID); }
public SafeReportViewModel() { _safeServ = new SafeServices(); _safeDetailsDialog = new SafeDetailsDialog(); _key = ""; _isFocused = true; _currentWindow = Application.Current.Windows.OfType <MetroWindow>().LastOrDefault(); _dateFrom = Convert.ToDateTime(DateTime.Now.ToShortDateString()); _dateTo = Convert.ToDateTime(DateTime.Now.ToShortDateString()); _currentAccount = _safeServ.GetCurrentAccount(); safes = _safeServ.GetSafes(_dateFrom, _dateTo); Load(); }
public SupplyDisplayViewModel() { _safeServ = new SafeServices(); _supplyServ = new SupplyServices(); _categoryServ = new CategoryServices(); _clientAccountServ = new ClientAccountServices(); _supplyCategoryServ = new SupplyCategoryServices(); _key = ""; _isFocused = true; _currentWindow = Application.Current.Windows.OfType <MetroWindow>().LastOrDefault(); supplies = _supplyServ.GetSupplies(); Load(); }
public SupplyAddViewModel() { _safeServ = new SafeServices(); _supplyServ = new SupplyServices(); _clientServ = new ClientServices(); _categoryServ = new CategoryServices(); _clientAccountServ = new ClientAccountServices(); _supplyCategoryServ = new SupplyCategoryServices(); _categoriesDialog = new CategoriesShowDialog(); _supplyCategories = new ObservableCollection <SupplyCategoryVM>(); _newSupply = new Supply(); _key = ""; _isFocused = true; _currentWindow = Application.Current.Windows.OfType <MetroWindow>().LastOrDefault(); Clients = new ObservableCollection <Client>(_clientServ.GetClients()); NewSupply.Date = DateTime.Now; }
public SaleUpdateViewModel() { _safeServ = new SafeServices(); _saleServ = new SaleServices(); _clientServ = new ClientServices(); _categoryServ = new CategoryServices(); _salespersonServ = new SalespersonServices(); _saleCategoryServ = new SaleCategoryServices(); _clientAccountServ = new ClientAccountServices(); _categoriesDialog = new CategoriesShowDialog(); _currentWindow = Application.Current.Windows.OfType <MetroWindow>().LastOrDefault(); _key = ""; _isFocused = true; _selectedSale = _saleServ.GetSale(ID); Salespersons = new ObservableCollection <Salesperson>(_salespersonServ.GetSalespersons()); _saleCategories = new ObservableCollection <SaleCategoryVM>(_saleCategoryServ.GetSaleCategoriesVM(ID)); Report = "تقرير الفاتورة"; }
public SaleAddViewModel() { _safeServ = new SafeServices(); _saleServ = new SaleServices(); _clientServ = new ClientServices(); _categoryServ = new CategoryServices(); _salespersonServ = new SalespersonServices(); _saleCategoryServ = new SaleCategoryServices(); _clientAccountServ = new ClientAccountServices(); _newSale = new Sale(); _categoriesDialog = new CategoriesShowDialog(); _saleCategories = new ObservableCollection <SaleCategoryVM>(); _key = ""; _isFocused = true; _currentWindow = Application.Current.Windows.OfType <MetroWindow>().LastOrDefault(); Clients = new ObservableCollection <Client>(_clientServ.GetClients()); Salespersons = new ObservableCollection <Salesperson>(_salespersonServ.GetSalespersons()); NewSale.Date = DateTime.Now; Report = "تقرير الفاتورة"; }