예제 #1
0
 public Group(DataRegion owner, ShimRenderGroups renderGroups, ShimTablixMember dynamicMember)
 {
     this.m_isOldSnapshot = true;
     this.m_ownerItem     = owner;
     this.m_renderGroups  = renderGroups;
     this.m_dynamicMember = dynamicMember;
 }
예제 #2
0
 public void UpdateContext(ListContentCollection renderListContents)
 {
     this.m_renderGroups = new ShimRenderGroups(renderListContents);
     if (base.m_children != null)
     {
         ((ShimListMember)base.m_children[0]).ResetContext(this.m_renderGroups);
     }
 }
예제 #3
0
 public Group(DataRegion owner, ShimTableMember tableDetailMember)
 {
     this.m_isOldSnapshot     = true;
     this.m_isDetailGroup     = true;
     this.m_tableDetailMember = tableDetailMember;
     this.m_dynamicMember     = tableDetailMember;
     this.m_ownerItem         = owner;
     this.m_renderGroups      = null;
 }
예제 #4
0
 public void ResetContext(ShimRenderGroups renderGroups)
 {
     if (base.m_group != null)
     {
         base.m_group.CurrentRenderGroupIndex = -1;
         if (renderGroups != null)
         {
             base.m_group.RenderGroups = renderGroups;
         }
     }
 }
예제 #5
0
 public void ResetContext(AspNetCore.ReportingServices.ReportRendering.ChartMemberCollection newRenderMemberCollection)
 {
     if (base.m_children != null)
     {
         if (this.m_isDynamic)
         {
             ShimRenderGroups renderGroups = (newRenderMemberCollection != null) ? new ShimRenderGroups(newRenderMemberCollection) : null;
             ((ShimChartMember)base.m_children[0]).ResetContext(null, renderGroups);
         }
         else
         {
             for (int i = 0; i < base.m_children.Length; i++)
             {
                 AspNetCore.ReportingServices.ReportRendering.ChartMember staticOrSubtotal = (newRenderMemberCollection != null) ? newRenderMemberCollection[i] : null;
                 ((ShimChartMember)base.m_children[i]).ResetContext(staticOrSubtotal, null);
             }
         }
     }
 }
예제 #6
0
 public void ResetContext(MatrixMemberCollection newRenderMemberCollection, MatrixMemberInfoCache matrixMemberCellIndexes)
 {
     if (base.m_children != null)
     {
         MatrixMember     staticOrSubtotal = null;
         int              newAfterSubtotalCollectionIndex = -1;
         ShimRenderGroups renderGroups = null;
         if (newRenderMemberCollection != null)
         {
             renderGroups = new ShimRenderGroups(newRenderMemberCollection, 0 == this.m_subtotalChildIndex, 1 == this.m_subtotalChildIndex);
             int count = newRenderMemberCollection.Count;
             if (this.m_subtotalChildIndex == 0)
             {
                 staticOrSubtotal = newRenderMemberCollection[0];
             }
             else if (1 == this.m_subtotalChildIndex)
             {
                 staticOrSubtotal = newRenderMemberCollection[count - 1];
                 newAfterSubtotalCollectionIndex = count - 1;
             }
         }
         if (this.m_dynamicSubgroupChildIndex >= 0)
         {
             ((ShimMatrixMember)base.m_children[this.m_dynamicSubgroupChildIndex]).ResetContext(null, -1, renderGroups, matrixMemberCellIndexes);
             if (this.m_subtotalChildIndex >= 0)
             {
                 ((ShimMatrixMember)base.m_children[this.m_subtotalChildIndex]).ResetContext(staticOrSubtotal, newAfterSubtotalCollectionIndex, null, matrixMemberCellIndexes);
             }
         }
         else
         {
             for (int i = 0; i < base.m_children.Length; i++)
             {
                 staticOrSubtotal = ((newRenderMemberCollection != null) ? newRenderMemberCollection[i] : null);
                 ((ShimMatrixMember)base.m_children[i]).ResetContext(staticOrSubtotal, -1, null, matrixMemberCellIndexes);
             }
         }
     }
 }
예제 #7
0
        public ShimMatrixMemberCollection(IDefinitionPath parentDefinitionPath, Tablix owner, bool isColumnGroup, ShimMatrixMember parent, MatrixMemberCollection renderMemberCollection, MatrixMemberInfoCache matrixMemberCellIndexes)
            : base(parentDefinitionPath, owner, isColumnGroup)
        {
            this.m_definitionStartIndex = owner.GetCurrentMemberCellDefinitionIndex();
            int count = renderMemberCollection.Count;

            if (renderMemberCollection[0].IsStatic)
            {
                base.m_children = new ShimMatrixMember[count];
                for (int i = 0; i < count; i++)
                {
                    base.m_children[i] = new ShimMatrixMember(this, owner, parent, i, isColumnGroup, i, renderMemberCollection[i], false, matrixMemberCellIndexes);
                }
            }
            else
            {
                this.m_dynamicSubgroupChildIndex = 0;
                bool flag  = null != renderMemberCollection.MatrixHeadingDef.Subtotal;
                bool flag2 = flag && Subtotal.PositionType.After == renderMemberCollection.MatrixHeadingDef.Subtotal.Position;
                base.m_children = new ShimMatrixMember[(!flag) ? 1 : 2];
                if (flag)
                {
                    this.m_subtotalChildIndex = 0;
                    if (flag2)
                    {
                        this.m_subtotalChildIndex++;
                    }
                    else
                    {
                        this.m_dynamicSubgroupChildIndex++;
                    }
                }
                if (flag)
                {
                    MatrixMember matrixMember = renderMemberCollection[this.m_subtotalChildIndex];
                    AspNetCore.ReportingServices.ReportRendering.ReportItem reportItem = matrixMember.ReportItem;
                    if (reportItem != null)
                    {
                        if (isColumnGroup)
                        {
                            this.m_sizeDelta += reportItem.Width.ToMillimeters();
                        }
                        else
                        {
                            this.m_sizeDelta += reportItem.Height.ToMillimeters();
                        }
                    }
                }
                if (flag && !flag2)
                {
                    base.m_children[this.m_subtotalChildIndex] = new ShimMatrixMember(this, owner, parent, this.m_subtotalChildIndex, isColumnGroup, 0, renderMemberCollection[0], flag2, matrixMemberCellIndexes);
                }
                ShimRenderGroups renderGroups     = new ShimRenderGroups(renderMemberCollection, flag && !flag2, flag && flag2);
                ShimMatrixMember shimMatrixMember = (ShimMatrixMember)(base.m_children[this.m_dynamicSubgroupChildIndex] = new ShimMatrixMember(this, owner, parent, this.m_dynamicSubgroupChildIndex, isColumnGroup, this.m_dynamicSubgroupChildIndex, renderGroups, matrixMemberCellIndexes));
                if (flag && flag2)
                {
                    base.m_children[this.m_subtotalChildIndex] = new ShimMatrixMember(this, owner, parent, this.m_subtotalChildIndex, isColumnGroup, count - 1, renderMemberCollection[count - 1], flag2, matrixMemberCellIndexes);
                }
                this.m_sizeDelta += shimMatrixMember.SizeDelta;
            }
            this.m_definitionEndIndex = owner.GetCurrentMemberCellDefinitionIndex();
        }
예제 #8
0
 public Group(CustomReportItem owner, ShimRenderGroups renderGroups)
 {
     this.m_isOldSnapshot = true;
     this.m_renderGroups  = renderGroups;
     this.m_criOwner      = owner;
 }
예제 #9
0
 public Group(DataRegion owner, ShimRenderGroups renderGroups)
 {
     this.m_isOldSnapshot = true;
     this.m_ownerItem     = owner;
     this.m_renderGroups  = renderGroups;
 }
예제 #10
0
 public ShimListMemberCollection(IDefinitionPath parentDefinitionPath, Tablix owner, ListContentCollection renderListContents)
     : base(parentDefinitionPath, owner, false)
 {
     this.m_renderGroups = new ShimRenderGroups(renderListContents);
 }
예제 #11
0
        public void ResetContext(MatrixMember staticOrSubtotal, int newAfterSubtotalCollectionIndex, ShimRenderGroups renderGroups, MatrixMemberInfoCache newMatrixMemberCellIndexes)
        {
            int currentAllocationSize = 1;

            if (base.m_group != null)
            {
                base.m_group.CurrentRenderGroupIndex = -1;
                if (renderGroups != null)
                {
                    base.m_group.RenderGroups = renderGroups;
                }
                currentAllocationSize = base.m_group.RenderGroups.MatrixMemberCollectionCount;
            }
            else if (staticOrSubtotal != null)
            {
                this.m_staticOrSubtotal = staticOrSubtotal;
                if (this.m_isAfterSubtotal && newAfterSubtotalCollectionIndex >= 0)
                {
                    this.m_renderCollectionIndex = newAfterSubtotalCollectionIndex;
                }
            }
            this.UpdateMatrixMemberInfoCache(currentAllocationSize, newMatrixMemberCellIndexes);
            if (this.IsStatic)
            {
                this.UpdateContext(this.m_staticOrSubtotal);
            }
            else if (!base.OwnerTablix.RenderMatrix.NoRows && base.m_group.RenderGroups != null && base.m_group.RenderGroups.Count > 0)
            {
                this.UpdateContext(base.m_group.RenderGroups[0] as MatrixMember);
            }
        }
예제 #12
0
 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 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 void ResetContext(AspNetCore.ReportingServices.ReportRendering.ChartMember staticOrSubtotal, ShimRenderGroups renderGroups)
 {
     if (base.m_group != null)
     {
         base.m_group.CurrentRenderGroupIndex = -1;
         if (renderGroups != null)
         {
             base.m_group.RenderGroups = renderGroups;
         }
     }
     else if (staticOrSubtotal != null)
     {
         this.m_staticOrSubtotal = staticOrSubtotal;
     }
     AspNetCore.ReportingServices.ReportRendering.ChartMember currentRenderGroup = this.IsStatic ? this.m_staticOrSubtotal : (base.m_group.CurrentShimRenderGroup as AspNetCore.ReportingServices.ReportRendering.ChartMember);
     this.UpdateInnerContext(currentRenderGroup);
 }
 public ShimChartMember(IDefinitionPath parentDefinitionPath, Chart owner, ShimChartMember parent, int parentCollectionIndex, bool isCategory, ShimRenderGroups renderGroups)
     : base(parentDefinitionPath, owner, parent, parentCollectionIndex)
 {
     this.m_definitionStartIndex = owner.GetCurrentMemberCellDefinitionIndex();
     this.m_isCategory           = isCategory;
     base.m_group = new Group(owner, renderGroups);
     this.GenerateInnerHierarchy(owner, parent, isCategory, ((AspNetCore.ReportingServices.ReportRendering.ChartMember)renderGroups[0]).Children);
     this.m_definitionEndIndex = owner.GetCurrentMemberCellDefinitionIndex();
 }
예제 #16
0
 public ShimListMember(IDefinitionPath parentDefinitionPath, Tablix owner, ShimRenderGroups renderGroups, int parentCollectionIndex, bool isColumn)
     : base(parentDefinitionPath, owner, null, parentCollectionIndex, isColumn)
 {
     base.m_group = new Group(owner, renderGroups, this);
 }