From df6cdffc65beff763cff9745f5ee46e26c13ccc5 Mon Sep 17 00:00:00 2001
From: lixiaojun <1287241240@qq.com>
Date: 星期三, 04 十二月 2024 20:56:13 +0800
Subject: [PATCH] 项目整理

---
 WinFrmUI/HStation.WinFrmUI.Xhs.Core/02-project/03-mgr/XhsProjectMgrViewModel.cs |   35 +++++++++++++++++++++++++++--------
 1 files changed, 27 insertions(+), 8 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 926f04b..c2787ed 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
@@ -1,7 +1,4 @@
-锘縰sing DevExpress.Pdf.Native;
-using HStation.Service.Xhs;
-
-namespace HStation.WinFrmUI
+锘縩amespace HStation.WinFrmUI
 {
     /// <summary>
     ///
@@ -11,8 +8,7 @@
         /// <summary>
         ///
         /// </summary>
-        public XhsProjectMgrViewModel()
-        { }
+        public XhsProjectMgrViewModel() { }
 
         public enum eFileStatus
         {
@@ -71,7 +67,7 @@
             Noupload,
         }
 
-        public XhsProjectMgrViewModel(Vmo.Xhs.XhsProjectExtensions project, bool IsHaveBimface, int BimfaceState, Yw.Vmo.Map.MapInfo mapInfo)
+        public XhsProjectMgrViewModel(XhsProjectExtensionsVmo project, bool IsHaveBimface, int BimfaceState, Yw.Vmo.MapInfoVmo mapInfo)
         {
             this.ID = project.ID;
             this.ParentID = project.ParentID;
@@ -81,6 +77,8 @@
             {
                 this.Address = Yw.Model.Map.Marker.ToModel(mapInfo.Position).Address;
             }
+            this.CreateTime = project.NO.Substring(4, 10);
+
             this.Customer = project.Customer;
             this.Flags = Yw.Untity.FlagsHelper.ToString(project.Flags);
             this.TagName = project.TagName;
@@ -90,7 +88,7 @@
             this.ModelState = (eFileStatus)BimfaceState;
         }
 
-        public void Reset(Vmo.Xhs.XhsProjectExtensions project)
+        public void Reset(XhsProjectExtensionsVmo project)
         {
             this.ID = project.ID;
             this.ParentID = project.ParentID;
@@ -104,10 +102,25 @@
             this.Description = project.Description;
         }
 
+        public void Reset(XhsProjectMgrViewModel project, int BimfaceState)
+        {
+            this.ID = project.ID;
+            this.ParentID = project.ParentID;
+            this.NO = project.NO;
+            this.Name = project.Name;
+            this.Address = project.Address;
+            this.Customer = project.Customer;
+            this.TagName = project.TagName;
+            this.SortCode = project.SortCode;
+            this.Description = project.Description;
+            this.ModelState = (eFileStatus)BimfaceState;
+        }
+
         public XhsProjectMgrViewModel(HStation.WinFrmUI.ImportXhsProjectViewModel project, int BimfaceState)
         {
             this.ID = (long)project.ProjectID;
             this.NO = project.NO;
+            this.CreateTime = project.NO.Substring(4, 10);
             this.Name = project.Name;
             this.Address = project.Address;
             this.Customer = project.Customer;
@@ -165,6 +178,12 @@
         public string Address { get; set; }
 
         /// <summary>
+        /// 鍒涘缓鏃堕棿
+        /// </summary>
+        [Display(Name = "鍒涘缓鏃堕棿")]
+        public string CreateTime { get; set; }
+
+        /// <summary>
         /// 瀹㈡埛
         /// </summary>
         [Display(Name = "瀹㈡埛鍚嶇О")]

--
Gitblit v1.9.3