cloudflight
2024-06-10 07ffb6029da759a8ce4498207cfa5f6d069c44b1
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
 
namespace Hydro.MapView
{
    public class WaterEquivalent
    {
        public WaterEquivalent() { }
        public WaterEquivalent(WaterEquivalent rhs) 
        {
            this.ID = rhs.ID;
            this.BelongID = rhs.BelongID;
            this.BelongType = rhs.BelongType;
            this.WaterUtensilID = rhs.WaterUtensilID;
            this.Count = rhs.Count;
            this.MinRatedFlow = rhs.MinRatedFlow;
            this.RatedFlow = rhs.RatedFlow;
            this.Flags = rhs.Flags;
            this.TagName = rhs.TagName;
            this.UseStatus = rhs.UseStatus;
            this.SortCode = rhs.SortCode;
            this.Description = rhs.Description;
        }
 
        public long ID { get; set; }
 
        /// <summary>
        /// 所属对象标识
        /// </summary>         
        public long BelongID { get; set; }
 
        /// <summary>
        /// 所属对象类型
        /// </summary>         
        public string BelongType { get; set; }
 
        /// <summary>
        /// 用水器具标识
        /// </summary>
        public long WaterUtensilID { get; set; }
 
        /// <summary>
        /// 数量
        /// </summary>
        public int Count { get; set; }
 
        /// <summary>
        /// 额定流量
        /// </summary>          
        public double RatedFlow { get; set; }
 
        /// <summary>
        /// 最小额定流量
        /// </summary>         
        public double MinRatedFlow { get; set; }
 
        /// <summary>
        /// 标签列表
        /// </summary>
        public string Flags { get; set; }
 
        /// <summary>
        /// 标签名称
        /// </summary>    
        public string TagName { get; set; }
 
        /// <summary>
        /// 使用状态
        /// </summary>    
        public int UseStatus { get; set; }
 
        /// <summary>
        /// 排序码
        /// </summary>    
        public int SortCode { get; set; }
 
        /// <summary>
        /// 说明
        /// </summary>    
        public string Description { get; set; }
 
      
 
        
    }
 
 
    public class WaterEquivalentCollection : List<WaterEquivalent>
    {
        public WaterEquivalentCollection() { }
        public WaterEquivalentCollection(WaterEquivalentCollection rhs)
        {
            foreach (var item in rhs)
            {
                this.Add(new WaterEquivalent(item));
            }
        }
    }
 
    public class WaterEquivalentTemplate
    {
        public WaterEquivalentTemplate() { }
        public WaterEquivalentTemplate(WaterEquivalentTemplate rhs)
        {
            this.ID = rhs.ID;
            this.Name = rhs.Name;
            this.Description = rhs.Description;
            this.WaterEquivalentCollection = new WaterEquivalentCollection(rhs.WaterEquivalentCollection);
        }
        public string ID { get; set; }
        public string Name { get; set; }
        public string Description { get; set; }
 
        public WaterEquivalentCollection WaterEquivalentCollection { get; set; }
    }
 
    public class WaterEquivalentSettings
    { 
        /// <summary>
        /// 当量模板
        /// </summary>
        public WaterEquivalentTemplate waterEquivalents = new WaterEquivalentTemplate();
        /// <summary>
        /// 用户水表的集合
        /// </summary>
        public List<string> Meters = new List<string>();
    }
 
    
 
 
}