public void AddAll(ReportItemsImpl reportItems) { foreach (ReportItemImpl value in reportItems.m_collection.Values) { this.Add(value); } }
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 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(); }
private void InitializeEnvironment() { this.m_processingContext = base.m_romReport.HeaderFooterRenderingContext.OdpContext; AspNetCore.ReportingServices.ReportIntermediateFormat.Report reportDef = base.m_romReport.ReportDef; AspNetCore.ReportingServices.ReportProcessing.OnDemandReportObjectModel.ObjectModelImpl reportObjectModel = this.m_processingContext.ReportObjectModel; if (reportDef.DataSetsNotOnlyUsedInParameters == 1) { this.m_processingContext.SetupFieldsForNewDataSetPageSection(reportDef.FirstDataSet); } else { this.m_processingContext.SetupEmptyTopLevelFields(); } reportObjectModel.VariablesImpl = new VariablesImpl(false); if (reportDef.HasVariables) { AspNetCore.ReportingServices.ReportIntermediateFormat.ReportInstance currentReportInstance = base.m_romReport.RenderingContext.OdpContext.CurrentReportInstance; this.m_processingContext.RuntimeInitializePageSectionVariables(reportDef, (currentReportInstance != null) ? currentReportInstance.VariableValues : null); } reportObjectModel.LookupsImpl = new LookupsImpl(); if (reportDef.HasLookups) { this.m_processingContext.RuntimeInitializeLookups(reportDef); } AspNetCore.ReportingServices.ReportProcessing.OnDemandReportObjectModel.ReportItemsImpl reportItemsImpl = new AspNetCore.ReportingServices.ReportProcessing.OnDemandReportObjectModel.ReportItemsImpl(false); foreach (ReportSection reportSection in base.m_romReport.ReportSections) { AspNetCore.ReportingServices.ReportIntermediateFormat.ReportSection sectionDef = reportSection.SectionDef; reportSection.BodyItemsForHeadFoot = new AspNetCore.ReportingServices.ReportProcessing.OnDemandReportObjectModel.ReportItemsImpl(false); reportSection.PageSectionItemsForHeadFoot = new AspNetCore.ReportingServices.ReportProcessing.OnDemandReportObjectModel.ReportItemsImpl(false); reportObjectModel.ReportItemsImpl = reportSection.BodyItemsForHeadFoot; this.m_processingContext.RuntimeInitializeTextboxObjs(sectionDef.ReportItems, false); reportObjectModel.ReportItemsImpl = reportSection.PageSectionItemsForHeadFoot; AspNetCore.ReportingServices.ReportIntermediateFormat.Page page = sectionDef.Page; if (page.PageHeader != null) { if (this.m_processingContext.ReportRuntime.ReportExprHost != null) { page.PageHeader.SetExprHost(this.m_processingContext.ReportRuntime.ReportExprHost, reportObjectModel); } this.m_processingContext.RuntimeInitializeReportItemObjs(page.PageHeader.ReportItems, false); this.m_processingContext.RuntimeInitializeTextboxObjs(page.PageHeader.ReportItems, true); } if (page.PageFooter != null) { if (this.m_processingContext.ReportRuntime.ReportExprHost != null) { page.PageFooter.SetExprHost(this.m_processingContext.ReportRuntime.ReportExprHost, reportObjectModel); } this.m_processingContext.RuntimeInitializeReportItemObjs(page.PageFooter.ReportItems, false); this.m_processingContext.RuntimeInitializeTextboxObjs(page.PageFooter.ReportItems, true); } reportItemsImpl.AddAll(reportSection.BodyItemsForHeadFoot); reportItemsImpl.AddAll(reportSection.PageSectionItemsForHeadFoot); } reportObjectModel.ReportItemsImpl = reportItemsImpl; reportObjectModel.AggregatesImpl = new AspNetCore.ReportingServices.ReportProcessing.OnDemandReportObjectModel.AggregatesImpl(this.m_processingContext); }