public override void SetNewContext() { base.SetNewContext(); if (this.m_dataValues != null) { this.m_dataValues.SetNewContext(); } this.m_renderDataPoint = null; this.m_dataValueUpdateNeeded = true; this.m_cachedDataPoint = null; }
public override void SetExprHost(ReportExprHost reportExprHost, ObjectModelImpl reportObjectModel) { if (base.ExprHostID >= 0) { Global.Tracer.Assert(reportExprHost != null && reportObjectModel != null); this.m_exprHost = reportExprHost.ChartHostsRemotable[base.ExprHostID]; base.DataRegionSetExprHost(this.m_exprHost, reportObjectModel); if (this.m_multiChart != null && this.m_exprHost.MultiChartHost != null) { this.m_multiChart.SetExprHost(this.m_exprHost.MultiChartHost, reportObjectModel); } IList <ChartDataPointExprHost> chartDataPointHostsRemotable = this.m_exprHost.ChartDataPointHostsRemotable; for (int i = 0; i < this.m_cellDataPoints.Count; i++) { ChartDataPoint chartDataPoint = this.m_cellDataPoints[i]; if (chartDataPoint != null && chartDataPoint.ExprHostID != -1) { chartDataPoint.SetExprHost(chartDataPointHostsRemotable[chartDataPoint.ExprHostID], reportObjectModel); } } if (this.m_categoryAxis != null && this.m_exprHost.CategoryAxisHost != null) { this.m_categoryAxis.SetExprHost(this.m_exprHost.CategoryAxisHost, reportObjectModel); } if (this.m_valueAxis != null && this.m_exprHost.ValueAxisHost != null) { this.m_valueAxis.SetExprHost(this.m_exprHost.ValueAxisHost, reportObjectModel); } if (this.m_title != null && this.m_exprHost.TitleHost != null) { this.m_title.SetExprHost(this.m_exprHost.TitleHost, reportObjectModel); } if (this.m_exprHost.StaticColumnLabelsHost != null) { this.m_exprHost.StaticColumnLabelsHost.SetReportObjectModel(reportObjectModel); } if (this.m_exprHost.StaticRowLabelsHost != null) { this.m_exprHost.StaticRowLabelsHost.SetReportObjectModel(reportObjectModel); } if (this.m_legend != null && this.m_exprHost.LegendHost != null) { this.m_legend.SetExprHost(this.m_exprHost.LegendHost, reportObjectModel); } if (this.m_plotArea != null && this.m_exprHost.PlotAreaHost != null) { this.m_plotArea.SetExprHost(this.m_exprHost.PlotAreaHost, reportObjectModel); } } }
private DataElementOutputTypes GetDataElementOutputTypeForSeriesCategory(int index) { AspNetCore.ReportingServices.ReportProcessing.Chart chart = (AspNetCore.ReportingServices.ReportProcessing.Chart)base.OwnerDataRegion.ReportItemDef; int num; int num2; int num3; if (this.m_headingDef.IsColumn) { num = 0; num2 = index; num3 = chart.StaticSeriesCount; } else { num = index; num2 = 0; num3 = chart.StaticCategoryCount; } while (true) { AspNetCore.ReportingServices.ReportProcessing.ChartDataPoint dataPoint = chart.GetDataPoint(num, num2); if (dataPoint.DataElementOutput != DataElementOutputTypes.NoOutput) { return(DataElementOutputTypes.Output); } if (this.m_headingDef.IsColumn) { num++; if (num >= num3) { break; } } else { num2++; if (num2 >= num3) { break; } } } return(DataElementOutputTypes.NoOutput); }
private DataElementOutputTypes GetDataElementOutputTypeFromDataPoint(int seriesIndex, int categoryIndex) { AspNetCore.ReportingServices.ReportProcessing.Chart chart = (AspNetCore.ReportingServices.ReportProcessing.Chart)base.OwnerDataRegion.ReportItemDef; AspNetCore.ReportingServices.ReportProcessing.ChartDataPoint dataPoint = chart.GetDataPoint(seriesIndex, categoryIndex); return(dataPoint.DataElementOutput); }
public ChartDataPointInstance(ReportProcessing.ProcessingContext pc, Chart chart, ChartDataPoint dataPointDef, int dataPointIndex) { this.m_uniqueName = pc.CreateUniqueName(); base.m_instanceInfo = new ChartDataPointInstanceInfo(pc, chart, dataPointDef, dataPointIndex, this); }
public ChartDataPointInstanceInfo(ReportProcessing.ProcessingContext pc, Chart chart, ChartDataPoint dataPointDef, int dataPointIndex, ChartDataPointInstance owner) { this.m_dataPointIndex = dataPointIndex; int count = dataPointDef.DataValues.Count; this.m_dataValues = new object[count]; bool flag = false; if (dataPointDef.Action != null) { flag = dataPointDef.Action.ResetObjectModelForDrillthroughContext(pc.ReportObjectModel, dataPointDef); } for (int i = 0; i < count; i++) { this.m_dataValues[i] = pc.ReportRuntime.EvaluateChartDataPointDataValueExpression(dataPointDef, dataPointDef.DataValues[i], chart.Name); } if (flag) { dataPointDef.Action.GetSelectedItemsForDrillthroughContext(pc.ReportObjectModel, dataPointDef); } if (dataPointDef.DataLabel != null) { this.m_dataLabelStyleAttributeValues = Chart.CreateStyle(pc, dataPointDef.DataLabel.StyleClass, chart.Name + ".DataLabel", owner.UniqueName); this.m_dataLabelValue = pc.ReportRuntime.EvaluateChartDataLabelValueExpression(dataPointDef, chart.Name, this.m_dataLabelStyleAttributeValues); } if (dataPointDef.Action != null) { this.m_action = ReportProcessing.RuntimeRICollection.CreateActionInstance(pc, dataPointDef, owner.UniqueName, chart.ObjectType, chart.Name + ".DataPoint"); } this.m_styleAttributeValues = Chart.CreateStyle(pc, dataPointDef.StyleClass, chart.Name + ".DataPoint", owner.UniqueName); if (dataPointDef.MarkerStyleClass != null) { this.m_markerStyleAttributeValues = Chart.CreateStyle(pc, dataPointDef.MarkerStyleClass, chart.Name + ".DataPoint.Marker", owner.UniqueName); } if (dataPointDef.CustomProperties != null) { this.m_customPropertyInstances = dataPointDef.CustomProperties.EvaluateExpressions(chart.ObjectType, chart.Name, "DataPoint(" + (dataPointIndex + 1).ToString(CultureInfo.InvariantCulture) + ").", pc); } pc.ChunkManager.AddInstance(this, owner, pc.InPageSection); }