private void PopulateTotals() { this.Totals = new AnnualReportNode(); this.Totals.PreviousYear = PopulateOneTotal(this._singleLookups[0]); this.Totals.ThisYear = PopulateOneTotal(this._singleLookups[5]); this.Totals.ThisYearBudget = PopulateOneTotal(this._singleLookups[6]); for (int quarter = 0; quarter < 4; quarter++) { this.Totals.Quarters[quarter] = PopulateOneTotal(this._singleLookups[quarter + 1]); } }
private AnnualReportNode CreateAnnualReportNode(int accountId, Dictionary <int, Int64>[] lookup) { AnnualReportNode node = new AnnualReportNode(); node.PreviousYear = lookup[0][accountId]; for (int quarter = 1; quarter <= 4; quarter++) { node.Quarters[quarter - 1] = lookup[quarter][accountId]; } node.ThisYear = lookup[5][accountId]; node.ThisYearBudget = lookup[6][accountId]; return(node); }
public AnnualReportLine() { this.Children = new List <AnnualReportLine>(); this.AccountValues = new AnnualReportNode(); this.AccountTreeValues = new AnnualReportNode(); }