| | |
| | | /// <summary> |
| | | /// 阀门属性视图 |
| | | /// </summary> |
| | | public class HydroValvePropertyViewModel : HydroParterPropertyViewModel |
| | | public class HydroValvePropertyViewModel : HydroParterPropertyViewModel, IHydroLinkPropertyViewModel |
| | | { |
| | | /// <summary> |
| | | /// |
| | |
| | | /// </summary> |
| | | public HydroValvePropertyViewModel(Yw.Model.HydroValveInfo rhs) : base(rhs) |
| | | { |
| | | |
| | | this.StartCode = rhs.StartCode; |
| | | this.EndCode = rhs.EndCode; |
| | | this.LinkStatus = rhs.LinkStatus; |
| | | this.Diameter = rhs.Diameter; |
| | | this.MinorLoss = rhs.MinorLoss; |
| | | this.ValveType = rhs.ValveType; |
| | | this.ValveSetting = rhs.ValveSetting; |
| | | } |
| | | |
| | | // |
| | | // 摘要: |
| | | // 上游节点 |
| | | /// <summary> |
| | | /// 上游节点编码 |
| | | /// </summary> |
| | | [Category("基础信息")] |
| | | [DisplayName("上游节点编码")] |
| | | [PropertyOrder(11)] |
| | | [Browsable(true)] |
| | | public string StartCode { get; set; } |
| | | |
| | | // |
| | | // 摘要: |
| | | // 下游节点 |
| | | /// <summary> |
| | | /// 下游节点编码 |
| | | /// </summary> |
| | | [Category("基础信息")] |
| | | [DisplayName("下游节点编码")] |
| | | [PropertyOrder(12)] |
| | | [Browsable(true)] |
| | | public string EndCode { get; set; } |
| | | |
| | | // |
| | | // 摘要: |
| | | // 管段状态 |
| | | /// <summary> |
| | | /// 阀门状态 |
| | | /// </summary> |
| | | [Category("数据")] |
| | | [DisplayName("阀门状态")] |
| | | [PropertyOrder(13)] |
| | | [Browsable(true)] |
| | | public string LinkStatus { get; set; } |
| | | |
| | | // |
| | | // 摘要: |
| | | // 直径 |
| | | /// <summary> |
| | | /// 直径 |
| | | /// </summary> |
| | | [Category("数据")] |
| | | [DisplayName("直径")] |
| | | [PropertyOrder(14)] |
| | | [Browsable(true)] |
| | | public double Diameter { get; set; } |
| | | |
| | | // |
| | | // 摘要: |
| | | // 局部阻力系数 |
| | | /// <summary> |
| | | /// 局部阻力系数 |
| | | /// </summary> |
| | | [Category("数据")] |
| | | [DisplayName("局部阻力系数")] |
| | | [PropertyOrder(15)] |
| | | [Browsable(true)] |
| | | public double MinorLoss { get; set; } |
| | | |
| | | // |
| | | // 摘要: |
| | | // 阀门类型 |
| | | /// <summary> |
| | | /// 阀门类型 |
| | | /// </summary> |
| | | [Category("数据")] |
| | | [DisplayName("阀门类型")] |
| | | [PropertyOrder(16)] |
| | | [Browsable(true)] |
| | | public string ValveType { get; set; } |
| | | |
| | | // |
| | | // 摘要: |
| | | // 阀门设置 |
| | | /// <summary> |
| | | /// 阀门设置 |
| | | /// </summary> |
| | | [Category("数据")] |
| | | [DisplayName("阀门设置")] |
| | | [PropertyOrder(17)] |
| | | [Browsable(true)] |
| | | public string ValveSetting { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 流量 |
| | | /// </summary> |
| | | [Category("计算结果")] |
| | | [DisplayName("流量")] |
| | | [PropertyOrder(101)] |
| | | [Browsable(true)] |
| | | public double? CalcuFlow { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 流速 |
| | | /// </summary> |
| | | [Category("计算结果")] |
| | | [DisplayName("流速")] |
| | | [PropertyOrder(102)] |
| | | [Browsable(true)] |
| | | public double? CalcuVelocity { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 水头损失 |
| | | /// </summary> |
| | | [Category("计算结果")] |
| | | [DisplayName("水头损失")] |
| | | [PropertyOrder(103)] |
| | | [Browsable(true)] |
| | | public double? CalcuHeadLoss { get; set; } |
| | | } |
| | | } |