コード例 #1
0
        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]);
            }
        }
コード例 #2
0
        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);
        }
コード例 #3
0
 public AnnualReportLine()
 {
     this.Children          = new List <AnnualReportLine>();
     this.AccountValues     = new AnnualReportNode();
     this.AccountTreeValues = new AnnualReportNode();
 }