Shuxia Ning
2024-11-06 adf8dc1c7cae1b12f486dcdb3d7daf4a5a59ec52
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
using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
 
namespace IStation.Model
{
    public class PumpSignalRecord
    {
        public PumpSignalRecord() { }
        public PumpSignalRecord(Model.PumpSignalRecord rhs)
        {
            this.Flag = rhs.Flag;
            this.Rpm = rhs.Rpm;
            this.WaterLevel = rhs.WaterLevel;
            this.Frequency = rhs.Frequency;
            this.FlowRate = rhs.FlowRate;
            this.InletPressure = rhs.InletPressure;
            this.OutletPressure = rhs.OutletPressure;
            this.Head = rhs.Head;
            this.InstantaneousPower = rhs.InstantaneousPower;
        }
 
        public void Round()
        {
            this.Rpm = Math.Round(this.Rpm);
            this.WaterLevel = Math.Round(this.WaterLevel, 3);
            this.Frequency = Math.Round(this.Frequency, 2);
            this.FlowRate = Math.Round(this.FlowRate, 2);
            this.InletPressure = Math.Round(this.InletPressure, 5);
            this.OutletPressure = Math.Round(this.OutletPressure, 5);
            this.Head = Math.Round(this.Head, 2);
            this.InstantaneousPower = Math.Round(this.InstantaneousPower, 2);
        }
 
        /// <summary>
        /// 机泵标识
        /// </summary>
        [Browsable(false)]
        public int Flag { get; set; }
 
        /// <summary>
        /// 水位
        /// </summary>
        [Display(Name = "水位", Order = 0)]
        public double WaterLevel { get; set; }
 
        /// <summary>
        /// 进口压力
        /// </summary>
        [Display(Name = "进口压力", Order = 1)]
        public double InletPressure { get; set; }
 
        /// <summary>
        /// 出口压力
        /// </summary>
        [Display(Name = "出口压力", Order = 2)]
        public double OutletPressure { get; set; }
 
        /// <summary>
        /// 瞬时流量
        /// </summary>
        [Display(Name = "瞬时流量", Order = 3)]
        public double FlowRate { get; set; }
 
        /// <summary>
        /// 扬程
        /// </summary>
        [Display(Name = "扬程", Order = 4)]
        public double Head { get; set; }
 
        /// <summary>
        /// 瞬时功率
        /// </summary> 
        [Display(Name = "瞬时功率", Order = 5)]
        public double InstantaneousPower { get; set; }
 
        /// <summary>
        /// 转速
        /// </summary>
        [Display(Name = "转速", Order = 6)]
        public double Rpm { get; set; }
 
        /// <summary>
        /// 频率
        /// </summary>
        [Display(Name = "频率", Order = 7)]
        public double Frequency { get; set; }
 
    }
}