| | |
| | | using Yw.Model.Hydro; |
| | | using System.Windows.Forms.VisualStyles; |
| | | using Yw.Model.Hydro; |
| | | |
| | | namespace Yw.WinFrmUI |
| | | { |
| | | /// <summary> |
| | | /// 水池属性视图 |
| | | /// </summary> |
| | | public class HydroTankPropertyViewModel : HydroParterPropertyViewModel |
| | | public class HydroTankPropertyViewModel : HydroParterPropertyViewModel, IHydroNodePropertyViewModel |
| | | { |
| | | /// <summary> |
| | | /// |
| | |
| | | /// </summary> |
| | | public HydroTankPropertyViewModel(Yw.Model.HydroTankInfo rhs) : base(rhs) |
| | | { |
| | | |
| | | this.Quality = rhs.Quality; |
| | | this.PoolElev = rhs.PoolElev; |
| | | this.InitLevel = rhs.InitLevel; |
| | | this.MinLevel = rhs.MinLevel; |
| | | this.MaxLevel = rhs.MaxLevel; |
| | | this.Diameter = rhs.Diameter; |
| | | this.MinVol = rhs.MinVol; |
| | | this.VolCurve = rhs.VolCurve; |
| | | } |
| | | |
| | | // |
| | | // 摘要: |
| | | // 初始水质 |
| | | /// <summary> |
| | | /// 初始水质 |
| | | /// </summary> |
| | | [Category("数据")] |
| | | [DisplayName("初始水质")] |
| | | [PropertyOrder(11)] |
| | | [Browsable(true)] |
| | | public double Quality { get; set; } |
| | | |
| | | // |
| | | // 摘要: |
| | | // 2d 位置 |
| | | public Position2d Position2d { get; set; } |
| | | |
| | | // |
| | | // 摘要: |
| | | // 3d 位置 |
| | | public Position3d Position3d { get; set; } |
| | | |
| | | // |
| | | // 摘要: |
| | | // 池底标高 |
| | | /// <summary> |
| | | /// 池底标高 |
| | | /// </summary> |
| | | [Category("数据")] |
| | | [DisplayName("池底标高")] |
| | | [PropertyOrder(12)] |
| | | [Browsable(true)] |
| | | public double PoolElev { get; set; } |
| | | |
| | | // |
| | | // 摘要: |
| | | // 初始水位 |
| | | /// <summary> |
| | | /// 初始水位 |
| | | /// </summary> |
| | | [Category("数据")] |
| | | [DisplayName("初始水位")] |
| | | [PropertyOrder(13)] |
| | | [Browsable(true)] |
| | | public double InitLevel { get; set; } |
| | | |
| | | // |
| | | // 摘要: |
| | | // 最低水位 |
| | | /// <summary> |
| | | /// 最低水位 |
| | | /// </summary> |
| | | [Category("数据")] |
| | | [DisplayName("最低水位")] |
| | | [PropertyOrder(14)] |
| | | [Browsable(true)] |
| | | public double MinLevel { get; set; } |
| | | |
| | | // |
| | | // 摘要: |
| | | // 最高水位 |
| | | /// <summary> |
| | | /// 最高水位 |
| | | /// </summary> |
| | | [Category("数据")] |
| | | [DisplayName("最高水位")] |
| | | [PropertyOrder(15)] |
| | | [Browsable(true)] |
| | | public double MaxLevel { get; set; } |
| | | |
| | | // |
| | | // 摘要: |
| | | // 直径 |
| | | /// <summary> |
| | | /// 直径 |
| | | /// </summary> |
| | | [Category("数据")] |
| | | [DisplayName("直径")] |
| | | [PropertyOrder(16)] |
| | | [Browsable(true)] |
| | | public double Diameter { get; set; } |
| | | |
| | | // |
| | | // 摘要: |
| | | // 最小容积 |
| | | /// <summary> |
| | | /// 最小容积 |
| | | /// </summary> |
| | | [Category("数据")] |
| | | [DisplayName("最小容积")] |
| | | [PropertyOrder(17)] |
| | | [Browsable(true)] |
| | | public double MinVol { get; set; } |
| | | |
| | | // |
| | | // 摘要: |
| | | // 容积曲线 |
| | | /// <summary> |
| | | /// 容积曲线 |
| | | /// </summary> |
| | | [Category("数据")] |
| | | [DisplayName("容积曲线")] |
| | | [PropertyOrder(18)] |
| | | [Browsable(true)] |
| | | public string VolCurve { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 自由压力 |
| | | /// </summary> |
| | | [Category("计算结果")] |
| | | [DisplayName("自由压力")] |
| | | [PropertyOrder(101)] |
| | | [Browsable(true)] |
| | | public double? CalcuPress { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 绝对压力 |
| | | /// </summary> |
| | | [Category("计算结果")] |
| | | [DisplayName("绝对压力")] |
| | | [PropertyOrder(102)] |
| | | [Browsable(true)] |
| | | public double? CalcuHead { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 需水量 |
| | | /// </summary> |
| | | [Category("计算结果")] |
| | | [DisplayName("需水量")] |
| | | [PropertyOrder(103)] |
| | | [Browsable(true)] |
| | | public double? CalcuDemand { get; set; } |
| | | } |
| | | } |