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; }
///
/// 系列ID
///
[DisplayName("系列ID")]
[Browsable(false)]
public long SeriesID { get; set; }
///
/// 口径
///
[DisplayName("口径(mm)")]
[Browsable(true)]
public string 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(false)]
public string CreateName { get; set; }
///
/// 创建时间
///
[DisplayName("创建时间")]
[Browsable(false)]
public string CreateTime { get; set; }
///
/// 识别关键字
///
[DisplayName("关键字")]
[Browsable(true)]
public string KeyWord { get; set; }
///
/// 阀门设置
///
[DisplayName("阀门设置")]
[Browsable(true)]
public string ExchangerSetting { get; set; }
}
}