using HStation.PBS;
using System.ComponentModel;
using Yw.Untity;
namespace PBS.WinFrmUI
{
public class PlaceViewModel
{
public PlaceViewModel()
{
}
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.Paras = rhs.Paras;
this.Flags = FlagsHelper.ToString(rhs.Flags);
this.Vmo = rhs;
}
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.Paras = rhs.Paras;
this.UseStatus = rhs.UseStatus;
this.SortCode = rhs.SortCode;
this.Description = rhs.Description;
this.Flags = FlagsHelper.ToString(rhs.Flags);
this.Vmo = rhs;
}
///
/// 场所
///
[DisplayName("ID")]
[Browsable(false)]
public long ID { get; set; }
///
/// 行政区域标识
///
[DisplayName("行政区域标识")]
[Browsable(true)]
public long RegionID { get; set; }
///
/// 名称
///
[DisplayName("名称")]
[Browsable(true)]
public string Name { get; set; }
///
/// 场所类型
///
[DisplayName("场所类型")]
[Browsable(true)]
public ePlaceType PlaceType { get; set; }
///
/// 场所信息
///
[DisplayName("场所信息")]
[Browsable(true)]
public string PlaceInfo { get; set; }
///
/// 地址
///
[DisplayName("地址")]
[Browsable(true)]
public string Address { get; set; }
///
/// 参数
///
[DisplayName("参数")]
[Browsable(true)]
public Dictionary Paras { get; set; }
///
/// 标签
///
[DisplayName("标签")]
[Browsable(true)]
public string Flags { get; set; }
///
/// 标志
///
[DisplayName("标志")]
[Browsable(true)]
public string TagName { get; set; }
///
/// 使用状态
///
[DisplayName("使用状态")]
[Browsable(true)]
public Yw.Vmo.eUseStatus UseStatus { get; set; }
///
/// 排序码
///
[DisplayName("排序码")]
[Browsable(true)]
public int SortCode { get; set; }
///
/// 说明
///
[DisplayName("说明")]
[Browsable(true)]
public string Description { get; set; }
public Vmo.PlaceVmo Vmo { get; set; }
}
}