using System.ComponentModel.DataAnnotations;
namespace HStation.WinFrmUI.PhartRelation
{
///
///
///
public class XhsSinglePumpViewModel
{
public XhsSinglePumpViewModel() { }
public XhsSinglePumpViewModel(XhsSinglePumpViewModel rhs)
{
this.ID = rhs.ID;
this.Name = rhs.Name;
this.Code = rhs.Code;
this.IsBp = rhs.IsBp;
this.RunStatus = rhs.RunStatus;
this.RatedHz = rhs.RatedHz;
this.CurrentHz = rhs.CurrentHz;
this.RatedSpeed = rhs.RatedSpeed;
this.CurrentSpeed = rhs.CurrentSpeed;
this.CurveQH = rhs.CurveQH?.Select(x => new XhsSplinePointViewModel(x)).ToList();
this.CurveQE = rhs.CurveQE?.Select(x => new XhsSplinePointViewModel(x)).ToList();
this.CurveQP = rhs.CurveQP?.Select(x => new XhsSplinePointViewModel(x)).ToList();
this.CalcuQ = rhs.CalcuQ;
this.CalcuH = rhs.CalcuH;
}
///
/// id
///
public long ID { get; set; }
///
/// 名称
///
[Display(Name = "名称")]
public string Name { get; set; }
///
/// 编码
///
[Display(Name = "编码")]
public string Code { get; set; }
///
/// 变频
///
[Display(Name = "变频")]
public bool IsBp { get; set; }
///
/// 运行状态
///
[Display(Name = "运行状态")]
public bool RunStatus { get; set; }
///
/// 额定频率
///
[Display(Name = "额定频率")]
public double RatedHz { get; set; }
///
/// 设定频率
///
[Display(Name = "设定频率")]
public double CurrentHz { get; set; }
///
/// 额定转速
///
[Display(Name = "额定转速")]
public double RatedSpeed { get; set; }
///
/// 设定转速
///
[Display(Name = "设定转速")]
public double CurrentSpeed { get; set; }
///
/// 流量扬程线
///
[Display(Name = "流量扬程线")]
public List CurveQH { get; set; }
///
/// 流量功率线
///
[Display(Name = "流量功率线")]
public List CurveQP { get; set; }
///
/// 流量效率线
///
[Display(Name = "流量效率线")]
public List CurveQE { get; set; }
///
/// 计算流量
///
[Display(Name = "计算流量")]
public double? CalcuQ { get; set; }
///
/// 计算扬程
///
[Display(Name = "计算扬程")]
public double? CalcuH { get; set; }
}
}