| | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// Y流向 |
| | | /// </summary> |
| | | [Category("拓扑结构")] |
| | | [DisplayName("Y流向")] |
| | | [HydroFlowDirectionPro] |
| | | [PropertyOrder(102)] |
| | | [Browsable(false)] |
| | | [TypeConverter(typeof(HydroFlowDirectionConverter))] |
| | | public override string FlowDirectionY { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 上游节点 |
| | | /// </summary> |
| | | [Category("基础信息")] |
| | | [Category("拓扑结构")] |
| | | [DisplayName("上游节点")] |
| | | [PropertyOrder(1001)] |
| | | [IsHydroLinkCode] |
| | | [HydroLinkPro] |
| | | [ReadOnly(true)] |
| | | [Browsable(true)] |
| | | public string StartCode { get; set; } |
| | |
| | | /// <summary> |
| | | /// 下游节点 |
| | | /// </summary> |
| | | [Category("基础信息")] |
| | | [Category("拓扑结构")] |
| | | [DisplayName("下游节点")] |
| | | [PropertyOrder(1002)] |
| | | [IsHydroLinkCode] |
| | | [HydroLinkPro] |
| | | [ReadOnly(true)] |
| | | [Browsable(true)] |
| | | public string EndCode { get; set; } |
| | |
| | | [PropertyOrder(10001)] |
| | | [Browsable(true)] |
| | | [DisplayUnit("m³/h")] |
| | | [IsHydroCalcuPro(true)] |
| | | [HydroCalcuPro] |
| | | [ShowEditor(false)] |
| | | public virtual double? CalcuFlow { get; set; } |
| | | |
| | |
| | | [PropertyOrder(10002)] |
| | | [Browsable(true)] |
| | | [DisplayUnit("m/s")] |
| | | [IsHydroCalcuPro(true)] |
| | | [HydroCalcuPro] |
| | | [ShowEditor(false)] |
| | | public virtual double? CalcuVelocity { get; set; } |
| | | |
| | |
| | | [PropertyOrder(10003)] |
| | | [Browsable(true)] |
| | | [DisplayUnit("m")] |
| | | [IsHydroCalcuPro(true)] |
| | | [HydroCalcuPro] |
| | | [ShowEditor(false)] |
| | | public virtual double? CalcuHeadLoss { get; set; } |
| | | |
| | |
| | | this.UpdatePropStatus(nameof(this.LinkStatus), this.Vmo, nameof(this.Vmo.LinkStatus)); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public override void UpdateVmoProperty() |
| | | { |
| | | base.UpdateVmoProperty(); |
| | | this.Vmo.StartCode = this.StartCode; |
| | | this.Vmo.UpdatePropStatus(nameof(this.Vmo.StartCode), this, nameof(this.StartCode)); |
| | | this.Vmo.EndCode = this.EndCode; |
| | | this.Vmo.UpdatePropStatus(nameof(this.Vmo.EndCode), this, nameof(this.EndCode)); |
| | | this.Vmo.LinkStatus = HydroLinkStatusHelper.GetStatusCode(this.LinkStatus); |
| | | this.Vmo.UpdatePropStatus(nameof(this.Vmo.LinkStatus), this, nameof(this.LinkStatus)); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 更新计算属性 |
| | | /// </summary> |
| | | /// <param name="rhs"></param> |
| | | public override void UpdateCalcuProperty(HydroCalcuResult rhs) |
| | | public override void UpdateCalcuProperty(HydroCalcuVisualResult rhs) |
| | | { |
| | | base.UpdateCalcuProperty(rhs); |
| | | if (rhs is HydroCalcuLinkResult calcuLinkProperty) |