Пример #1
0
        public override object PublishClone(AutomaticSubtotalContext context)
        {
            MapVectorLayer mapVectorLayer2 = context.CurrentMapVectorLayerClone = (MapVectorLayer)base.PublishClone(context);

            mapVectorLayer2.m_ID = context.GenerateID();
            if (this.MapDataRegionName != null)
            {
                mapVectorLayer2.MapDataRegionName = context.GetNewScopeName(this.MapDataRegionName);
            }
            if (this.m_mapBindingFieldPairs != null)
            {
                mapVectorLayer2.m_mapBindingFieldPairs = new List <MapBindingFieldPair>(this.m_mapBindingFieldPairs.Count);
                foreach (MapBindingFieldPair mapBindingFieldPair in this.m_mapBindingFieldPairs)
                {
                    mapVectorLayer2.m_mapBindingFieldPairs.Add((MapBindingFieldPair)mapBindingFieldPair.PublishClone(context));
                }
            }
            if (this.m_mapFieldDefinitions != null)
            {
                mapVectorLayer2.m_mapFieldDefinitions = new List <MapFieldDefinition>(this.m_mapFieldDefinitions.Count);
                foreach (MapFieldDefinition mapFieldDefinition in this.m_mapFieldDefinitions)
                {
                    mapVectorLayer2.m_mapFieldDefinitions.Add((MapFieldDefinition)mapFieldDefinition.PublishClone(context));
                }
            }
            if (this.m_mapSpatialData != null)
            {
                mapVectorLayer2.m_mapSpatialData = (MapSpatialData)this.m_mapSpatialData.PublishClone(context);
            }
            return(mapVectorLayer2);
        }
Пример #2
0
        public virtual void ResolveReferences(Dictionary <AspNetCore.ReportingServices.ReportIntermediateFormat.Persistence.ObjectType, List <MemberReference> > memberReferencesCollection, Dictionary <int, IReferenceable> referenceableItems)
        {
            List <MemberReference> list = default(List <MemberReference>);

            if (memberReferencesCollection.TryGetValue(MapAppearanceRule.m_Declaration.ObjectType, out list))
            {
                foreach (MemberReference item in list)
                {
                    switch (item.MemberName)
                    {
                    case MemberName.Map:
                        Global.Tracer.Assert(referenceableItems.ContainsKey(item.RefID));
                        this.m_map = (Map)referenceableItems[item.RefID];
                        break;

                    case MemberName.MapVectorLayer:
                        Global.Tracer.Assert(referenceableItems.ContainsKey(item.RefID));
                        this.m_mapVectorLayer = (MapVectorLayer)referenceableItems[item.RefID];
                        break;

                    default:
                        Global.Tracer.Assert(false);
                        break;
                    }
                }
            }
        }
Пример #3
0
        public virtual void Deserialize(IntermediateFormatReader reader)
        {
            reader.RegisterDeclaration(MapSpatialElement.m_Declaration);
            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case MemberName.Map:
                    this.m_map = reader.ReadReference <Map>(this);
                    break;

                case MemberName.MapVectorLayer:
                    this.m_mapVectorLayer = reader.ReadReference <MapVectorLayer>(this);
                    break;

                case MemberName.VectorData:
                    this.m_vectorData = reader.ReadString();
                    break;

                case MemberName.MapFields:
                    this.m_mapFields = reader.ReadGenericListOfRIFObjects <MapField>();
                    break;

                case MemberName.ExprHostID:
                    this.m_exprHostID = reader.ReadInt32();
                    break;

                default:
                    Global.Tracer.Assert(false);
                    break;
                }
            }
        }
        public override void Deserialize(IntermediateFormatReader reader)
        {
            base.Deserialize(reader);
            reader.RegisterDeclaration(MapSpatialElementTemplate.m_Declaration);
            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case MemberName.Action:
                    this.m_action = (Action)reader.ReadRIFObject();
                    break;

                case MemberName.ID:
                    this.m_id = reader.ReadInt32();
                    break;

                case MemberName.Hidden:
                    this.m_hidden = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.OffsetX:
                    this.m_offsetX = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.OffsetY:
                    this.m_offsetY = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.Label:
                    this.m_label = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.ToolTip:
                    this.m_toolTip = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.MapVectorLayer:
                    this.m_mapVectorLayer = reader.ReadReference <MapVectorLayer>(this);
                    break;

                case MemberName.DataElementLabel:
                    this.m_dataElementLabel = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.DataElementName:
                    this.m_dataElementName = reader.ReadString();
                    break;

                case MemberName.DataElementOutput:
                    this.m_dataElementOutput = (DataElementOutputTypes)reader.ReadEnum();
                    break;

                default:
                    Global.Tracer.Assert(false);
                    break;
                }
            }
        }
        public virtual void Deserialize(IntermediateFormatReader reader)
        {
            reader.RegisterDeclaration(MapSpatialData.m_Declaration);
            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case MemberName.Map:
                    this.m_map = reader.ReadReference <Map>(this);
                    break;

                case MemberName.MapVectorLayer:
                    this.m_mapVectorLayer = reader.ReadReference <MapVectorLayer>(this);
                    break;

                default:
                    Global.Tracer.Assert(false);
                    break;
                }
            }
        }
        public override void ResolveReferences(Dictionary <AspNetCore.ReportingServices.ReportIntermediateFormat.Persistence.ObjectType, List <MemberReference> > memberReferencesCollection, Dictionary <int, IReferenceable> referenceableItems)
        {
            base.ResolveReferences(memberReferencesCollection, referenceableItems);
            List <MemberReference> list = default(List <MemberReference>);

            if (memberReferencesCollection.TryGetValue(MapSpatialElementTemplate.m_Declaration.ObjectType, out list))
            {
                foreach (MemberReference item in list)
                {
                    MemberName memberName = item.MemberName;
                    if (memberName == MemberName.MapVectorLayer)
                    {
                        Global.Tracer.Assert(referenceableItems.ContainsKey(item.RefID));
                        this.m_mapVectorLayer = (MapVectorLayer)referenceableItems[item.RefID];
                    }
                    else
                    {
                        Global.Tracer.Assert(false);
                    }
                }
            }
        }
Пример #7
0
        public override void SetExprHost(IMemberNode memberExprHost, ObjectModelImpl reportObjectModel)
        {
            Global.Tracer.Assert(memberExprHost != null && reportObjectModel != null);
            base.MemberNodeSetExprHost(memberExprHost, reportObjectModel);
            List <MapVectorLayer>           childMapLayers    = this.GetChildMapLayers();
            MapMemberExprHost               mapMemberExprHost = (MapMemberExprHost)memberExprHost;
            IList <MapPolygonLayerExprHost> mapPolygonLayersHostsRemotable = mapMemberExprHost.MapPolygonLayersHostsRemotable;
            IList <MapPointLayerExprHost>   mapPointLayersHostsRemotable   = mapMemberExprHost.MapPointLayersHostsRemotable;
            IList <MapLineLayerExprHost>    mapLineLayersHostsRemotable    = mapMemberExprHost.MapLineLayersHostsRemotable;

            if (childMapLayers != null)
            {
                for (int i = 0; i < childMapLayers.Count; i++)
                {
                    MapVectorLayer mapVectorLayer = childMapLayers[i];
                    if (mapVectorLayer != null && mapVectorLayer.ExpressionHostMapMemberID > -1)
                    {
                        if (mapVectorLayer is MapPolygonLayer)
                        {
                            if (mapPolygonLayersHostsRemotable != null)
                            {
                                mapVectorLayer.SetExprHostMapMember(mapPolygonLayersHostsRemotable[mapVectorLayer.ExpressionHostMapMemberID], reportObjectModel);
                            }
                        }
                        else if (mapVectorLayer is MapPointLayer)
                        {
                            if (mapPointLayersHostsRemotable != null)
                            {
                                mapVectorLayer.SetExprHostMapMember(mapPointLayersHostsRemotable[mapVectorLayer.ExpressionHostMapMemberID], reportObjectModel);
                            }
                        }
                        else if (mapVectorLayer is MapLineLayer && mapLineLayersHostsRemotable != null)
                        {
                            mapVectorLayer.SetExprHostMapMember(mapLineLayersHostsRemotable[mapVectorLayer.ExpressionHostMapMemberID], reportObjectModel);
                        }
                    }
                }
            }
        }
        public List <MapVectorLayer> GetChildVectorLayers()
        {
            List <MapVectorLayer> list = new List <MapVectorLayer>();

            if (this.Map.MapLayers != null)
            {
                {
                    foreach (MapLayer mapLayer in this.Map.MapLayers)
                    {
                        if (mapLayer is MapVectorLayer)
                        {
                            MapVectorLayer mapVectorLayer = (MapVectorLayer)mapLayer;
                            if (string.Equals(mapVectorLayer.MapDataRegionName, base.Name, StringComparison.Ordinal))
                            {
                                list.Add(mapVectorLayer);
                            }
                        }
                    }
                    return(list);
                }
            }
            return(list);
        }
Пример #9
0
        public void Deserialize(IntermediateFormatReader reader)
        {
            reader.RegisterDeclaration(MapBindingFieldPair.m_Declaration);
            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case MemberName.Map:
                    this.m_map = reader.ReadReference <Map>(this);
                    break;

                case MemberName.MapVectorLayer:
                    this.m_mapVectorLayer = reader.ReadReference <MapVectorLayer>(this);
                    break;

                case MemberName.FieldName:
                    this.m_fieldName = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.BindingExpression:
                    this.m_bindingExpression = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.ExprHostID:
                    this.m_exprHostID = reader.ReadInt32();
                    break;

                case MemberName.ExprHostMapMemberID:
                    this.m_exprHostMapMemberID = reader.ReadInt32();
                    break;

                default:
                    Global.Tracer.Assert(false);
                    break;
                }
            }
        }
Пример #10
0
 public MapColorRule(MapVectorLayer mapVectorLayer, Map map)
     : base(mapVectorLayer, map)
 {
 }
Пример #11
0
 public MapSpatialDataRegion(MapVectorLayer mapVectorLayer, Map map)
     : base(mapVectorLayer, map)
 {
 }
Пример #12
0
        public virtual void Deserialize(IntermediateFormatReader reader)
        {
            reader.RegisterDeclaration(MapAppearanceRule.m_Declaration);
            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case MemberName.Map:
                    this.m_map = reader.ReadReference <Map>(this);
                    break;

                case MemberName.MapVectorLayer:
                    this.m_mapVectorLayer = reader.ReadReference <MapVectorLayer>(this);
                    break;

                case MemberName.DataValue:
                    this.m_dataValue = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.DistributionType:
                    this.m_distributionType = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.BucketCount:
                    this.m_bucketCount = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.StartValue:
                    this.m_startValue = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.EndValue:
                    this.m_endValue = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.MapBuckets:
                    this.m_mapBuckets = reader.ReadGenericListOfRIFObjects <MapBucket>();
                    break;

                case MemberName.LegendName:
                    this.m_legendName = reader.ReadString();
                    break;

                case MemberName.LegendText:
                    this.m_legendText = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.DataElementName:
                    this.m_dataElementName = reader.ReadString();
                    break;

                case MemberName.DataElementOutput:
                    this.m_dataElementOutput = (DataElementOutputTypes)reader.ReadEnum();
                    break;

                default:
                    Global.Tracer.Assert(false);
                    break;
                }
            }
        }
Пример #13
0
 public MapAppearanceRule(MapVectorLayer mapVectorLayer, Map map)
 {
     this.m_map            = map;
     this.m_mapVectorLayer = mapVectorLayer;
 }
 public MapMarkerRule(MapVectorLayer mapVectorLayer, Map map)
     : base(mapVectorLayer, map)
 {
 }
 public MapMarkerTemplate(MapVectorLayer mapVectorLayer, Map map, int id)
     : base(mapVectorLayer, map, id)
 {
 }
 public MapSpatialData(MapVectorLayer mapVectorLayer, Map map)
 {
     this.m_map            = map;
     this.m_mapVectorLayer = mapVectorLayer;
 }
Пример #17
0
 public MapShapefile(MapVectorLayer mapVectorLayer, Map map)
     : base(mapVectorLayer, map)
 {
 }
 public MapVectorLayer(AspNetCore.ReportingServices.ReportIntermediateFormat.MapVectorLayer defObject, Map map)
     : base(defObject, map)
 {
 }
 public MapPointTemplate(MapVectorLayer mapVectorLayer, Map map, int id)
     : base(mapVectorLayer, map, id)
 {
 }
Пример #20
0
 public MapBindingFieldPair(Map map, MapVectorLayer mapVectorLayer)
 {
     this.m_map            = map;
     this.m_mapVectorLayer = mapVectorLayer;
 }
 public MapSpatialDataSet(MapVectorLayer mapVectorLayer, Map map)
     : base(mapVectorLayer, map)
 {
 }
 public MapSpatialElementTemplate(MapVectorLayer mapVectorLayer, Map map, int id)
     : base(map)
 {
     this.m_id             = id;
     this.m_mapVectorLayer = mapVectorLayer;
 }
Пример #23
0
 public MapSizeRule(MapVectorLayer mapVectorLayer, Map map)
     : base(mapVectorLayer, map)
 {
 }
Пример #24
0
 public MapSpatialElement(MapVectorLayer mapVectorLayer, Map map)
 {
     this.m_map            = map;
     this.m_mapVectorLayer = mapVectorLayer;
 }