Exemplo n.º 1
0
 private void OpenAddCapexToAccount()
 {
     NewCapexForAccount = new AccountsCapexInfoSet();
     CapexAmount        = 0M;
     if (!IsAddCapexOpen)
     {
         CapexesList = new ObservableCollection <CapexSet>(_capexService.GetCapexesForYearList(CurrentAccount.AccountYear));
         NewCapexForAccount.AccountsMainId = CurrentAccount.Id;
     }
     IsAddCapexOpen = !IsAddCapexOpen;
 }
Exemplo n.º 2
0
 private void LoadAccount(object sender, DoWorkEventArgs e)
 {
     ExpensesList = new ObservableCollection <AccountsExpenseSet>(_expenseService.GetExpensesList());
     if (Account.Id != 0)
     {
         LoadCapexInfo();
         LoadHistoryStatus(Account.Id);
         AccountStoresList = new ObservableCollection <StoresSet>(_accountStoresService.GetAccountStoresById(Account.Id));
         StoresWorkList    = new ObservableCollection <StoreProvenWorkSet>(_storesWorkService.GetWorksList(AccountStoresList, false));
         AccountFAList     = new ObservableCollection <AccountsBudgetDetailsSet>(_accountFAService.GetFAList(Account.Id));
         CapexesList       = new ObservableCollection <CapexSet>(_capexService.GetCapexesForYearList(Account.AccountYear));
     }
     else
     {
         AccountCapexList  = new ObservableCollection <AccountsCapexInfoSet>();
         AccountStoresList = new ObservableCollection <StoresSet>();
         StoresWorkList    = new ObservableCollection <StoreProvenWorkSet>();
         AccountFAList     = new ObservableCollection <AccountsBudgetDetailsSet>();
     }
 }