private void GenerateInnerHierarchy(Tablix owner, ShimMatrixMember parent, bool isColumn, MatrixMemberCollection children) { if (children != null) { MatrixMemberInfoCache matrixMemberInfoCache = null; if (base.m_isColumn) { if (children.MatrixHeadingDef.SubHeading != null) { matrixMemberInfoCache = new MatrixMemberInfoCache(-1, children.Count); } else { int startIndex = (this.m_staticOrSubtotal != null) ? this.m_staticOrSubtotal.MemberCellIndex : this.AdjustedRenderCollectionIndex; matrixMemberInfoCache = new MatrixMemberInfoCache(startIndex, -1); } this.m_currentMatrixMemberCellIndexes.Children[this.AdjustedRenderCollectionIndex] = matrixMemberInfoCache; } base.m_children = new ShimMatrixMemberCollection(this, owner, isColumn, this, children, matrixMemberInfoCache); } else { owner.GetAndIncrementMemberCellDefinitionIndex(); } }
public TablixCornerCell(Tablix owner, int rowIndex, int colIndex, AspNetCore.ReportingServices.ReportIntermediateFormat.TablixCornerCell cellDef) { this.m_owner = owner; this.m_rowIndex = rowIndex; this.m_columnIndex = colIndex; this.m_cellDef = cellDef; }
public TablixCell(Cell cell, Tablix owner, int rowIndex, int colIndex) { this.m_cell = cell; this.m_owner = owner; this.m_rowIndex = rowIndex; this.m_columnIndex = colIndex; }
public TablixCornerCell(Tablix owner, int rowIndex, int colIndex, AspNetCore.ReportingServices.ReportRendering.ReportItem cornerReportItem) { this.m_owner = owner; this.m_rowIndex = rowIndex; this.m_columnIndex = colIndex; this.m_cornerReportItem = cornerReportItem; }
public TablixCornerRow(Tablix owner, int rowIndex, List <AspNetCore.ReportingServices.ReportIntermediateFormat.TablixCornerCell> rowDef) { this.m_owner = owner; this.m_rowIndex = rowIndex; this.m_rowDef = rowDef; this.m_cellROMDefs = new TablixCornerCell[rowDef.Count]; }
public TablixCornerRow(Tablix owner, int rowIndex, AspNetCore.ReportingServices.ReportRendering.ReportItem cornerDef) { this.m_owner = owner; this.m_rowIndex = rowIndex; this.m_cornerDef = cornerDef; this.m_cellROMDefs = new TablixCornerCell[this.m_owner.Rows]; }
public ShimTableMemberCollection(IDefinitionPath parentDefinitionPath, Tablix owner, ShimTableMember parent, AspNetCore.ReportingServices.ReportRendering.TableGroup tableGroup) : base(parentDefinitionPath, owner, false) { this.m_rowDefinitionStartIndex = owner.GetCurrentMemberCellDefinitionIndex(); base.m_children = this.CreateInnerHierarchy(owner, parent, tableGroup.GroupHeader, tableGroup.GroupFooter, tableGroup.SubGroups, tableGroup.DetailRows, ref this.m_dynamicSubgroupChildIndex); this.m_rowDefinitionEndIndex = owner.GetCurrentMemberCellDefinitionIndex(); }
public ShimTableMember(IDefinitionPath parentDefinitionPath, Tablix owner, int columnIndex, TableColumnCollection columns) : base(parentDefinitionPath, owner, null, columnIndex, true) { this.m_column = columns[columnIndex]; this.m_isFixedHeader = this.m_column.FixedHeader; this.m_rowDefinitionStartIndex = (this.m_rowDefinitionEndIndex = columnIndex); }
public static ReportItem CreateItem(IReportScope reportScope, IDefinitionPath parentDefinitionPath, int indexIntoParentCollectionDef, AspNetCore.ReportingServices.ReportIntermediateFormat.ReportItem reportItemDef, RenderingContext renderingContext) { ReportItem reportItem = null; switch (reportItemDef.ObjectType) { case ObjectType.Textbox: reportItem = new TextBox(reportScope, parentDefinitionPath, indexIntoParentCollectionDef, (AspNetCore.ReportingServices.ReportIntermediateFormat.TextBox)reportItemDef, renderingContext); break; case ObjectType.Rectangle: reportItem = new Rectangle(reportScope, parentDefinitionPath, indexIntoParentCollectionDef, (AspNetCore.ReportingServices.ReportIntermediateFormat.Rectangle)reportItemDef, renderingContext); break; case ObjectType.Image: reportItem = new Image(reportScope, parentDefinitionPath, indexIntoParentCollectionDef, (AspNetCore.ReportingServices.ReportIntermediateFormat.Image)reportItemDef, renderingContext); break; case ObjectType.Line: reportItem = new Line(reportScope, parentDefinitionPath, indexIntoParentCollectionDef, (AspNetCore.ReportingServices.ReportIntermediateFormat.Line)reportItemDef, renderingContext); break; case ObjectType.Subreport: reportItem = new SubReport(reportScope, parentDefinitionPath, indexIntoParentCollectionDef, (AspNetCore.ReportingServices.ReportIntermediateFormat.SubReport)reportItemDef, renderingContext); break; case ObjectType.Tablix: reportItem = new Tablix(parentDefinitionPath, indexIntoParentCollectionDef, (AspNetCore.ReportingServices.ReportIntermediateFormat.Tablix)reportItemDef, renderingContext); break; case ObjectType.Chart: reportItem = new Chart(parentDefinitionPath, indexIntoParentCollectionDef, (AspNetCore.ReportingServices.ReportIntermediateFormat.Chart)reportItemDef, renderingContext); break; case ObjectType.GaugePanel: reportItem = new GaugePanel(parentDefinitionPath, indexIntoParentCollectionDef, (AspNetCore.ReportingServices.ReportIntermediateFormat.GaugePanel)reportItemDef, renderingContext); break; case ObjectType.CustomReportItem: { AspNetCore.ReportingServices.ReportIntermediateFormat.CustomReportItem customReportItem = (AspNetCore.ReportingServices.ReportIntermediateFormat.CustomReportItem)reportItemDef; reportItem = new CustomReportItem(reportScope, parentDefinitionPath, indexIntoParentCollectionDef, customReportItem, renderingContext); if (!((CustomReportItem)reportItem).Initialize(renderingContext)) { reportItem = ReportItem.CreateItem(reportScope, parentDefinitionPath, customReportItem.AltReportItemIndexInParentCollectionDef, customReportItem.AltReportItem, renderingContext); reportItem.ReportItemDef.RepeatedSibling = customReportItem.RepeatedSibling; reportItem.ReportItemDef.RepeatWith = customReportItem.RepeatWith; ReportItem.ProcessAlternateCustomReportItem(customReportItem, reportItem, renderingContext); } break; } case ObjectType.Map: reportItem = new Map(reportScope, parentDefinitionPath, indexIntoParentCollectionDef, (AspNetCore.ReportingServices.ReportIntermediateFormat.Map)reportItemDef, renderingContext); break; } return(reportItem); }
public ShimTableMember(IDefinitionPath parentDefinitionPath, Tablix owner, ShimTableMember parent, int parentCollectionIndex, TableRow staticRow, KeepWithGroup keepWithGroup, bool isFixedTableHeader) : base(parentDefinitionPath, owner, parent, parentCollectionIndex, false) { this.m_innerStaticRow = staticRow; this.m_rowDefinitionStartIndex = owner.GetAndIncrementMemberCellDefinitionIndex(); this.m_rowDefinitionEndIndex = owner.GetCurrentMemberCellDefinitionIndex(); this.m_keepWithGroup = keepWithGroup; this.m_isFixedHeader = isFixedTableHeader; }
private static void CollectTextBoxes(AspNetCore.ReportingServices.OnDemandReportRendering.Tablix tablix, PageContext pageContext, bool useForPageHFEval, Dictionary <string, List <object> > textBoxes) { if (tablix != null && useForPageHFEval && HeaderFooterEval.ShouldBeCollected(tablix)) { TablixInstance tablixInstance = (TablixInstance)tablix.Instance; HeaderFooterEval.CollectTablixMembersContents(tablix, null, -1, TablixState.ColMembers, tablixInstance.NoRows, pageContext, true, textBoxes); HeaderFooterEval.CollectTablixMembersContents(tablix, null, 0, TablixState.RowMembers, tablixInstance.NoRows, pageContext, true, textBoxes); } }
public ShimTableMember(IDefinitionPath parentDefinitionPath, Tablix owner, ShimTableMember parent, int parentCollectionIndex, TableRowsCollection renderRows) : base(parentDefinitionPath, owner, parent, parentCollectionIndex, false) { this.m_rowDefinitionStartIndex = owner.GetCurrentMemberCellDefinitionIndex(); this.m_isDetailGroup = true; this.m_renderDetails = renderRows; base.m_children = new ShimTableMemberCollection(this, (Tablix)base.m_owner, this, renderRows[0]); base.m_group = new Group(owner, this); this.m_rowDefinitionEndIndex = owner.GetCurrentMemberCellDefinitionIndex(); }
public ShimMatrixMember(IDefinitionPath parentDefinitionPath, Tablix owner, ShimMatrixMember parent, int parentCollectionIndex, bool isColumn, int renderCollectionIndex, ShimRenderGroups renderGroups, MatrixMemberInfoCache matrixMemberCellIndexes) : base(parentDefinitionPath, owner, parent, parentCollectionIndex, isColumn) { this.m_renderCollectionIndex = renderCollectionIndex; this.m_currentMatrixMemberCellIndexes = matrixMemberCellIndexes; this.m_definitionStartIndex = owner.GetCurrentMemberCellDefinitionIndex(); base.m_group = new Group(owner, renderGroups, this); this.GenerateInnerHierarchy(owner, parent, isColumn, ((MatrixMember)base.m_group.CurrentShimRenderGroup).Children); this.m_definitionEndIndex = owner.GetCurrentMemberCellDefinitionIndex(); }
public ShimMatrixMember(IDefinitionPath parentDefinitionPath, Tablix owner, ShimMatrixMember parent, int parentCollectionIndex, bool isColumn, int renderCollectionIndex, MatrixMember staticOrSubtotal, bool isAfterSubtotal, MatrixMemberInfoCache matrixMemberCellIndexes) : base(parentDefinitionPath, owner, parent, parentCollectionIndex, isColumn) { this.m_renderCollectionIndex = renderCollectionIndex; this.m_isAfterSubtotal = isAfterSubtotal; this.m_currentMatrixMemberCellIndexes = matrixMemberCellIndexes; this.m_definitionStartIndex = owner.GetCurrentMemberCellDefinitionIndex(); this.m_staticOrSubtotal = staticOrSubtotal; this.GenerateInnerHierarchy(owner, parent, isColumn, staticOrSubtotal.Children); this.m_definitionEndIndex = owner.GetCurrentMemberCellDefinitionIndex(); }
public ShimTableMember(IDefinitionPath parentDefinitionPath, Tablix owner, ShimTableMember parent, int parentCollectionIndex, ShimRenderGroups renderGroups) : base(parentDefinitionPath, owner, parent, parentCollectionIndex, false) { this.m_rowDefinitionStartIndex = owner.GetCurrentMemberCellDefinitionIndex(); if (renderGroups != null) { base.m_children = new ShimTableMemberCollection(this, (Tablix)base.m_owner, this, (TableGroup)renderGroups[0]); } base.m_group = new Group(owner, renderGroups, this); this.m_rowDefinitionEndIndex = owner.GetCurrentMemberCellDefinitionIndex(); }
public static void AddDetailCellToCurrentPage(AspNetCore.ReportingServices.OnDemandReportRendering.Tablix tablix, int colMemberIndexCell, int rowMemberIndexCell, PageContext context, bool useForPageHFEval, Interactivity interactivity) { if (rowMemberIndexCell >= 0) { TablixRowCollection rowCollection = tablix.Body.RowCollection; TablixCell tablixCell = ((ReportElementCollectionBase <TablixCell>)((ReportElementCollectionBase <TablixRow>)rowCollection)[rowMemberIndexCell])[colMemberIndexCell]; if (tablixCell != null && tablixCell.CellContents != null) { RegisterItem.RegisterHiddenItem(tablixCell.CellContents.ReportItem, context, useForPageHFEval, interactivity); } } }
private static void CollectDetailCellContents(AspNetCore.ReportingServices.OnDemandReportRendering.Tablix tablix, int colMemberIndexCell, int rowMemberIndexCell, PageContext context, bool useForPageHFEval, Dictionary <string, List <object> > textBoxes) { if (rowMemberIndexCell >= 0) { TablixRowCollection rowCollection = tablix.Body.RowCollection; TablixCell tablixCell = ((ReportElementCollectionBase <TablixCell>)((ReportElementCollectionBase <TablixRow>)rowCollection)[rowMemberIndexCell])[colMemberIndexCell]; if (tablixCell != null && tablixCell.CellContents != null) { HeaderFooterEval.CollectTextBoxes(tablixCell.CellContents.ReportItem, context, useForPageHFEval, textBoxes); } } }
public ShimTableMemberCollection(IDefinitionPath parentDefinitionPath, Tablix owner, ShimTableMember parent, TableDetailRowCollection detailRows) : base(parentDefinitionPath, owner, false) { this.m_rowDefinitionStartIndex = owner.GetCurrentMemberCellDefinitionIndex(); int count = detailRows.Count; base.m_children = new ShimTableMember[count]; for (int i = 0; i < count; i++) { base.m_children[i] = new ShimTableMember(this, owner, parent, i, ((TableRowCollection)detailRows)[i], KeepWithGroup.None, false); } this.m_rowDefinitionEndIndex = owner.GetCurrentMemberCellDefinitionIndex(); }
public ShimTableRowCollection(Tablix owner) : base(owner) { this.m_rows = new List <TablixRow>(); this.AppendTableRows(owner.RenderTable.TableHeader); if (owner.RenderTable.TableGroups != null) { this.AppendTableGroups(owner.RenderTable.TableGroups[0]); } else if (owner.RenderTable.DetailRows != null) { this.AppendTableRows(owner.RenderTable.DetailRows[0]); } this.AppendTableRows(owner.RenderTable.TableFooter); }
public static ReportItem CreateShim(IDefinitionPath parentDefinitionPath, int indexIntoParentCollectionDef, bool inSubtotal, AspNetCore.ReportingServices.ReportRendering.ReportItem renderReportItem, RenderingContext renderingContext) { ReportItem result = null; if (renderReportItem is AspNetCore.ReportingServices.ReportRendering.TextBox) { result = new TextBox(parentDefinitionPath, indexIntoParentCollectionDef, inSubtotal, (AspNetCore.ReportingServices.ReportRendering.TextBox)renderReportItem, renderingContext); } else if (renderReportItem is AspNetCore.ReportingServices.ReportRendering.Rectangle) { result = new Rectangle(parentDefinitionPath, indexIntoParentCollectionDef, inSubtotal, (AspNetCore.ReportingServices.ReportRendering.Rectangle)renderReportItem, renderingContext); } else if (renderReportItem is AspNetCore.ReportingServices.ReportRendering.Image) { result = new Image(parentDefinitionPath, indexIntoParentCollectionDef, inSubtotal, (AspNetCore.ReportingServices.ReportRendering.Image)renderReportItem, renderingContext); } else if (renderReportItem is AspNetCore.ReportingServices.ReportRendering.List) { result = new Tablix(parentDefinitionPath, indexIntoParentCollectionDef, inSubtotal, (AspNetCore.ReportingServices.ReportRendering.List)renderReportItem, renderingContext); } else if (renderReportItem is AspNetCore.ReportingServices.ReportRendering.Table) { result = new Tablix(parentDefinitionPath, indexIntoParentCollectionDef, inSubtotal, (AspNetCore.ReportingServices.ReportRendering.Table)renderReportItem, renderingContext); } else if (renderReportItem is AspNetCore.ReportingServices.ReportRendering.Matrix) { result = new Tablix(parentDefinitionPath, indexIntoParentCollectionDef, inSubtotal, (AspNetCore.ReportingServices.ReportRendering.Matrix)renderReportItem, renderingContext); } else if (renderReportItem is AspNetCore.ReportingServices.ReportRendering.Chart) { result = new Chart(parentDefinitionPath, indexIntoParentCollectionDef, inSubtotal, (AspNetCore.ReportingServices.ReportRendering.Chart)renderReportItem, renderingContext); } else if (renderReportItem is AspNetCore.ReportingServices.ReportRendering.CustomReportItem) { result = new CustomReportItem(parentDefinitionPath, indexIntoParentCollectionDef, inSubtotal, (AspNetCore.ReportingServices.ReportRendering.CustomReportItem)renderReportItem, renderingContext); } else if (renderReportItem is AspNetCore.ReportingServices.ReportRendering.SubReport) { result = new SubReport(parentDefinitionPath, indexIntoParentCollectionDef, inSubtotal, (AspNetCore.ReportingServices.ReportRendering.SubReport)renderReportItem, renderingContext); } else if (renderReportItem is AspNetCore.ReportingServices.ReportRendering.Line) { result = new Line(parentDefinitionPath, indexIntoParentCollectionDef, inSubtotal, (AspNetCore.ReportingServices.ReportRendering.Line)renderReportItem, renderingContext); } return(result); }
private static void RegisterHiddenItem(AspNetCore.ReportingServices.OnDemandReportRendering.Tablix tablix, PageContext pageContext, bool useForPageHFEval, Interactivity interactivity) { if (tablix != null) { bool flag = false; if (useForPageHFEval) { flag = HeaderFooterEval.AddToCurrentPage(tablix); } if (!flag && interactivity == null) { return; } TablixInstance tablixInstance = (TablixInstance)tablix.Instance; WalkTablix.AddMembersToCurrentPage(tablix, null, -1, WalkTablix.State.ColMembers, false, tablixInstance.NoRows, pageContext, flag, interactivity); WalkTablix.AddMembersToCurrentPage(tablix, null, 0, WalkTablix.State.RowMembers, true, tablixInstance.NoRows, pageContext, flag, interactivity); } }
private TablixMember[] CreateInnerHierarchy(Tablix owner, ShimTableMember parent, TableHeaderFooterRows headerRows, TableHeaderFooterRows footerRows, TableGroupCollection subGroups, TableRowsCollection detailRows, ref int dynamicSubgroupChildIndex) { List <ShimTableMember> list = new List <ShimTableMember>(); bool noKeepWith = subGroups == null && null == detailRows; this.CreateHeaderFooter(list, headerRows, ShimTableMemberCollection.DetermineKeepWithGroup(true, headerRows, noKeepWith), owner, parent, parent == null && owner.RenderTable.FixedHeader); if (subGroups != null) { dynamicSubgroupChildIndex = list.Count; this.CreateInnerDynamicGroups(list, subGroups, owner, parent); } else if (detailRows != null) { dynamicSubgroupChildIndex = list.Count; list.Add(new ShimTableMember(this, owner, parent, dynamicSubgroupChildIndex, detailRows)); } this.CreateHeaderFooter(list, footerRows, ShimTableMemberCollection.DetermineKeepWithGroup(false, footerRows, noKeepWith), owner, parent, false); return(list.ToArray()); }
public ShimTableMemberCollection(IDefinitionPath parentDefinitionPath, Tablix owner, bool isColumnGroup) : base(parentDefinitionPath, owner, isColumnGroup) { if (base.m_isColumnGroup) { int count = owner.RenderTable.Columns.Count; base.m_children = new ShimTableMember[count]; for (int i = 0; i < count; i++) { base.m_children[i] = new ShimTableMember(this, owner, i, owner.RenderTable.Columns); } } else { this.m_rowDefinitionStartIndex = owner.GetCurrentMemberCellDefinitionIndex(); base.m_children = this.CreateInnerHierarchy(owner, (ShimTableMember)null, owner.RenderTable.TableHeader, owner.RenderTable.TableFooter, owner.RenderTable.TableGroups, owner.RenderTable.DetailRows, ref this.m_dynamicSubgroupChildIndex); this.m_rowDefinitionEndIndex = owner.GetCurrentMemberCellDefinitionIndex(); } }
public static bool AddToCurrentPage(AspNetCore.ReportingServices.OnDemandReportRendering.Tablix tablix) { TablixInstance tablixInstance = (TablixInstance)tablix.Instance; if (tablixInstance.NoRows) { if (tablix.NoRowsMessage != null) { string text = null; text = ((!tablix.NoRowsMessage.IsExpression) ? tablix.NoRowsMessage.Value : tablixInstance.NoRowsMessage); if (text != null) { return(false); } } if (tablix.HideStaticsIfNoRows) { return(false); } } return(true); }
public ShimTableRow(Tablix owner, int rowIndex, AspNetCore.ReportingServices.ReportRendering.TableRow renderRow) : base(owner, rowIndex) { this.m_cells = new List <ShimTableCell>(); this.m_height = new ReportSize(renderRow.Height); TableCellCollection tableCellCollection = renderRow.TableCellCollection; if (tableCellCollection != null) { int count = tableCellCollection.Count; this.m_rowCellDefinitionMapping = new int[owner.RenderTable.Columns.Count]; int num = 0; for (int i = 0; i < count; i++) { int colSpan = tableCellCollection[i].ColSpan; for (int j = 0; j < colSpan; j++) { this.m_rowCellDefinitionMapping[num] = ((j == 0) ? i : (-1)); num++; } this.m_cells.Add(new ShimTableCell(owner, rowIndex, i, colSpan, tableCellCollection[i].ReportItem)); } } }
private void VisitTablix(AspNetCore.ReportingServices.OnDemandReportRendering.Tablix tablixDef) { if (tablixDef.Corner != null) { TablixCornerRowCollection rowCollection = tablixDef.Corner.RowCollection; for (int i = 0; i < rowCollection.Count; i++) { TablixCornerRow tablixCornerRow = ((ReportElementCollectionBase <TablixCornerRow>)rowCollection)[i]; if (tablixCornerRow != null) { for (int j = 0; j < tablixCornerRow.Count; j++) { AspNetCore.ReportingServices.OnDemandReportRendering.TablixCornerCell tablixCornerCell = ((ReportElementCollectionBase <AspNetCore.ReportingServices.OnDemandReportRendering.TablixCornerCell>)tablixCornerRow)[j]; if (tablixCornerCell != null) { this.Visit(tablixCornerCell.CellContents.ReportItem); } } } } } this.VisitTablixMemberCollection(tablixDef.ColumnHierarchy.MemberCollection, -1, true); this.VisitTablixMemberCollection(tablixDef.RowHierarchy.MemberCollection, -1, true); }
public TablixBody(Tablix owner) { this.m_owner = owner; }
public ShimMatrixCell(Tablix owner, int rowIndex, int colIndex, ShimMatrixMember rowParentMember, ShimMatrixMember colParentMember, bool inSubtotal) : base(owner, rowIndex, colIndex, inSubtotal) { this.m_rowParentMember = rowParentMember; this.m_colParentMember = colParentMember; }
public TablixMember(IDefinitionPath parentDefinitionPath, Tablix owner, TablixMember parent, int parentCollectionIndex) : base(parentDefinitionPath, owner, parent, parentCollectionIndex) { }
public TablixInstance(Tablix reportItemDef) : base(reportItemDef) { this.m_owner = reportItemDef; }