Exemplo 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;
 }
Exemplo 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;
 }
Exemplo 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();
        }
Exemplo 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();
        }
Exemplo n.º 5
0
 internal void AddFieldsUsedInExpression(List <string> fieldsUsedInExpression)
 {
     FieldsImpl.AddFieldsUsedInExpression(fieldsUsedInExpression);
     AggregatesImpl.AddFieldsUsedInExpression(m_odpContext, fieldsUsedInExpression);
 }
Exemplo n.º 6
0
 internal void ResetFieldsUsedInExpression()
 {
     FieldsImpl.ResetFieldsUsedInExpression();
     AggregatesImpl.ResetFieldsUsedInExpression();
 }