From 5e776f1884d4d865c8d3d037a1fb10fb083f37ed Mon Sep 17 00:00:00 2001
From: Shuxia Ning <NingShuxia0927@outlook.com>
Date: 星期五, 03 一月 2025 11:13:02 +0800
Subject: [PATCH] PhartRelation 新增远程方式

---
 WinFrmUI/HStation.WinFrmUI.Assets.Core/03-valve/00-viewmodel/ValveMainViewModel.cs |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/WinFrmUI/HStation.WinFrmUI.Assets.Core/03-valve/00-viewmodel/ValveMainViewModel.cs b/WinFrmUI/HStation.WinFrmUI.Assets.Core/03-valve/00-viewmodel/ValveMainViewModel.cs
index 9d44c12..514d3e8 100644
--- a/WinFrmUI/HStation.WinFrmUI.Assets.Core/03-valve/00-viewmodel/ValveMainViewModel.cs
+++ b/WinFrmUI/HStation.WinFrmUI.Assets.Core/03-valve/00-viewmodel/ValveMainViewModel.cs
@@ -17,7 +17,7 @@
             {
                 this.Caliber = rhs.Caliber.ToString();
             }
-            if (rhs.Material == null)
+            if (rhs.Material == null || rhs.Material == string.Empty)
             {
                 this.Material = "榛樿";
             }
@@ -29,7 +29,7 @@
             this.SeriesID = rhs.SeriesID;
             this.ValveType = rhs.ValveType;
             this.SortCode = rhs.SortCode;
-            this.KeyWord = rhs.KeyWord;
+            this.KeyWord = string.Join(",", rhs.KeyWords);
             this.ValveSetting = rhs.ValveSetting;
         }
 
@@ -47,7 +47,7 @@
             {
                 this.Caliber = rhs.Caliber.ToString();
             }
-            if (rhs.Material == null)
+            if (rhs.Material == null || rhs.Material == string.Empty)
             {
                 this.Material = "榛樿";
             }
@@ -59,7 +59,7 @@
             this.SeriesID = rhs.SeriesID;
             this.ValveType = rhs.ValveType;
             this.SortCode = rhs.SortCode;
-            this.KeyWord = rhs.KeyWord;
+            this.KeyWord = string.Join(",", rhs.KeyWords);
             this.ValveSetting = rhs.ValveSetting;
         }
 

--
Gitblit v1.9.3