Ejemplo n.º 1
0
        public List <InstanceReportRow> Load(EquityRoleSegmentKey key, List <InstanceReportRow> list)
        {
            List <InstanceReportRow> rows = new List <InstanceReportRow>();

            switch (key.Role)
            {
            case InstanceReport.EquityRowRole.None:
                rows = list.FindAll(row => !(row.IsBeginningBalance || row.IsEndingBalance));
                break;

            case InstanceReport.EquityRowRole.BeginningBalance:
                rows = list.FindAll(row => row.IsBeginningBalance);
                break;

            case InstanceReport.EquityRowRole.EndingBalance:
                rows = list.FindAll(row => row.IsEndingBalance);
                break;
            }

            switch (key.Segment)
            {
            case InstanceReport.EquityRowSegment.None:
                break;

            case InstanceReport.EquityRowSegment.Adjusted:
                break;

            case InstanceReport.EquityRowSegment.PreviouslyReported:
                break;
            }



            return(rows);
        }
Ejemplo n.º 2
0
 public RowGroup this[InstanceReport.EquityRowRole role, InstanceReport.EquityRowSegment segment]
 {
     get
     {
         EquityRoleSegmentKey key = new EquityRoleSegmentKey(role, segment);
         return(this[key]);
     }
     set
     {
         EquityRoleSegmentKey key = new EquityRoleSegmentKey(role, segment);
         this[key] = value;
     }
 }
Ejemplo n.º 3
0
        public RowGroup this[EquityRoleSegmentKey key]
        {
            get
            {
                if (!this.subGroups.ContainsKey(key))
                {
                    this.subGroups[key] = new RowGroup();
                }

                return(subGroups[key]);
            }
            set
            {
                this.subGroups[key] = value;
            }
        }