ningshuxia
2025-03-24 7b8ae93d47186c442ff890a1a83d108f115924c7
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
namespace PBS.WinFrmUI.Hydro
{
    /// <summary>
    ///
    /// </summary>
    public class FacilityTreeViewModel
    {
        /// <summary>
        ///
        /// </summary>
        public FacilityTreeViewModel() { } 
 
        /// <summary>
        ///
        /// </summary>
        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;
            }
        }
 
        /// <summary>
        /// ID
        /// </summary>
        public long ID { get; set; }
 
        /// <summary>
        /// ParentID
        /// </summary>
        public long ParentID { get; set; }
 
        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }
 
        /// <summary>
        /// 排序码
        /// </summary>
        public int SortCode { get; set; }
 
        /// <summary>
        /// 说明
        /// </summary>
        public string Description { get; set; }
 
        /// <summary>
        /// 项目
        /// </summary>
        public FacilityVmo Facility { get; set; }
 
        /// <summary>
        /// 图标索引
        /// </summary>
        public int? ImageIndex { get; set; }
    }
}