public void Initialize(int ProjID) { try { budservice = new BudgetService(); reppers = budservice.GetFinPeriods(ProjID); _finartcats = budservice.GetFinArticleCategory(ProjID); //We aggregate the budget/transactions. aggrv2 = new BudgetAggregateService(_finartcats.ToList(), reppers.ToList()); catrepview = aggrv2.AccumulateCatRep(); budpayreportservice = new BudgetPaymentReportService(reppers.ToList(), catrepview); bpayrep = budpayreportservice.GenerateReports2(0); } catch { } }
//empty contrusctor; public FinanceResults() { budservice = new BudgetService(); }