From 1a2bcaa7bec4f0bc681e55d1ccc61b14427c98ce Mon Sep 17 00:00:00 2001
From: lixiaojun <1287241240@qq.com>
Date: 星期六, 25 一月 2025 12:45:20 +0800
Subject: [PATCH] 增加构件自定义参数

---
 WinFrmUI/HStation.WinFrmUI.Xhs.Core/02-project/03-mgr/XhsProjectMgrViewModel.cs |   29 ++++++++++++++++++++++++++++-
 1 files changed, 28 insertions(+), 1 deletions(-)

diff --git a/WinFrmUI/HStation.WinFrmUI.Xhs.Core/02-project/03-mgr/XhsProjectMgrViewModel.cs b/WinFrmUI/HStation.WinFrmUI.Xhs.Core/02-project/03-mgr/XhsProjectMgrViewModel.cs
index bbacdaf..ea729b0 100644
--- a/WinFrmUI/HStation.WinFrmUI.Xhs.Core/02-project/03-mgr/XhsProjectMgrViewModel.cs
+++ b/WinFrmUI/HStation.WinFrmUI.Xhs.Core/02-project/03-mgr/XhsProjectMgrViewModel.cs
@@ -35,7 +35,34 @@
         }
 
         /// <summary>
-        /// ID
+        /// 閲嶇疆
+        /// </summary>
+        public void Reset(XhsProjectExtensionsVmo project, Yw.Vmo.MapInfoVmo mapInfo, Yw.Vmo.BimfaceFileVmo bimfaceFile)
+        {
+            this.ID = project.ID;
+            this.ParentID = project.ParentID;
+            this.NO = project.NO;
+            this.Name = project.Name;
+            this.Customer = project.Customer;
+            this.Address = project.Address;
+            if (string.IsNullOrEmpty(this.Address))
+            {
+                if (mapInfo != null)
+                {
+                    this.Address = Yw.Model.Map.Marker.ToModel(mapInfo.Position).Address;
+                }
+            }
+            this.Flags = Yw.Untity.FlagsHelper.ToString(project.Flags);
+            this.TagName = project.TagName;
+            this.SortCode = project.SortCode;
+            this.Description = project.Description;
+            this.Project = project;
+            this.MapInfo = mapInfo;
+            this.BimfaceFile = bimfaceFile;
+        }
+
+        /// <summary>
+        /// UserID
         /// </summary>
         [Display(Name = "ID")]
         public long ID { get; set; }

--
Gitblit v1.9.3