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;
|
}
|
|
/// <summary>
|
/// ID
|
/// </summary>
|
[DisplayName("ID")]
|
[Browsable(false)]
|
public long ID { get; set; }
|
|
/// <summary>
|
/// 型号名
|
/// </summary>
|
[DisplayName("型号名")]
|
[Browsable(true)]
|
public string ModelType { get; set; }
|
|
/// <summary>
|
/// 损失系数
|
/// </summary>
|
[DisplayName("损失系数")]
|
[Browsable(true)]
|
public double? MinorLoss { get; set; }
|
|
/// <summary>
|
/// 识别关键字
|
/// </summary>
|
[DisplayName("关键字")]
|
[Browsable(true)]
|
public string KeyWord { get; set; }
|
|
/// <summary>
|
/// 说明
|
/// </summary>
|
[DisplayName("说明")]
|
[Browsable(true)]
|
public string Description { get; set; }
|
}
|
}
|