duheng
2025-03-07 467578cbe7f027c14ceba0aed16fb827b94e2c65
WinFrmUI/PBS.WinFrmUI/01-place/00-core/PlaceViewModel.cs
@@ -1,6 +1,6 @@
using 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>