using System.ComponentModel.DataAnnotations; using Yw.Vmo; namespace HStation.WinFrmUI { public class UserRoleHaveViewModel { public UserRoleHaveViewModel() { } public UserRoleHaveViewModel(Yw.Vmo.UserRoleHaveVmo rhs) { this.ID = rhs.ID; this.Name = rhs.Name; this.Code = rhs.Code; this.UseStatus = rhs.UseStatus; this.Have = rhs.Have; this.SortCode = rhs.SortCode; this.Description = rhs.Description; } public long ID { get; set; } [Display(Name = "名称")] public string Name { get; set; } [Display(Name = "编码")] public string Code { get; set; } [Display(Name = "状态")] public eUseStatus UseStatus { get; set; } [Display(Name = "排序码")] public int SortCode { get; set; } [Display(Name = "说明")] public string Description { get; set; } [Display(Name = "选择")] public bool Have { get; set; } } }