public TableGroupCollection(Table owner, TableGroup parent, AspNetCore.ReportingServices.ReportProcessing.TableGroup groupDef, TableGroupInstanceList groupInstances)
 {
     this.m_owner          = owner;
     this.m_parent         = parent;
     this.m_groupInstances = groupInstances;
     this.m_groupDef       = groupDef;
 }
Ejemplo n.º 2
0
 private void CalculateSizes(TableGroup tableGroup)
 {
     if (tableGroup != null)
     {
         this.CalculateSizes(tableGroup.HeaderRows);
         this.CalculateSizes(tableGroup.SubGroup);
         this.CalculateSizes(tableGroup.FooterRows);
     }
 }
Ejemplo n.º 3
0
 public TableGroup(Table owner, TableGroup parent, AspNetCore.ReportingServices.ReportProcessing.TableGroup groupDef, TableGroupInstance groupInstance)
     : base(owner, groupDef.Grouping, groupDef.Visibility)
 {
     this.m_parent        = parent;
     this.m_groupDef      = groupDef;
     this.m_groupInstance = groupInstance;
     if (this.m_groupInstance != null)
     {
         base.m_uniqueName = this.m_groupInstance.UniqueName;
     }
 }
Ejemplo n.º 4
0
 private void CalculateOWCFlags(TableGroup tableGroup)
 {
     if (tableGroup != null)
     {
         this.CalculateOWCFlags(tableGroup.HeaderRows);
         if (!this.IsFinish())
         {
             this.CalculateOWCFlags(tableGroup.SubGroup);
             if (!this.IsFinish())
             {
                 this.CalculateOWCFlags(tableGroup.FooterRows);
             }
         }
     }
 }
Ejemplo n.º 5
0
 public TableGroupInstanceInfo(ReportProcessing.ProcessingContext pc, TableGroup tableGroupDef, TableGroupInstance owner)
 {
     if (pc.ShowHideType != 0)
     {
         this.m_startHidden = pc.ProcessReceiver(owner.UniqueName, tableGroupDef.Visibility, tableGroupDef.ExprHost, tableGroupDef.DataRegionDef.ObjectType, tableGroupDef.DataRegionDef.Name);
     }
     tableGroupDef.StartHidden = this.m_startHidden;
     if (tableGroupDef.Grouping.GroupLabel != null)
     {
         this.m_label = pc.NavigationInfo.RegisterLabel(pc.ReportRuntime.EvaluateGroupingLabelExpression(tableGroupDef.Grouping, tableGroupDef.DataRegionDef.ObjectType, tableGroupDef.DataRegionDef.Name));
     }
     if (tableGroupDef.Grouping.CustomProperties != null)
     {
         this.m_customPropertyInstances = tableGroupDef.Grouping.CustomProperties.EvaluateExpressions(tableGroupDef.DataRegionDef.ObjectType, tableGroupDef.DataRegionDef.Name, tableGroupDef.Grouping.Name + ".", pc);
     }
     pc.ChunkManager.AddInstance(this, owner, pc.InPageSection);
 }
Ejemplo n.º 6
0
        private void InitializeTableGroupsOrDetail(int numberOfColumns, InitializationContext context, ref double tableHeight, bool[] tableColumnVisibility)
        {
            TableGroup tableGroup = this.m_detailGroup;

            if (tableGroup != null && this.m_tableGroups == null)
            {
                this.m_tableGroups = this.m_detailGroup;
                tableGroup         = null;
            }
            if (this.m_tableGroups != null)
            {
                this.m_tableGroups.Initialize(numberOfColumns, this.m_tableDetail, tableGroup, context, ref tableHeight, tableColumnVisibility);
            }
            else if (this.m_tableDetail != null)
            {
                this.m_tableDetail.Initialize(numberOfColumns, context, ref tableHeight, tableColumnVisibility);
            }
        }
        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();
            }
        }
Ejemplo n.º 8
0
 public void Initialize(int numberOfColumns, TableDetail tableDetail, TableGroup detailGroup, InitializationContext context, ref double tableHeight, bool[] tableColumnVisibility)
 {
     Global.Tracer.Assert(null != base.m_grouping);
     context.Location |= LocationFlags.InGrouping;
     context.ExprHostBuilder.TableGroupStart(base.m_grouping.Name);
     context.RegisterGroupingScope(base.m_grouping.Name, base.m_grouping.SimpleGroupExpressions, base.m_grouping.Aggregates, base.m_grouping.PostSortAggregates, base.m_grouping.RecursiveAggregates, base.m_grouping);
     base.Initialize(context);
     context.RegisterRunningValues(this.m_runningValues);
     this.RegisterHeaderAndFooter(context);
     if (this.m_visibility != null)
     {
         this.m_visibility.Initialize(context, true, false);
     }
     this.InitializeHeaderAndFooter(numberOfColumns, context, ref tableHeight, tableColumnVisibility);
     this.InitializeSubGroupsOrDetail(numberOfColumns, tableDetail, detailGroup, context, ref tableHeight, tableColumnVisibility);
     if (this.m_visibility != null)
     {
         this.m_visibility.UnRegisterReceiver(context);
     }
     this.UnRegisterHeaderAndFooter(context);
     context.UnRegisterRunningValues(this.m_runningValues);
     context.UnRegisterGroupingScope(base.m_grouping.Name);
     this.m_hasExprHost = context.ExprHostBuilder.TableGroupEnd();
 }
Ejemplo n.º 9
0
 private void InitializeSubGroupsOrDetail(int numberOfColumns, TableDetail tableDetail, TableGroup detailGroup, InitializationContext context, ref double tableHeight, bool[] tableColumnVisibility)
 {
     if (detailGroup != null && this.SubGroup == null)
     {
         this.SubGroup = detailGroup;
         detailGroup   = null;
     }
     if (this.SubGroup != null)
     {
         this.SubGroup.Initialize(numberOfColumns, tableDetail, detailGroup, context, ref tableHeight, tableColumnVisibility);
     }
     else if (tableDetail != null)
     {
         tableDetail.Initialize(numberOfColumns, context, ref tableHeight, tableColumnVisibility);
     }
 }