namespace HStation.WinFrmUI { public class CompressorSingleMatchingViewModel { public CompressorSingleMatchingViewModel(Vmo.AssetsCompressorMainVmo rhs) { this.ID = rhs.ID; this.Name = rhs.Name; this.Caliber = rhs.Caliber; 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; } /// /// 系列ID /// [DisplayName("系列ID")] [Browsable(false)] public long SeriesID { get; set; } /// /// 口径 /// [DisplayName("口径")] [Browsable(true)] public double? Caliber { get; set; } /// /// 材料 /// [DisplayName("材料")] [Browsable(true)] public string Material { get; set; } /// /// 损失系数 /// [DisplayName("损失系数")] [Browsable(true)] public double Coefficient { get; set; } /// /// 说明 /// [DisplayName("说明")] [Browsable(true)] public string Description { get; set; } /// /// 排序码 /// [DisplayName("排序码")] [Browsable(true)] public int SortCode { get; set; } /// /// 名称 /// [DisplayName("名称")] [Browsable(true)] public string Name { get; set; } /// /// 识别关键字 /// [DisplayName("关键字")] [Browsable(true)] public string KeyWord { get; set; } } }