From 467578cbe7f027c14ceba0aed16fb827b94e2c65 Mon Sep 17 00:00:00 2001 From: duheng <2784771470@qq.com> Date: 星期五, 07 三月 2025 09:41:58 +0800 Subject: [PATCH] pbs-为登录静态类赋值 --- WinFrmUI/PBS.WinFrmUI/01-place/00-core/PlaceViewModel.cs | 41 +++++++++++++++++++++++++---------------- 1 files changed, 25 insertions(+), 16 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..54c72d6 100644 --- a/WinFrmUI/PBS.WinFrmUI/01-place/00-core/PlaceViewModel.cs +++ b/WinFrmUI/PBS.WinFrmUI/01-place/00-core/PlaceViewModel.cs @@ -1,6 +1,6 @@ 锘縰sing System.ComponentModel; -namespace HStation.WinFrmUI.PBS +namespace PBS.WinFrmUI { public class PlaceViewModel { @@ -8,24 +8,33 @@ { } - /* - 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.Flags = rhs.Flags?.ToString(); + } + + 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.Flags = rhs.Flags?.ToString(); + } /// <summary> /// 鍦烘墍 ///</summary> - [DisplayName("鍦烘墍")] - [Browsable(true)] + [DisplayName("ID")] + [Browsable(false)] public long ID { get; set; } /// <summary> @@ -39,7 +48,7 @@ /// 鍚嶇О ///</summary> [DisplayName("鍚嶇О")] - [Browsable(false)] + [Browsable(true)] public string Name { get; set; } /// <summary> -- Gitblit v1.9.3