From ec0d0b6f8e3ac7791c736ae8aad69c4a1587cad9 Mon Sep 17 00:00:00 2001
From: lixiaojun <1287241240@qq.com>
Date: 星期三, 11 九月 2024 10:14:44 +0800
Subject: [PATCH] xhs 和 bimface vmo改造

---
 WinFrmUI/HStation.WinFrmUI.Xhs.Core/01-home/02-map/MapProjectViewModel.cs |   34 +++++++++++++++++++++++++++++++++-
 1 files changed, 33 insertions(+), 1 deletions(-)

diff --git a/WinFrmUI/HStation.WinFrmUI.Xhs.Core/01-home/02-map/MapProjectViewModel.cs b/WinFrmUI/HStation.WinFrmUI.Xhs.Core/01-home/02-map/MapProjectViewModel.cs
index 699cde7..5e08c15 100644
--- a/WinFrmUI/HStation.WinFrmUI.Xhs.Core/01-home/02-map/MapProjectViewModel.cs
+++ b/WinFrmUI/HStation.WinFrmUI.Xhs.Core/01-home/02-map/MapProjectViewModel.cs
@@ -1,10 +1,32 @@
-锘縩amespace HStation.WinFrmUI
+锘縰sing 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; }

--
Gitblit v1.9.3