namespace Yw.WinFrmUI.Phart { /// /// /// public class PumpCurveVariableSpeedViewModel { public PumpCurveVariableSpeedViewModel() { } public PumpCurveVariableSpeedViewModel(PumpCurveVariableSpeedViewModel rhs) { this.Id = rhs.Id; this.ColorQH = rhs.ColorQH; this.ColorQE = rhs.ColorQE; this.ColorQP = rhs.ColorQP; this.CurveQHName = rhs.CurveQHName; this.CurveQPName = rhs.CurveQPName; this.CurveQH = rhs.CurveQH; this.CurveQE = rhs.CurveQE; this.CurveQP = rhs.CurveQP; this.Q = rhs.Q; this.H = rhs.H; this.E = rhs.E; this.P = rhs.P; this.N = rhs.N; this.Hz = rhs.Hz; this.ExtendQ = rhs.ExtendQ; } /// /// 标识 /// public string Id { get; set; } /// /// 扬程颜色 /// public Color? ColorQH { get; set; } /// /// 效率颜色 /// public Color? ColorQE { get; set; } /// /// 功率颜色 /// public Color? ColorQP { get; set; } /// /// 流量扬程线名称 /// public string CurveQHName { get; set; } /// /// 流量功率线名称 /// public string CurveQPName { get; set; } /// /// 流量扬程线 /// public List CurveQH { get; set; } /// /// 流量效率线 /// public List CurveQE { get; set; } /// /// 流量功率线 /// public List CurveQP { get; set; } /// /// 流量 /// public double Q { get; set; } /// /// 扬程 /// public double H { get; set; } /// /// 功率 /// public double? P { get; set; } /// /// 效率 /// public double? E { get; set; } /// /// 转速 /// public double N { get; set; } /// /// 频率 /// public double Hz { get; set; } /// /// 延长流量 /// public double? ExtendQ { get; set; } public bool IsValid() { if (this.CurveQH == null) { return false; } return true; } } }