namespace Yw.WinFrmUI
|
{
|
/// <summary>
|
/// 连接节点
|
/// </summary>
|
public class HydroJunctionViewModel : HydroNodeViewModel
|
{
|
/// <summary>
|
///
|
/// </summary>
|
public HydroJunctionViewModel() { }
|
|
/// <summary>
|
///
|
/// </summary>
|
public HydroJunctionViewModel(Yw.Model.HydroJunctionInfo rhs) : base(rhs)
|
{
|
this.Elev = Math.Round(rhs.Elev, 4);
|
this.MinorLoss = rhs.MinorLoss;
|
this.Demand = rhs.Demand;
|
this.DemandPattern = rhs.DemandPattern;
|
|
this.Vmo = rhs;
|
}
|
|
/// <summary>
|
///
|
/// </summary>
|
public HydroJunctionViewModel(Yw.Model.HydroJunctionInfo rhs, Yw.WinFrmUI.HydroCalcuNodeResult calcuResult) : base(rhs, calcuResult)
|
{
|
this.Elev = Math.Round(rhs.Elev, 4);
|
this.MinorLoss = rhs.MinorLoss;
|
this.Demand = rhs.Demand;
|
this.DemandPattern = rhs.DemandPattern;
|
|
this.Vmo = rhs;
|
}
|
|
|
/// <summary>
|
/// 标高(m)
|
/// </summary>
|
[DisplayName("标高(m)")]
|
public double Elev { get; set; }
|
|
/// <summary>
|
/// 局阻系数
|
/// </summary>
|
[DisplayName("局阻系数")]
|
public double? MinorLoss { get; set; }
|
|
/// <summary>
|
/// 需水量(m³/h)
|
/// </summary>
|
[DisplayName("需水量(m³/h)")]
|
public double? Demand { get; set; }
|
|
/// <summary>
|
/// 需水模式
|
/// </summary>
|
[DisplayName("需水模式")]
|
public string DemandPattern { get; set; }
|
|
/// <summary>
|
/// Vmo
|
/// </summary>
|
[Browsable(false)]
|
public new Yw.Model.HydroJunctionInfo Vmo { get; set; }
|
|
}
|
}
|