| | |
| | | /// <summary> |
| | | /// 压缩机属性视图 |
| | | /// </summary> |
| | | public class HydroCompressorPropertyViewModel : HydroPipePropertyViewModel |
| | | public class HydroCompressorPropertyViewModel : HydroLinkPropertyViewModel |
| | | { |
| | | /// <summary> |
| | | /// |
| | |
| | | /// </summary> |
| | | public HydroCompressorPropertyViewModel(Yw.Model.HydroCompressorInfo rhs) : base(rhs) |
| | | { |
| | | this.MinorLossK = rhs.MinorLossK; |
| | | this.UpdatePropStatus(nameof(this.MinorLossK), rhs, nameof(rhs.MinorLossK)); |
| | | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 损失K系数 |
| | | /// </summary> |
| | | [Category("数据")] |
| | | [DisplayName("损失K系数")] |
| | | [PropertyOrder(105)] |
| | | [Browsable(true)] |
| | | public double MinorLossK { get; set; } |
| | | |
| | | |
| | | /// <summary> |
| | | /// 更新属性 |
| | |
| | | base.UpdateProperty(rhs, allParterList); |
| | | if (rhs is Yw.Model.HydroCompressorInfo hydroCompressorInfo) |
| | | { |
| | | this.MinorLossK = hydroCompressorInfo.MinorLossK; |
| | | this.UpdatePropStatus(nameof(this.MinorLossK), hydroCompressorInfo, nameof(hydroCompressorInfo.MinorLossK)); |
| | | |
| | | } |
| | | } |
| | | |