Exemple #1
0
 internal void Initialize(ParameterInfoCollection parameters)
 {
     m_parameters = new ParametersImpl(parameters.Count);
     if (parameters != null && parameters.Count > 0)
     {
         for (int i = 0; i < parameters.Count; i++)
         {
             ParameterInfo parameterInfo = parameters[i];
             m_parameters.Add(parameterInfo.Name, new ParameterImpl(parameterInfo));
         }
     }
 }
Exemple #2
0
 internal ParametersImpl(ParametersImpl copy)
 {
     m_count = copy.m_count;
     if (copy.m_collection != null)
     {
         m_collection = new ParameterImpl[m_count];
         Array.Copy(copy.m_collection, m_collection, m_count);
     }
     if (copy.m_nameMap != null)
     {
         m_nameMap = (Hashtable)copy.m_nameMap.Clone();
     }
 }
Exemple #3
0
 internal ObjectModelImpl(ObjectModelImpl copy, OnDemandProcessingContext odpContext)
 {
     m_odpContext    = odpContext;
     m_currentFields = new FieldsContext(this);
     m_parameters    = copy.m_parameters;
     m_globals       = new GlobalsImpl(odpContext);
     m_user          = new UserImpl(copy.m_user, odpContext);
     m_dataSets      = copy.m_dataSets;
     m_dataSources   = copy.m_dataSources;
     m_reportItems   = null;
     m_aggregates    = null;
     m_lookups       = null;
 }
Exemple #4
0
 internal ObjectModelImpl(OnDemandProcessingContext odpContext)
 {
     m_currentFields = null;
     m_parameters    = null;
     m_globals       = null;
     m_user          = null;
     m_reportItems   = null;
     m_aggregates    = null;
     m_lookups       = null;
     m_dataSets      = null;
     m_dataSources   = null;
     m_odpContext    = odpContext;
 }
Exemple #5
0
        internal 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;
            }
            m_parameters = new ParametersImpl(size);
            InitializeGlobalAndUserCollections();
            m_currentFields = new FieldsContext(this, dataSetDefinition.DataSetCore);
            m_dataSources   = new DataSourcesImpl(0);
            m_dataSets      = new DataSetsImpl(0);
            m_variables     = new VariablesImpl(lockAdd: false);
            m_aggregates    = new AggregatesImpl(lockAdd: false, m_odpContext);
            m_reportItems   = new ReportItemsImpl(lockAdd: false);
            m_lookups       = new LookupsImpl();
        }
Exemple #6
0
        internal void Initialize(Microsoft.ReportingServices.ReportIntermediateFormat.Report report, Microsoft.ReportingServices.ReportIntermediateFormat.ReportInstance reportInstance)
        {
            int size = 0;

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