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