From 0e54c48e8190937f5b483c79e3cc9d17ec7c9af0 Mon Sep 17 00:00:00 2001 From: duheng <2784771470@qq.com> Date: 星期五, 27 九月 2024 15:45:37 +0800 Subject: [PATCH] 提交自动匹配界面优化 --- WinFrmUI/HStation.WinFrmUI.Xhs.Core/04-simulation/06-simulation/01-matching/03-valve/XhsProjectSimulationValveMatchingViewModel.cs | 35 +++++++++++++++++++++++++---------- 1 files changed, 25 insertions(+), 10 deletions(-) diff --git a/WinFrmUI/HStation.WinFrmUI.Xhs.Core/04-simulation/06-simulation/01-matching/03-valve/XhsProjectSimulationValveMatchingViewModel.cs b/WinFrmUI/HStation.WinFrmUI.Xhs.Core/04-simulation/06-simulation/01-matching/03-valve/XhsProjectSimulationValveMatchingViewModel.cs index cd74671..a48c061 100644 --- a/WinFrmUI/HStation.WinFrmUI.Xhs.Core/04-simulation/06-simulation/01-matching/03-valve/XhsProjectSimulationValveMatchingViewModel.cs +++ b/WinFrmUI/HStation.WinFrmUI.Xhs.Core/04-simulation/06-simulation/01-matching/03-valve/XhsProjectSimulationValveMatchingViewModel.cs @@ -17,17 +17,25 @@ this.Code = rhs.Code; this.DbId = rhs.DbId; this.ModelType = rhs.ModelType; - this.MatchingCaliber = rhs.MatchingDiameter; + this.MatchingDiameter = rhs.MatchingDiameter.ToString(); this.MatchingMinorLoss = rhs.MatchingMinorLoss; this.MatchingDbid = rhs.MatchingDbId; this.MatchingMaterial = rhs.MatchingMaterial; - if (rhs.DbId == null) + if (rhs.DbId == null || rhs.DbId == string.Empty) { MatchingType = eMatchingStatus.Failed; } else { MatchingType = eMatchingStatus.Succeed; + } + if (rhs.MatchingDbId == null || rhs.MatchingDbId == string.Empty) + { + MatchingSatus = eMatchingStatus.Failed; + } + else + { + MatchingSatus = eMatchingStatus.Succeed; } } @@ -57,7 +65,7 @@ /// </summary> [DisplayName("MatchingDbid")] [Browsable(false)] - public long? MatchingDbid { get; set; } + public string MatchingDbid { get; set; } /// <summary> /// 缂栫爜 @@ -69,7 +77,7 @@ /// <summary> /// 鍨嬪彿鍚� /// </summary> - [DisplayName("鍨嬪彿鍚�")] + [DisplayName("鍨嬪彿")] [Browsable(true)] public string ModelType { get; set; } @@ -83,7 +91,7 @@ /// <summary> ///淇敼鍚庢潗璐� /// </summary> - [DisplayName("淇敼鍚庢潗璐�")] + [DisplayName("鍖归厤鏉愯川")] [Browsable(true)] public string MatchingMaterial { get; set; } @@ -97,9 +105,9 @@ /// <summary> ///淇敼鍚庡彛寰� /// </summary> - [DisplayName("淇敼鍚庡彛寰�")] + [DisplayName("鍖归厤鍙e緞")] [Browsable(true)] - public string MatchingCaliber { get; set; } + public string MatchingDiameter { get; set; } /// <summary> /// Db閿佸畾 @@ -118,15 +126,22 @@ /// <summary> ///淇敼鍚庢崯澶辩郴鏁� /// </summary> - [DisplayName("淇敼鍚庢崯澶辩郴鏁�")] + [DisplayName("鍖归厤鎹熷け绯绘暟")] [Browsable(true)] public double? MatchingMinorLoss { get; set; } /// <summary> - /// 鏄惁鍖归厤鎴愬姛 + /// 鍖归厤鐘舵�� /// </summary> - [DisplayName("鏄惁鍖归厤鎴愬姛")] + [DisplayName("鍖归厤鐘舵��")] [Browsable(true)] public eMatchingStatus MatchingType { get; set; } + + /// <summary> + /// 鏄惁鍖归厤鎴愬姛 + /// </summary> + [DisplayName("鍖归厤")] + [Browsable(true)] + public eMatchingStatus MatchingSatus { get; set; } } } \ No newline at end of file -- Gitblit v1.9.3