Пример #1
0
        public MapPointBase GetMapPointBase()
        {
            MapPointBase res = new MapPointBase();

            res.CreatedByUserID      = CreatedByUserID;
            res.CreatedOnDate        = CreatedOnDate;
            res.LastModifiedByUserID = LastModifiedByUserID;
            res.LastModifiedOnDate   = LastModifiedOnDate;
            res.MapPointId           = MapPointId;
            res.ModuleId             = ModuleId;
            res.Latitude             = Latitude;
            res.Longitude            = Longitude;
            res.Message = Message;
            return(res);
        }
Пример #2
0
        public void ReadMapPointBase(MapPointBase mapPoint)
        {
            if (mapPoint.MapPointId > -1)
            {
                MapPointId = mapPoint.MapPointId;
            }

            if (mapPoint.ModuleId > -1)
            {
                ModuleId = mapPoint.ModuleId;
            }

            Latitude = mapPoint.Latitude;

            Longitude = mapPoint.Longitude;

            if (!String.IsNullOrEmpty(mapPoint.Message))
            {
                Message = mapPoint.Message;
            }
        }