| | |
| | | /// <summary> |
| | | /// 管道属性视图 |
| | | /// </summary> |
| | | public class HydroPipePropertyViewModel : HydroParterPropertyViewModel |
| | | public class HydroPipePropertyViewModel : HydroParterPropertyViewModel, IHydroLinkPropertyViewModel |
| | | { |
| | | /// <summary> |
| | | /// |
| | |
| | | /// </summary> |
| | | public HydroPipePropertyViewModel(Yw.Model.HydroPipeInfo rhs) : base(rhs) |
| | | { |
| | | |
| | | this.StartCode = rhs.StartCode; |
| | | this.EndCode = rhs.EndCode; |
| | | this.LinkStatus = rhs.LinkStatus; |
| | | this.Diameter = rhs.Diameter; |
| | | this.Length = rhs.Length; |
| | | this.Roughness = rhs.Roughness; |
| | | this.MinorLoss = rhs.MinorLoss; |
| | | } |
| | | |
| | | // |
| | | // 摘要: |
| | | // 上游节点 |
| | | /// <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 Length { get; set; } |
| | | |
| | | // |
| | | // 摘要: |
| | | // 粗糙系数 |
| | | /// <summary> |
| | | /// 粗糙系数 |
| | | /// </summary> |
| | | [Category("数据")] |
| | | [DisplayName("粗糙系数")] |
| | | [PropertyOrder(16)] |
| | | [Browsable(true)] |
| | | public double Roughness { get; set; } |
| | | |
| | | // |
| | | // 摘要: |
| | | // 局部阻力系数 |
| | | /// <summary> |
| | | /// 局部阻力系数 |
| | | /// </summary> |
| | | [Category("数据")] |
| | | [DisplayName("局部阻力系数")] |
| | | [PropertyOrder(17)] |
| | | [Browsable(true)] |
| | | public double MinorLoss { 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; } |
| | | } |
| | | } |