From 6fcff08e4f76bce6076319b5b3a2456c2d94c5fe Mon Sep 17 00:00:00 2001
From: duheng <2784771470@qq.com>
Date: 星期二, 26 十一月 2024 09:19:00 +0800
Subject: [PATCH] 提交成套设备界面修改

---
 Dto/Yw.Dto.Division.Core/03-buildingType/BuildingTypeDto.cs |   32 +++++++++++++++-----------------
 1 files changed, 15 insertions(+), 17 deletions(-)

diff --git a/WinFrmUI/Yw.WinFrmUI.Division.Core/01-part/Class1.cs b/Dto/Yw.Dto.Division.Core/03-buildingType/BuildingTypeDto.cs
similarity index 64%
copy from WinFrmUI/Yw.WinFrmUI.Division.Core/01-part/Class1.cs
copy to Dto/Yw.Dto.Division.Core/03-buildingType/BuildingTypeDto.cs
index ee1e61e..fd3a6ff 100644
--- a/WinFrmUI/Yw.WinFrmUI.Division.Core/01-part/Class1.cs
+++ b/Dto/Yw.Dto.Division.Core/03-buildingType/BuildingTypeDto.cs
@@ -1,29 +1,27 @@
-锘縩amespace Yw.WinFrmUI
+锘縩amespace Yw.Dto
 {
-    public class PartViewModel
+    /// <summary>
+    ///
+    ///</summary>
+    public class BuildingTypeDto
     {
-        public PartViewModel()
+        /// <summary>
+        ///
+        /// </summary>
+        public BuildingTypeDto()
         { }
 
-        public PartViewModel(Vmo.PartVmo rhs)
+        /// <summary>
+        ///
+        /// </summary>
+        public BuildingTypeDto(Model.BuildingType rhs)
         {
             this.ID = rhs.ID;
             this.Name = rhs.Name;
-            this.Paras = rhs.Paras;
-            this.Flags = rhs.Flags;
-            this.SortCode = rhs.SortCode;
+            this.Paras = rhs.Paras == null ? null : new(rhs.Paras);
+            this.Flags = rhs.Flags?.ToList();
             this.TagName = rhs.TagName;
-            this.Description = rhs.Description;
-        }
-
-        public void Reset(Vmo.PartVmo rhs)
-        {
-            this.ID = rhs.ID;
-            this.Name = rhs.Name;
-            this.Paras = rhs.Paras;
-            this.Flags = rhs.Flags;
             this.SortCode = rhs.SortCode;
-            this.TagName = rhs.TagName;
             this.Description = rhs.Description;
         }
 

--
Gitblit v1.9.3