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