public object PublishClone(AutomaticSubtotalContext context)
        {
            ChartDerivedSeries chartDerivedSeries = (ChartDerivedSeries)base.MemberwiseClone();

            chartDerivedSeries.m_chart = (Chart)context.CurrentDataRegionClone;
            if (this.m_series != null)
            {
                chartDerivedSeries.m_series = (ChartSeries)this.m_series.PublishClone(context);
            }
            if (this.m_sourceChartSeriesName != null)
            {
                chartDerivedSeries.m_sourceChartSeriesName = (ExpressionInfo)this.m_sourceChartSeriesName.PublishClone(context);
            }
            if (this.m_derivedSeriesFormula != null)
            {
                chartDerivedSeries.m_derivedSeriesFormula = (ExpressionInfo)this.m_derivedSeriesFormula.PublishClone(context);
            }
            if (this.m_chartFormulaParameters != null)
            {
                chartDerivedSeries.m_chartFormulaParameters = new List <ChartFormulaParameter>(this.m_chartFormulaParameters.Count);
                {
                    foreach (ChartFormulaParameter chartFormulaParameter in this.m_chartFormulaParameters)
                    {
                        chartDerivedSeries.m_chartFormulaParameters.Add((ChartFormulaParameter)chartFormulaParameter.PublishClone(context));
                    }
                    return(chartDerivedSeries);
                }
            }
            return(chartDerivedSeries);
        }
예제 #2
0
        public void SetExprHost(ChartSeriesExprHost exprHost, ObjectModelImpl reportObjectModel)
        {
            Global.Tracer.Assert(exprHost != null && reportObjectModel != null, "(exprHost != null && reportObjectModel != null)");
            this.m_exprHost = exprHost;
            this.m_exprHost.SetReportObjectModel(reportObjectModel);
            if (this.m_customProperties != null && this.m_exprHost.CustomPropertyHostsRemotable != null)
            {
                this.m_customProperties.SetExprHost(this.m_exprHost.CustomPropertyHostsRemotable, reportObjectModel);
            }
            if (this.m_action != null && this.m_exprHost.ActionInfoHost != null)
            {
                this.m_action.SetExprHost(this.m_exprHost.ActionInfoHost, reportObjectModel);
            }
            if (this.m_styleClass != null)
            {
                this.m_styleClass.SetStyleExprHost(this.m_exprHost);
            }
            if (this.m_chartSmartLabel != null && this.m_exprHost.SmartLabelHost != null)
            {
                this.m_chartSmartLabel.SetExprHost(this.m_exprHost.SmartLabelHost, reportObjectModel);
            }
            if (this.m_emptyPoints != null && this.m_exprHost.EmptyPointsHost != null)
            {
                this.m_emptyPoints.SetExprHost(this.m_exprHost.EmptyPointsHost, reportObjectModel);
            }
            if (this.m_action != null && this.m_exprHost.ActionInfoHost != null)
            {
                this.m_action.SetExprHost(this.m_exprHost.ActionInfoHost, reportObjectModel);
            }
            if (this.m_dataLabel != null && this.m_exprHost.DataLabelHost != null)
            {
                this.m_dataLabel.SetExprHost(this.m_exprHost.DataLabelHost, reportObjectModel);
            }
            if (this.m_marker != null && this.m_exprHost.ChartMarkerHost != null)
            {
                this.m_marker.SetExprHost(this.m_exprHost.ChartMarkerHost, reportObjectModel);
            }
            List <ChartDerivedSeries>          childrenDerivedSeries = this.ChildrenDerivedSeries;
            IList <ChartDerivedSeriesExprHost> chartDerivedSeriesCollectionHostsRemotable = this.m_exprHost.ChartDerivedSeriesCollectionHostsRemotable;

            if (childrenDerivedSeries != null && chartDerivedSeriesCollectionHostsRemotable != null)
            {
                for (int i = 0; i < childrenDerivedSeries.Count; i++)
                {
                    ChartDerivedSeries chartDerivedSeries = childrenDerivedSeries[i];
                    if (chartDerivedSeries != null && chartDerivedSeries.ExpressionHostID > -1)
                    {
                        chartDerivedSeries.SetExprHost(chartDerivedSeriesCollectionHostsRemotable[chartDerivedSeries.ExpressionHostID], reportObjectModel);
                    }
                }
            }
            if (this.m_chartItemInLegend != null && this.m_exprHost.DataPointInLegendHost != null)
            {
                this.m_chartItemInLegend.SetExprHost(this.m_exprHost.DataPointInLegendHost, reportObjectModel);
            }
        }
 public ChartFormulaParameter(Chart chart, ChartDerivedSeries parentDerivedSeries)
 {
     this.m_chart = chart;
     this.m_parentDerivedSeries = parentDerivedSeries;
 }
예제 #4
0
 public ChartSeries(Chart chart, ChartDerivedSeries parentDerivedSeries, int id)
     : this(chart, id)
 {
     this.m_parentDerivedSeries = parentDerivedSeries;
 }
 public ChartDerivedSeries(AspNetCore.ReportingServices.ReportIntermediateFormat.ChartDerivedSeries chartDerivedSeriesDef, Chart chart)
 {
     this.m_chartDerivedSeriesDef = chartDerivedSeriesDef;
     this.m_chart = chart;
 }