| | |
| | | this.UpdatePropStatus(nameof(this.OpeningDegree), rhs, nameof(rhs.OpeningDegree)); |
| | | this.ValveSetting = rhs.ValveSetting; |
| | | this.UpdatePropStatus(nameof(this.ValveSetting), rhs, nameof(rhs.ValveSetting)); |
| | | |
| | | this.Vmo = rhs; |
| | | } |
| | | |
| | | |
| | |
| | | /// </summary> |
| | | [Category("数据")] |
| | | [DisplayName("阀门状态")] |
| | | [PropertyOrder(13)] |
| | | [PropertyOrder(1003)] |
| | | [Browsable(true)] |
| | | [TypeConverter(typeof(HydroValveStatusConverter))] |
| | | public override string LinkStatus { get; set; } |
| | |
| | | /// </summary> |
| | | [Category("数据")] |
| | | [DisplayName("材料")] |
| | | [PropertyOrder(100)] |
| | | [PropertyOrder(2001)] |
| | | [Browsable(true)] |
| | | public string Material { get; set; } |
| | | |
| | |
| | | /// </summary> |
| | | [Category("数据")] |
| | | [DisplayName("直径")] |
| | | [PropertyOrder(101)] |
| | | [PropertyOrder(2002)] |
| | | [Browsable(true)] |
| | | [DisplayUnit("mm")] |
| | | public double Diameter { get; set; } |
| | |
| | | /// </summary> |
| | | [Category("数据")] |
| | | [DisplayName("局阻系数")] |
| | | [PropertyOrder(102)] |
| | | [PropertyOrder(2003)] |
| | | [Browsable(true)] |
| | | public double MinorLoss { get; set; } |
| | | |
| | |
| | | /// </summary> |
| | | [Category("数据")] |
| | | [DisplayName("阀门类型")] |
| | | [PropertyOrder(103)] |
| | | [PropertyOrder(2004)] |
| | | [Browsable(true)] |
| | | [TypeConverter(typeof(HydroValveTypeConverter))] |
| | | public string ValveType { get; set; } |
| | |
| | | /// </summary> |
| | | [Category("数据")] |
| | | [DisplayName("阀门开度")] |
| | | [PropertyOrder(104)] |
| | | [PropertyOrder(2005)] |
| | | [Browsable(true)] |
| | | public double OpeningDegree { get; set; } |
| | | |
| | |
| | | /// </summary> |
| | | [Category("数据")] |
| | | [DisplayName("阀门设置")] |
| | | [PropertyOrder(105)] |
| | | [PropertyOrder(2006)] |
| | | [IsHydroCurvePro(HydroCurve.ValveQL)] |
| | | [Browsable(true)] |
| | | public string ValveSetting { get; set; } |
| | |
| | | this.UpdatePropStatus(nameof(this.ValveSetting), this.Vmo, nameof(this.Vmo.ValveSetting)); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public override void UpdateVmoProperty() |
| | | { |
| | | base.UpdateVmoProperty(); |
| | | this.Vmo.Material = this.Material; |
| | | this.Vmo.UpdatePropStatus(nameof(this.Vmo.Material), this, nameof(this.Material)); |
| | | this.Vmo.Diameter = this.Diameter; |
| | | this.Vmo.UpdatePropStatus(nameof(this.Vmo.Diameter), this, nameof(this.Diameter)); |
| | | this.Vmo.MinorLoss = this.MinorLoss; |
| | | this.Vmo.UpdatePropStatus(nameof(this.Vmo.MinorLoss), this, nameof(this.MinorLoss)); |
| | | this.Vmo.ValveType = HydroValveTypeHelper.GetTypeCode(this.ValveType); |
| | | this.Vmo.UpdatePropStatus(nameof(this.Vmo.ValveType), this, nameof(this.ValveType)); |
| | | this.Vmo.OpeningDegree = this.OpeningDegree; |
| | | this.Vmo.UpdatePropStatus(nameof(this.Vmo.OpeningDegree), this, nameof(this.OpeningDegree)); |
| | | } |
| | | |
| | | |
| | | } |
| | | } |