namespace Yw.WinFrmUI { /// /// /// public class HydroGradingPropTreeViewModel { /// /// /// public HydroGradingPropTreeViewModel() { } /// /// /// public HydroGradingPropTreeViewModel(string code, string name) { this.Id = code; this.ParentId = string.Empty; this.Type = 0; this.Name = name; this.Catalog = code; this.PropName = string.Empty; } /// /// /// public HydroGradingPropTreeViewModel(string catalog, string code, string name) { this.Id = $"{catalog}-{code}"; this.ParentId = catalog; this.Type = 1; this.Name = name; this.Catalog = catalog; this.PropName = code; } /// /// /// public string Id { get; set; } /// /// /// public string ParentId { get; set; } /// /// 类型 /// 0 catalog /// 1 propname /// public int Type { get; set; } /// /// 名称 /// public string Name { get; set; } /// /// 分类 /// public string Catalog { get; set; } /// /// 属性名称 /// public string PropName { get; set; } } }