private void AddFA()
 {
     NewFA = new AccountsBudgetDetailsSet { AccountsMainId = Account.Id };
     FAList = new ObservableCollection<FASet>(_faService.GetFAList());
     if (AccountStoresList.Count == 1)
         NewFA.AccountStoreNumber = AccountStoresList.FirstOrDefault().StoreNumber;
     if (AccountCapexList.Count == 1)
         NewFA.EquipmentCapexId = AccountCapexList.FirstOrDefault().CapexId;
     AddFAOpen = true;
 }
 private void CloseFA()
 {
     NewFA = new AccountsBudgetDetailsSet();
     AddFAOpen = false;
 }
예제 #3
0
 public void AddFAToAccount(AccountsBudgetDetailsSet newFA)
 {
     _accountFARepository.Add(newFA);
 }