예제 #1
0
 public void SetupEnvironment(OnDemandProcessingContext odpContext)
 {
     if (this.m_dataSetInstances == null)
     {
         this.InitDataSetInstances(odpContext);
     }
     for (int i = 0; i < this.m_dataSetInstances.Length; i++)
     {
         DataSetInstance dataSetInstance = this.GetDataSetInstance(i, odpContext);
         if (dataSetInstance != null)
         {
             dataSetInstance.SetupDataSetLevelAggregates(odpContext);
         }
     }
     if (this.m_variables != null)
     {
         ScopeInstance.SetupVariables(odpContext, odpContext.ReportDefinition.Variables, this.m_variables);
     }
 }
        public void SetupEnvironment(OnDemandProcessingContext odpContext, int dataSetIndex)
        {
            base.SetupFields(odpContext, dataSetIndex);
            int num = 0;

            base.SetupAggregates(odpContext, this.m_memberDef.Grouping.Aggregates, ref num);
            base.SetupAggregates(odpContext, this.m_memberDef.Grouping.RecursiveAggregates, ref num);
            base.SetupAggregates(odpContext, this.m_memberDef.Grouping.PostSortAggregates, ref num);
            base.SetupAggregates(odpContext, this.m_memberDef.RunningValues, ref num);
            if (this.m_memberDef.DataScopeInfo != null)
            {
                DataScopeInfo dataScopeInfo = this.m_memberDef.DataScopeInfo;
                base.SetupAggregates(odpContext, dataScopeInfo.AggregatesOfAggregates, ref num);
                base.SetupAggregates(odpContext, dataScopeInfo.PostSortAggregatesOfAggregates, ref num);
                base.SetupAggregates(odpContext, dataScopeInfo.RunningValuesOfAggregates, ref num);
            }
            if (this.m_variables != null)
            {
                ScopeInstance.SetupVariables(odpContext, this.m_memberDef.Grouping.Variables, this.m_variables);
            }
        }