lixiaojun
2025-01-24 7b65f86343ca014b12894f09b7d62e8b5ac1f95d
WinFrmUI/Yw.WinFrmUI.Hydro.Core/04-viewmodel/03-node/03-junction/00-core/HydroJunctionViewModel.cs
@@ -16,13 +16,9 @@
        public HydroJunctionViewModel(Yw.Model.HydroJunctionInfo rhs, Yw.Model.HydroModelInfo hydroInfo) : base(rhs, hydroInfo)
        {
            this.Elev = Math.Round(rhs.Elev, 4);
            this.UpdatePropStatus(nameof(this.Elev), rhs, nameof(rhs.Elev));
            this.MinorLoss = rhs.MinorLoss;
            this.UpdatePropStatus(nameof(this.MinorLoss), rhs, nameof(rhs.MinorLoss));
            this.Demand = rhs.Demand;
            this.UpdatePropStatus(nameof(this.Demand), rhs, nameof(rhs.Demand));
            this.DemandPattern = rhs.DemandPattern;
            this.UpdatePropStatus(nameof(this.DemandPattern), rhs, nameof(rhs.DemandPattern));
        }
@@ -45,7 +41,7 @@
        [Display(Name = "损失系数")]
        [PropertyOrder(2002)]
        [Browsable(true)]
        public virtual double? MinorLoss { get; set; }
        public virtual double MinorLoss { get; set; }
        /// <summary>
        /// 需水量
@@ -56,7 +52,7 @@
        [DisplayUnit("m³/h")]
        [PropertyOrder(2003)]
        [Browsable(false)]
        public virtual double? Demand { get; set; }
        public virtual double Demand { get; set; }
        /// <summary>
        /// 需水模式
@@ -99,13 +95,9 @@
        {
            base.UpdateProperty();
            this.Elev = Math.Round(this.Vmo.Elev, 4);
            this.UpdatePropStatus(nameof(this.Elev), this.Vmo, nameof(this.Vmo.Elev));
            this.MinorLoss = this.Vmo.MinorLoss;
            this.UpdatePropStatus(nameof(this.MinorLoss), this.Vmo, nameof(this.Vmo.MinorLoss));
            this.Demand = this.Vmo.Demand;
            this.UpdatePropStatus(nameof(this.Demand), this.Vmo, nameof(this.Vmo.Demand));
            this.DemandPattern = this.Vmo.DemandPattern;
            this.UpdatePropStatus(nameof(this.DemandPattern), this.Vmo, nameof(this.Vmo.DemandPattern));
        }
        /// <summary>
@@ -115,13 +107,9 @@
        {
            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));
        }
        /// <summary>