Esempio n. 1
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;
 }
Esempio n. 2
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;
 }
Esempio n. 3
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();
        }
Esempio n. 4
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();
        }