namespace HStation.WinFrmUI
{
///
///
///
public class AssetsMeterSeriesMgrViewModel
{
///
///
///
public AssetsMeterSeriesMgrViewModel() { }
///
///
///
public AssetsMeterSeriesMgrViewModel(HStation.Vmo.AssetsMeterSeriesVmo rhs)
{
this.ID = rhs.ID;
this.ParentID = rhs.ParentID;
this.Name = rhs.Name;
this.Flags = Yw.Untity.FlagsHelper.ToString(rhs.Flags);
this.TagName = rhs.TagName;
this.Description = rhs.Description;
this.Vmo = rhs;
}
///
///
///
public void Reset(HStation.Vmo.AssetsMeterSeriesVmo rhs)
{
this.ID = rhs.ID;
this.ParentID = rhs.ParentID;
this.Name = rhs.Name;
this.Flags = Yw.Untity.FlagsHelper.ToString(rhs.Flags);
this.TagName = rhs.TagName;
this.Description = rhs.Description;
this.Vmo = rhs;
}
///
/// id
///
[Display(Name = "ID")]
public long ID { get; set; }
///
/// 父级id
///
[Display(Name = "父级ID")]
public long ParentID { 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 HStation.Vmo.AssetsMeterSeriesVmo Vmo { get; set; }
}
}