using System.ComponentModel.DataAnnotations;
namespace HStation.WinFrmUI
{
///
///
///
public class RoleTreeListViewModel
{
///
///
///
public RoleTreeListViewModel()
{ }
///
///
///
public RoleTreeListViewModel(Yw.Vmo.RoleVmo rhs)
{
this.ID = rhs.ID;
this.Name = rhs.Name;
this.Description = rhs.Description;
this.Vmo = rhs;
}
///
///
///
public void Reset(Yw.Vmo.RoleVmo rhs)
{
this.ID = rhs.ID;
this.Name = rhs.Name;
this.Description = rhs.Description;
}
///
/// id
///
[Display(Name = "ID")]
public long ID { get; set; }
///
/// 名称
///
[Display(Name = "名称")]
public string Name { get; set; }
///
/// 标签
///
[Display(Name = "标签")]
public string Flags { get; set; }
///
/// 标志
///
[Display(Name = "标志")]
public string TagName { get; set; }
///
/// 排序码
///
[Display(Name = "排序码")]
public int SortCode
{
get { return this.Vmo.SortCode; }
set { this.Vmo.SortCode = value; }
}
///
/// 说明
///
[Display(Name = "说明")]
public string Description { get; set; }
///
///
///
public Yw.Vmo.RoleVmo Vmo { get; set; }
}
}