public override void SetExprHost(MapViewExprHost 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);
                    }
                }
            }
        }
示例#2
0
        public object PublishClone(AutomaticSubtotalContext context)
        {
            MapBindingFieldPair mapBindingFieldPair = (MapBindingFieldPair)base.MemberwiseClone();

            mapBindingFieldPair.m_map = context.CurrentMapClone;
            if (this.m_mapVectorLayer != null)
            {
                mapBindingFieldPair.m_mapVectorLayer = context.CurrentMapVectorLayerClone;
            }
            if (this.m_fieldName != null)
            {
                mapBindingFieldPair.m_fieldName = (ExpressionInfo)this.m_fieldName.PublishClone(context);
            }
            if (this.m_bindingExpression != null)
            {
                mapBindingFieldPair.m_bindingExpression = (ExpressionInfo)this.m_bindingExpression.PublishClone(context);
            }
            return(mapBindingFieldPair);
        }
示例#3
0
        public virtual void SetExprHostMapMember(MapVectorLayerExprHost exprHost, ObjectModelImpl reportObjectModel)
        {
            Global.Tracer.Assert(exprHost != null && reportObjectModel != null, "(exprHost != null && reportObjectModel != null)");
            this.m_exprHostMapMember = exprHost;
            this.m_exprHostMapMember.SetReportObjectModel(reportObjectModel);
            IList <MapBindingFieldPairExprHost> mapBindingFieldPairsHostsRemotable = this.ExprHostMapMember.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.ExpressionHostMapMemberID > -1)
                    {
                        mapBindingFieldPair.SetExprHostMapMember(mapBindingFieldPairsHostsRemotable[mapBindingFieldPair.ExpressionHostMapMemberID], reportObjectModel);
                    }
                }
            }
            if (this.m_mapSpatialData != null && this.ExprHostMapMember.MapSpatialDataHost != null)
            {
                this.m_mapSpatialData.SetExprHostMapMember(this.ExprHostMapMember.MapSpatialDataHost, reportObjectModel);
            }
        }
 public MapBindingFieldPair(AspNetCore.ReportingServices.ReportIntermediateFormat.MapBindingFieldPair defObject, MapVectorLayer mapVectorLayer, Map map)
 {
     this.m_defObject      = defObject;
     this.m_mapVectorLayer = mapVectorLayer;
     this.m_map            = map;
 }