lixiaojun
2025-01-03 d672ca82c49f01dae2c5c955202b5857ef680a71
WinFrmUI/HStation.WinFrmUI.Xhs.Core/01-home/02-map/MapProjectViewModel.cs
@@ -6,6 +6,26 @@
    public class MapProjectViewModel
    {
        /// <summary>
        ///
        /// </summary>
        public MapProjectViewModel()
        { }
        /// <summary>
        ///
        /// </summary>
        public MapProjectViewModel(XhsProjectVmo 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.Customer = project.Customer;
        }
        /// <summary>
        /// 项目id
        /// </summary>
        public string Id { get; set; }
@@ -16,13 +36,23 @@
        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; }
    }
}
}