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);
}
///
/// 机泵标识
///
[Browsable(false)]
public int Flag { get; set; }
///
/// 水位
///
[Display(Name = "水位", Order = 0)]
public double WaterLevel { get; set; }
///
/// 进口压力
///
[Display(Name = "进口压力", Order = 1)]
public double InletPressure { get; set; }
///
/// 出口压力
///
[Display(Name = "出口压力", Order = 2)]
public double OutletPressure { get; set; }
///
/// 瞬时流量
///
[Display(Name = "瞬时流量", Order = 3)]
public double FlowRate { get; set; }
///
/// 扬程
///
[Display(Name = "扬程", Order = 4)]
public double Head { get; set; }
///
/// 瞬时功率
///
[Display(Name = "瞬时功率", Order = 5)]
public double InstantaneousPower { get; set; }
///
/// 转速
///
[Display(Name = "转速", Order = 6)]
public double Rpm { get; set; }
///
/// 频率
///
[Display(Name = "频率", Order = 7)]
public double Frequency { get; set; }
}
}