lixiaojun
2024-09-02 f057f1388eda8aeaea7f3e7a0451b57f32de324c
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
using Yw.Model;
 
namespace Yw.WinFrmUI
{
    /// <summary>
    /// 水泵属性视图
    /// </summary>
    public class HydroPumpPropertyViewModel : HydroLinkPropertyViewModel
    {
        /// <summary>
        /// 
        /// </summary>
        public HydroPumpPropertyViewModel() { }
 
        /// <summary>
        /// 
        /// </summary>
        public HydroPumpPropertyViewModel(Yw.Model.HydroPumpInfo rhs) : base(rhs)
        {
            this.RatedPower = rhs.RatedPower;
            this.CurveQH = rhs.CurveQH;
            this.SpeedRatio = rhs.SpeedRatio;
            this.SpeedRatioPattern = rhs.SpeedRatioPattern;
            this.Price = rhs.Price;
            this.PricePattern = rhs.PricePattern;
            this.CurveQE = rhs.CurveQE;
        }
 
 
        /// <summary>
        /// 水泵状态
        /// </summary>
        [Category("数据")]
        [DisplayName("水泵状态")]
        [PropertyOrder(13)]
        [Browsable(true)]
        public override string LinkStatus { get; set; }
 
        /// <summary>
        /// 额定功率
        /// </summary>
        [Category("数据")]
        [DisplayName("额定功率")]
        [PropertyOrder(101)]
        [Browsable(true)]
        public double RatedPower { get; set; }
 
        /// <summary>
        /// 流量扬程曲线
        /// </summary>
        [Category("数据")]
        [DisplayName("流量扬程曲线")]
        [PropertyOrder(102)]
        [IsHydroCurvePro(HydroCurve.PumpQH)]
        [Browsable(true)]
        public string CurveQH { get; set; }
 
        /// <summary>
        /// 转速比
        /// </summary>
        [Category("数据")]
        [DisplayName("转速比")]
        [PropertyOrder(103)]
        [Browsable(true)]
        public double? SpeedRatio { get; set; }
 
        /// <summary>
        /// 转速比模式
        /// </summary>
        [Category("数据")]
        [DisplayName("转速比模式")]
        [PropertyOrder(104)]
        [Browsable(true)]
        public string SpeedRatioPattern { get; set; }
 
        /// <summary>
        /// 能耗价格
        /// </summary>
        [Category("数据")]
        [DisplayName("能耗价格")]
        [PropertyOrder(105)]
        [Browsable(true)]
        public double? Price { get; set; }
 
        /// <summary>
        /// 价格模式
        /// </summary>
        [Category("数据")]
        [DisplayName("价格模式")]
        [PropertyOrder(106)]
        [Browsable(true)]
        public string PricePattern { get; set; }
 
        /// <summary>
        /// 流量效率曲线
        /// </summary>
        [Category("数据")]
        [DisplayName("流量效率曲线")]
        [PropertyOrder(107)]
        [IsHydroCurvePro(HydroCurve.PumpQE)]
        [Browsable(true)]
        public string CurveQE { get; set; }
 
        /// <summary>
        /// 更新属性
        /// </summary>
        /// <param name="rhs"></param>
        /// <param name="allParterList"></param>
        public override void UpdateProperty(HydroParterInfo rhs, List<HydroParterInfo> allParterList)
        {
            base.UpdateProperty(rhs, allParterList);
            if (rhs is Yw.Model.HydroPumpInfo hydroPumpInfo)
            {
                this.RatedPower = hydroPumpInfo.RatedPower;
                this.CurveQH = hydroPumpInfo.CurveQH;
                this.SpeedRatio = hydroPumpInfo.SpeedRatio;
                this.SpeedRatioPattern = hydroPumpInfo.SpeedRatioPattern;
                this.Price = hydroPumpInfo.Price;
                this.PricePattern = hydroPumpInfo.PricePattern;
                this.CurveQE = hydroPumpInfo.CurveQE;
            }
        }
 
    }
}