Example #1
0
 private void LoadFullCapexInfo(object sender, DoWorkEventArgs e)
 {
     IsCapexBusy   = true;
     FullCapexList = _capexService.GetCapexes();
     AccountsList  = _accountsMainService.GetAllAccountsWithStoresAndCapex();
     _storesList   = _storesService.GetStores();
 }
Example #2
0
 private void LoadAccountList(object sender, DoWorkEventArgs e)
 {
     IsInfoBusy     = true;
     AccountList    = _accountsMainService.GetAllAccountsWithStoresAndCapex();
     StoreErrorList = new ObservableCollection <AccountsMainSet>(AccountList.Where(a => a.AccountsStoreDetailsSets.Count == 0));
     CapexErrorList = new ObservableCollection <AccountsMainSet>(AccountList.Where(a => a.AccountsCapexInfoSets.Count == 0 || a.AccountsCapexInfoSets.Sum(c => c.AccountCapexAmount) != a.AccountAmount));
     StoreError     = StoreErrorList.Count;
     SumError       = CapexErrorList.Count;
     LoadStatuses();
 }