Пример #1
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);
         }
     }
 }