namespace Yw.WinFrmUI
{
///
///
///
public class HydroPipeViewModel : HydroLinkViewModel
{
///
///
///
public HydroPipeViewModel() { }
///
///
///
public HydroPipeViewModel(Yw.Model.HydroPipeInfo rhs) : base(rhs)
{
this.Diameter = rhs.Diameter;
this.Length = rhs.Length;
this.Material = rhs.Material;
this.Roughness = rhs.Roughness;
this.MinorLoss = rhs.MinorLoss;
this.Vmo = rhs;
}
///
///
///
public HydroPipeViewModel(Yw.Model.HydroPipeInfo rhs, Yw.WinFrmUI.HydroCalcuLinkResult calcuResult) : base(rhs, calcuResult)
{
this.Diameter = rhs.Diameter;
this.Length = rhs.Length;
this.Material = rhs.Material;
this.Roughness = rhs.Roughness;
this.MinorLoss = rhs.MinorLoss;
this.Vmo = rhs;
}
///
/// 管道状态
///
[DisplayName("管道状态")]
public override string LinkStatus { get; set; }
///
/// 直径(mm)
///
[DisplayName("直径(mm)")]
public double Diameter { get; set; }
///
/// 长度(m)
///
[DisplayName("长度(m)")]
public double Length { get; set; }
///
/// 材质
///
[DisplayName("材质")]
public string Material { get; set; }
///
/// 粗糙系数
///
[DisplayName("粗糙系数")]
public double Roughness { get; set; }
///
/// 局阻系数
///
[DisplayName("局阻系数")]
public double MinorLoss { get; set; }
///
///
///
public new Yw.Model.HydroPipeInfo Vmo { get; set; }
}
}