ningshuxia
2025-03-13 25d1bf4c50f43cf6690c5ac92824959865c9d78f
WinFrmUI/PBS.WinFrmUI/01-place/00-core/PlaceViewModel.cs
@@ -1,4 +1,6 @@
using System.ComponentModel;
using HStation.PBS;
using System.ComponentModel;
using Yw.Untity;
namespace PBS.WinFrmUI
{
@@ -16,7 +18,10 @@
            this.PlaceType = rhs.PlaceType;
            this.PlaceInfo = rhs.PlaceInfo;
            this.Address = rhs.Address;
            this.Flags = rhs.Flags?.ToString();
            this.UseStatus = rhs.UseStatus;
            this.SortCode = rhs.SortCode;
            this.Description = rhs.Description;
            this.Flags = FlagsHelper.ToString(rhs.Flags);
        }
        public void Resert(Vmo.PlaceVmo rhs)
@@ -27,7 +32,10 @@
            this.PlaceType = rhs.PlaceType;
            this.PlaceInfo = rhs.PlaceInfo;
            this.Address = rhs.Address;
            this.Flags = rhs.Flags?.ToString();
            this.UseStatus = rhs.UseStatus;
            this.SortCode = rhs.SortCode;
            this.Description = rhs.Description;
            this.Flags = FlagsHelper.ToString(rhs.Flags);
        }
        /// <summary>
@@ -56,7 +64,7 @@
        ///</summary>
        [DisplayName("场所类型")]
        [Browsable(true)]
        public int PlaceType { get; set; }
        public ePlaceType PlaceType { get; set; }
        /// <summary>
        /// 场所信息
@@ -98,7 +106,7 @@
        ///</summary>
        [DisplayName("使用状态")]
        [Browsable(true)]
        public int UseStatus { get; set; }
        public Yw.Vmo.eUseStatus UseStatus { get; set; }
        /// <summary>
        /// 排序码