Shuxia Ning
2024-10-23 b5549ca8f976a95a7c70d2e9525d986dc1e7a575
WinFrmUI/Yw.WinFrmUI.Phart.Core/01-perform/01-pump-chart/01-chart/03-serial-parallel/PumpSerialParallelInfoViewModel.cs
@@ -1,4 +1,6 @@
namespace Yw.WinFrmUI.Phart
using System.ComponentModel.DataAnnotations;
namespace Yw.WinFrmUI.Phart
{
    public class PumpSerialParallelInfoViewModel: PumpSerialParallelViewModel
    { 
@@ -17,6 +19,10 @@
            this.QueryP = rhs.QueryP;
            this.QueryE = rhs.QueryE;
            this.ExtendRatio = rhs.ExtendRatio;
            this.IsDefault = rhs.IsDefault;
            this.RunStatus = rhs.RunStatus;
            this.CalcuQ = rhs.CalcuQ;
            this.CalcuH = rhs.CalcuH;
            this.Calc();
        }
@@ -25,14 +31,15 @@
        public string QueryH { get; set; }
        public string QueryE { get; set; }
        public string QueryP { get; set; }
        public double ExtendRatio { get; set; } = 100;
        public double ExtendRatio { get; set; } = 100;
        public Yw.Geometry.CubicSpline2d QhCalc { get; set; }
        public Yw.Geometry.CubicSpline2d QeCalc { get; set; }
        public Yw.Geometry.CubicSpline2d QpCalc { get; set; }
        public bool IsSerialParallel { get; set; }
        public Yw.Geometry.CubicSpline2d QpCalc { get; set; }
        public bool IsDefault { get; set; }
        public bool RunStatus { get; set; }
        public double? CalcuQ { get; set; }
        public double? CalcuH { get; set; }
        public void Calc()
        {
            this.CurrentSpeed = Math.Round(this.CurrentHz / 50 * this.RatedSpeed);