public override object PublishClone(AutomaticSubtotalContext context)
        {
            NumericIndicator numericIndicator = (NumericIndicator)base.PublishClone(context);

            if (this.m_gaugeInputValue != null)
            {
                numericIndicator.m_gaugeInputValue = (GaugeInputValue)this.m_gaugeInputValue.PublishClone(context);
            }
            if (this.m_numericIndicatorRanges != null)
            {
                numericIndicator.m_numericIndicatorRanges = new List <NumericIndicatorRange>(this.m_numericIndicatorRanges.Count);
                foreach (NumericIndicatorRange numericIndicatorRange in this.m_numericIndicatorRanges)
                {
                    numericIndicator.m_numericIndicatorRanges.Add((NumericIndicatorRange)numericIndicatorRange.PublishClone(context));
                }
            }
            if (this.m_decimalDigitColor != null)
            {
                numericIndicator.m_decimalDigitColor = (ExpressionInfo)this.m_decimalDigitColor.PublishClone(context);
            }
            if (this.m_digitColor != null)
            {
                numericIndicator.m_digitColor = (ExpressionInfo)this.m_digitColor.PublishClone(context);
            }
            if (this.m_useFontPercent != null)
            {
                numericIndicator.m_useFontPercent = (ExpressionInfo)this.m_useFontPercent.PublishClone(context);
            }
            if (this.m_decimalDigits != null)
            {
                numericIndicator.m_decimalDigits = (ExpressionInfo)this.m_decimalDigits.PublishClone(context);
            }
            if (this.m_digits != null)
            {
                numericIndicator.m_digits = (ExpressionInfo)this.m_digits.PublishClone(context);
            }
            if (this.m_minimumValue != null)
            {
                numericIndicator.m_minimumValue = (GaugeInputValue)this.m_minimumValue.PublishClone(context);
            }
            if (this.m_maximumValue != null)
            {
                numericIndicator.m_maximumValue = (GaugeInputValue)this.m_maximumValue.PublishClone(context);
            }
            if (this.m_multiplier != null)
            {
                numericIndicator.m_multiplier = (ExpressionInfo)this.m_multiplier.PublishClone(context);
            }
            if (this.m_nonNumericString != null)
            {
                numericIndicator.m_nonNumericString = (ExpressionInfo)this.m_nonNumericString.PublishClone(context);
            }
            if (this.m_outOfRangeString != null)
            {
                numericIndicator.m_outOfRangeString = (ExpressionInfo)this.m_outOfRangeString.PublishClone(context);
            }
            if (this.m_resizeMode != null)
            {
                numericIndicator.m_resizeMode = (ExpressionInfo)this.m_resizeMode.PublishClone(context);
            }
            if (this.m_showDecimalPoint != null)
            {
                numericIndicator.m_showDecimalPoint = (ExpressionInfo)this.m_showDecimalPoint.PublishClone(context);
            }
            if (this.m_showLeadingZeros != null)
            {
                numericIndicator.m_showLeadingZeros = (ExpressionInfo)this.m_showLeadingZeros.PublishClone(context);
            }
            if (this.m_indicatorStyle != null)
            {
                numericIndicator.m_indicatorStyle = (ExpressionInfo)this.m_indicatorStyle.PublishClone(context);
            }
            if (this.m_showSign != null)
            {
                numericIndicator.m_showSign = (ExpressionInfo)this.m_showSign.PublishClone(context);
            }
            if (this.m_snappingEnabled != null)
            {
                numericIndicator.m_snappingEnabled = (ExpressionInfo)this.m_snappingEnabled.PublishClone(context);
            }
            if (this.m_snappingInterval != null)
            {
                numericIndicator.m_snappingInterval = (ExpressionInfo)this.m_snappingInterval.PublishClone(context);
            }
            if (this.m_ledDimColor != null)
            {
                numericIndicator.m_ledDimColor = (ExpressionInfo)this.m_ledDimColor.PublishClone(context);
            }
            if (this.m_separatorWidth != null)
            {
                numericIndicator.m_separatorWidth = (ExpressionInfo)this.m_separatorWidth.PublishClone(context);
            }
            if (this.m_separatorColor != null)
            {
                numericIndicator.m_separatorColor = (ExpressionInfo)this.m_separatorColor.PublishClone(context);
            }
            return(numericIndicator);
        }
Exemple #2
0
 public override void DataRegionContentsSetExprHost(ObjectModelImpl reportObjectModel, bool traverseDataRegions)
 {
     if (this.m_exprHost != null)
     {
         IList <LinearGaugeExprHost> linearGaugesHostsRemotable = this.m_exprHost.LinearGaugesHostsRemotable;
         if (this.m_linearGauges != null && linearGaugesHostsRemotable != null)
         {
             for (int i = 0; i < this.m_linearGauges.Count; i++)
             {
                 LinearGauge linearGauge = this.m_linearGauges[i];
                 if (linearGauge != null && linearGauge.ExpressionHostID > -1)
                 {
                     linearGauge.SetExprHost(linearGaugesHostsRemotable[linearGauge.ExpressionHostID], reportObjectModel);
                 }
             }
         }
         IList <RadialGaugeExprHost> radialGaugesHostsRemotable = this.m_exprHost.RadialGaugesHostsRemotable;
         if (this.m_radialGauges != null && radialGaugesHostsRemotable != null)
         {
             for (int j = 0; j < this.m_radialGauges.Count; j++)
             {
                 RadialGauge radialGauge = this.m_radialGauges[j];
                 if (radialGauge != null && radialGauge.ExpressionHostID > -1)
                 {
                     radialGauge.SetExprHost(radialGaugesHostsRemotable[radialGauge.ExpressionHostID], reportObjectModel);
                 }
             }
         }
         IList <NumericIndicatorExprHost> numericIndicatorsHostsRemotable = this.m_exprHost.NumericIndicatorsHostsRemotable;
         if (this.m_numericIndicators != null && numericIndicatorsHostsRemotable != null)
         {
             for (int k = 0; k < this.m_numericIndicators.Count; k++)
             {
                 NumericIndicator numericIndicator = this.m_numericIndicators[k];
                 if (numericIndicator != null && numericIndicator.ExpressionHostID > -1)
                 {
                     numericIndicator.SetExprHost(numericIndicatorsHostsRemotable[numericIndicator.ExpressionHostID], reportObjectModel);
                 }
             }
         }
         IList <StateIndicatorExprHost> stateIndicatorsHostsRemotable = this.m_exprHost.StateIndicatorsHostsRemotable;
         if (this.m_stateIndicators != null && stateIndicatorsHostsRemotable != null)
         {
             for (int l = 0; l < this.m_stateIndicators.Count; l++)
             {
                 StateIndicator stateIndicator = this.m_stateIndicators[l];
                 if (stateIndicator != null && stateIndicator.ExpressionHostID > -1)
                 {
                     stateIndicator.SetExprHost(stateIndicatorsHostsRemotable[stateIndicator.ExpressionHostID], reportObjectModel);
                 }
             }
         }
         IList <GaugeImageExprHost> gaugeImagesHostsRemotable = this.m_exprHost.GaugeImagesHostsRemotable;
         if (this.m_gaugeImages != null && gaugeImagesHostsRemotable != null)
         {
             for (int m = 0; m < this.m_gaugeImages.Count; m++)
             {
                 GaugeImage gaugeImage = this.m_gaugeImages[m];
                 if (gaugeImage != null && gaugeImage.ExpressionHostID > -1)
                 {
                     gaugeImage.SetExprHost(gaugeImagesHostsRemotable[gaugeImage.ExpressionHostID], reportObjectModel);
                 }
             }
         }
         IList <GaugeLabelExprHost> gaugeLabelsHostsRemotable = this.m_exprHost.GaugeLabelsHostsRemotable;
         if (this.m_gaugeLabels != null && gaugeLabelsHostsRemotable != null)
         {
             for (int n = 0; n < this.m_gaugeLabels.Count; n++)
             {
                 GaugeLabel gaugeLabel = this.m_gaugeLabels[n];
                 if (gaugeLabel != null && gaugeLabel.ExpressionHostID > -1)
                 {
                     gaugeLabel.SetExprHost(gaugeLabelsHostsRemotable[gaugeLabel.ExpressionHostID], reportObjectModel);
                 }
             }
         }
         if (this.m_backFrame != null && this.m_exprHost.BackFrameHost != null)
         {
             this.m_backFrame.SetExprHost(this.m_exprHost.BackFrameHost, reportObjectModel);
         }
         if (this.m_topImage != null && this.m_exprHost.TopImageHost != null)
         {
             this.m_topImage.SetExprHost(this.m_exprHost.TopImageHost, reportObjectModel);
         }
         IList <GaugeCellExprHost> cellHostsRemotable = this.m_exprHost.CellHostsRemotable;
         if (cellHostsRemotable != null && this.GaugeRow != null && cellHostsRemotable.Count > 0 && this.GaugeRow.GaugeCell != null)
         {
             this.GaugeRow.GaugeCell.SetExprHost(cellHostsRemotable[0], reportObjectModel);
         }
     }
 }
Exemple #3
0
 public NumericIndicator this[string name]
 {
     get
     {
         for (int i = 0; i < this.Count; i++)
         {
             AspNetCore.ReportingServices.ReportIntermediateFormat.NumericIndicator numericIndicator = this.m_gaugePanel.GaugePanelDef.NumericIndicators[i];
             if (string.CompareOrdinal(name, numericIndicator.Name) == 0)
             {
                 return(base[i]);
             }
         }
         throw new RenderingObjectModelException(ProcessingErrorCode.rsNotInCollection, name);
     }
 }
Exemple #4
0
 public NumericIndicator(AspNetCore.ReportingServices.ReportIntermediateFormat.NumericIndicator defObject, GaugePanel gaugePanel)
     : base(defObject, gaugePanel)
 {
 }