Shuxia Ning
2024-08-28 1a8a81785470302fc7fbd6914a9df5d1094dac2a
Test/IStation.Test.Init/Analysis/Station2ScadaSchedule.cs
ÎļþÃû´Ó Test/IStation.Test.Init/AnalysisDeviation/Station2ScadaSchedule.cs ÐÞ¸Ä
@@ -11,7 +11,7 @@
        public Station2ScadaSchedule() { }
        public Station2ScadaSchedule(Station2ScadaSchedule rhs)
        {
            this.Time = rhs.Time;
            this.Time = rhs.Time;
            this.RPump21 = rhs.RPump21;
            this.RPump22 = rhs.RPump22;
@@ -22,7 +22,7 @@
            this.RPump27 = rhs.RPump27;
            this.DN2700P = rhs.DN2700P;
            this.DN2400P = rhs.DN2400P;
            this.DN2400P = rhs.DN2400P;
            this.Pump21P = rhs.Pump21P;
            this.Pump22P = rhs.Pump22P;
            this.Pump23P = rhs.Pump23P;
@@ -33,7 +33,7 @@
            this.DN2700F = rhs.DN2700F;
            this.DN2400F = rhs.DN2400F;
            this.DN2400F = rhs.DN2400F;
            this.Pump21F = rhs.Pump21F;
            this.Pump22F = rhs.Pump22F;
            this.Pump23F = rhs.Pump23F;
@@ -41,7 +41,7 @@
            this.Pump25F = rhs.Pump25F;
            this.Pump26F = rhs.Pump26F;
            this.Pump27F = rhs.Pump27F;
            this.Pump21 = rhs.Pump21;
            this.Pump22 = rhs.Pump22;
            this.Pump23 = rhs.Pump23;
@@ -49,10 +49,10 @@
            this.Pump25 = rhs.Pump25;
            this.Pump26 = rhs.Pump26;
            this.Pump27 = rhs.Pump27;
            this.DN2700PM = rhs.DN2700PM;
            this.DN2400PM = rhs.DN2400PM;
            this.DN2400PM = rhs.DN2400PM;
            this.Pump21PM = rhs.Pump21PM;
            this.Pump22PM = rhs.Pump22PM;
            this.Pump23PM = rhs.Pump23PM;
@@ -60,9 +60,9 @@
            this.Pump25PM = rhs.Pump25PM;
            this.Pump26PM = rhs.Pump26PM;
            this.Pump27PM = rhs.Pump27PM;
            this.DN2700FM = rhs.DN2700FM;
            this.DN2400FM = rhs.DN2400FM;
            this.DN2400FM = rhs.DN2400FM;
            this.Pump21FM = rhs.Pump21FM;
            this.Pump22FM = rhs.Pump22FM;
            this.Pump23FM = rhs.Pump23FM;
@@ -70,7 +70,7 @@
            this.Pump25FM = rhs.Pump25FM;
            this.Pump26FM = rhs.Pump26FM;
            this.Pump27FM = rhs.Pump27FM;
            this.Pump21M = rhs.Pump21M;
            this.Pump22M = rhs.Pump22M;
            this.Pump23M = rhs.Pump23M;
@@ -89,7 +89,7 @@
            var p2_list = new List<double?>() { this.DN2400P, this.DN2700P };
            this.TotalHead = Round(p2_list.Max(), 4) ?? 0;
            var limited_speed_ratio = 0.1;
            var limited_speed_ratio = 0.1;
            var run_flags = new List<int>();
            var run_flag_hz_dict = new Dictionary<int, double>();
            if (this.Pump21 > limited_speed_ratio)
@@ -127,7 +127,7 @@
                run_flags.Add(GlobalHelper.Flag27);
                run_flag_hz_dict.Add(GlobalHelper.Flag27, this.Pump27.Value);
            }
            this.RunFlags = IntListHelper.ToString(run_flags);
            this.RunCount = run_flags.Count;
            this.RunFlagHzDict = run_flag_hz_dict;
@@ -135,7 +135,7 @@
        public void Set()
        {
            this.DN2700PDiff = Diff(this.DN2700PM, this.DN2700P, 4);
            this.DN2400PDiff = Diff(this.DN2400PM, this.DN2400P, 4);
@@ -158,7 +158,7 @@
            this.Pump26FDiff = DiffCheck(this.Pump26FM, this.Pump26F, this.Pump26, 4);
            this.Pump27FDiff = DiffCheck(this.Pump27FM, this.Pump27F, this.Pump27, 4);
            this.Pump21Diff = DiffCheckPump(this.Pump21M * 50, this.Pump21 * 50, this.Pump21, 2);
            this.Pump22Diff = DiffCheckPump(this.Pump22M * 50, this.Pump22 * 50, this.Pump22, 2);
            this.Pump23Diff = DiffCheckPump(this.Pump23M * 50, this.Pump23 * 50, this.Pump23, 2);
@@ -280,7 +280,7 @@
                this.RunFlagsM = "异常";
            }
        }
        /// <summary>
        /// Round
        /// </summary>
@@ -344,7 +344,7 @@
            double? t = null;
            if (check.HasValue && check.Value != 0)
            {
                t = subtraction - minuend;
                t = subtraction - minuend;
            }
            return Round(t, digits);
        }
@@ -359,7 +359,7 @@
        private double? DiffCheckPump(double? subtraction, double? minuend, double? check, int digits)
        {
            double? t = null;
            if ((check.HasValue && check.Value != 0) ||(subtraction.HasValue && subtraction.Value != 0))
            if ((check.HasValue && check.Value != 0) || (subtraction.HasValue && subtraction.Value != 0))
            {
                t = subtraction - minuend;
            }
@@ -372,7 +372,7 @@
        public Dictionary<int, double> ToFlagRpmDict()
        {
           return new Dictionary<int, double>
            return new Dictionary<int, double>
            {
                { GlobalHelper.Flag21, this.Pump21 ?? 0 * 740 },
                { GlobalHelper.Flag22, this.Pump22 ?? 0 * 495 },
@@ -381,12 +381,12 @@
                { GlobalHelper.Flag25, this.Pump25 ?? 0 * 495 },
                { GlobalHelper.Flag26, this.Pump26 ?? 0 * 495 },
                { GlobalHelper.Flag27, this.Pump27 ?? 0 * 740 }
            };
            };
        }
        public Dictionary<int, double> ToFlagInletWaterLevelDict()
        {
        {
            return new Dictionary<int, double>
            {
                { GlobalHelper.Flag21, this.RPump21??0 },
@@ -400,7 +400,7 @@
        }
        public Dictionary<int, double> ToFlagHeadDict()
        {
        {
            return new Dictionary<int, double>
            {
                { GlobalHelper.Flag21, this.Pump21P??0 },
@@ -414,7 +414,7 @@
        }
        public Dictionary<int, double> ToFlagFlowDict()
        {
        {
            return new Dictionary<int, double>
            {
                { GlobalHelper.Flag21, this.Pump21F??0 },
@@ -523,7 +523,7 @@
        [Display(Name = "运行数量")]
        public int RunCount { get; set; }
        [Display(Name = "运行频率数组")]
        public Dictionary<int, double> RunFlagHzDict { get; set; }
        #endregion
@@ -617,7 +617,7 @@
        #endregion
        #region é¢‘率
        [Display(Name = "频率21")]
        public double? Pump21 { get; set; }
@@ -651,10 +651,10 @@
        #region ç»Ÿè®¡  
        [Display(Name = "总功率")]
        public double TotalPowerM { get; set; }
        public double TotalPowerM { get; set; }
        [Display(Name = "运行组合")]
        public string RunFlagsM { get; set; }
        public string RunFlagsM { get; set; }
        #endregion
        #region åŽ‹åŠ›
@@ -691,7 +691,7 @@
        #endregion
        #region æµé‡
        [Display(Name = "流量DN2400")]
@@ -725,7 +725,7 @@
        #endregion
        #region é¢‘率
        [Display(Name = "频率21")]
        public double? Pump21M { get; set; }
@@ -759,8 +759,8 @@
        [Display(Name = "总功率")]
        public double TotalPowerDiff { get; set; }
        [Display(Name = "运行组合")]
        public string RunFlagsDiff { get; set; }
        #endregion
@@ -829,8 +829,8 @@
        #endregion
        #region é¢‘率
        [Display(Name = "频率21")]
        public double? Pump21Diff { get; set; }
@@ -856,7 +856,7 @@
        #endregion
        public Model.ScheduleConclusion ScheduleConclusion { get; set; }
        public List<Model.SchedulePump> SchedulePumpList { get; set; }
    }