Shuxia Ning
2024-12-11 f2cc8078a00824a319dab44841f7cb64fdee76b0
WinFrmUI/Yw.WinFrmUI.Phart.Core/01-pump/00-/PumpChartVariableSpeedViewModel.cs
@@ -8,14 +8,23 @@
        public PumpChartVariableSpeedViewModel() { }
        public PumpChartVariableSpeedViewModel(PumpChartVariableSpeedViewModel rhs)
        {
            this.Id = rhs.Id;
            this.CurveName = rhs.CurveName;
            this.Color = rhs.Color;
            this.ColorQH = rhs.ColorQH;
            this.ColorQE = rhs.ColorQE;
            this.ColorQP = rhs.ColorQP;
            this.CurveQHName = rhs.CurveQHName;
            this.CurveQPName = rhs.CurveQPName;
            this.CurveQH = rhs.CurveQH;
            this.CurveQE = rhs.CurveQE;
            this.CurveQP = rhs.CurveQP;
            this.PointEquip = rhs.PointEquip;
            this.ExtendFlow = rhs.ExtendFlow;
            this.CurveQP = rhs.CurveQP;
            this.Q = rhs.Q;
            this.H = rhs.H;
            this.E = rhs.E;
            this.P = rhs.P;
            this.N = rhs.N;
            this.Hz = rhs.Hz;
            this.ExtendQ = rhs.ExtendQ;
        }
@@ -25,14 +34,29 @@
        public string Id { get; set; }
        /// <summary>
        /// 标题
        /// 扬程颜色
        /// </summary>
        public string CurveName { get; set; }
        public Color? ColorQH { get; set; }
        /// <summary>
        /// 颜色
        /// 效率颜色
        /// </summary>
        public Color? Color { get; set; }
        public Color? ColorQE { get; set; }
        /// <summary>
        /// 功率颜色
        /// </summary>
        public Color? ColorQP { get; set; }
        /// <summary>
        ///  流量扬程线名称
        /// </summary>
        public string CurveQHName { get; set; }
        /// <summary>
        ///  流量功率线名称
        /// </summary>
        public string CurveQPName { get; set; }
        /// <summary>
        /// 流量扬程线
@@ -51,16 +75,40 @@
        /// <summary>
        /// 装置点
        /// 流量
        /// </summary>
        public Yw.Geometry.Point2d PointEquip { get; set; }
        public double Q { get; set; }
        /// <summary>
        /// 扬程
        /// </summary>
        public double H { get; set; }
        /// <summary>
        /// 功率
        /// </summary>
        public double? P { get; set; }
        /// <summary>
        /// 效率
        /// </summary>
        public double? E { get; set; }
        /// <summary>
        /// 转速
        /// </summary>
        public double N { get; set; }
        /// <summary>
        /// 频率
        /// </summary>
        public double Hz { get; set; }
        /// <summary>
        /// 延长流量
        /// </summary>
        public double? ExtendFlow { get; set; }
        public double? ExtendQ { get; set; }
        public bool IsValid()
        {
            if (this.CurveQH == null)