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; }
|
|
}
|
}
|