| | |
| | | public HydroLinkViewModel(Yw.Model.HydroLinkInfo rhs, Yw.Model.HydroModelInfo hydroInfo) : base(rhs, hydroInfo) |
| | | { |
| | | this.StartCode = rhs.StartCode; |
| | | this.UpdatePropStatus(nameof(this.StartCode), rhs, nameof(rhs.StartCode)); |
| | | this.EndCode = rhs.EndCode; |
| | | this.UpdatePropStatus(nameof(this.EndCode), rhs, nameof(rhs.EndCode)); |
| | | this.LinkStatus = HydroLinkStatusHelper.GetStatusName(rhs.LinkStatus); |
| | | this.UpdatePropStatus(nameof(this.LinkStatus), rhs, nameof(rhs.LinkStatus)); |
| | | |
| | | this.Vmo = rhs; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// Y流向 |
| | | /// </summary> |
| | | [Category("拓扑结构")] |
| | | [DisplayName("Y流向")] |
| | | [HydroFlowDirectionPro] |
| | | [PropertyOrder(102)] |
| | | [Browsable(false)] |
| | | [TypeConverter(typeof(HydroFlowDirectionConverter))] |
| | | public override string FlowDirectionY { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 上游节点 |
| | |
| | | public string EndCode { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 管段状态 |
| | | /// </summary> |
| | | [Category("数据")] |
| | | [DisplayName("管段状态")] |
| | | [PropertyOrder(1003)] |
| | | [Browsable(true)] |
| | | public virtual string LinkStatus { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 流量 |
| | | /// </summary> |
| | | [Category("计算结果")] |
| | | [DisplayName("流量")] |
| | | [DisplayUnit("m³/h")] |
| | | [Display(Name = "流量(m³/h)")] |
| | | [PropertyOrder(10001)] |
| | | [Browsable(true)] |
| | | [DisplayUnit("m³/h")] |
| | | [HydroCalcuPro] |
| | | [ShowEditor(false)] |
| | | [Browsable(false)] |
| | | public virtual double? CalcuFlow { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 流速 |
| | | /// </summary> |
| | | [Category("计算结果")] |
| | | [DisplayName("流速")] |
| | | [Display(Name = "流速(m/s)")] |
| | | [PropertyOrder(10002)] |
| | | [Browsable(true)] |
| | | [DisplayUnit("m/s")] |
| | | [HydroCalcuPro] |
| | | [ShowEditor(false)] |
| | | public virtual double? CalcuVelocity { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 水头损失 |
| | | /// </summary> |
| | | [Category("计算结果")] |
| | | [DisplayName("水头损失")] |
| | | [Display(Name = "水头损失(m)")] |
| | | [PropertyOrder(10003)] |
| | | [Browsable(true)] |
| | | [DisplayUnit("m")] |
| | | [Display(Name = "水头损失(m)")] |
| | | [PropertyOrder(10002)] |
| | | [HydroCalcuPro] |
| | | [ShowEditor(false)] |
| | | [Browsable(false)] |
| | | public virtual double? CalcuHeadLoss { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 流速 |
| | | /// </summary> |
| | | [Category("计算结果")] |
| | | [DisplayName("流速")] |
| | | [DisplayUnit("m/s")] |
| | | [Display(Name = "流速(m/s)")] |
| | | [PropertyOrder(19007)] |
| | | [HydroCalcuPro] |
| | | [ShowEditor(false)] |
| | | [Browsable(false)] |
| | | public virtual double? CalcuVelocity { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 局部损失 |
| | | /// </summary> |
| | | [Category("计算结果")] |
| | | [DisplayName("局部损失")] |
| | | [Display(Name = "局部损失(m)")] |
| | | [PropertyOrder(10004)] |
| | | [Browsable(true)] |
| | | [DisplayUnit("m")] |
| | | [Display(Name = "局部损失(m)")] |
| | | [PropertyOrder(19008)] |
| | | [HydroCalcuPro] |
| | | [ShowEditor(false)] |
| | | [Browsable(false)] |
| | | public virtual double? CalcuMinorLoss { get; set; } |
| | | |
| | | /// <summary> |
| | |
| | | /// </summary> |
| | | [Category("计算结果")] |
| | | [DisplayName("沿程损失")] |
| | | [Display(Name = "沿程损失(m)")] |
| | | [PropertyOrder(10005)] |
| | | [Browsable(true)] |
| | | [DisplayUnit("m")] |
| | | [Display(Name = "沿程损失(m)")] |
| | | [PropertyOrder(19009)] |
| | | [HydroCalcuPro] |
| | | [ShowEditor(false)] |
| | | [Browsable(false)] |
| | | public virtual double? CalcuFrictionLoss { get; set; } |
| | | |
| | | |
| | | /// <summary> |
| | | /// Vmo |
| | | /// |
| | | /// </summary> |
| | | [Browsable(false)] |
| | | public new Yw.Model.HydroLinkInfo Vmo { get; set; } |
| | | public new Yw.Model.HydroLinkInfo Vmo |
| | | { |
| | | get { return _vmo as Yw.Model.HydroLinkInfo; } |
| | | set { _vmo = value; } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// |
| | |
| | | { |
| | | base.UpdateProperty(); |
| | | this.StartCode = this.Vmo.StartCode; |
| | | this.UpdatePropStatus(nameof(this.StartCode), this.Vmo, nameof(this.Vmo.StartCode)); |
| | | this.EndCode = this.Vmo.EndCode; |
| | | this.UpdatePropStatus(nameof(this.EndCode), this.Vmo, nameof(this.Vmo.EndCode)); |
| | | this.LinkStatus = HydroLinkStatusHelper.GetStatusName(this.Vmo.LinkStatus); |
| | | this.UpdatePropStatus(nameof(this.LinkStatus), this.Vmo, nameof(this.Vmo.LinkStatus)); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | { |
| | | 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(HydroCalcuVisualResult rhs) |
| | | { |
| | | base.UpdateCalcuProperty(rhs); |
| | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | | } |