using System.ComponentModel;
namespace Yw.WinFrmUI
{
public class PartViewModel
{
public PartViewModel()
{ }
public PartViewModel(Vmo.PartVmo rhs)
{
this.ID = rhs.ID;
this.Name = rhs.Name;
this.Flags = rhs.Flags;
this.SortCode = rhs.SortCode;
this.TagName = rhs.TagName;
this.Description = rhs.Description;
}
public void Reset(Vmo.PartVmo rhs)
{
this.ID = rhs.ID;
this.Name = rhs.Name;
this.Flags = rhs.Flags;
this.SortCode = rhs.SortCode;
this.TagName = rhs.TagName;
this.Description = rhs.Description;
}
///
/// ID
///
public long ID { get; set; }
///
/// 名称
///
[DisplayName("名称")]
[Browsable(true)]
public string Name { get; set; }
///
/// 标签
///
[DisplayName("标签")]
[Browsable(false)]
public List Flags { get; set; }
///
/// 标志
///
[DisplayName("标志")]
[Browsable(true)]
public string TagName { get; set; }
///
/// 排序码
///
[DisplayName("排序码")]
[Browsable(true)]
public int SortCode { get; set; }
///
/// 说明
///
[DisplayName("说明")]
[Browsable(true)]
public string Description { get; set; }
}
}