lixiaojun
2024-09-11 ec0d0b6f8e3ac7791c736ae8aad69c4a1587cad9
WinFrmUI/HStation.WinFrmUI.Xhs.Core/01-home/02-map/MapProjectViewModel.cs
@@ -1,10 +1,32 @@
namespace HStation.WinFrmUI
using HStation.Vmo;
using Yw.Dto;
namespace HStation.WinFrmUI
{
    /// <summary>
    /// 地图项目
    /// </summary>
    public class MapProjectViewModel
    {
        /// <summary>
        ///
        /// </summary>
        public MapProjectViewModel() { }
        /// <summary>
        ///
        /// </summary>
        public MapProjectViewModel(XhsProjectVmo 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>
@@ -16,11 +38,21 @@
        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; }