예제 #1
0
 public IncomeSourceDetailVM(IncomeSource source, AccountDetailVM baseAccount, Schedule accountSchedule) : base(baseAccount.AccountType)
 {
     AccountName          = baseAccount.AccountName;
     Notes                = baseAccount.Notes;
     IncomeSourceId       = source.LocalId;
     AccountId            = baseAccount.AccountId;
     DateTime_Created     = baseAccount.DateTime_Created;
     DateTime_Deactivated = baseAccount.DateTime_Deactivated;
     DefaultToAccountId   = source.DefaultToAccountId;
     ExpectedAmount       = source.ExpectedAmount;
     Schedule             = accountSchedule == null ? null : new Schedule_Base(accountSchedule);
     TotalFromSource      = source.TotalFromSource;
 }
예제 #2
0
 public IncomeSourceDetailVM(IncomeSource_DetailView repoModel, Schedule sched = null) : base(Constants.AccountType.IncomeSource)
 {
     IncomeSourceId       = repoModel.IncomeSourceId;
     Notes                = repoModel.Notes;
     AccountId            = repoModel.AccountId;
     AccountName          = repoModel.AccountName;
     DateTime_Created     = repoModel.DateTime_Created;
     DateTime_Deactivated = repoModel.DateTime_Deactivated;
     ExpectedAmount       = repoModel.ExpectedAmount;
     TotalFromSource      = repoModel.TotalFromSource;
     DefaultToAccountId   = repoModel.DefaultToAccountId;
     Schedule             = new Schedule_Base(sched);
 }