Esempio n. 1
0
 internal void SetupEnvironment(OnDemandProcessingContext odpContext)
 {
     if (m_dataSetInstances == null)
     {
         InitDataSetInstances(odpContext);
     }
     for (int i = 0; i < m_dataSetInstances.Length; i++)
     {
         GetDataSetInstance(i, odpContext)?.SetupDataSetLevelAggregates(odpContext);
     }
     if (m_variables != null)
     {
         ScopeInstance.SetupVariables(odpContext, odpContext.ReportDefinition.Variables, m_variables);
     }
 }
        internal void SetupEnvironment(OnDemandProcessingContext odpContext, int dataSetIndex)
        {
            SetupFields(odpContext, dataSetIndex);
            int aggregateValueOffset = 0;

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