From 701340a6acf3cccc33864d0e1a1053870b2238bb Mon Sep 17 00:00:00 2001
From: Shuxia Ning <NingShuxia0927@outlook.com>
Date: 星期一, 23 十二月 2024 10:25:58 +0800
Subject: [PATCH] 查询线

---
 WinFrmUI/HStation.WinFrmUI.Assets.Core/04-pipe/02-main/PipeViewModel.cs |   34 +++++++++++++++++++++++++---------
 1 files changed, 25 insertions(+), 9 deletions(-)

diff --git a/WinFrmUI/HStation.WinFrmUI.Assets.Core/04-pipe/02-main/PipeViewModel.cs b/WinFrmUI/HStation.WinFrmUI.Assets.Core/04-pipe/02-main/PipeViewModel.cs
index 2344bca..42de389 100644
--- a/WinFrmUI/HStation.WinFrmUI.Assets.Core/04-pipe/02-main/PipeViewModel.cs
+++ b/WinFrmUI/HStation.WinFrmUI.Assets.Core/04-pipe/02-main/PipeViewModel.cs
@@ -11,7 +11,7 @@
         public PipeViewModel(Vmo.AssetsPipeMainVmo rhs)
         {
             this.ID = rhs.ID;
-            this.Description = rhs.Description;
+            this.Name = rhs.Name;
             if (rhs.Caliber == null)
             {
                 this.Caliber = "榛樿";
@@ -31,17 +31,16 @@
             this.Hazen = rhs.Hazen;
             this.Darcy = rhs.Darcy;
             this.Manning = rhs.Manning;
-            this.Name = rhs.Name;
+            this.MinorLoss = rhs.MinorLoss;
             this.SortCode = rhs.SortCode;
+            this.Description = rhs.Description;
             this.KeyWord = string.Join(",", rhs.KeyWord);
         }
 
         public void Reset(Vmo.AssetsPipeMainVmo rhs)
         {
             this.ID = rhs.ID;
-            this.Hazen = rhs.Hazen;
-            this.Darcy = rhs.Darcy;
-            this.Manning = rhs.Manning;
+            this.Name = rhs.Name;
             if (rhs.Caliber == null)
             {
                 this.Caliber = "榛樿";
@@ -50,11 +49,21 @@
             {
                 this.Caliber = rhs.Caliber.ToString();
             }
-            this.Material = rhs.Material;
-            this.Description = rhs.Description;
-            this.Name = rhs.Name;
-            this.KeyWord = string.Join(",", rhs.KeyWord);
+            if (rhs.Material == null)
+            {
+                this.Material = "榛樿";
+            }
+            else
+            {
+                this.Material = rhs.Material.ToString();
+            }
+            this.Hazen = rhs.Hazen;
+            this.Darcy = rhs.Darcy;
+            this.Manning = rhs.Manning;
+            this.MinorLoss = rhs.MinorLoss;
             this.SortCode = rhs.SortCode;
+            this.Description = rhs.Description;
+            this.KeyWord = string.Join(",", rhs.KeyWord);
         }
 
         /// <summary>
@@ -105,6 +114,13 @@
         public double? Manning { get; set; }
 
         /// <summary>
+        /// 绯绘暟
+        /// </summary>
+        [DisplayName("灞�闃荤郴鏁�")]
+        [Browsable(true)]
+        public double MinorLoss { get; set; }
+
+        /// <summary>
         /// 鎺掑簭鐮�
         /// </summary>
         [DisplayName("鎺掑簭鐮�")]

--
Gitblit v1.9.3