Shuxia Ning
2025-01-08 687a3dfd095bc8c099b7fa6e65f0dc699fdc8f1d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
namespace Yw.WinFrmUI
{
    /// <summary>
    /// 
    /// </summary>
    public class HydroGradingPropTreeViewModel
    {
        /// <summary>
        /// 
        /// </summary>
        public HydroGradingPropTreeViewModel() { }
 
        /// <summary>
        /// 
        /// </summary>
        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;
        }
 
        /// <summary>
        /// 
        /// </summary>
        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;
        }
 
 
        /// <summary>
        /// 
        /// </summary>
        public string Id { get; set; }
 
        /// <summary>
        /// 
        /// </summary>
        public string ParentId { get; set; }
 
        /// <summary>
        /// 类型
        /// 0 catalog 
        /// 1 propname
        /// </summary>
        public int Type { get; set; }
 
        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }
 
        /// <summary>
        /// 分类
        /// </summary>
        public string Catalog { get; set; }
 
        /// <summary>
        /// 属性名称
        /// </summary>
        public string PropName { get; set; }
 
 
 
    }
}