| | |
| | | /// <summary> |
| | | /// 连接件属性视图 |
| | | /// </summary> |
| | | public class HydroCouplingViewModel : HydroJunctionViewModel |
| | | public class HydroCouplingViewModel : HydroJunctionViewModel, IHydroCalcuCouplingResult |
| | | { |
| | | /// <summary> |
| | | /// |
| | |
| | | public HydroCouplingViewModel(Yw.Model.HydroCouplingInfo rhs, Yw.Model.HydroModelInfo hydroInfo) : base(rhs, hydroInfo) |
| | | { |
| | | this.Material = rhs.Material; |
| | | this.UpdatePropStatus(nameof(this.Material), rhs, nameof(rhs.Material)); |
| | | this.Caliber = rhs.Caliber; |
| | | this.UpdatePropStatus(nameof(this.Caliber), rhs, nameof(rhs.Caliber)); |
| | | } |
| | | |
| | | |
| | |
| | | [DisplayUnit("mm")] |
| | | [PropertyOrder(3002)] |
| | | [Browsable(true)] |
| | | public double? Caliber { get; set; } |
| | | public double Caliber { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 局部损失 |
| | | /// </summary> |
| | | [Category("计算结果")] |
| | | [DisplayName("局部损失")] |
| | | [DisplayUnit("m")] |
| | | [Display(Name = "局部损失(m)")] |
| | | [HydroCalcuPro] |
| | | [PropertyOrder(19001)] |
| | | [ShowEditor(false)] |
| | | [Browsable(true)] |
| | | public override double? CalcuMinorLoss { get; set; } |
| | | |
| | | /// <summary> |
| | | /// |
| | |
| | | { |
| | | base.UpdateProperty(); |
| | | this.Material = this.Vmo.Material; |
| | | this.UpdatePropStatus(nameof(this.Material), this.Vmo, nameof(this.Vmo.Material)); |
| | | this.Caliber = this.Vmo.Caliber; |
| | | this.UpdatePropStatus(nameof(this.Caliber), this.Vmo, nameof(this.Vmo.Caliber)); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | { |
| | | base.UpdateVmoProperty(); |
| | | this.Vmo.Material = this.Material; |
| | | this.Vmo.UpdatePropStatus(nameof(this.Vmo.Material), this, nameof(this.Material)); |
| | | this.Vmo.Caliber = this.Caliber; |
| | | this.Vmo.UpdatePropStatus(nameof(this.Vmo.Caliber), this, nameof(this.Caliber)); |
| | | } |
| | | |
| | | |