namespace Yw.WinFrmUI
{
///
/// 连接节点
///
public class HydroJunctionViewModel : HydroNodeViewModel
{
///
///
///
public HydroJunctionViewModel() { }
///
///
///
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;
}
///
///
///
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;
}
///
/// 标高(m)
///
[DisplayName("标高(m)")]
public double Elev { get; set; }
///
/// 局阻系数
///
[DisplayName("局阻系数")]
public double? MinorLoss { get; set; }
///
/// 需水量(m³/h)
///
[DisplayName("需水量(m³/h)")]
public double? Demand { get; set; }
///
/// 需水模式
///
[DisplayName("需水模式")]
public string DemandPattern { get; set; }
///
/// Vmo
///
[Browsable(false)]
public new Yw.Model.HydroJunctionInfo Vmo { get; set; }
}
}