duheng
2024-12-05 d14b23dfc213c131efcf76cee206cff79e261294
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/01-matching/18-exchanger/ExchangerSingleMatchingViewModel.cs
@@ -1,39 +1,41 @@
using HStation.Assets;
namespace HStation.WinFrmUI
namespace HStation.WinFrmUI
{
    public class ExchangerSingleMatchingViewModel
    {
        public ExchangerSingleMatchingViewModel()
        {
        }
        public ExchangerSingleMatchingViewModel(Vmo.AssetsExchangerMainVmo rhs)
        {
            this.ID = rhs.ID;
            this.Name = rhs.Name;
            this.Material = rhs.Material;
            this.ModelType = rhs.Name;
            this.MinorLoss = rhs.MinorLoss;
            this.SeriesID = rhs.SeriesID;
            this.KeyWord = string.Join(",", rhs.KeyWord);
            this.Coefficient = rhs.MinorLoss;
            this.SortCode = rhs.SortCode;
            this.Description = rhs.Description;
        }
        /// <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>
        /// 材质
        /// 口径
        /// </summary>
        [DisplayName("材质")]
        [DisplayName("口径(mm)")]
        [Browsable(true)]
        public string Caliber { get; set; }
        /// <summary>
        /// 材料
        /// </summary>
        [DisplayName("材料")]
        [Browsable(true)]
        public string Material { get; set; }
@@ -42,6 +44,55 @@
        /// </summary>
        [DisplayName("损失系数")]
        [Browsable(true)]
        public double? MinorLoss { get; set; }
        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 ExchangerSetting { get; set; }
    }
}