ÎļþÃû´Ó Test/IStation.Test.Init/AnalysisDeviation/Station2ScadaSchedule.cs ÐÞ¸Ä |
| | |
| | | public Station2ScadaSchedule() { } |
| | | public Station2ScadaSchedule(Station2ScadaSchedule rhs) |
| | | { |
| | | this.Time = rhs.Time; |
| | | this.Time = rhs.Time; |
| | | |
| | | this.RPump21 = rhs.RPump21; |
| | | this.RPump22 = rhs.RPump22; |
| | |
| | | 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; |
| | |
| | | |
| | | |
| | | this.DN2700F = rhs.DN2700F; |
| | | this.DN2400F = rhs.DN2400F; |
| | | this.DN2400F = rhs.DN2400F; |
| | | this.Pump21F = rhs.Pump21F; |
| | | this.Pump22F = rhs.Pump22F; |
| | | this.Pump23F = rhs.Pump23F; |
| | |
| | | this.Pump25F = rhs.Pump25F; |
| | | this.Pump26F = rhs.Pump26F; |
| | | this.Pump27F = rhs.Pump27F; |
| | | |
| | | |
| | | this.Pump21 = rhs.Pump21; |
| | | this.Pump22 = rhs.Pump22; |
| | | this.Pump23 = rhs.Pump23; |
| | |
| | | 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; |
| | |
| | | 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; |
| | |
| | | this.Pump25FM = rhs.Pump25FM; |
| | | this.Pump26FM = rhs.Pump26FM; |
| | | this.Pump27FM = rhs.Pump27FM; |
| | | |
| | | |
| | | this.Pump21M = rhs.Pump21M; |
| | | this.Pump22M = rhs.Pump22M; |
| | | this.Pump23M = rhs.Pump23M; |
| | |
| | | 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) |
| | |
| | | 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; |
| | |
| | | |
| | | public void Set() |
| | | { |
| | | |
| | | |
| | | this.DN2700PDiff = Diff(this.DN2700PM, this.DN2700P, 4); |
| | | this.DN2400PDiff = Diff(this.DN2400PM, this.DN2400P, 4); |
| | | |
| | |
| | | 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); |
| | |
| | | this.RunFlagsM = "å¼å¸¸"; |
| | | } |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// Round |
| | | /// </summary> |
| | |
| | | double? t = null; |
| | | if (check.HasValue && check.Value != 0) |
| | | { |
| | | t = subtraction - minuend; |
| | | t = subtraction - minuend; |
| | | } |
| | | return Round(t, digits); |
| | | } |
| | |
| | | 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; |
| | | } |
| | |
| | | |
| | | 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 }, |
| | |
| | | { 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 }, |
| | |
| | | } |
| | | |
| | | public Dictionary<int, double> ToFlagHeadDict() |
| | | { |
| | | { |
| | | return new Dictionary<int, double> |
| | | { |
| | | { GlobalHelper.Flag21, this.Pump21P??0 }, |
| | |
| | | } |
| | | |
| | | public Dictionary<int, double> ToFlagFlowDict() |
| | | { |
| | | { |
| | | return new Dictionary<int, double> |
| | | { |
| | | { GlobalHelper.Flag21, this.Pump21F??0 }, |
| | |
| | | |
| | | [Display(Name = "è¿è¡æ°é")] |
| | | public int RunCount { get; set; } |
| | | |
| | | |
| | | [Display(Name = "è¿è¡é¢çæ°ç»")] |
| | | public Dictionary<int, double> RunFlagHzDict { get; set; } |
| | | #endregion |
| | |
| | | #endregion |
| | | |
| | | #region é¢ç |
| | | |
| | | |
| | | [Display(Name = "é¢ç21")] |
| | | public double? Pump21 { get; set; } |
| | | |
| | |
| | | #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 åå |
| | |
| | | #endregion |
| | | |
| | | #region æµé |
| | | |
| | | |
| | | |
| | | |
| | | [Display(Name = "æµéDN2400")] |
| | |
| | | #endregion |
| | | |
| | | #region é¢ç |
| | | |
| | | |
| | | |
| | | [Display(Name = "é¢ç21")] |
| | | public double? Pump21M { get; set; } |
| | |
| | | |
| | | [Display(Name = "æ»åç")] |
| | | public double TotalPowerDiff { get; set; } |
| | | |
| | | |
| | | |
| | | |
| | | [Display(Name = "è¿è¡ç»å")] |
| | | public string RunFlagsDiff { get; set; } |
| | | #endregion |
| | |
| | | #endregion |
| | | |
| | | #region é¢ç |
| | | |
| | | |
| | | |
| | | |
| | | [Display(Name = "é¢ç21")] |
| | | public double? Pump21Diff { get; set; } |
| | | |
| | |
| | | |
| | | |
| | | #endregion |
| | | |
| | | |
| | | public Model.ScheduleConclusion ScheduleConclusion { get; set; } |
| | | public List<Model.SchedulePump> SchedulePumpList { get; set; } |
| | | } |