duheng
2024-09-09 f499438477f73a7b639425de1f25ec6cc0242828
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
54
55
56
57
58
59
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;
            this.Customer = project.Customer;
        }
 
        /// <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 string Customer { get; set; }
 
        /// <summary>
        /// 坐标
        /// </summary>
        public Yw.Model.Map.Point Point { get; set; }
    }
}