From ef1fc8b0eeea6972964d8c62dfef7819bea49d1a Mon Sep 17 00:00:00 2001
From: qin <a@163.com>
Date: 星期五, 14 三月 2025 11:01:34 +0800
Subject: [PATCH] 提交文件

---
 WinFrmUI/PBS.WinFrmUI/01-place/00-core/PlaceViewModel.cs |   55 ++++++++++++++++++++++++++++++++++++-------------------
 1 files changed, 36 insertions(+), 19 deletions(-)

diff --git a/WinFrmUI/PBS.WinFrmUI/01-place/00-core/PlaceViewModel.cs b/WinFrmUI/PBS.WinFrmUI/01-place/00-core/PlaceViewModel.cs
index 4a69342..293fa0c 100644
--- a/WinFrmUI/PBS.WinFrmUI/01-place/00-core/PlaceViewModel.cs
+++ b/WinFrmUI/PBS.WinFrmUI/01-place/00-core/PlaceViewModel.cs
@@ -1,6 +1,8 @@
-锘縰sing System.ComponentModel;
+锘縰sing HStation.PBS;
+using System.ComponentModel;
+using Yw.Untity;
 
-namespace HStation.WinFrmUI.PBS
+namespace PBS.WinFrmUI
 {
     public class PlaceViewModel
     {
@@ -8,24 +10,39 @@
         {
         }
 
-        /*
-                public PlaceViewModel(PBS.Vmo rhs)
-                {
-                    this.ID = rhs.ID;
-                    this.RegionID = rhs.RegionID;
-                    this.Name = rhs.Name;
-                    this.PlaceType = rhs.PlaceType;
-                    this.PlaceInfo = rhs.PlaceInfo;
-                    this.Address = rhs.Address;
-                    this.Flags = rhs.Flags?.ToList();
-                }
-        */
+        public PlaceViewModel(Vmo.PlaceVmo rhs)
+        {
+            this.ID = rhs.ID;
+            this.RegionID = rhs.RegionID;
+            this.Name = rhs.Name;
+            this.PlaceType = rhs.PlaceType;
+            this.PlaceInfo = rhs.PlaceInfo;
+            this.Address = rhs.Address;
+            this.UseStatus = rhs.UseStatus;
+            this.SortCode = rhs.SortCode;
+            this.Description = rhs.Description;
+            this.Flags = FlagsHelper.ToString(rhs.Flags);
+        }
+
+        public void Resert(Vmo.PlaceVmo rhs)
+        {
+            this.ID = rhs.ID;
+            this.RegionID = rhs.RegionID;
+            this.Name = rhs.Name;
+            this.PlaceType = rhs.PlaceType;
+            this.PlaceInfo = rhs.PlaceInfo;
+            this.Address = rhs.Address;
+            this.UseStatus = rhs.UseStatus;
+            this.SortCode = rhs.SortCode;
+            this.Description = rhs.Description;
+            this.Flags = FlagsHelper.ToString(rhs.Flags);
+        }
 
         /// <summary>
         /// 鍦烘墍
         ///</summary>
-        [DisplayName("鍦烘墍")]
-        [Browsable(true)]
+        [DisplayName("ID")]
+        [Browsable(false)]
         public long ID { get; set; }
 
         /// <summary>
@@ -39,7 +56,7 @@
         /// 鍚嶇О
         ///</summary>
         [DisplayName("鍚嶇О")]
-        [Browsable(false)]
+        [Browsable(true)]
         public string Name { get; set; }
 
         /// <summary>
@@ -47,7 +64,7 @@
         ///</summary>
         [DisplayName("鍦烘墍绫诲瀷")]
         [Browsable(true)]
-        public int PlaceType { get; set; }
+        public ePlaceType PlaceType { get; set; }
 
         /// <summary>
         /// 鍦烘墍淇℃伅
@@ -89,7 +106,7 @@
         ///</summary>
         [DisplayName("浣跨敤鐘舵��")]
         [Browsable(true)]
-        public int UseStatus { get; set; }
+        public Yw.Vmo.eUseStatus UseStatus { get; set; }
 
         /// <summary>
         /// 鎺掑簭鐮�

--
Gitblit v1.9.3