duheng
2024-11-08 5af88720773df7be98372ff8bce0acffa5dffb73
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));
        }
    }