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