public override void SetExprHost(MapLayerExprHost exprHost, ObjectModelImpl reportObjectModel)
 {
     Global.Tracer.Assert(exprHost != null && reportObjectModel != null, "(exprHost != null && reportObjectModel != null)");
     base.SetExprHost(exprHost, reportObjectModel);
     if (this.m_mapLineRules != null && this.ExprHost.MapLineRulesHost != null)
     {
         this.m_mapLineRules.SetExprHost(this.ExprHost.MapLineRulesHost, reportObjectModel);
     }
     if (base.MapDataRegionName == null)
     {
         if (this.m_mapLineTemplate != null && this.ExprHost.MapLineTemplateHost != null)
         {
             this.m_mapLineTemplate.SetExprHost(this.ExprHost.MapLineTemplateHost, reportObjectModel);
         }
         IList <MapLineExprHost> mapLinesHostsRemotable = this.ExprHost.MapLinesHostsRemotable;
         if (this.m_mapLines != null && mapLinesHostsRemotable != null)
         {
             for (int i = 0; i < this.m_mapLines.Count; i++)
             {
                 MapLine mapLine = this.m_mapLines[i];
                 if (mapLine != null && mapLine.ExpressionHostID > -1)
                 {
                     mapLine.SetExprHost(mapLinesHostsRemotable[mapLine.ExpressionHostID], reportObjectModel);
                 }
             }
         }
     }
 }
예제 #2
0
        internal override void SetExprHost(MapLayerExprHost exprHost, ObjectModelImpl reportObjectModel)
        {
            Global.Tracer.Assert(exprHost != null && reportObjectModel != null, "(exprHost != null && reportObjectModel != null)");
            base.SetExprHost(exprHost, reportObjectModel);
            if (m_mapPointRules != null && ExprHost.MapPointRulesHost != null)
            {
                m_mapPointRules.SetExprHost(ExprHost.MapPointRulesHost, reportObjectModel);
            }
            if (base.MapDataRegionName != null)
            {
                return;
            }
            if (m_mapPointTemplate != null && ExprHost.MapPointTemplateHost != null)
            {
                m_mapPointTemplate.SetExprHost(ExprHost.MapPointTemplateHost, reportObjectModel);
            }
            IList <MapPointExprHost> mapPointsHostsRemotable = ExprHost.MapPointsHostsRemotable;

            if (m_mapPoints == null || mapPointsHostsRemotable == null)
            {
                return;
            }
            for (int i = 0; i < m_mapPoints.Count; i++)
            {
                MapPoint mapPoint = m_mapPoints[i];
                if (mapPoint != null && mapPoint.ExpressionHostID > -1)
                {
                    mapPoint.SetExprHost(mapPointsHostsRemotable[mapPoint.ExpressionHostID], reportObjectModel);
                }
            }
        }
예제 #3
0
        public override void SetExprHost(MapLayerExprHost exprHost, ObjectModelImpl reportObjectModel)
        {
            Global.Tracer.Assert(exprHost != null && reportObjectModel != null, "(exprHost != null && reportObjectModel != null)");
            base.SetExprHost(exprHost, reportObjectModel);
            IList <MapBindingFieldPairExprHost> mapBindingFieldPairsHostsRemotable = this.ExprHost.MapBindingFieldPairsHostsRemotable;

            if (this.m_mapBindingFieldPairs != null && mapBindingFieldPairsHostsRemotable != null)
            {
                for (int i = 0; i < this.m_mapBindingFieldPairs.Count; i++)
                {
                    MapBindingFieldPair mapBindingFieldPair = this.m_mapBindingFieldPairs[i];
                    if (mapBindingFieldPair != null && mapBindingFieldPair.ExpressionHostID > -1)
                    {
                        mapBindingFieldPair.SetExprHost(mapBindingFieldPairsHostsRemotable[mapBindingFieldPair.ExpressionHostID], reportObjectModel);
                    }
                }
            }
            if (this.m_mapSpatialData != null && this.ExprHost.MapSpatialDataHost != null)
            {
                this.m_mapSpatialData.SetExprHost(this.ExprHost.MapSpatialDataHost, reportObjectModel);
            }
        }
예제 #4
0
 public virtual void SetExprHost(MapLayerExprHost exprHost, ObjectModelImpl reportObjectModel)
 {
     Global.Tracer.Assert(exprHost != null && reportObjectModel != null, "(exprHost != null && reportObjectModel != null)");
     this.m_exprHost = exprHost;
     this.m_exprHost.SetReportObjectModel(reportObjectModel);
 }