Exemplo n.º 1
0
        internal object PublishClone(AutomaticSubtotalContext context)
        {
            MapBindingFieldPair mapBindingFieldPair = (MapBindingFieldPair)MemberwiseClone();

            mapBindingFieldPair.m_map = context.CurrentMapClone;
            if (m_mapVectorLayer != null)
            {
                mapBindingFieldPair.m_mapVectorLayer = context.CurrentMapVectorLayerClone;
            }
            if (m_fieldName != null)
            {
                mapBindingFieldPair.m_fieldName = (ExpressionInfo)m_fieldName.PublishClone(context);
            }
            if (m_bindingExpression != null)
            {
                mapBindingFieldPair.m_bindingExpression = (ExpressionInfo)m_bindingExpression.PublishClone(context);
            }
            return(mapBindingFieldPair);
        }
Exemplo n.º 2
0
        internal 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 = ExprHost.MapBindingFieldPairsHostsRemotable;

            if (m_mapBindingFieldPairs == null || mapBindingFieldPairsHostsRemotable == null)
            {
                return;
            }
            for (int i = 0; i < m_mapBindingFieldPairs.Count; i++)
            {
                MapBindingFieldPair mapBindingFieldPair = m_mapBindingFieldPairs[i];
                if (mapBindingFieldPair != null && mapBindingFieldPair.ExpressionHostID > -1)
                {
                    mapBindingFieldPair.SetExprHost(mapBindingFieldPairsHostsRemotable[mapBindingFieldPair.ExpressionHostID], reportObjectModel);
                }
            }
        }
Exemplo n.º 3
0
        internal virtual void SetExprHostMapMember(MapVectorLayerExprHost exprHost, ObjectModelImpl reportObjectModel)
        {
            Global.Tracer.Assert(exprHost != null && reportObjectModel != null, "(exprHost != null && reportObjectModel != null)");
            m_exprHostMapMember = exprHost;
            m_exprHostMapMember.SetReportObjectModel(reportObjectModel);
            IList <MapBindingFieldPairExprHost> mapBindingFieldPairsHostsRemotable = ExprHostMapMember.MapBindingFieldPairsHostsRemotable;

            if (m_mapBindingFieldPairs != null && mapBindingFieldPairsHostsRemotable != null)
            {
                for (int i = 0; i < m_mapBindingFieldPairs.Count; i++)
                {
                    MapBindingFieldPair mapBindingFieldPair = m_mapBindingFieldPairs[i];
                    if (mapBindingFieldPair != null && mapBindingFieldPair.ExpressionHostMapMemberID > -1)
                    {
                        mapBindingFieldPair.SetExprHostMapMember(mapBindingFieldPairsHostsRemotable[mapBindingFieldPair.ExpressionHostMapMemberID], reportObjectModel);
                    }
                }
            }
            if (m_mapSpatialData != null && ExprHostMapMember.MapSpatialDataHost != null)
            {
                m_mapSpatialData.SetExprHostMapMember(ExprHostMapMember.MapSpatialDataHost, reportObjectModel);
            }
        }
 internal MapBindingFieldPair(Microsoft.ReportingServices.ReportIntermediateFormat.MapBindingFieldPair defObject, MapVectorLayer mapVectorLayer, Map map)
 {
     m_defObject      = defObject;
     m_mapVectorLayer = mapVectorLayer;
     m_map            = map;
 }