private void ConstructorHelper(ReportProcessing.ProcessingContext pc, Table reportItemDef) { base.m_instanceInfo = new TableInstanceInfo(pc, reportItemDef, this); pc.Pagination.EnterIgnoreHeight(reportItemDef.StartHidden); IndexedExprHost visibilityHiddenExprHost = (reportItemDef.TableExprHost != null) ? reportItemDef.TableExprHost.TableRowVisibilityHiddenExpressions : null; if (reportItemDef.HeaderRows != null) { this.m_headerRowInstances = new TableRowInstance[reportItemDef.HeaderRows.Count]; for (int i = 0; i < this.m_headerRowInstances.Length; i++) { this.m_headerRowInstances[i] = new TableRowInstance(pc, reportItemDef.HeaderRows[i], reportItemDef, visibilityHiddenExprHost); } } if (reportItemDef.FooterRows != null) { this.m_footerRowInstances = new TableRowInstance[reportItemDef.FooterRows.Count]; for (int j = 0; j < this.m_footerRowInstances.Length; j++) { this.m_footerRowInstances[j] = new TableRowInstance(pc, reportItemDef.FooterRows[j], reportItemDef, visibilityHiddenExprHost); } } if (reportItemDef.TableGroups != null) { this.m_tableGroupInstances = new TableGroupInstanceList(); } }
public TableGroupInstance(ReportProcessing.ProcessingContext pc, TableGroup tableGroupDef) { Table table = (Table)tableGroupDef.DataRegionDef; this.m_uniqueName = pc.CreateUniqueName(); base.m_instanceInfo = new TableGroupInstanceInfo(pc, tableGroupDef, this); pc.Pagination.EnterIgnoreHeight(tableGroupDef.StartHidden); this.m_tableGroupDef = tableGroupDef; IndexedExprHost visibilityHiddenExprHost = (tableGroupDef.ExprHost != null) ? tableGroupDef.ExprHost.TableRowVisibilityHiddenExpressions : null; this.m_renderingPages = new RenderingPagesRangesList(); if (tableGroupDef.HeaderRows != null) { this.m_headerRowInstances = new TableRowInstance[tableGroupDef.HeaderRows.Count]; for (int i = 0; i < this.m_headerRowInstances.Length; i++) { this.m_headerRowInstances[i] = new TableRowInstance(pc, tableGroupDef.HeaderRows[i], table, visibilityHiddenExprHost); } } if (tableGroupDef.FooterRows != null) { this.m_footerRowInstances = new TableRowInstance[tableGroupDef.FooterRows.Count]; for (int j = 0; j < this.m_footerRowInstances.Length; j++) { this.m_footerRowInstances[j] = new TableRowInstance(pc, tableGroupDef.FooterRows[j], table, visibilityHiddenExprHost); } } if (tableGroupDef.SubGroup != null) { this.m_subGroupInstances = new TableGroupInstanceList(); } else if (table.TableDetail != null) { this.m_tableDetailInstances = new TableDetailInstanceList(); } }