duheng
2025-03-18 0dcff1805b3143dd1c2a25d604afdd724b452803
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,12 @@
            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.Paras = rhs.Paras;
            this.Flags = FlagsHelper.ToString(rhs.Flags);
            this.Vmo = rhs;
        }
        public void Resert(Vmo.PlaceVmo rhs)
@@ -27,7 +34,12 @@
            this.PlaceType = rhs.PlaceType;
            this.PlaceInfo = rhs.PlaceInfo;
            this.Address = rhs.Address;
            this.Flags = rhs.Flags?.ToString();
            this.Paras = rhs.Paras;
            this.UseStatus = rhs.UseStatus;
            this.SortCode = rhs.SortCode;
            this.Description = rhs.Description;
            this.Flags = FlagsHelper.ToString(rhs.Flags);
            this.Vmo = rhs;
        }
        /// <summary>
@@ -41,7 +53,7 @@
        /// 行政区域标识
        ///</summary>
        [DisplayName("行政区域标识")]
        [Browsable(false)]
        [Browsable(true)]
        public long RegionID { get; set; }
        /// <summary>
@@ -56,7 +68,7 @@
        ///</summary>
        [DisplayName("场所类型")]
        [Browsable(true)]
        public int PlaceType { get; set; }
        public ePlaceType PlaceType { get; set; }
        /// <summary>
        /// 场所信息
@@ -98,7 +110,7 @@
        ///</summary>
        [DisplayName("使用状态")]
        [Browsable(true)]
        public int UseStatus { get; set; }
        public Yw.Vmo.eUseStatus UseStatus { get; set; }
        /// <summary>
        /// 排序码
@@ -113,5 +125,7 @@
        [DisplayName("说明")]
        [Browsable(true)]
        public string Description { get; set; }
        public Vmo.PlaceVmo Vmo { get; set; }
    }
}