From c22cc4c60e9ff156fc25b39a5c024cc758df354b Mon Sep 17 00:00:00 2001
From: lixiaojun <1287241240@qq.com>
Date: 星期一, 30 十二月 2024 09:40:51 +0800
Subject: [PATCH] 水力模块联动修改

---
 WinFrmUI/Yw.WinFrmUI.Hydro.Core/04-viewmodel/01-parter/HydroParterViewModel.cs |   38 +++++++++++++++++++++++++++++++++++---
 1 files changed, 35 insertions(+), 3 deletions(-)

diff --git a/WinFrmUI/Yw.WinFrmUI.Hydro.Core/04-viewmodel/01-parter/HydroParterViewModel.cs b/WinFrmUI/Yw.WinFrmUI.Hydro.Core/04-viewmodel/01-parter/HydroParterViewModel.cs
index 7585c5f..62370eb 100644
--- a/WinFrmUI/Yw.WinFrmUI.Hydro.Core/04-viewmodel/01-parter/HydroParterViewModel.cs
+++ b/WinFrmUI/Yw.WinFrmUI.Hydro.Core/04-viewmodel/01-parter/HydroParterViewModel.cs
@@ -1,4 +1,6 @@
-锘縩amespace Yw.WinFrmUI
+锘縰sing Yw.Hydro;
+
+namespace Yw.WinFrmUI
 {
     /// <summary>
     /// 姘村姏缁勪欢瑙嗗浘
@@ -14,19 +16,36 @@
         /// <summary>
         /// 
         /// </summary>
-        public HydroParterViewModel(Yw.Model.HydroParterInfo rhs, Yw.Model.HydroModelInfo hydroInfo) 
+        public HydroParterViewModel
+            (
+                Yw.Model.HydroParterInfo rhs,
+                Yw.Model.HydroModelInfo hydroInfo
+            )
         {
             this.Code = rhs.Code;
             this.Name = rhs.Name;
             this.Catalog = HydroParterCatalogHelper.GetName(rhs.Catalog);
             this.ModelType = rhs.ModelType;
             this.DbId = rhs.DbId;
+            this.DbLocked = rhs.DbLocked;
             this.Flags = Yw.Untity.FlagsHelper.ToString(rhs.Flags);
             this.Description = rhs.Description;
-            this.DbLocked = rhs.DbLocked;
 
             this.Vmo = rhs;
             this.HydroInfo = hydroInfo;
+        }
+
+        /// <summary>
+        /// 
+        /// </summary>
+        public HydroParterViewModel
+            (
+                Yw.Model.HydroParterInfo rhs,
+                Yw.Model.HydroModelInfo hydroInfo,
+                HydroParterPropStatusHelper propStatusHelper
+            ) : this(rhs, hydroInfo)
+        {
+            this.PropStatusHelper = propStatusHelper;
         }
 
         /// <summary>
@@ -139,6 +158,12 @@
         [Browsable(false)]
         public virtual Yw.Model.HydroModelInfo HydroInfo { get; set; }
 
+        /// <summary>
+        /// PropStatusHelper
+        /// </summary>
+        [Browsable(false)]
+        public virtual HydroParterPropStatusHelper PropStatusHelper { get; set; }
+
 
         /// <summary>
         /// 鏇存柊灞炴��
@@ -170,6 +195,13 @@
             this.Vmo.Description = this.Description;
         }
 
+        /// <summary>
+        /// 鏇存柊灞炴�х姸鎬�
+        /// </summary>
+        public virtual void UpdatePropStatus(string propName, ePropStatus propStatus, string statusInfo)
+        {
+            this.PropStatusHelper?.UpdatePropStatus(this.Vmo, propName, propStatus, statusInfo);
+        }
 
 
 

--
Gitblit v1.9.3