duheng
2025-03-28 b266e82b9a377fa35a766f7a3a2f5aa95f3c9125
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
60
61
62
63
64
namespace PBS.WinFrmUI
{
    /// <summary>
    /// 地图项目
    /// </summary>
    public class MapProjectViewModel
    {
        /// <summary>
        ///
        /// </summary>
        public MapProjectViewModel()
        { }
 
        /// <summary>
        ///
        /// </summary>
        public MapProjectViewModel(Vmo.FacilityVmo project, Yw.Vmo.MapInfoVmo 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.Address = marker?.Address;
             //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; }
        /// <summary>
        /// 详细位置
        /// </summary>
        public string Address { get; set; }
    }
}