From 5af88720773df7be98372ff8bce0acffa5dffb73 Mon Sep 17 00:00:00 2001 From: duheng <2784771470@qq.com> Date: 星期五, 08 十一月 2024 14:59:51 +0800 Subject: [PATCH] Merge branch 'master' of http://47.103.154.90:83/r/HStation/XHS.V1.0 --- WinFrmUI/Yw.WinFrmUI.Hydro.Core/04-viewmodel/03-node/03-junction/00-core/HydroJunctionViewModel.cs | 22 ++++++++++++++++++---- 1 files changed, 18 insertions(+), 4 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 2e824ce..9df3b40 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 @@ -66,7 +66,7 @@ [Category("鏁版嵁")] [DisplayName("闇�姘存ā寮�")] [Display(Name = "闇�姘存ā寮�")] - [IsHydroPatternPro(HydroPattern.Demand)] + [HydroPatternPro(HydroPattern.Demand)] [PropertyOrder(2004)] [Browsable(false)] public virtual string DemandPattern { get; set; } @@ -80,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; @@ -93,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