namespace Yw.WinFrmUI { /// /// /// public class HydroThreelinkViewModel : HydroCouplingViewModel { /// /// /// public HydroThreelinkViewModel() : base() { } /// /// /// public HydroThreelinkViewModel(Yw.Model.HydroThreelinkInfo rhs) : base(rhs) { this.RunningThroughLoss = rhs.RunningThroughLoss; this.BranchThroughLoss = rhs.BranchThroughLoss; this.Vmo = rhs; } /// /// /// public HydroThreelinkViewModel(Yw.Model.HydroThreelinkInfo rhs, Yw.WinFrmUI.HydroCalcuNodeResult calcuResult) : base(rhs, calcuResult) { this.RunningThroughLoss = rhs.RunningThroughLoss; this.BranchThroughLoss = rhs.BranchThroughLoss; this.Vmo = rhs; } /// /// 运行通过 /// [DisplayName("运行通过")] public double? RunningThroughLoss { get; set; } /// /// 支管通过 /// [DisplayName("支管通过")] public double? BranchThroughLoss { get; set; } /// /// /// public new Yw.Model.HydroThreelinkInfo Vmo { get; set; } /// /// /// public override void Update() { base.Update(); if (this.Vmo == null) { return; } this.RunningThroughLoss = this.Vmo.RunningThroughLoss; this.BranchThroughLoss = this.Vmo.BranchThroughLoss; } } }