using Yw.Model;
|
|
namespace Yw.WinFrmUI
|
{
|
/// <summary>
|
/// 水泵属性视图
|
/// </summary>
|
public class HydroPumpPropertyViewModel : HydroLinkPropertyViewModel
|
{
|
/// <summary>
|
///
|
/// </summary>
|
public HydroPumpPropertyViewModel() { }
|
|
/// <summary>
|
///
|
/// </summary>
|
public HydroPumpPropertyViewModel(Yw.Model.HydroPumpInfo rhs) : base(rhs)
|
{
|
this.RatedP = rhs.RatedP;
|
this.RatedQ = rhs.RatedQ;
|
this.RatedH = rhs.RatedH;
|
this.RatedN = rhs.RatedN;
|
this.CurveQH = rhs.CurveQH;
|
this.CurveQP = rhs.CurveQP;
|
this.CurveQE = rhs.CurveQE;
|
this.SpeedRatio = rhs.SpeedRatio;
|
this.SpeedRatioPattern = rhs.SpeedRatioPattern;
|
this.Price = rhs.Price;
|
this.PricePattern = rhs.PricePattern;
|
}
|
|
|
/// <summary>
|
/// 水泵状态
|
/// </summary>
|
[Category("数据")]
|
[DisplayName("水泵状态")]
|
[PropertyOrder(13)]
|
[Browsable(true)]
|
[TypeConverter(typeof(HydroPumpStatusConverter))]
|
public override string LinkStatus { get; set; }
|
|
/// <summary>
|
/// 额定功率
|
/// </summary>
|
[Category("数据")]
|
[DisplayName("额定功率")]
|
[PropertyOrder(101)]
|
[Browsable(true)]
|
[DisplayUnit("kW")]
|
public double RatedP { get; set; }
|
|
/// <summary>
|
/// 额定流量
|
/// </summary>
|
[Category("数据")]
|
[DisplayName("额定流量")]
|
[PropertyOrder(102)]
|
[Browsable(true)]
|
[DisplayUnit("m³/h")]
|
public double? RatedQ { get; set; }
|
|
/// <summary>
|
/// 额定扬程
|
/// </summary>
|
[Category("数据")]
|
[DisplayName("额定扬程")]
|
[PropertyOrder(103)]
|
[Browsable(true)]
|
[DisplayUnit("m")]
|
public double? RatedH { get; set; }
|
|
/// <summary>
|
/// 额定转速
|
/// </summary>
|
[Category("数据")]
|
[DisplayName("额定转速")]
|
[PropertyOrder(104)]
|
[Browsable(true)]
|
[DisplayUnit("r/min")]
|
public double? RatedN { get; set; }
|
|
/// <summary>
|
/// 性能曲线
|
/// </summary>
|
[Category("数据")]
|
[DisplayName("性能曲线")]
|
[PropertyOrder(106)]
|
[IsHydroCurvePro(HydroCurve.Pump)]
|
[Browsable(true)]
|
public string Curve { get; set; }
|
|
|
/// <summary>
|
/// 流量扬程曲线
|
/// </summary>
|
[Category("数据")]
|
[DisplayName("流量扬程曲线")]
|
[PropertyOrder(106)]
|
[IsHydroCurvePro(HydroCurve.PumpQH)]
|
[Browsable(true)]
|
public string CurveQH { get; set; }
|
|
/// <summary>
|
/// 流量功率曲线
|
/// </summary>
|
[Category("数据")]
|
[DisplayName("流量功率曲线")]
|
[PropertyOrder(107)]
|
[IsHydroCurvePro(HydroCurve.PumpQP)]
|
[Browsable(true)]
|
public string CurveQP { get; set; }
|
|
/// <summary>
|
/// 流量效率曲线
|
/// </summary>
|
[Category("数据")]
|
[DisplayName("流量效率曲线")]
|
[PropertyOrder(108)]
|
[IsHydroCurvePro(HydroCurve.PumpQE)]
|
[Browsable(true)]
|
public string CurveQE { get; set; }
|
|
/// <summary>
|
/// 转速比
|
/// </summary>
|
[Category("数据")]
|
[DisplayName("转速比")]
|
[PropertyOrder(109)]
|
[Browsable(true)]
|
public double? SpeedRatio { get; set; }
|
|
/// <summary>
|
/// 转速比模式
|
/// </summary>
|
[Category("数据")]
|
[DisplayName("转速比模式")]
|
[PropertyOrder(110)]
|
[Browsable(true)]
|
public string SpeedRatioPattern { get; set; }
|
|
/// <summary>
|
/// 能耗价格
|
/// </summary>
|
[Category("数据")]
|
[DisplayName("能耗价格")]
|
[PropertyOrder(111)]
|
[Browsable(true)]
|
public double? Price { get; set; }
|
|
/// <summary>
|
/// 价格模式
|
/// </summary>
|
[Category("数据")]
|
[DisplayName("价格模式")]
|
[PropertyOrder(112)]
|
[Browsable(true)]
|
public string PricePattern { get; set; }
|
|
|
|
/// <summary>
|
/// 更新属性
|
/// </summary>
|
/// <param name="rhs"></param>
|
/// <param name="allParterList"></param>
|
public override void UpdateProperty(HydroParterInfo rhs, List<HydroParterInfo> allParterList)
|
{
|
base.UpdateProperty(rhs, allParterList);
|
if (rhs is Yw.Model.HydroPumpInfo hydroPumpInfo)
|
{
|
this.RatedP = hydroPumpInfo.RatedP;
|
this.RatedQ = hydroPumpInfo.RatedQ;
|
this.RatedH = hydroPumpInfo.RatedH;
|
this.RatedN = hydroPumpInfo.RatedN;
|
this.CurveQH = hydroPumpInfo.CurveQH;
|
this.CurveQP = hydroPumpInfo.CurveQP;
|
this.CurveQE = hydroPumpInfo.CurveQE;
|
this.SpeedRatio = hydroPumpInfo.SpeedRatio;
|
this.SpeedRatioPattern = hydroPumpInfo.SpeedRatioPattern;
|
this.Price = hydroPumpInfo.Price;
|
this.PricePattern = hydroPumpInfo.PricePattern;
|
}
|
}
|
|
}
|
}
|