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.RatedPower = rhs.RatedPower;
|
this.CurveQH = rhs.CurveQH;
|
this.SpeedRatio = rhs.SpeedRatio;
|
this.SpeedRatioPattern = rhs.SpeedRatioPattern;
|
this.Price = rhs.Price;
|
this.PricePattern = rhs.PricePattern;
|
this.CurveQE = rhs.CurveQE;
|
}
|
|
|
/// <summary>
|
/// 水泵状态
|
/// </summary>
|
[Category("数据")]
|
[DisplayName("水泵状态")]
|
[PropertyOrder(13)]
|
[Browsable(true)]
|
public override string LinkStatus { get; set; }
|
|
/// <summary>
|
/// 额定功率
|
/// </summary>
|
[Category("数据")]
|
[DisplayName("额定功率")]
|
[PropertyOrder(101)]
|
[Browsable(true)]
|
public double RatedPower { get; set; }
|
|
/// <summary>
|
/// 流量扬程曲线
|
/// </summary>
|
[Category("数据")]
|
[DisplayName("流量扬程曲线")]
|
[PropertyOrder(102)]
|
[IsHydroCurvePro(HydroCurve.PumpQH)]
|
[Browsable(true)]
|
public string CurveQH { get; set; }
|
|
/// <summary>
|
/// 转速比
|
/// </summary>
|
[Category("数据")]
|
[DisplayName("转速比")]
|
[PropertyOrder(103)]
|
[Browsable(true)]
|
public double? SpeedRatio { get; set; }
|
|
/// <summary>
|
/// 转速比模式
|
/// </summary>
|
[Category("数据")]
|
[DisplayName("转速比模式")]
|
[PropertyOrder(104)]
|
[Browsable(true)]
|
public string SpeedRatioPattern { get; set; }
|
|
/// <summary>
|
/// 能耗价格
|
/// </summary>
|
[Category("数据")]
|
[DisplayName("能耗价格")]
|
[PropertyOrder(105)]
|
[Browsable(true)]
|
public double? Price { get; set; }
|
|
/// <summary>
|
/// 价格模式
|
/// </summary>
|
[Category("数据")]
|
[DisplayName("价格模式")]
|
[PropertyOrder(106)]
|
[Browsable(true)]
|
public string PricePattern { get; set; }
|
|
/// <summary>
|
/// 流量效率曲线
|
/// </summary>
|
[Category("数据")]
|
[DisplayName("流量效率曲线")]
|
[PropertyOrder(107)]
|
[IsHydroCurvePro(HydroCurve.PumpQE)]
|
[Browsable(true)]
|
public string CurveQE { 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.RatedPower = hydroPumpInfo.RatedPower;
|
this.CurveQH = hydroPumpInfo.CurveQH;
|
this.SpeedRatio = hydroPumpInfo.SpeedRatio;
|
this.SpeedRatioPattern = hydroPumpInfo.SpeedRatioPattern;
|
this.Price = hydroPumpInfo.Price;
|
this.PricePattern = hydroPumpInfo.PricePattern;
|
this.CurveQE = hydroPumpInfo.CurveQE;
|
}
|
}
|
|
}
|
}
|