namespace PBS.WinFrmUI.Hydro { /// /// /// public class FacilityTreeViewModel { /// /// /// public FacilityTreeViewModel() { } /// /// /// public FacilityTreeViewModel(FacilityVmo rhs, bool IsHave) { this.ID = rhs.ID; this.ParentID = rhs.PlaceID; this.Name = rhs.Name; this.SortCode = rhs.SortCode; this.Description = rhs.Description; this.Facility = rhs; if (IsHave) { this.ImageIndex = 1; } else { this.ImageIndex = 0; } } /// /// ID /// public long ID { get; set; } /// /// ParentID /// public long ParentID { get; set; } /// /// 名称 /// public string Name { get; set; } /// /// 排序码 /// public int SortCode { get; set; } /// /// 说明 /// public string Description { get; set; } /// /// 项目 /// public FacilityVmo Facility { get; set; } /// /// 图标索引 /// public int? ImageIndex { get; set; } } }