コード例 #1
0
 public TableInstance(ReportProcessing.ProcessingContext pc, Table reportItemDef)
     : base(pc.CreateUniqueName(), reportItemDef)
 {
     this.ConstructorHelper(pc, reportItemDef);
     if (reportItemDef.TableGroups == null && reportItemDef.TableDetail != null)
     {
         this.m_tableDetailInstances = new TableDetailInstanceList();
     }
     this.m_renderingPages     = new RenderingPagesRangesList();
     this.m_currentPage        = reportItemDef.StartPage;
     reportItemDef.CurrentPage = reportItemDef.StartPage;
 }
コード例 #2
0
 public TableInstance(ReportProcessing.ProcessingContext pc, Table reportItemDef, TableDetailInstanceList tableDetailInstances, RenderingPagesRangesList renderingPages)
     : base(pc.CreateUniqueName(), reportItemDef)
 {
     this.ConstructorHelper(pc, reportItemDef);
     if (reportItemDef.TableGroups == null && reportItemDef.TableDetail != null)
     {
         this.m_tableDetailInstances = tableDetailInstances;
         this.m_renderingPages       = renderingPages;
     }
     this.m_currentPage            = reportItemDef.StartPage;
     reportItemDef.CurrentPage     = reportItemDef.StartPage;
     reportItemDef.BottomInEndPage = pc.Pagination.CurrentPageHeight;
 }
コード例 #3
0
        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();
            }
        }