lixiaojun
2024-07-24 61f13137f1a7f1b0410fc6666ceeee0f04576943
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
using Yw.Dto;
 
namespace HStation.WinFrmUI
{
    /// <summary>
    /// 地图项目
    /// </summary>
    public class MapProjectViewModel
    {
        /// <summary>
        /// 
        /// </summary>
        public MapProjectViewModel() { }
 
        /// <summary>
        /// 
        /// </summary>
        public MapProjectViewModel(XhsProjectStdDto project, MapInfoStdDto mapInfo)
        {
            this.Id = project.ID.ToString();
            this.Name = project.Name;
            this.NO = project.NO;
            this.Description = project.Description;
            var marker = Yw.Model.Map.Marker.ToModel(mapInfo.Position);
            this.Point = marker?.Point;
        }
 
        /// <summary>
        /// 项目id
        /// </summary>
        public string Id { get; set; }
 
        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }
 
        /// <summary>
        /// 编号
        /// </summary>
        public string NO { get; set; }
 
        /// <summary>
        /// 说明
        /// </summary>
        public string Description { get; set; }
 
        /// <summary>
        /// 坐标
        /// </summary>
        public Yw.Model.Map.Point Point { get; set; }
    }
}