using HStation.Assets;
using Microsoft.AspNetCore.JsonPatch.Converters;
namespace HStation.WinFrmUI
{
public class MeterSingleMatchingViewModel
{
public MeterSingleMatchingViewModel()
{
}
public MeterSingleMatchingViewModel(Vmo.AssetsMeterMainVmo rhs)
{
this.ID = rhs.ID;
this.ModelType = rhs.Name;
this.KeyWord = string.Join(",", rhs.KeyWord);
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; }
}
}