Shuxia Ning
2024-12-09 f97b3ccbfd63b62ec875223fcc417633f6ce2989
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/01-matching/18-exchanger/ExchangerSingleMatchingViewModel.cs
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,98 @@
namespace HStation.WinFrmUI
{
    public class ExchangerSingleMatchingViewModel
    {
        public ExchangerSingleMatchingViewModel(Vmo.AssetsExchangerMainVmo rhs)
        {
            this.ID = rhs.ID;
            this.Name = rhs.Name;
            this.Material = rhs.Material;
            this.SeriesID = rhs.SeriesID;
            this.KeyWord = string.Join(",", rhs.KeyWord);
            this.Coefficient = rhs.MinorLoss;
            this.SortCode = rhs.SortCode;
            this.Description = rhs.Description;
        }
        [DisplayName("ID")]
        [Browsable(false)]
        public long ID { get; set; }
        /// <summary>
        /// ç³»åˆ—ID
        /// </summary>
        [DisplayName("系列ID")]
        [Browsable(false)]
        public long SeriesID { get; set; }
        /// <summary>
        /// å£å¾„
        /// </summary>
        [DisplayName("口径(mm)")]
        [Browsable(true)]
        public string Caliber { get; set; }
        /// <summary>
        /// ææ–™
        /// </summary>
        [DisplayName("材料")]
        [Browsable(true)]
        public string Material { 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 ExchangerSetting { get; set; }
    }
}