| | |
| | | public HydroPumpViewModel(Yw.Model.HydroPumpInfo rhs, Yw.Model.HydroModelInfo hydroInfo) : base(rhs, hydroInfo) |
| | | { |
| | | this.RatedP = rhs.RatedP; |
| | | this.UpdatePropStatus(nameof(this.RatedP), rhs, nameof(rhs.RatedP)); |
| | | this.RatedQ = rhs.RatedQ; |
| | | this.UpdatePropStatus(nameof(this.RatedQ), rhs, nameof(rhs.RatedQ)); |
| | | this.RatedH = rhs.RatedH; |
| | | this.UpdatePropStatus(nameof(this.RatedH), rhs, nameof(rhs.RatedH)); |
| | | this.RatedN = rhs.RatedN; |
| | | this.UpdatePropStatus(nameof(this.RatedN), rhs, nameof(rhs.RatedN)); |
| | | this.RatedHz = rhs.RatedHz; |
| | | this.UpdatePropStatus(nameof(this.RatedHz), rhs, nameof(rhs.RatedHz)); |
| | | this.InletDiameter = rhs.InletDiameter; |
| | | this.UpdatePropStatus(nameof(this.InletDiameter), rhs, nameof(rhs.InletDiameter)); |
| | | this.OutletDiameter = rhs.OutletDiameter; |
| | | this.UpdatePropStatus(nameof(this.OutletDiameter), rhs, nameof(rhs.OutletDiameter)); |
| | | this.SpeedRatio = rhs.SpeedRatio; |
| | | this.UpdatePropStatus(nameof(this.SpeedRatio), rhs, nameof(rhs.SpeedRatio)); |
| | | this.SpeedRatioPattern = rhs.SpeedRatioPattern; |
| | | this.UpdatePropStatus(nameof(this.SpeedRatioPattern), rhs, nameof(rhs.SpeedRatioPattern)); |
| | | this.CurveQH = rhs.CurveQH; |
| | | this.UpdatePropStatus(nameof(this.CurveQH), rhs, nameof(rhs.CurveQH)); |
| | | this.CurveQP = rhs.CurveQP; |
| | | this.UpdatePropStatus(nameof(this.CurveQP), rhs, nameof(rhs.CurveQP)); |
| | | this.CurveQE = rhs.CurveQE; |
| | | this.UpdatePropStatus(nameof(this.CurveQE), rhs, nameof(rhs.CurveQE)); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | [DisplayName("额定流量")] |
| | | [PropertyOrder(2001)] |
| | | [Browsable(true)] |
| | | public double? RatedQ { get; set; } |
| | | public double RatedQ { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 额定扬程 |
| | |
| | | [DisplayUnit("m")] |
| | | [PropertyOrder(2002)] |
| | | [Browsable(true)] |
| | | public double? RatedH { get; set; } |
| | | public double RatedH { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 额定功率 |
| | |
| | | [DisplayUnit("r/min")] |
| | | [PropertyOrder(2004)] |
| | | [Browsable(true)] |
| | | public double? RatedN { get; set; } |
| | | public double RatedN { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 额定频率 |
| | |
| | | { |
| | | base.UpdateProperty(); |
| | | this.RatedP = this.Vmo.RatedP; |
| | | this.UpdatePropStatus(nameof(this.RatedP), this.Vmo, nameof(this.Vmo.RatedP)); |
| | | this.RatedQ = this.Vmo.RatedQ; |
| | | this.UpdatePropStatus(nameof(this.RatedQ), this.Vmo, nameof(this.Vmo.RatedQ)); |
| | | this.RatedH = this.Vmo.RatedH; |
| | | this.UpdatePropStatus(nameof(this.RatedH), this.Vmo, nameof(this.Vmo.RatedH)); |
| | | this.RatedN = this.Vmo.RatedN; |
| | | this.UpdatePropStatus(nameof(this.RatedN), this.Vmo, nameof(this.Vmo.RatedN)); |
| | | this.RatedHz = this.Vmo.RatedHz; |
| | | this.UpdatePropStatus(nameof(this.RatedHz), this.Vmo, nameof(this.Vmo.RatedHz)); |
| | | this.SpeedRatio = this.Vmo.SpeedRatio; |
| | | this.UpdatePropStatus(nameof(this.SpeedRatio), this.Vmo, nameof(this.Vmo.SpeedRatio)); |
| | | this.SpeedRatioPattern = this.Vmo.SpeedRatioPattern; |
| | | this.UpdatePropStatus(nameof(this.SpeedRatioPattern), this.Vmo, nameof(this.Vmo.SpeedRatioPattern)); |
| | | this.CurveQH = this.Vmo.CurveQH; |
| | | this.UpdatePropStatus(nameof(this.CurveQH), this.Vmo, nameof(this.Vmo.CurveQH)); |
| | | this.CurveQP = this.Vmo.CurveQP; |
| | | this.UpdatePropStatus(nameof(this.CurveQP), this.Vmo, nameof(this.Vmo.CurveQP)); |
| | | this.CurveQE = this.Vmo.CurveQE; |
| | | this.UpdatePropStatus(nameof(this.CurveQE), this.Vmo, nameof(this.Vmo.CurveQE)); |
| | | } |
| | | |
| | | public override void UpdateVmoProperty() |
| | | { |
| | | base.UpdateVmoProperty(); |
| | | this.Vmo.RatedQ = this.RatedQ; |
| | | this.Vmo.UpdatePropStatus(nameof(this.Vmo.RatedQ), this, nameof(this.RatedQ)); |
| | | this.Vmo.RatedH = this.RatedH; |
| | | this.Vmo.UpdatePropStatus(nameof(this.Vmo.RatedH), this, nameof(this.RatedH)); |
| | | this.Vmo.RatedP = this.RatedP; |
| | | this.Vmo.UpdatePropStatus(nameof(this.Vmo.RatedP), this, nameof(this.RatedP)); |
| | | this.Vmo.RatedN = this.RatedN; |
| | | this.Vmo.UpdatePropStatus(nameof(this.Vmo.RatedN), this, nameof(this.RatedN)); |
| | | this.Vmo.RatedHz = this.RatedHz; |
| | | this.Vmo.UpdatePropStatus(nameof(this.Vmo.RatedHz), this, nameof(this.RatedHz)); |
| | | this.Vmo.SpeedRatio = this.SpeedRatio; |
| | | this.Vmo.UpdatePropStatus(nameof(this.Vmo.SpeedRatio), this, nameof(this.SpeedRatio)); |
| | | this.Vmo.SpeedRatioPattern = this.SpeedRatioPattern; |
| | | this.Vmo.UpdatePropStatus(nameof(this.Vmo.SpeedRatioPattern), this, nameof(this.SpeedRatioPattern)); |
| | | this.Vmo.CurveQH = this.CurveQH; |
| | | this.Vmo.UpdatePropStatus(nameof(this.Vmo.CurveQH), this, nameof(this.CurveQH)); |
| | | this.Vmo.CurveQP = this.CurveQP; |
| | | this.Vmo.UpdatePropStatus(nameof(this.Vmo.CurveQP), this, nameof(this.CurveQP)); |
| | | this.Vmo.CurveQE = this.CurveQE; |
| | | this.Vmo.UpdatePropStatus(nameof(this.Vmo.CurveQE), this, nameof(this.CurveQE)); |
| | | } |
| | | |
| | | |