lixiaojun
2024-12-05 59f2c4c04e06d77de7f10ab96d1a5c73ccd01262
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/01-matching/09-Tank/TankSingleMatchingViewModel.cs
@@ -1,36 +1,30 @@
using HStation.Assets;
namespace HStation.WinFrmUI
namespace HStation.WinFrmUI
{
    public class TankSingleMatchingViewModel
    {
        public TankSingleMatchingViewModel()
        {
        }
        public TankSingleMatchingViewModel(Vmo.AssetsTankMainVmo rhs)
        {
            this.ID = rhs.ID;
            this.MinLevel = rhs.MinLevel;
            this.MaxLevel = rhs.MaxLevel;
            this.DN = rhs.DN;
            this.OverFlow = rhs.OverFlow;
            this.ModelType = rhs.Name;
            this.Name = rhs.Name;
            this.Description = rhs.Description;
            this.SortCode = rhs.SortCode;
            this.Name = rhs.Name;
            this.Description = rhs.Description;
            this.SeriesID = rhs.SeriesID;
            this.SortCode = rhs.SortCode;
            this.KeyWord = string.Join(",", rhs.KeyWord);
        }
        /// <summary>
        /// ID
        /// </summary>
        [DisplayName("ID")]
        [Browsable(false)]
        public long ID { get; set; }
        /// <summary>
        /// 型号名
        /// 系列ID
        /// </summary>
        [DisplayName("型号名")]
        [Browsable(true)]
        public string ModelType { get; set; }
        [DisplayName("系列ID")]
        [Browsable(false)]
        public long SeriesID { get; set; }
        /// <summary>
        /// 最低水位
@@ -63,8 +57,64 @@
        /// <summary>
        /// 是否允许溢流
        /// </summary>
        [DisplayName("是否允许溢流")]
        [DisplayName("是否溢流")]
        [Browsable(true)]
        public bool OverFlow { get; set; }
        /// <summary>
        /// 损失系数
        /// </summary>
        [DisplayName("损失系数")]
        [Browsable(true)]
        public double Coefficient { get; set; }
        /// <summary>
        /// 说明
        /// </summary>
        [DisplayName("说明")]
        [Browsable(true)]
        public string Description { get; set; }
        /// <summary>
        /// 排序码
        /// </summary>
        [DisplayName("排序码")]
        [Browsable(true)]
        public int SortCode { get; set; }
        /// <summary>
        /// 名称
        /// </summary>
        [DisplayName("名称")]
        [Browsable(true)]
        public string Name { get; set; }
        /// <summary>
        /// 创建人
        /// </summary>
        [DisplayName("创建人")]
        [Browsable(false)]
        public string CreateName { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        [DisplayName("创建时间")]
        [Browsable(false)]
        public string CreateTime { get; set; }
        /// <summary>
        /// 识别关键字
        /// </summary>
        [DisplayName("关键字")]
        [Browsable(true)]
        public string KeyWord { get; set; }
        /// <summary>
        /// 阀门设置
        /// </summary>
        [DisplayName("阀门设置")]
        [Browsable(true)]
        public string TankSetting { get; set; }
    }
}