From 492fbc0052225864e97cceb66d86d3fdf9dee961 Mon Sep 17 00:00:00 2001 From: duheng <2784771470@qq.com> Date: 星期四, 05 十二月 2024 16:18:36 +0800 Subject: [PATCH] 修改匹配方法以及单独匹配 --- WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/01-matching/17-compressor/CompressorSingleMatchingViewModel.cs | 73 ++++++++++++++++++++++++------------ 1 files changed, 48 insertions(+), 25 deletions(-) diff --git a/WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/01-matching/17-compressor/CompressorSingleMatchingViewModel.cs b/WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/01-matching/17-compressor/CompressorSingleMatchingViewModel.cs index c47a018..b836ec2 100644 --- a/WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/01-matching/17-compressor/CompressorSingleMatchingViewModel.cs +++ b/WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/01-matching/17-compressor/CompressorSingleMatchingViewModel.cs @@ -1,42 +1,30 @@ -锘縰sing HStation.Assets; - -namespace HStation.WinFrmUI +锘縩amespace 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> /// 鍙e緞 @@ -46,10 +34,45 @@ 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; } } } \ No newline at end of file -- Gitblit v1.9.3