Ejemplo n.º 1
0
 public ListInstance(ReportProcessing.ProcessingContext pc, List reportItemDef, ListContentInstanceList listContentInstances, RenderingPagesRangesList renderingPages)
     : base(pc.CreateUniqueName(), reportItemDef)
 {
     base.m_instanceInfo         = new ListInstanceInfo(pc, reportItemDef, this);
     this.m_listContentInstances = listContentInstances;
     this.m_renderingPages       = renderingPages;
 }
Ejemplo n.º 2
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;
 }
Ejemplo n.º 3
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;
 }
 public MatrixInstance(ReportProcessing.ProcessingContext pc, Matrix reportItemDef)
     : base(pc.CreateUniqueName(), reportItemDef)
 {
     base.m_instanceInfo = new MatrixInstanceInfo(pc, reportItemDef, this);
     pc.Pagination.EnterIgnoreHeight(reportItemDef.StartHidden);
     this.m_columnInstances    = new MatrixHeadingInstanceList();
     this.m_rowInstances       = new MatrixHeadingInstanceList();
     this.m_cells              = new MatrixCellInstancesList();
     this.m_renderingPages     = new RenderingPagesRangesList();
     reportItemDef.CurrentPage = reportItemDef.StartPage;
     this.m_startPage          = reportItemDef.StartPage;
     if (reportItemDef.FirstCellInstances == null)
     {
         int count = reportItemDef.CellReportItems.Count;
         reportItemDef.FirstCellInstances = new BoolList(count);
         for (int i = 0; i < count; i++)
         {
             reportItemDef.FirstCellInstances.Add(true);
         }
     }
     this.m_inFirstPage = pc.ChunkManager.InFirstPage;
 }
 public MatrixHeadingInstance(ReportProcessing.ProcessingContext pc, int headingCellIndex, MatrixHeading matrixHeadingDef, bool isSubtotal, int reportItemDefIndex, VariantList groupExpressionValues, out NonComputedUniqueNames nonComputedUniqueNames)
 {
     this.m_uniqueName = pc.CreateUniqueName();
     if (isSubtotal && matrixHeadingDef.Subtotal.StyleClass != null)
     {
         base.m_instanceInfo = new MatrixSubtotalHeadingInstanceInfo(pc, headingCellIndex, matrixHeadingDef, this, isSubtotal, reportItemDefIndex, groupExpressionValues, out nonComputedUniqueNames);
         if (matrixHeadingDef.GetInnerStaticHeading() != null)
         {
             this.m_subHeadingInstances = new MatrixHeadingInstanceList();
         }
     }
     else
     {
         base.m_instanceInfo = new MatrixHeadingInstanceInfo(pc, headingCellIndex, matrixHeadingDef, this, isSubtotal, reportItemDefIndex, groupExpressionValues, out nonComputedUniqueNames);
         if (matrixHeadingDef.SubHeading != null)
         {
             this.m_subHeadingInstances = new MatrixHeadingInstanceList();
         }
     }
     this.m_renderingPages   = new RenderingPagesRangesList();
     this.m_matrixHeadingDef = matrixHeadingDef;
     this.m_isSubtotal       = isSubtotal;
     this.m_headingDefIndex  = reportItemDefIndex;
     if (!matrixHeadingDef.IsColumn)
     {
         pc.Pagination.EnterIgnoreHeight(matrixHeadingDef.StartHidden);
     }
     if (matrixHeadingDef.FirstHeadingInstances == null)
     {
         int count = matrixHeadingDef.ReportItems.Count;
         matrixHeadingDef.FirstHeadingInstances = new BoolList(count);
         for (int i = 0; i < count; i++)
         {
             matrixHeadingDef.FirstHeadingInstances.Add(true);
         }
     }
 }
        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();
            }
        }