예제 #1
0
        public override object PublishClone(AutomaticSubtotalContext context)
        {
            LinearGauge linearGauge = (LinearGauge)base.PublishClone(context);

            if (this.m_gaugeScales != null)
            {
                linearGauge.m_gaugeScales = new List <LinearScale>(this.m_gaugeScales.Count);
                foreach (LinearScale gaugeScale in this.m_gaugeScales)
                {
                    linearGauge.m_gaugeScales.Add((LinearScale)gaugeScale.PublishClone(context));
                }
            }
            if (this.m_orientation != null)
            {
                linearGauge.m_orientation = (ExpressionInfo)this.m_orientation.PublishClone(context);
            }
            return(linearGauge);
        }
예제 #2
0
 public LinearGauge(AspNetCore.ReportingServices.ReportIntermediateFormat.LinearGauge defObject, GaugePanel gaugePanel)
     : base(defObject, gaugePanel)
 {
     base.m_defObject  = defObject;
     base.m_gaugePanel = gaugePanel;
 }
 public LinearGauge this[string name]
 {
     get
     {
         for (int i = 0; i < this.Count; i++)
         {
             AspNetCore.ReportingServices.ReportIntermediateFormat.LinearGauge linearGauge = this.m_gaugePanel.GaugePanelDef.LinearGauges[i];
             if (string.CompareOrdinal(name, linearGauge.Name) == 0)
             {
                 return(base[i]);
             }
         }
         throw new RenderingObjectModelException(ProcessingErrorCode.rsNotInCollection, name);
     }
 }
예제 #4
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);
         }
     }
 }