namespace PBS.WinFrmUI.Hydro { /// /// /// public class ModelTemplateTreeViewModel { /// /// /// public ModelTemplateTreeViewModel() { } /// /// /// public ModelTemplateTreeViewModel(ModelTemplateVmo rhs, bool IsHave) { this.ID = rhs.ID; this.ParentID = rhs.GroupID; this.Name = rhs.Name; this.SortCode = rhs.SortCode; this.Description = rhs.Description; this.ModelTemplate = 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 ModelTemplateVmo ModelTemplate { get; set; } /// /// 图标索引 /// public int? ImageIndex { get; set; } } }