yangyin
2024-08-21 04e1d0a290ff76bf623bd9de075b350b8b77ba25
WinFrmUI/Yw.WinFrmUI.Hydro.Core/03-property/02-node/HydroReservoirPropertyViewModel.cs
@@ -1,12 +1,9 @@
using Yw.Model.Hydro;
using Yw.Model;
namespace Yw.WinFrmUI
namespace Yw.WinFrmUI
{
    /// <summary>
    /// 水库属性视图
    /// </summary>
    public class HydroReservoirPropertyViewModel : HydroParterPropertyViewModel
    public class HydroReservoirPropertyViewModel : HydroParterPropertyViewModel, IHydroNodePropertyViewModel
    {
        /// <summary>
        /// 
@@ -18,33 +15,72 @@
        /// </summary>
        public HydroReservoirPropertyViewModel(Yw.Model.HydroReservoirInfo rhs) : base(rhs)
        {
            this.Quality = rhs.Quality;
            this.Head = rhs.Head;
            this.HeadPattern = rhs.HeadPattern;
        }
        //
        // 摘要:
        //     初始水质
        /// <summary>
        /// 初始水质
        /// </summary>
        [Category("数据")]
        [DisplayName("初始水质")]
        [PropertyOrder(11)]
        [Browsable(true)]
        public double Quality { get; set; }
        //
        // 摘要:
        //     2d 位置
        public Position2d Position2d { get; set; }
        /// <summary>
        /// 池底标高
        /// </summary>
        [Category("数据")]
        [DisplayName("池底标高")]
        [PropertyOrder(12)]
        [Browsable(true)]
        public double? PoolElev { get; set; }
        //
        // 摘要:
        //     3d 位置
        public Position3d Position3d { get; set; }
        //
        // 摘要:
        //     总水头
        /// <summary>
        /// 总水头
        /// </summary>
        [Category("数据")]
        [DisplayName("总水头")]
        [PropertyOrder(13)]
        [Browsable(true)]
        public double Head { get; set; }
        //
        // 摘要:
        //     水头模式
        /// <summary>
        /// 水头模式
        /// </summary>
        [Category("数据")]
        [DisplayName("水头模式")]
        [PropertyOrder(14)]
        [Browsable(true)]
        public string HeadPattern { 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; }
    }
}