From d3cf19f5fc555eb53d74ca08f157cca5c3c8311c Mon Sep 17 00:00:00 2001
From: Shuxia Ning <NingShuxia0927@outlook.com>
Date: 星期三, 14 八月 2024 10:57:20 +0800
Subject: [PATCH] 界面调整

---
 WinFrmUI/Yw.WinFrmUI.Hydro.Core/03-property/03-link/HydroValvePropertyViewModel.cs |  105 +++++++++++++++++++++++++++++++++++++++++-----------
 1 files changed, 82 insertions(+), 23 deletions(-)

diff --git a/WinFrmUI/Yw.WinFrmUI.Hydro.Core/03-property/03-link/HydroValvePropertyViewModel.cs b/WinFrmUI/Yw.WinFrmUI.Hydro.Core/03-property/03-link/HydroValvePropertyViewModel.cs
index 176e981..6bab185 100644
--- a/WinFrmUI/Yw.WinFrmUI.Hydro.Core/03-property/03-link/HydroValvePropertyViewModel.cs
+++ b/WinFrmUI/Yw.WinFrmUI.Hydro.Core/03-property/03-link/HydroValvePropertyViewModel.cs
@@ -3,7 +3,7 @@
     /// <summary>
     /// 闃�闂ㄥ睘鎬ц鍥�
     /// </summary>
-    public class HydroValvePropertyViewModel : HydroParterPropertyViewModel
+    public class HydroValvePropertyViewModel : HydroParterPropertyViewModel, IHydroLinkPropertyViewModel
     {
         /// <summary>
         /// 
@@ -15,44 +15,103 @@
         /// </summary>
         public HydroValvePropertyViewModel(Yw.Model.HydroValveInfo rhs) : base(rhs)
         {
-
+            this.StartCode = rhs.StartCode;
+            this.EndCode = rhs.EndCode;
+            this.LinkStatus = rhs.LinkStatus;
+            this.Diameter = rhs.Diameter;
+            this.MinorLoss = rhs.MinorLoss;
+            this.ValveType = rhs.ValveType;
+            this.ValveSetting = rhs.ValveSetting;
         }
 
-        //
-        // 鎽樿:
-        //     涓婃父鑺傜偣
+        /// <summary>
+        /// 涓婃父鑺傜偣缂栫爜
+        /// </summary>
+        [Category("鍩虹淇℃伅")]
+        [DisplayName("涓婃父鑺傜偣缂栫爜")]
+        [PropertyOrder(11)]
+        [Browsable(true)]
         public string StartCode { get; set; }
 
-        //
-        // 鎽樿:
-        //     涓嬫父鑺傜偣
+        /// <summary>
+        /// 涓嬫父鑺傜偣缂栫爜
+        /// </summary>
+        [Category("鍩虹淇℃伅")]
+        [DisplayName("涓嬫父鑺傜偣缂栫爜")]
+        [PropertyOrder(12)]
+        [Browsable(true)]
         public string EndCode { get; set; }
 
-        //
-        // 鎽樿:
-        //     绠℃鐘舵��
+        /// <summary>
+        /// 闃�闂ㄧ姸鎬�
+        /// </summary>
+        [Category("鏁版嵁")]
+        [DisplayName("闃�闂ㄧ姸鎬�")]
+        [PropertyOrder(13)]
+        [Browsable(true)]
         public string LinkStatus { get; set; }
 
-        //
-        // 鎽樿:
-        //     鐩村緞
+        /// <summary>
+        /// 鐩村緞
+        /// </summary>
+        [Category("鏁版嵁")]
+        [DisplayName("鐩村緞")]
+        [PropertyOrder(14)]
+        [Browsable(true)]
         public double Diameter { get; set; }
 
-        //
-        // 鎽樿:
-        //     灞�閮ㄩ樆鍔涚郴鏁�
+        /// <summary>
+        /// 灞�閮ㄩ樆鍔涚郴鏁�
+        /// </summary>
+        [Category("鏁版嵁")]
+        [DisplayName("灞�閮ㄩ樆鍔涚郴鏁�")]
+        [PropertyOrder(15)]
+        [Browsable(true)]
         public double MinorLoss { get; set; }
 
-        //
-        // 鎽樿:
-        //     闃�闂ㄧ被鍨�
+        /// <summary>
+        /// 闃�闂ㄧ被鍨�
+        /// </summary>
+        [Category("鏁版嵁")]
+        [DisplayName("闃�闂ㄧ被鍨�")]
+        [PropertyOrder(16)]
+        [Browsable(true)]
         public string ValveType { get; set; }
 
-        //
-        // 鎽樿:
-        //     闃�闂ㄨ缃�
+        /// <summary>
+        /// 闃�闂ㄨ缃�
+        /// </summary>
+        [Category("鏁版嵁")]
+        [DisplayName("闃�闂ㄨ缃�")]
+        [PropertyOrder(17)]
+        [Browsable(true)]
         public string ValveSetting { get; set; }
 
+        /// <summary>
+        /// 娴侀噺
+        /// </summary>
+        [Category("璁$畻缁撴灉")]
+        [DisplayName("娴侀噺")]
+        [PropertyOrder(101)]
+        [Browsable(true)]
+        public double? CalcuFlow { get; set; }
 
+        /// <summary>
+        /// 娴侀��
+        /// </summary>
+        [Category("璁$畻缁撴灉")]
+        [DisplayName("娴侀��")]
+        [PropertyOrder(102)]
+        [Browsable(true)]
+        public double? CalcuVelocity { get; set; }
+
+        /// <summary>
+        /// 姘村ご鎹熷け
+        /// </summary>
+        [Category("璁$畻缁撴灉")]
+        [DisplayName("姘村ご鎹熷け")]
+        [PropertyOrder(103)]
+        [Browsable(true)]
+        public double? CalcuHeadLoss { get; set; }
     }
 }

--
Gitblit v1.9.3