using HStation.Assets; namespace HStation.WinFrmUI { public class FlowmeterSingleMatchingViewModel { public FlowmeterSingleMatchingViewModel() { } public FlowmeterSingleMatchingViewModel(Vmo.AssetsFlowmeterMainVmo rhs) { this.ID = rhs.ID; this.KeyWord = string.Join(",", rhs.KeyWord); this.ModelType = rhs.Name; this.MinorLoss = rhs.MinorLoss; this.Description = rhs.Description; } /// /// ID /// [DisplayName("ID")] [Browsable(false)] public long ID { get; set; } /// /// 型号名 /// [DisplayName("型号名")] [Browsable(true)] public string ModelType { get; set; } /// /// 损失系数 /// [DisplayName("损失系数")] [Browsable(true)] public double? MinorLoss { get; set; } /// /// 识别关键字 /// [DisplayName("关键字")] [Browsable(true)] public string KeyWord { get; set; } /// /// 说明 /// [DisplayName("说明")] [Browsable(true)] public string Description { get; set; } } }