public void Initialize(ParameterInfoCollection parameters)
 {
     this.m_parameters = new ParametersImpl(parameters.Count);
     if (parameters != null && parameters.Count > 0)
     {
         for (int i = 0; i < parameters.Count; i++)
         {
             ParameterInfo parameterInfo = parameters[i];
             this.m_parameters.Add(parameterInfo.Name, new ParameterImpl(parameterInfo));
         }
     }
 }
 public ObjectModelImpl(ObjectModelImpl copy, OnDemandProcessingContext odpContext)
 {
     this.m_odpContext    = odpContext;
     this.m_currentFields = new FieldsContext(this);
     this.m_parameters    = copy.m_parameters;
     this.m_globals       = new GlobalsImpl(odpContext);
     this.m_user          = new UserImpl(copy.m_user, odpContext);
     this.m_dataSets      = copy.m_dataSets;
     this.m_dataSources   = copy.m_dataSources;
     this.m_reportItems   = null;
     this.m_aggregates    = null;
     this.m_lookups       = null;
 }
 public ObjectModelImpl(OnDemandProcessingContext odpContext)
 {
     this.m_currentFields = null;
     this.m_parameters    = null;
     this.m_globals       = null;
     this.m_user          = null;
     this.m_reportItems   = null;
     this.m_aggregates    = null;
     this.m_lookups       = null;
     this.m_dataSets      = null;
     this.m_dataSources   = null;
     this.m_odpContext    = odpContext;
 }
 public ParametersImpl(ParametersImpl copy)
 {
     this.m_count = copy.m_count;
     if (copy.m_collection != null)
     {
         this.m_collection = new ParameterImpl[this.m_count];
         Array.Copy(copy.m_collection, this.m_collection, this.m_count);
     }
     if (copy.m_nameMap != null)
     {
         this.m_nameMap = (Hashtable)copy.m_nameMap.Clone();
     }
 }
        public void Initialize(DataSetDefinition dataSetDefinition)
        {
            int size = 0;

            if (dataSetDefinition.DataSetCore != null && dataSetDefinition.DataSetCore.Query != null && dataSetDefinition.DataSetCore.Query.Parameters != null)
            {
                size = dataSetDefinition.DataSetCore.Query.Parameters.Count;
            }
            this.m_parameters = new ParametersImpl(size);
            this.InitializeGlobalAndUserCollections();
            this.m_currentFields = new FieldsContext(this, dataSetDefinition.DataSetCore);
            this.m_dataSources   = new DataSourcesImpl(0);
            this.m_dataSets      = new DataSetsImpl(0);
            this.m_variables     = new VariablesImpl(false);
            this.m_aggregates    = new AggregatesImpl(false, this.m_odpContext);
            this.m_reportItems   = new ReportItemsImpl(false);
            this.m_lookups       = new LookupsImpl();
        }
        public void Initialize(AspNetCore.ReportingServices.ReportIntermediateFormat.Report report, AspNetCore.ReportingServices.ReportIntermediateFormat.ReportInstance reportInstance)
        {
            int size = 0;

            if (report.Parameters != null)
            {
                size = report.Parameters.Count;
            }
            this.m_parameters = new ParametersImpl(size);
            this.InitializeGlobalAndUserCollections();
            this.m_currentFields = new FieldsContext(this);
            this.m_dataSources   = new DataSourcesImpl(report.DataSourceCount);
            this.m_dataSets      = new DataSetsImpl(report.DataSetCount);
            this.InitOrUpdateDataSetCollection(report, reportInstance, true);
            this.m_variables   = new VariablesImpl(false);
            this.m_aggregates  = new AggregatesImpl(false, this.m_odpContext);
            this.m_reportItems = new ReportItemsImpl(false);
            this.m_lookups     = new LookupsImpl();
        }
 public void SetForNewSubReportContext(ParametersImpl parameters)
 {
     this.m_parameters = parameters;
     if (this.m_variables != null)
     {
         this.m_variables.ResetAll();
     }
     if (this.m_reportItems != null)
     {
         this.m_reportItems.ResetAll();
     }
     if (this.m_aggregates != null)
     {
         this.m_aggregates.ClearAll();
     }
     if (this.m_currentFields != null && this.m_currentFields.Fields != null)
     {
         this.ResetFieldValues();
     }
     this.InitOrUpdateDataSetCollection(this.m_odpContext.ReportDefinition, this.m_odpContext.CurrentReportInstance, false);
 }