public static void UpdateRunningValues(OnDemandProcessingContext odpContext, List <string> runningValueNames)
        {
            AggregatesImpl aggregatesImpl = odpContext.ReportObjectModel.AggregatesImpl;

            for (int i = 0; i < runningValueNames.Count; i++)
            {
                string name = runningValueNames[i];
                AspNetCore.ReportingServices.ReportIntermediateFormat.DataAggregateObj aggregateObj = aggregatesImpl.GetAggregateObj(name);
                aggregateObj.Update();
            }
        }
 public static void UpdateAggregates(OnDemandProcessingContext odpContext, List <AspNetCore.ReportingServices.ReportIntermediateFormat.DataAggregateObj> aggregates, bool updateAndSetup)
 {
     if (aggregates != null)
     {
         for (int i = 0; i < aggregates.Count; i++)
         {
             AspNetCore.ReportingServices.ReportIntermediateFormat.DataAggregateObj dataAggregateObj = aggregates[i];
             dataAggregateObj.Update();
             if (updateAndSetup)
             {
                 odpContext.ReportObjectModel.AggregatesImpl.Set(dataAggregateObj.Name, dataAggregateObj.AggregateDef, dataAggregateObj.DuplicateNames, dataAggregateObj.AggregateResult());
             }
         }
     }
 }
 private void CalculateDRPreviousAggregates()
 {
     this.SetupEnvironment();
     if (base.m_previousValues != null)
     {
         AggregatesImpl aggregatesImpl = base.m_odpContext.ReportObjectModel.AggregatesImpl;
         for (int i = 0; i < base.m_previousValues.Count; i++)
         {
             string text = base.m_previousValues[i];
             AspNetCore.ReportingServices.ReportIntermediateFormat.DataAggregateObj aggregateObj = aggregatesImpl.GetAggregateObj(text);
             Global.Tracer.Assert(aggregateObj != null, "Missing expected previous aggregate: {0}", text);
             aggregateObj.Update();
         }
     }
 }
Exemple #4
0
 public override void ReadRow(DataActions dataAction, ITraversalContext context)
 {
     if (FlagUtils.HasFlag(dataAction, DataActions.PostSortAggregates) && FlagUtils.HasFlag(base.m_dataAction, DataActions.PostSortAggregates))
     {
         AggregatesImpl aggregatesImpl = base.m_odpContext.ReportObjectModel.AggregatesImpl;
         if (base.m_hierarchyDef.DataRegionDef.ProcessCellRunningValues)
         {
             if (this.m_cellRVs != null)
             {
                 for (int i = 0; i < this.m_cellRVs.Count; i++)
                 {
                     string text = this.m_cellRVs[i];
                     AspNetCore.ReportingServices.ReportIntermediateFormat.DataAggregateObj aggregateObj = aggregatesImpl.GetAggregateObj(text);
                     Global.Tracer.Assert(aggregateObj != null, "Missing expected running value: {0}", text);
                     aggregateObj.Update();
                 }
             }
             if (base.m_outerScope != null && base.m_hierarchyDef.DataRegionDef.CellPostSortAggregates != null)
             {
                 using (base.m_outerScope.PinValue())
                 {
                     base.m_outerScope.Value().ReadRow(dataAction, context);
                 }
             }
         }
         else
         {
             if (this.m_staticCellRVs != null)
             {
                 for (int j = 0; j < this.m_staticCellRVs.Count; j++)
                 {
                     string text2 = this.m_staticCellRVs[j];
                     AspNetCore.ReportingServices.ReportIntermediateFormat.DataAggregateObj aggregateObj2 = aggregatesImpl.GetAggregateObj(text2);
                     Global.Tracer.Assert(aggregateObj2 != null, "Missing expected running value: {0}", text2);
                     aggregateObj2.Update();
                 }
             }
             base.ReadRow(dataAction, context);
         }
     }
 }