using System.ComponentModel; namespace HStation.WinFrmUI.Dict.Core { public class DictDataViewModel { public DictDataViewModel() { } public DictDataViewModel(Yw.Vmo.SysDictDataVmo rhs) { this.TypeID = rhs.TypeID; this.Name = rhs.Name; this.ID = rhs.ID; this.Description = rhs.Description; this.Code = rhs.Code; this.SortCode = rhs.SortCode; } public void Reset(Yw.Vmo.SysDictDataVmo rhs) { this.TypeID = rhs.TypeID; this.Name = rhs.Name; this.ID = rhs.ID; this.Description = rhs.Description; this.Code = rhs.Code; this.SortCode = rhs.SortCode; } [DisplayName("ID")] [Browsable(true)] public long ID { get; set; } [DisplayName("类型ID")] [Browsable(true)] public long TypeID { get; set; } [DisplayName("排序码")] [Browsable(true)] public int SortCode { get; set; } [DisplayName("名称")] [Browsable(true)] public string Name { get; set; } [DisplayName("编码")] [Browsable(true)] public string Code { get; set; } [DisplayName("说明")] [Browsable(true)] public string Description { get; set; } } }