From 278e94cb1b045288d1205f36b67f60cb5224754c Mon Sep 17 00:00:00 2001
From: lixiaojun <1287241240@qq.com>
Date: 星期三, 06 十一月 2024 11:50:19 +0800
Subject: [PATCH] 属性调整

---
 WinFrmUI/Yw.WinFrmUI.Hydro.Core/04-viewmodel/03-node/03-junction/00-core/HydroJunctionViewModel.cs |   32 +++++++++++++++++++++++++-------
 1 files changed, 25 insertions(+), 7 deletions(-)

diff --git a/WinFrmUI/Yw.WinFrmUI.Hydro.Core/04-viewmodel/03-node/03-junction/00-core/HydroJunctionViewModel.cs b/WinFrmUI/Yw.WinFrmUI.Hydro.Core/04-viewmodel/03-node/03-junction/00-core/HydroJunctionViewModel.cs
index 2ed2ffb..e638f55 100644
--- a/WinFrmUI/Yw.WinFrmUI.Hydro.Core/04-viewmodel/03-node/03-junction/00-core/HydroJunctionViewModel.cs
+++ b/WinFrmUI/Yw.WinFrmUI.Hydro.Core/04-viewmodel/03-node/03-junction/00-core/HydroJunctionViewModel.cs
@@ -33,8 +33,9 @@
         /// </summary>
         [Category("鏁版嵁")]
         [DisplayName("鏍囬珮")]
-        [PropertyOrder(1001)]
+        [Display(Name = "鏍囬珮(m)")]
         [DisplayUnit("m")]
+        [PropertyOrder(2001)]
         [Browsable(true)]
         public virtual double Elev { get; set; }
 
@@ -43,7 +44,8 @@
         /// </summary>
         [Category("鏁版嵁")]
         [DisplayName("鎹熷け绯绘暟")]
-        [PropertyOrder(1002)]
+        [Display(Name = "鎹熷け绯绘暟")]
+        [PropertyOrder(2002)]
         [Browsable(true)]
         public virtual double? MinorLoss { get; set; }
 
@@ -52,8 +54,9 @@
         /// </summary>
         [Category("鏁版嵁")]
         [DisplayName("闇�姘撮噺")]
-        [PropertyOrder(1003)]
+        [Display(Name = "闇�姘撮噺(m鲁/h)")]
         [DisplayUnit("m鲁/h")]
+        [PropertyOrder(2003)]
         [Browsable(false)]
         public virtual double? Demand { get; set; }
 
@@ -62,8 +65,9 @@
         /// </summary>
         [Category("鏁版嵁")]
         [DisplayName("闇�姘存ā寮�")]
-        [PropertyOrder(1004)]
+        [Display(Name = "闇�姘存ā寮�")]
         [IsHydroPatternPro(HydroPattern.Demand)]
+        [PropertyOrder(2004)]
         [Browsable(false)]
         public virtual string DemandPattern { get; set; }
 
@@ -76,9 +80,9 @@
         /// <summary>
         /// 
         /// </summary>
-        public override void Update()
+        public override void UpdateProperty()
         {
-            base.Update();
+            base.UpdateProperty();
             this.Elev = this.Vmo.Elev;
             this.UpdatePropStatus(nameof(this.Elev), this.Vmo, nameof(this.Vmo.Elev));
             this.MinorLoss = this.Vmo.MinorLoss;
@@ -89,7 +93,21 @@
             this.UpdatePropStatus(nameof(this.DemandPattern), this.Vmo, nameof(this.Vmo.DemandPattern));
         }
 
-
+        /// <summary>
+        /// 
+        /// </summary>
+        public override void UpdateVmoProperty()
+        {
+            base.UpdateVmoProperty();
+            this.Vmo.Elev = this.Elev;
+            this.Vmo.UpdatePropStatus(nameof(this.Vmo.Elev), this, nameof(this.Elev));
+            this.Vmo.MinorLoss = this.MinorLoss;
+            this.Vmo.UpdatePropStatus(nameof(this.Vmo.MinorLoss), this, nameof(this.MinorLoss));
+            this.Vmo.Demand = this.Demand;
+            this.Vmo.UpdatePropStatus(nameof(this.Vmo.Demand), this, nameof(this.Demand));
+            this.Vmo.DemandPattern = this.DemandPattern;
+            this.Vmo.UpdatePropStatus(nameof(this.Vmo.DemandPattern), this, nameof(this.DemandPattern));
+        }
 
 
     }

--
Gitblit v1.9.3