namespace Yw.WinFrmUI
{
///
///
///
public class HydroWorkingTreeViewModel
{
///
///
///
public HydroWorkingTreeViewModel() { }
///
///
///
public HydroWorkingTreeViewModel(HydroWorkingVmo rhs)
{
this.Id = rhs.ID.ToString();
this.ParentId = string.Empty;
this.Name = rhs.Name;
this.ImageIndex = -1;
this.Checked = false;
this.SortCode = rhs.SortCode;
this.Description = rhs.Description;
this.Vmo = rhs;
}
///
/// Id
///
public string Id { get; set; }
///
/// 父级id
///
public string ParentId { get; set; }
///
/// 名称
///
public string Name { get; set; }
///
/// 图片索引
///
public int ImageIndex { get; set; }
///
/// 选择
///
public bool Checked { get; set; }
///
/// 排序码
///
public int SortCode { get; set; }
///
/// 说明
///
public string Description { get; set; }
///
///
///
public HydroWorkingVmo Vmo { get; set; }
}
}