lixiaojun
2024-10-24 f68fdc1907fe1e80b92540275198dfbfe6f80d6f
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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
namespace Yw.WinFrmUI
{
    /// <summary>
    /// 
    /// </summary>
    public class HydroPumpViewModel : HydroLinkViewModel
    {
        /// <summary>
        /// 
        /// </summary>
        public HydroPumpViewModel() { }
 
        /// <summary>
        /// 
        /// </summary>
        public HydroPumpViewModel(Yw.Model.HydroPumpInfo rhs) : base(rhs)
        {
            this.RatedP = rhs.RatedP;
            this.RatedQ = rhs.RatedQ;
            this.RatedH = rhs.RatedH;
            this.RatedN = rhs.RatedN;
            this.RatedHz = rhs.RatedHz;
            this.SpeedRatio = rhs.SpeedRatio;
            this.SpeedRatioPattern = rhs.SpeedRatioPattern;
            this.HasCurve = !string.IsNullOrEmpty(rhs.CurveQH);
            this.CurveQH = rhs.CurveQH;
            this.CurveQP = rhs.CurveQP;
            this.CurveQE = rhs.CurveQE;
            this.Price = rhs.Price;
            this.PricePattern = rhs.PricePattern;
 
            this.Vmo = rhs;
        }
 
        /// <summary>
        /// 
        /// </summary>
        public HydroPumpViewModel(Yw.Model.HydroPumpInfo rhs, Yw.WinFrmUI.HydroCalcuLinkResult calcuResult) : base(rhs, calcuResult)
        {
            this.RatedP = rhs.RatedP;
            this.RatedQ = rhs.RatedQ;
            this.RatedH = rhs.RatedH;
            this.RatedN = rhs.RatedN;
            this.RatedHz = rhs.RatedHz;
            this.SpeedRatio = rhs.SpeedRatio;
            this.SpeedRatioPattern = rhs.SpeedRatioPattern;
            this.HasCurve = !string.IsNullOrEmpty(rhs.CurveQH);
            this.CurveQH = rhs.CurveQH;
            this.CurveQP = rhs.CurveQP;
            this.CurveQE = rhs.CurveQE;
            this.Price = rhs.Price;
            this.PricePattern = rhs.PricePattern;
 
            this.Vmo = rhs;
        }
 
        /// <summary>
        /// 水泵状态
        /// </summary>
        [DisplayName("水泵状态")]
        public override string LinkStatus { get; set; }
 
        /// <summary>
        /// 额定流量(m³/h)
        /// </summary>
        [DisplayName("额定流量(m³/h)")]
        public double? RatedQ { get; set; }
 
        /// <summary>
        /// 额定扬程(m)
        /// </summary>
        [DisplayName("额定扬程(m)")]
        public double? RatedH { get; set; }
 
        /// <summary>
        /// 额定功率(kW)
        /// </summary>
        [DisplayName("额定功率(kW)")]
        public double RatedP { get; set; }
 
        /// <summary>
        /// 额定转速(r/min)
        /// </summary>
        [DisplayName("额定转速(r/min)")]
        public double? RatedN { get; set; }
 
        /// <summary>
        /// 额定频率(hz)
        /// </summary>
        [DisplayName("额定频率(hz)")]
        public double RatedHz { get; set; }
 
        /// <summary>
        /// 设定频率(hz)
        /// </summary>
        [DisplayName("设定频率(hz)")]
        public double CurrentHz
        {
            get
            {
                var value = this.SpeedRatio * this.RatedHz;
                return Math.Round(value, 1);
            }
            set
            {
                if (this.RatedHz <= 0)
                {
                    return;
                }
                this.SpeedRatio = value / this.RatedHz;
            }
        }
 
        /// <summary>
        /// 转速比
        /// </summary>
        [DisplayName("转速比")]
        public double SpeedRatio { get; set; }
 
        /// <summary>
        /// 转速比模式
        /// </summary>
        [DisplayName("转速比模式")]
        public string SpeedRatioPattern { get; set; }
 
        /// <summary>
        /// 性能曲线
        /// </summary>
        [DisplayName("性能曲线")]
        public bool HasCurve { get; set; }
 
        /// <summary>
        /// 流量扬程曲线
        /// </summary>
        [DisplayName("流量扬程曲线")]
        public string CurveQH { get; set; }
 
        /// <summary>
        /// 流量功率曲线
        /// </summary>
        [DisplayName("流量功率曲线")]
        public string CurveQP { get; set; }
 
        /// <summary>
        /// 流量效率曲线
        /// </summary>
        [DisplayName("流量效率曲线")]
        public string CurveQE { get; set; }
 
        /// <summary>
        /// 能耗价格
        /// </summary>
        [DisplayName("能耗价格")]
        public double? Price { get; set; }
 
        /// <summary>
        /// 价格模式
        /// </summary>
        [DisplayName("价格模式")]
        public string PricePattern { get; set; }
 
 
        /// <summary>
        /// 
        /// </summary>
        public new Yw.Model.HydroPumpInfo Vmo { get; set; }
 
    }
}