Exemple #1
0
 private void CreateInnerDynamicGroups(List <ShimTableMember> rowGroups, TableGroupCollection renderGroupCollection, Tablix owner, ShimTableMember parent)
 {
     if (renderGroupCollection != null)
     {
         ShimTableMember item = new ShimTableMember(this, owner, parent, rowGroups.Count, new ShimRenderGroups(renderGroupCollection));
         rowGroups.Add(item);
     }
 }
Exemple #2
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;
 }
 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;
 }
 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 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();
 }
Exemple #6
0
        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 ShimTableMemberVisibility(ShimTableMember owner, Mode mode)
 {
     this.m_owner = owner;
     this.m_mode  = mode;
 }
Exemple #8
0
        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();
        }
Exemple #9
0
 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();
 }
Exemple #10
0
 private void CreateHeaderFooter(List <ShimTableMember> rowGroups, TableHeaderFooterRows headerFooterRows, KeepWithGroup keepWithGroup, Tablix owner, ShimTableMember parent, bool isFixedTableHeader)
 {
     if (headerFooterRows != null)
     {
         int count = headerFooterRows.Count;
         int num   = rowGroups.Count;
         for (int i = 0; i < count; i++)
         {
             rowGroups.Add(new ShimTableMember(this, owner, parent, num, ((TableRowCollection)headerFooterRows)[i], keepWithGroup, isFixedTableHeader));
             num++;
         }
     }
 }