duheng
2024-11-19 74706b439194deed9c5fde2d5ed02226fc33fd69
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
using System.ComponentModel;
 
namespace HStation.WinFrmUI.Assets
{
    public class EquipmentViewModel
    {
        public EquipmentViewModel()
        {
        }
 
        public EquipmentViewModel(Vmo.AssetsPackagePumpMappingVmo rhs, Vmo.AssetsPumpMainVmo pump, long kitID)
        {
            this.ID = rhs.ID;
            this.KitID = kitID;
            this.PumpID = rhs.PumpMainID;
            this.Name = rhs.PumpOtherName;
            this.OtherName = pump.Name;
            this.RatedFlow = pump.RatedFlow;
            this.RatedEfficiency = pump.RatedEfficiency;
            this.RatedHead = pump.RatedHead;
            this.RatedPower = pump.RatedPower;
            this.Erosion = pump.Erosion;
            this.RatedSpeed = pump.RatedSpeed;
        }
 
        public void Reset(Vmo.AssetsPackagePumpMappingVmo rhs, Vmo.AssetsPumpMainVmo pump, long kitID)
 
        {
            this.ID = rhs.ID;
            this.KitID = kitID;
            this.PumpID = rhs.PumpMainID;
            this.Name = rhs.PumpOtherName;
            this.OtherName = pump.Name;
            this.RatedFlow = pump.RatedFlow;
            this.RatedEfficiency = pump.RatedEfficiency;
            this.RatedHead = pump.RatedHead;
            this.RatedPower = pump.RatedPower;
            this.Erosion = pump.Erosion;
            this.RatedSpeed = pump.RatedSpeed;
        }
 
        /// <summary>
        /// ID
        /// </summary>
        public long ID { get; set; }
 
        /// <summary>
        /// 泵型号ID
        /// </summary>
        public long PumpID { get; set; }
 
        /// <summary>
        /// 成套设备ID
        /// </summary>
        public long KitID { get; set; }
 
        /// <summary>
        /// 名称
        /// </summary>
        [DisplayName("名称")]
        [Browsable(true)]
        public string Name { get; set; }
 
        /// <summary>
        /// 设备型号
        /// </summary>
        [DisplayName(" 设备型号")]
        [Browsable(true)]
        public string OtherName { get; set; }
 
        /// <summary>
        /// 额定转速
        /// </summary>
        [DisplayName(" 额定转速")]
        [Browsable(true)]
        public double RatedSpeed { get; set; }
 
        /// <summary>
        /// 额定流量
        /// </summary>
        [DisplayName(" 额定流量")]
        [Browsable(true)]
        public double RatedFlow { get; set; }
 
        /// <summary>
        /// 额定扬程
        /// </summary>
        [DisplayName(" 额定扬程")]
        [Browsable(true)]
        public double RatedHead { get; set; }
 
        /// <summary>
        /// 额定效率
        /// </summary>
        [DisplayName(" 额定效率")]
        [Browsable(true)]
        public double? RatedEfficiency { get; set; }
 
        /// <summary>
        /// 额定功率
        /// </summary>
        [DisplayName(" 额定功率")]
        [Browsable(true)]
        public double RatedPower { get; set; }
 
        /// <summary>
        /// 气蚀
        /// </summary>
        [DisplayName(" 气蚀")]
        [Browsable(true)]
        public double? Erosion { get; set; }
 
        /// <summary>
        /// 设备数量
        /// </summary>
        [DisplayName(" 设备数量")]
        [Browsable(true)]
        public int EquipmentCount { get; set; }
    }
}