| | |
| | | _dict.Add(3, new StationInfo(9, new IStation.Calculation.shysäºå·æ²éæµ·æ¹å()));//OK |
| | | _dict.Add(4, new StationInfo(3, new IStation.Calculation.shysäºå·æ²ä¸¥æ¡¥æ¹å1())); |
| | | _dict.Add(5, new StationInfo(5, new IStation.Calculation.shysäºå·æ²ä¸¥æ¡¥æ¹å2()));//OK |
| | | _dict.Add(6, new StationInfo(4, new IStation.Calculation.shysäºå·æ²ä¸¥æ¡¥æ¹å2()));//OK |
| | | _dict.Add(6, new StationInfo(4, new IStation.Calculation.shys严桥泵ç«()));//OK |
| | | _dict.Add(7, new StationInfo(6, new IStation.Calculation.shys临æ±1å·æ³µæ¿()));//OK |
| | | _dict.Add(8, new StationInfo(7, new IStation.Calculation.shys临æ±2å·æ³µæ¿()));//OK |
| | | _dict.Add(9, new StationInfo(8, new IStation.Calculation.shys徿³¾æ³µç«()));//OK |
| | | _dict.Add(10, new StationInfo(10, new IStation.Calculation.shyséæµ·æ³µç«()));//OK |
| | | _dict.Add(11, new StationInfo(11, new IStation.Calculation.shys忱忳µç«()));//OK |
| | | _dict.Add(12, new StationInfo(15, new IStation.Calculation.shyséè¡ä¸è¾()));//OK |
| | | _dict.Add(13, new StationInfo(16, new IStation.Calculation.shyséè¡äºè¾()));//OK |
| | | _dict.Add(14, new StationInfo(17, new IStation.Calculation.shysæ³°åæ³µç«()));//OK |
| | | _dict.Add(15, new StationInfo(19, new IStation.Calculation.shyséæ³½æ³µç«()));//OK |
| | | _dict.Add(16, new StationInfo(20, new IStation.Calculation.shysæ¾æ±æ³µç«()));//OK |
| | | _dict.Add(17, new StationInfo(21, new IStation.Calculation.shys大桥泵ç«()));//OK |
| | | //{ |
| | | |
| | | // {1,2},//é¿å
´æ³µç« |
| | |
| | | /// æµç¹åå
¸(è¿ä¸ªæ¯ä¸ªæ³µç«é½ä¸ä¸æ ·) |
| | | /// </summary> |
| | | private Tuple<string, long> monitorè¿æ°´è°èæ± æ¶²ä½ = new Tuple<string, long>("_0402010101089903001", 409); |
| | | |
| | | //private Tuple<string, long> monitoråºæ°´è°èæ± æ¶²ä½ = new Tuple<string, long>("_0402010101089903002", 409);Istion没æ |
| | | |
| | | |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | |
| | | namespace IStation.Calculation |
| | | { |
| | | internal class shys临æ±1å·æ³µæ¿ : PlanAnaBaseCalculator |
| | | { |
| | | public shys临æ±1å·æ³µæ¿() |
| | | { |
| | | this._corpID = 4; |
| | | this._dispatchAnaCalc = new IStation.Calculation.DispatchAna.Calculator_OptAna_General(); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æµç¹åå
¸(è¿ä¸ªæ¯ä¸ªæ³µç«é½ä¸ä¸æ ·) |
| | | /// </summary> |
| | | private Tuple<string, long> monitorè¿æ°´åæ± æ¶²ä½ = new Tuple<string, long>("_0402010102089903003", 456); |
| | | private Tuple<string, long> monitoråºæ°´åæ± æ¶²ä½ = new Tuple<string, long>("_0402010102089903002", 458); |
| | | |
| | | |
| | | |
| | | |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | /// <param name="tagname"></param> |
| | | /// <returns></returns> |
| | | public override bool Isæ¶²ä½Monitor(string tagname) |
| | | { |
| | | if (tagname == monitorè¿æ°´åæ± æ¶²ä½.Item1) |
| | | return true; |
| | | else |
| | | return false; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æ ¹æ®ä¸é«æä¾çåæ°,æå»ºè°åº¦åææéçåæ°, (è¿ä¸ªæ¯ä¸ªæ³µç«é½ä¸ä¸æ ·) |
| | | /// </summary> |
| | | /// <param name="allRecords_hour"></param> |
| | | /// <param name="error_info"></param> |
| | | /// <returns></returns> |
| | | protected override DispatchAna.Model.RequestParasComplex BuildDispatchAnaRequest( |
| | | List<IStation.Dto.MonitorRecord4SG> allRecords_hour, |
| | | out string error_info) |
| | | { |
| | | if (allRecords_hour == null || allRecords_hour.Count == 0) |
| | | { |
| | | error_info = "äºå·æ²åæ¡¥æ¹åæµç¹æ°æ®ä¸ºç©º"; |
| | | return null; |
| | | } |
| | | var complex_dispatch_request = new DispatchAna.Model.RequestParasComplex(); |
| | | var water_level = allRecords_hour.Find(x => x.MonitorTag == monitorè¿æ°´åæ± æ¶²ä½.Item1); |
| | | if (water_level == null) |
| | | { |
| | | water_level = allRecords_hour.Find(x => x.MonitorTag == monitorè¿æ°´åæ± æ¶²ä½.Item1); |
| | | if (water_level == null) |
| | | { |
| | | error_info = "äºå·æ²åæ¡¥æ¹åæ°´åºæ¶²ä½æµç¹æªæ¾å°"; |
| | | return null; |
| | | } |
| | | } |
| | | //var pipe1_flow = allRecords_hour.Find(x => x.MonitorTag == monitoråºæ°´æ»ç®¡ç¬æ¶æµé.Item1); |
| | | //if (pipe1_flow == null) |
| | | //{ |
| | | // error_info = "äºå·æ²åæ¡¥æ¹å水管é1æµéæµç¹æªæ¾å°"; |
| | | // return null; |
| | | //} |
| | | |
| | | //var pipe1_press = allRecords_hour.Find(x => x.MonitorTag == monitoråºæ°´æ»ç®¡åå.Item1); |
| | | //if (pipe1_press == null) |
| | | //{ |
| | | // error_info = "äºå·æ²åæ¡¥æ¹å水管é1ååæµç¹æªæ¾å°"; |
| | | // return null; |
| | | //} |
| | | |
| | | |
| | | complex_dispatch_request.CorpID = this._corpID; |
| | | complex_dispatch_request.StationID = this._stationID; |
| | | complex_dispatch_request.SchemeNumber = 1; |
| | | complex_dispatch_request.PressValueType = DispatchAna.Model.RequestParasComplex.ePressValueType.åå; |
| | | complex_dispatch_request.WaterLevelPara = new List<DispatchAna.Model.WaterLevelPara>() |
| | | { |
| | | new DispatchAna.Model.WaterLevelPara(){ Name="æ°´æ± ", Value = water_level.RecordValue} |
| | | }; |
| | | complex_dispatch_request.OutletPipePara = new List<DispatchAna.Model.OutletPipePara>(); |
| | | complex_dispatch_request.OutletPipePara.Add(new DispatchAna.Model.OutletPipePara() |
| | | { |
| | | Name = "æ»ç®¡è·¯", |
| | | //TargetFlow = pipe1_flow.RecordValue, |
| | | //TargetPress = pipe1_press.RecordValue, |
| | | }); |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | error_info = null; |
| | | return complex_dispatch_request; |
| | | } |
| | | |
| | | |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | |
| | | namespace IStation.Calculation |
| | | { |
| | | internal class shys临æ±2å·æ³µæ¿ : PlanAnaBaseCalculator |
| | | { |
| | | public shys临æ±2å·æ³µæ¿() |
| | | { |
| | | this._corpID = 4; |
| | | this._dispatchAnaCalc = new IStation.Calculation.DispatchAna.Calculator_OptAna_General(); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æµç¹åå
¸(è¿ä¸ªæ¯ä¸ªæ³µç«é½ä¸ä¸æ ·) |
| | | /// </summary> |
| | | |
| | | |
| | | private Tuple<string, long> monitoråºæ°´æ»ç®¡1åå = new Tuple<string, long>("_0402010601040104001", 510); |
| | | |
| | | private Tuple<string, long> monitoråºæ°´æ»ç®¡1ç¬æ¶æµé= new Tuple<string, long>("_0402010601040105001", 511); |
| | | private Tuple<string, long> monitoråºæ°´æ»ç®¡2åå = new Tuple<string, long>("_0402010601040204001", 513); |
| | | private Tuple<string, long> monitoråºæ°´æ»ç®¡2ç¬æ¶æµé = new Tuple<string, long>("_0402010601040205001", 514); |
| | | private Tuple<string, long> monitoråºæ°´æ»ç®¡3åå = new Tuple<string, long>("_0402010601040304001", 516); |
| | | private Tuple<string, long> monitoråºæ°´æ»ç®¡3ç¬æ¶æµé = new Tuple<string, long>("_0402010601040305001", 517); |
| | | |
| | | private Tuple<string, long> monitorè°èæ± æ¶²ä½ = new Tuple<string, long>("_0402010102089903001", 509); |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | /// <param name="tagname"></param> |
| | | /// <returns></returns> |
| | | public override bool Isæ¶²ä½Monitor(string tagname) |
| | | { |
| | | if (tagname == monitorè°èæ± æ¶²ä½.Item1) |
| | | return true; |
| | | else |
| | | return false; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æ ¹æ®ä¸é«æä¾çåæ°,æå»ºè°åº¦åææéçåæ°, (è¿ä¸ªæ¯ä¸ªæ³µç«é½ä¸ä¸æ ·) |
| | | /// </summary> |
| | | /// <param name="allRecords_hour"></param> |
| | | /// <param name="error_info"></param> |
| | | /// <returns></returns> |
| | | protected override DispatchAna.Model.RequestParasComplex BuildDispatchAnaRequest( |
| | | List<IStation.Dto.MonitorRecord4SG> allRecords_hour, |
| | | out string error_info) |
| | | { |
| | | if (allRecords_hour == null || allRecords_hour.Count == 0) |
| | | { |
| | | error_info = "äºå·æ²åæ¡¥æ¹åæµç¹æ°æ®ä¸ºç©º"; |
| | | return null; |
| | | } |
| | | var complex_dispatch_request = new DispatchAna.Model.RequestParasComplex(); |
| | | var water_level = allRecords_hour.Find(x => x.MonitorTag == monitorè°èæ± æ¶²ä½.Item1); |
| | | if (water_level == null) |
| | | { |
| | | water_level = allRecords_hour.Find(x => x.MonitorTag == monitorè°èæ± æ¶²ä½.Item1); |
| | | if (water_level == null) |
| | | { |
| | | error_info = "äºå·æ²åæ¡¥æ¹åæ°´åºæ¶²ä½æµç¹æªæ¾å°"; |
| | | return null; |
| | | } |
| | | } |
| | | //var pipe1_flow = allRecords_hour.Find(x => x.MonitorTag == monitoråºæ°´æ»ç®¡ç¬æ¶æµé.Item1); |
| | | //if (pipe1_flow == null) |
| | | //{ |
| | | // error_info = "äºå·æ²åæ¡¥æ¹å水管é1æµéæµç¹æªæ¾å°"; |
| | | // return null; |
| | | //} |
| | | |
| | | //var pipe1_press = allRecords_hour.Find(x => x.MonitorTag == monitoråºæ°´æ»ç®¡åå.Item1); |
| | | //if (pipe1_press == null) |
| | | //{ |
| | | // error_info = "äºå·æ²åæ¡¥æ¹å水管é1ååæµç¹æªæ¾å°"; |
| | | // return null; |
| | | //} |
| | | |
| | | |
| | | complex_dispatch_request.CorpID = this._corpID; |
| | | complex_dispatch_request.StationID = this._stationID; |
| | | complex_dispatch_request.SchemeNumber = 1; |
| | | complex_dispatch_request.PressValueType = DispatchAna.Model.RequestParasComplex.ePressValueType.åå; |
| | | complex_dispatch_request.WaterLevelPara = new List<DispatchAna.Model.WaterLevelPara>() |
| | | { |
| | | new DispatchAna.Model.WaterLevelPara(){ Name="æ°´æ± ", Value = water_level.RecordValue} |
| | | }; |
| | | complex_dispatch_request.OutletPipePara = new List<DispatchAna.Model.OutletPipePara>(); |
| | | complex_dispatch_request.OutletPipePara.Add(new DispatchAna.Model.OutletPipePara() |
| | | { |
| | | Name = "æ»ç®¡è·¯", |
| | | //TargetFlow = pipe1_flow.RecordValue, |
| | | //TargetPress = pipe1_press.RecordValue, |
| | | }); |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | error_info = null; |
| | | return complex_dispatch_request; |
| | | } |
| | | |
| | | |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | |
| | | namespace IStation.Calculation |
| | | { |
| | | internal class shys忱忳µç« : PlanAnaBaseCalculator |
| | | { |
| | | public shys忱忳µç«() |
| | | { |
| | | this._corpID = 4; |
| | | this._dispatchAnaCalc = new IStation.Calculation.DispatchAna.Calculator_OptAna_General(); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æµç¹åå
¸(è¿ä¸ªæ¯ä¸ªæ³µç«é½ä¸ä¸æ ·) |
| | | /// </summary> |
| | | |
| | | |
| | | private Tuple<string, long> monitoråºæ°´æ»ç®¡1åå = new Tuple<string, long>("_0402010503030107003", 739); |
| | | private Tuple<string, long> monitoråºæ°´æ»ç®¡1ç¬æ¶æµé = new Tuple<string, long>("_0402010503030102003", 740); |
| | | private Tuple<string, long> monitoråºæ°´æ»ç®¡2åå = new Tuple<string, long>("_0402010503030207004", 742); |
| | | private Tuple<string, long> monitoråºæ°´æ»ç®¡2ç¬æ¶æµé = new Tuple<string, long>("_0402010503030202003", 743); |
| | | private Tuple<string, long> monitorè¿æ°´æ»ç®¡1åå = new Tuple<string, long>("_0402010503030107001", 733); |
| | | private Tuple<string, long> monitorè¿æ°´æ»ç®¡2åå = new Tuple<string, long>("_0402010503030207002", 736); |
| | | /// <summary> |
| | | /// æ ¹æ®ä¸é«æä¾çåæ°,æå»ºè°åº¦åææéçåæ°, (è¿ä¸ªæ¯ä¸ªæ³µç«é½ä¸ä¸æ ·) |
| | | /// </summary> |
| | | /// <param name="allRecords_hour"></param> |
| | | /// <param name="error_info"></param> |
| | | /// <returns></returns> |
| | | protected override DispatchAna.Model.RequestParasComplex BuildDispatchAnaRequest( |
| | | List<IStation.Dto.MonitorRecord4SG> allRecords_hour, |
| | | out string error_info) |
| | | { |
| | | if (allRecords_hour == null || allRecords_hour.Count == 0) |
| | | { |
| | | error_info = "äºå·æ²åæ¡¥æ¹åæµç¹æ°æ®ä¸ºç©º"; |
| | | return null; |
| | | } |
| | | var complex_dispatch_request = new DispatchAna.Model.RequestParasComplex(); |
| | | //var water_level = allRecords_hour.Find(x => x.MonitorTag == monitorè°èæ± æ¶²ä½.Item1); |
| | | //if (water_level == null) |
| | | //{ |
| | | // water_level = allRecords_hour.Find(x => x.MonitorTag == monitorè°èæ± æ¶²ä½.Item1); |
| | | // if (water_level == null) |
| | | // { |
| | | // error_info = "äºå·æ²åæ¡¥æ¹åæ°´åºæ¶²ä½æµç¹æªæ¾å°"; |
| | | // return null; |
| | | // } |
| | | //} |
| | | //var pipe1_flow = allRecords_hour.Find(x => x.MonitorTag == monitoråºæ°´æ»ç®¡ç¬æ¶æµé.Item1); |
| | | //if (pipe1_flow == null) |
| | | //{ |
| | | // error_info = "äºå·æ²åæ¡¥æ¹å水管é1æµéæµç¹æªæ¾å°"; |
| | | // return null; |
| | | //} |
| | | |
| | | //var pipe1_press = allRecords_hour.Find(x => x.MonitorTag == monitoråºæ°´æ»ç®¡åå.Item1); |
| | | //if (pipe1_press == null) |
| | | //{ |
| | | // error_info = "äºå·æ²åæ¡¥æ¹å水管é1ååæµç¹æªæ¾å°"; |
| | | // return null; |
| | | //} |
| | | |
| | | |
| | | complex_dispatch_request.CorpID = this._corpID; |
| | | complex_dispatch_request.StationID = this._stationID; |
| | | complex_dispatch_request.SchemeNumber = 1; |
| | | complex_dispatch_request.PressValueType = DispatchAna.Model.RequestParasComplex.ePressValueType.åå; |
| | | complex_dispatch_request.WaterLevelPara = new List<DispatchAna.Model.WaterLevelPara>() |
| | | { |
| | | //new DispatchAna.Model.WaterLevelPara(){ Name="æ°´æ± ", Value = water_level.RecordValue} |
| | | }; |
| | | complex_dispatch_request.OutletPipePara = new List<DispatchAna.Model.OutletPipePara>(); |
| | | complex_dispatch_request.OutletPipePara.Add(new DispatchAna.Model.OutletPipePara() |
| | | { |
| | | Name = "æ»ç®¡è·¯", |
| | | //TargetFlow = pipe1_flow.RecordValue, |
| | | //TargetPress = pipe1_press.RecordValue, |
| | | }); |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | error_info = null; |
| | | return complex_dispatch_request; |
| | | } |
| | | |
| | | |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | |
| | | namespace IStation.Calculation |
| | | { |
| | | internal class shyså¤§æ¡¥æ³µç« : PlanAnaBaseCalculator |
| | | { |
| | | public shys大桥泵ç«() |
| | | { |
| | | this._corpID = 4; |
| | | this._dispatchAnaCalc = new IStation.Calculation.DispatchAna.Calculator_OptAna_General(); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æµç¹åå
¸(è¿ä¸ªæ¯ä¸ªæ³µç«é½ä¸ä¸æ ·) |
| | | /// </summary> |
| | | |
| | | |
| | | private Tuple<string, long> monitoråºæ°´æ»ç®¡ä¸è°åæ± = new Tuple<string, long>("_0402010301080103002", 1049); |
| | | private Tuple<string, long> monitoråºæ°´æ»ç®¡è¥¿è°åæ± = new Tuple<string, long>("_0402010301080103001", 1050); |
| | | private Tuple<string, long> monitoråºæ°´æ»ç®¡ç¬æ¶æµé = new Tuple<string, long>("_0402010301090103004", 1051); |
| | | private Tuple<string, long> monitorè¿æ°´äºæ ¼æ
åæ¶²ä½1 = new Tuple<string, long>("_0402010301034103001", 1044); |
| | | private Tuple<string, long> monitorè¿æ°´äºæ ¼æ
åæ¶²ä½2 = new Tuple<string, long>("_0402010301034203001", 1045); |
| | | private Tuple<string, long> monitorè¿æ°´äºæ ¼æ
åæ¶²ä½3 = new Tuple<string, long>("_0402010301034303001", 1046); |
| | | private Tuple<string, long> monitorè¿æ°´äºæ ¼æ
åæ¶²ä½4 = new Tuple<string, long>("_0402010301034403001", 1047); |
| | | /// <summary> |
| | | /// æ ¹æ®ä¸é«æä¾çåæ°,æå»ºè°åº¦åææéçåæ°, (è¿ä¸ªæ¯ä¸ªæ³µç«é½ä¸ä¸æ ·) |
| | | /// </summary> |
| | | /// <param name="allRecords_hour"></param> |
| | | /// <param name="error_info"></param> |
| | | /// <returns></returns> |
| | | protected override DispatchAna.Model.RequestParasComplex BuildDispatchAnaRequest( |
| | | List<IStation.Dto.MonitorRecord4SG> allRecords_hour, |
| | | out string error_info) |
| | | { |
| | | if (allRecords_hour == null || allRecords_hour.Count == 0) |
| | | { |
| | | error_info = "äºå·æ²åæ¡¥æ¹åæµç¹æ°æ®ä¸ºç©º"; |
| | | return null; |
| | | } |
| | | var complex_dispatch_request = new DispatchAna.Model.RequestParasComplex(); |
| | | //var water_level = allRecords_hour.Find(x => x.MonitorTag == monitorè°èæ± æ¶²ä½.Item1); |
| | | //if (water_level == null) |
| | | //{ |
| | | // water_level = allRecords_hour.Find(x => x.MonitorTag == monitorè°èæ± æ¶²ä½.Item1); |
| | | // if (water_level == null) |
| | | // { |
| | | // error_info = "äºå·æ²åæ¡¥æ¹åæ°´åºæ¶²ä½æµç¹æªæ¾å°"; |
| | | // return null; |
| | | // } |
| | | //} |
| | | //var pipe1_flow = allRecords_hour.Find(x => x.MonitorTag == monitoråºæ°´æ»ç®¡ç¬æ¶æµé.Item1); |
| | | //if (pipe1_flow == null) |
| | | //{ |
| | | // error_info = "äºå·æ²åæ¡¥æ¹å水管é1æµéæµç¹æªæ¾å°"; |
| | | // return null; |
| | | //} |
| | | |
| | | //var pipe1_press = allRecords_hour.Find(x => x.MonitorTag == monitoråºæ°´æ»ç®¡åå.Item1); |
| | | //if (pipe1_press == null) |
| | | //{ |
| | | // error_info = "äºå·æ²åæ¡¥æ¹å水管é1ååæµç¹æªæ¾å°"; |
| | | // return null; |
| | | //} |
| | | |
| | | |
| | | complex_dispatch_request.CorpID = this._corpID; |
| | | complex_dispatch_request.StationID = this._stationID; |
| | | complex_dispatch_request.SchemeNumber = 1; |
| | | complex_dispatch_request.PressValueType = DispatchAna.Model.RequestParasComplex.ePressValueType.åå; |
| | | complex_dispatch_request.WaterLevelPara = new List<DispatchAna.Model.WaterLevelPara>() |
| | | { |
| | | //new DispatchAna.Model.WaterLevelPara(){ Name="æ°´æ± ", Value = water_level.RecordValue} |
| | | }; |
| | | complex_dispatch_request.OutletPipePara = new List<DispatchAna.Model.OutletPipePara>(); |
| | | complex_dispatch_request.OutletPipePara.Add(new DispatchAna.Model.OutletPipePara() |
| | | { |
| | | Name = "æ»ç®¡è·¯", |
| | | //TargetFlow = pipe1_flow.RecordValue, |
| | | //TargetPress = pipe1_press.RecordValue, |
| | | }); |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | error_info = null; |
| | | return complex_dispatch_request; |
| | | } |
| | | |
| | | |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | |
| | | namespace IStation.Calculation |
| | | { |
| | | internal class shys徿³¾æ³µç« : PlanAnaBaseCalculator |
| | | { |
| | | public shys徿³¾æ³µç«() |
| | | { |
| | | this._corpID = 4; |
| | | this._dispatchAnaCalc = new IStation.Calculation.DispatchAna.Calculator_OptAna_General(); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æµç¹åå
¸(è¿ä¸ªæ¯ä¸ªæ³µç«é½ä¸ä¸æ ·) |
| | | /// </summary> |
| | | |
| | | |
| | | private Tuple<string, long> monitoråºæ°´æ»ç®¡åå = new Tuple<string, long>("_0402010302080104002", 574); |
| | | |
| | | private Tuple<string, long> monitoråºæ°´æ»ç®¡1ç¬æ¶æµé= new Tuple<string, long>("_0402010302080102002", 572); |
| | | private Tuple<string, long> monitorè¿æ°´æ»ç®¡åå = new Tuple<string, long>("_0402010302080104001", 571); |
| | | |
| | | /// <summary> |
| | | /// æ ¹æ®ä¸é«æä¾çåæ°,æå»ºè°åº¦åææéçåæ°, (è¿ä¸ªæ¯ä¸ªæ³µç«é½ä¸ä¸æ ·) |
| | | /// </summary> |
| | | /// <param name="allRecords_hour"></param> |
| | | /// <param name="error_info"></param> |
| | | /// <returns></returns> |
| | | protected override DispatchAna.Model.RequestParasComplex BuildDispatchAnaRequest( |
| | | List<IStation.Dto.MonitorRecord4SG> allRecords_hour, |
| | | out string error_info) |
| | | { |
| | | if (allRecords_hour == null || allRecords_hour.Count == 0) |
| | | { |
| | | error_info = "äºå·æ²åæ¡¥æ¹åæµç¹æ°æ®ä¸ºç©º"; |
| | | return null; |
| | | } |
| | | var complex_dispatch_request = new DispatchAna.Model.RequestParasComplex(); |
| | | //var water_level = allRecords_hour.Find(x => x.MonitorTag == monitorè°èæ± æ¶²ä½.Item1); |
| | | //if (water_level == null) |
| | | //{ |
| | | // water_level = allRecords_hour.Find(x => x.MonitorTag == monitorè°èæ± æ¶²ä½.Item1); |
| | | // if (water_level == null) |
| | | // { |
| | | // error_info = "äºå·æ²åæ¡¥æ¹åæ°´åºæ¶²ä½æµç¹æªæ¾å°"; |
| | | // return null; |
| | | // } |
| | | //} |
| | | //var pipe1_flow = allRecords_hour.Find(x => x.MonitorTag == monitoråºæ°´æ»ç®¡ç¬æ¶æµé.Item1); |
| | | //if (pipe1_flow == null) |
| | | //{ |
| | | // error_info = "äºå·æ²åæ¡¥æ¹å水管é1æµéæµç¹æªæ¾å°"; |
| | | // return null; |
| | | //} |
| | | |
| | | //var pipe1_press = allRecords_hour.Find(x => x.MonitorTag == monitoråºæ°´æ»ç®¡åå.Item1); |
| | | //if (pipe1_press == null) |
| | | //{ |
| | | // error_info = "äºå·æ²åæ¡¥æ¹å水管é1ååæµç¹æªæ¾å°"; |
| | | // return null; |
| | | //} |
| | | |
| | | |
| | | complex_dispatch_request.CorpID = this._corpID; |
| | | complex_dispatch_request.StationID = this._stationID; |
| | | complex_dispatch_request.SchemeNumber = 1; |
| | | complex_dispatch_request.PressValueType = DispatchAna.Model.RequestParasComplex.ePressValueType.åå; |
| | | complex_dispatch_request.WaterLevelPara = new List<DispatchAna.Model.WaterLevelPara>() |
| | | { |
| | | //new DispatchAna.Model.WaterLevelPara(){ Name="æ°´æ± ", Value = water_level.RecordValue} |
| | | }; |
| | | complex_dispatch_request.OutletPipePara = new List<DispatchAna.Model.OutletPipePara>(); |
| | | complex_dispatch_request.OutletPipePara.Add(new DispatchAna.Model.OutletPipePara() |
| | | { |
| | | Name = "æ»ç®¡è·¯", |
| | | //TargetFlow = pipe1_flow.RecordValue, |
| | | //TargetPress = pipe1_press.RecordValue, |
| | | }); |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | error_info = null; |
| | | return complex_dispatch_request; |
| | | } |
| | | |
| | | |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | |
| | | namespace IStation.Calculation |
| | | { |
| | | internal class shysæ¾æ±æ³µç« : PlanAnaBaseCalculator |
| | | { |
| | | public shysæ¾æ±æ³µç«() |
| | | { |
| | | this._corpID = 4; |
| | | this._dispatchAnaCalc = new IStation.Calculation.DispatchAna.Calculator_OptAna_General(); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æµç¹åå
¸(è¿ä¸ªæ¯ä¸ªæ³µç«é½ä¸ä¸æ ·) |
| | | /// </summary> |
| | | |
| | | |
| | | private Tuple<string, long> monitoråºæ°´æ»ç®¡åå = new Tuple<string, long>("_0402010791000000004", 1134); |
| | | private Tuple<string, long> monitoråºæ°´æ»ç®¡ç¬æ¶æµé = new Tuple<string, long>("_0402010791000000005", 1135); |
| | | private Tuple<string, long> monitoråä¾§åæ± æ¶²ä½ = new Tuple<string, long>("_0402010791000000101", 1129); |
| | | private Tuple<string, long> monitoråä¾§åæ± æ¶²ä½ = new Tuple<string, long>("_0402010791000000100", 1130); |
| | | /// <summary> |
| | | /// æ ¹æ®ä¸é«æä¾çåæ°,æå»ºè°åº¦åææéçåæ°, (è¿ä¸ªæ¯ä¸ªæ³µç«é½ä¸ä¸æ ·) |
| | | /// </summary> |
| | | /// <param name="allRecords_hour"></param> |
| | | /// <param name="error_info"></param> |
| | | /// <returns></returns> |
| | | protected override DispatchAna.Model.RequestParasComplex BuildDispatchAnaRequest( |
| | | List<IStation.Dto.MonitorRecord4SG> allRecords_hour, |
| | | out string error_info) |
| | | { |
| | | if (allRecords_hour == null || allRecords_hour.Count == 0) |
| | | { |
| | | error_info = "äºå·æ²åæ¡¥æ¹åæµç¹æ°æ®ä¸ºç©º"; |
| | | return null; |
| | | } |
| | | var complex_dispatch_request = new DispatchAna.Model.RequestParasComplex(); |
| | | //var water_level = allRecords_hour.Find(x => x.MonitorTag == monitorè°èæ± æ¶²ä½.Item1); |
| | | //if (water_level == null) |
| | | //{ |
| | | // water_level = allRecords_hour.Find(x => x.MonitorTag == monitorè°èæ± æ¶²ä½.Item1); |
| | | // if (water_level == null) |
| | | // { |
| | | // error_info = "äºå·æ²åæ¡¥æ¹åæ°´åºæ¶²ä½æµç¹æªæ¾å°"; |
| | | // return null; |
| | | // } |
| | | //} |
| | | //var pipe1_flow = allRecords_hour.Find(x => x.MonitorTag == monitoråºæ°´æ»ç®¡ç¬æ¶æµé.Item1); |
| | | //if (pipe1_flow == null) |
| | | //{ |
| | | // error_info = "äºå·æ²åæ¡¥æ¹å水管é1æµéæµç¹æªæ¾å°"; |
| | | // return null; |
| | | //} |
| | | |
| | | //var pipe1_press = allRecords_hour.Find(x => x.MonitorTag == monitoråºæ°´æ»ç®¡åå.Item1); |
| | | //if (pipe1_press == null) |
| | | //{ |
| | | // error_info = "äºå·æ²åæ¡¥æ¹å水管é1ååæµç¹æªæ¾å°"; |
| | | // return null; |
| | | //} |
| | | |
| | | |
| | | complex_dispatch_request.CorpID = this._corpID; |
| | | complex_dispatch_request.StationID = this._stationID; |
| | | complex_dispatch_request.SchemeNumber = 1; |
| | | complex_dispatch_request.PressValueType = DispatchAna.Model.RequestParasComplex.ePressValueType.åå; |
| | | complex_dispatch_request.WaterLevelPara = new List<DispatchAna.Model.WaterLevelPara>() |
| | | { |
| | | //new DispatchAna.Model.WaterLevelPara(){ Name="æ°´æ± ", Value = water_level.RecordValue} |
| | | }; |
| | | complex_dispatch_request.OutletPipePara = new List<DispatchAna.Model.OutletPipePara>(); |
| | | complex_dispatch_request.OutletPipePara.Add(new DispatchAna.Model.OutletPipePara() |
| | | { |
| | | Name = "æ»ç®¡è·¯", |
| | | //TargetFlow = pipe1_flow.RecordValue, |
| | | //TargetPress = pipe1_press.RecordValue, |
| | | }); |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | error_info = null; |
| | | return complex_dispatch_request; |
| | | } |
| | | |
| | | |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | |
| | | namespace IStation.Calculation |
| | | { |
| | | internal class shysæ³°åæ³µç« : PlanAnaBaseCalculator |
| | | { |
| | | public shysæ³°åæ³µç«() |
| | | { |
| | | this._corpID = 4; |
| | | this._dispatchAnaCalc = new IStation.Calculation.DispatchAna.Calculator_OptAna_General(); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æµç¹åå
¸(è¿ä¸ªæ¯ä¸ªæ³µç«é½ä¸ä¸æ ·) |
| | | /// </summary> |
| | | |
| | | |
| | | private Tuple<string, long> monitoråºæ°´æ»ç®¡1åå = new Tuple<string, long>("_0402010602081304001", 989); |
| | | private Tuple<string, long> monitoråºæ°´æ»ç®¡1ç¬æ¶æµé = new Tuple<string, long>("_0402010602081302001", 990); |
| | | private Tuple<string, long> monitoråºæ°´æ»ç®¡2åå = new Tuple<string, long>("_0402010602081404001", 992); |
| | | private Tuple<string, long> monitoråºæ°´æ»ç®¡2ç¬æ¶æµé = new Tuple<string, long>("_0402010602081402001", 993); |
| | | private Tuple<string, long> monitorè¿æ°´è¿å£åå = new Tuple<string, long>("_0402010202010505001", 988); |
| | | /// <summary> |
| | | /// æ ¹æ®ä¸é«æä¾çåæ°,æå»ºè°åº¦åææéçåæ°, (è¿ä¸ªæ¯ä¸ªæ³µç«é½ä¸ä¸æ ·) |
| | | /// </summary> |
| | | /// <param name="allRecords_hour"></param> |
| | | /// <param name="error_info"></param> |
| | | /// <returns></returns> |
| | | protected override DispatchAna.Model.RequestParasComplex BuildDispatchAnaRequest( |
| | | List<IStation.Dto.MonitorRecord4SG> allRecords_hour, |
| | | out string error_info) |
| | | { |
| | | if (allRecords_hour == null || allRecords_hour.Count == 0) |
| | | { |
| | | error_info = "äºå·æ²åæ¡¥æ¹åæµç¹æ°æ®ä¸ºç©º"; |
| | | return null; |
| | | } |
| | | var complex_dispatch_request = new DispatchAna.Model.RequestParasComplex(); |
| | | //var water_level = allRecords_hour.Find(x => x.MonitorTag == monitorè°èæ± æ¶²ä½.Item1); |
| | | //if (water_level == null) |
| | | //{ |
| | | // water_level = allRecords_hour.Find(x => x.MonitorTag == monitorè°èæ± æ¶²ä½.Item1); |
| | | // if (water_level == null) |
| | | // { |
| | | // error_info = "äºå·æ²åæ¡¥æ¹åæ°´åºæ¶²ä½æµç¹æªæ¾å°"; |
| | | // return null; |
| | | // } |
| | | //} |
| | | //var pipe1_flow = allRecords_hour.Find(x => x.MonitorTag == monitoråºæ°´æ»ç®¡ç¬æ¶æµé.Item1); |
| | | //if (pipe1_flow == null) |
| | | //{ |
| | | // error_info = "äºå·æ²åæ¡¥æ¹å水管é1æµéæµç¹æªæ¾å°"; |
| | | // return null; |
| | | //} |
| | | |
| | | //var pipe1_press = allRecords_hour.Find(x => x.MonitorTag == monitoråºæ°´æ»ç®¡åå.Item1); |
| | | //if (pipe1_press == null) |
| | | //{ |
| | | // error_info = "äºå·æ²åæ¡¥æ¹å水管é1ååæµç¹æªæ¾å°"; |
| | | // return null; |
| | | //} |
| | | |
| | | |
| | | complex_dispatch_request.CorpID = this._corpID; |
| | | complex_dispatch_request.StationID = this._stationID; |
| | | complex_dispatch_request.SchemeNumber = 1; |
| | | complex_dispatch_request.PressValueType = DispatchAna.Model.RequestParasComplex.ePressValueType.åå; |
| | | complex_dispatch_request.WaterLevelPara = new List<DispatchAna.Model.WaterLevelPara>() |
| | | { |
| | | //new DispatchAna.Model.WaterLevelPara(){ Name="æ°´æ± ", Value = water_level.RecordValue} |
| | | }; |
| | | complex_dispatch_request.OutletPipePara = new List<DispatchAna.Model.OutletPipePara>(); |
| | | complex_dispatch_request.OutletPipePara.Add(new DispatchAna.Model.OutletPipePara() |
| | | { |
| | | Name = "æ»ç®¡è·¯", |
| | | //TargetFlow = pipe1_flow.RecordValue, |
| | | //TargetPress = pipe1_press.RecordValue, |
| | | }); |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | error_info = null; |
| | | return complex_dispatch_request; |
| | | } |
| | | |
| | | |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | |
| | | namespace IStation.Calculation |
| | | { |
| | | internal class shyséæ³½æ³µç« : PlanAnaBaseCalculator |
| | | { |
| | | public shyséæ³½æ³µç«() |
| | | { |
| | | this._corpID = 4; |
| | | this._dispatchAnaCalc = new IStation.Calculation.DispatchAna.Calculator_OptAna_General(); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æµç¹åå
¸(è¿ä¸ªæ¯ä¸ªæ³µç«é½ä¸ä¸æ ·) |
| | | /// </summary> |
| | | |
| | | |
| | | private Tuple<string, long> monitoråºæ°´æ»ç®¡åå = new Tuple<string, long>("_0402010701020104001", 1207); |
| | | private Tuple<string, long> monitoråºæ°´æ»ç®¡ç¬æ¶æµé = new Tuple<string, long>("_0402010701020103001", 1208); |
| | | private Tuple<string, long> monitorä¸åæ± æ¶²ä½ = new Tuple<string, long>("_0402010701020106001", 1204); |
| | | private Tuple<string, long> monitorè¥¿åæ± æ¶²ä½ = new Tuple<string, long>("_0402010701020106003", 1205); |
| | | private Tuple<string, long> monitorä¸åæ± æ¶²ä½ = new Tuple<string, long>("_0402010701020106002", 1206); |
| | | /// <summary> |
| | | /// æ ¹æ®ä¸é«æä¾çåæ°,æå»ºè°åº¦åææéçåæ°, (è¿ä¸ªæ¯ä¸ªæ³µç«é½ä¸ä¸æ ·) |
| | | /// </summary> |
| | | /// <param name="allRecords_hour"></param> |
| | | /// <param name="error_info"></param> |
| | | /// <returns></returns> |
| | | protected override DispatchAna.Model.RequestParasComplex BuildDispatchAnaRequest( |
| | | List<IStation.Dto.MonitorRecord4SG> allRecords_hour, |
| | | out string error_info) |
| | | { |
| | | if (allRecords_hour == null || allRecords_hour.Count == 0) |
| | | { |
| | | error_info = "äºå·æ²åæ¡¥æ¹åæµç¹æ°æ®ä¸ºç©º"; |
| | | return null; |
| | | } |
| | | var complex_dispatch_request = new DispatchAna.Model.RequestParasComplex(); |
| | | //var water_level = allRecords_hour.Find(x => x.MonitorTag == monitorè°èæ± æ¶²ä½.Item1); |
| | | //if (water_level == null) |
| | | //{ |
| | | // water_level = allRecords_hour.Find(x => x.MonitorTag == monitorè°èæ± æ¶²ä½.Item1); |
| | | // if (water_level == null) |
| | | // { |
| | | // error_info = "äºå·æ²åæ¡¥æ¹åæ°´åºæ¶²ä½æµç¹æªæ¾å°"; |
| | | // return null; |
| | | // } |
| | | //} |
| | | //var pipe1_flow = allRecords_hour.Find(x => x.MonitorTag == monitoråºæ°´æ»ç®¡ç¬æ¶æµé.Item1); |
| | | //if (pipe1_flow == null) |
| | | //{ |
| | | // error_info = "äºå·æ²åæ¡¥æ¹å水管é1æµéæµç¹æªæ¾å°"; |
| | | // return null; |
| | | //} |
| | | |
| | | //var pipe1_press = allRecords_hour.Find(x => x.MonitorTag == monitoråºæ°´æ»ç®¡åå.Item1); |
| | | //if (pipe1_press == null) |
| | | //{ |
| | | // error_info = "äºå·æ²åæ¡¥æ¹å水管é1ååæµç¹æªæ¾å°"; |
| | | // return null; |
| | | //} |
| | | |
| | | |
| | | complex_dispatch_request.CorpID = this._corpID; |
| | | complex_dispatch_request.StationID = this._stationID; |
| | | complex_dispatch_request.SchemeNumber = 1; |
| | | complex_dispatch_request.PressValueType = DispatchAna.Model.RequestParasComplex.ePressValueType.åå; |
| | | complex_dispatch_request.WaterLevelPara = new List<DispatchAna.Model.WaterLevelPara>() |
| | | { |
| | | //new DispatchAna.Model.WaterLevelPara(){ Name="æ°´æ± ", Value = water_level.RecordValue} |
| | | }; |
| | | complex_dispatch_request.OutletPipePara = new List<DispatchAna.Model.OutletPipePara>(); |
| | | complex_dispatch_request.OutletPipePara.Add(new DispatchAna.Model.OutletPipePara() |
| | | { |
| | | Name = "æ»ç®¡è·¯", |
| | | //TargetFlow = pipe1_flow.RecordValue, |
| | | //TargetPress = pipe1_press.RecordValue, |
| | | }); |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | error_info = null; |
| | | return complex_dispatch_request; |
| | | } |
| | | |
| | | |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | |
| | | namespace IStation.Calculation |
| | | { |
| | | internal class shyséæµ·æ³µç« : PlanAnaBaseCalculator |
| | | { |
| | | public shyséæµ·æ³µç«() |
| | | { |
| | | this._corpID = 4; |
| | | this._dispatchAnaCalc = new IStation.Calculation.DispatchAna.Calculator_OptAna_General(); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æµç¹åå
¸(è¿ä¸ªæ¯ä¸ªæ³µç«é½ä¸ä¸æ ·) |
| | | /// </summary> |
| | | |
| | | |
| | | private Tuple<string, long> monitoråºæ°´åæ±1åå = new Tuple<string, long>("_0402010502090105011", 615); |
| | | private Tuple<string, long> monitoråºæ°´åæ±1ç¬æ¶æµé = new Tuple<string, long>("_0402010502090103013", 616); |
| | | private Tuple<string, long> monitoråºæ°´åæ±2åå = new Tuple<string, long>("_0402010502090105012", 618); |
| | | private Tuple<string, long> monitoråºæ°´åæ±2ç¬æ¶æµé = new Tuple<string, long>("_0402010502090103014", 619); |
| | | //private Tuple<string, long> monitoråºæ°´å·æ²æ»ç®¡è¿æ°´åå = new Tuple<string, long>("_0402010502090105013", 613); |
| | | private Tuple<string, long> monitoråºæ°´å·æ²æ»ç®¡åå = new Tuple<string, long>("_0402010502090105013", 621); |
| | | private Tuple<string, long> monitoråºæ°´å·æ²ç¬æ¶æµé = new Tuple<string, long>("_0402010502090103015", 622); |
| | | private Tuple<string, long> monitorè¿æ°´æ»ç®¡åå1 = new Tuple<string, long>("_0402010502090105001", 611); |
| | | private Tuple<string, long> monitorè¿æ°´æ»ç®¡åå2 = new Tuple<string, long>("_0402010502090205001", 613); |
| | | /// <summary> |
| | | /// æ ¹æ®ä¸é«æä¾çåæ°,æå»ºè°åº¦åææéçåæ°, (è¿ä¸ªæ¯ä¸ªæ³µç«é½ä¸ä¸æ ·) |
| | | /// </summary> |
| | | /// <param name="allRecords_hour"></param> |
| | | /// <param name="error_info"></param> |
| | | /// <returns></returns> |
| | | protected override DispatchAna.Model.RequestParasComplex BuildDispatchAnaRequest( |
| | | List<IStation.Dto.MonitorRecord4SG> allRecords_hour, |
| | | out string error_info) |
| | | { |
| | | if (allRecords_hour == null || allRecords_hour.Count == 0) |
| | | { |
| | | error_info = "äºå·æ²åæ¡¥æ¹åæµç¹æ°æ®ä¸ºç©º"; |
| | | return null; |
| | | } |
| | | var complex_dispatch_request = new DispatchAna.Model.RequestParasComplex(); |
| | | //var water_level = allRecords_hour.Find(x => x.MonitorTag == monitorè°èæ± æ¶²ä½.Item1); |
| | | //if (water_level == null) |
| | | //{ |
| | | // water_level = allRecords_hour.Find(x => x.MonitorTag == monitorè°èæ± æ¶²ä½.Item1); |
| | | // if (water_level == null) |
| | | // { |
| | | // error_info = "äºå·æ²åæ¡¥æ¹åæ°´åºæ¶²ä½æµç¹æªæ¾å°"; |
| | | // return null; |
| | | // } |
| | | //} |
| | | //var pipe1_flow = allRecords_hour.Find(x => x.MonitorTag == monitoråºæ°´æ»ç®¡ç¬æ¶æµé.Item1); |
| | | //if (pipe1_flow == null) |
| | | //{ |
| | | // error_info = "äºå·æ²åæ¡¥æ¹å水管é1æµéæµç¹æªæ¾å°"; |
| | | // return null; |
| | | //} |
| | | |
| | | //var pipe1_press = allRecords_hour.Find(x => x.MonitorTag == monitoråºæ°´æ»ç®¡åå.Item1); |
| | | //if (pipe1_press == null) |
| | | //{ |
| | | // error_info = "äºå·æ²åæ¡¥æ¹å水管é1ååæµç¹æªæ¾å°"; |
| | | // return null; |
| | | //} |
| | | |
| | | |
| | | complex_dispatch_request.CorpID = this._corpID; |
| | | complex_dispatch_request.StationID = this._stationID; |
| | | complex_dispatch_request.SchemeNumber = 1; |
| | | complex_dispatch_request.PressValueType = DispatchAna.Model.RequestParasComplex.ePressValueType.åå; |
| | | complex_dispatch_request.WaterLevelPara = new List<DispatchAna.Model.WaterLevelPara>() |
| | | { |
| | | //new DispatchAna.Model.WaterLevelPara(){ Name="æ°´æ± ", Value = water_level.RecordValue} |
| | | }; |
| | | complex_dispatch_request.OutletPipePara = new List<DispatchAna.Model.OutletPipePara>(); |
| | | complex_dispatch_request.OutletPipePara.Add(new DispatchAna.Model.OutletPipePara() |
| | | { |
| | | Name = "æ»ç®¡è·¯", |
| | | //TargetFlow = pipe1_flow.RecordValue, |
| | | //TargetPress = pipe1_press.RecordValue, |
| | | }); |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | error_info = null; |
| | | return complex_dispatch_request; |
| | | } |
| | | |
| | | |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | |
| | | namespace IStation.Calculation |
| | | { |
| | | internal class shyséè¡ä¸è¾ : PlanAnaBaseCalculator |
| | | { |
| | | public shyséè¡ä¸è¾() |
| | | { |
| | | this._corpID = 4; |
| | | this._dispatchAnaCalc = new IStation.Calculation.DispatchAna.Calculator_OptAna_General(); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æµç¹åå
¸(è¿ä¸ªæ¯ä¸ªæ³µç«é½ä¸ä¸æ ·) |
| | | /// </summary> |
| | | |
| | | |
| | | private Tuple<string, long> monitoråºæ°´æ»ç®¡1åå = new Tuple<string, long>("_0402010201090105001", 859); |
| | | private Tuple<string, long> monitoråºæ°´æ»ç®¡1ç¬æ¶æµé = new Tuple<string, long>("_0402060601010103000", 860); |
| | | private Tuple<string, long> monitoråºæ°´æ»ç®¡2åå = new Tuple<string, long>("_0402010201090105002", 862); |
| | | private Tuple<string, long> monitoråºæ°´æ»ç®¡2ç¬æ¶æµé = new Tuple<string, long>("_0402060601010203000", 863); |
| | | private Tuple<string, long> monitoråºæ°´æ»ç®¡3åå = new Tuple<string, long>("_0402060601010305000", 865); |
| | | private Tuple<string, long> monitoråºæ°´æ»ç®¡3ç¬æ¶æµé = new Tuple<string, long>("_0402010503030202003", 866); |
| | | private Tuple<string, long> monitorè¿æ°´åæ± æ¶²ä½1 = new Tuple<string, long>("_0402010201090104011", 856); |
| | | private Tuple<string, long> monitorè¿æ°´åæ± æ¶²ä½2 = new Tuple<string, long>("_0402010201091104123", 857); |
| | | private Tuple<string, long> monitorè¿æ°´åæ± æ¶²ä½3 = new Tuple<string, long>("_0402010201091104122", 858); |
| | | /// <summary> |
| | | /// æ ¹æ®ä¸é«æä¾çåæ°,æå»ºè°åº¦åææéçåæ°, (è¿ä¸ªæ¯ä¸ªæ³µç«é½ä¸ä¸æ ·) |
| | | /// </summary> |
| | | /// <param name="allRecords_hour"></param> |
| | | /// <param name="error_info"></param> |
| | | /// <returns></returns> |
| | | protected override DispatchAna.Model.RequestParasComplex BuildDispatchAnaRequest( |
| | | List<IStation.Dto.MonitorRecord4SG> allRecords_hour, |
| | | out string error_info) |
| | | { |
| | | if (allRecords_hour == null || allRecords_hour.Count == 0) |
| | | { |
| | | error_info = "äºå·æ²åæ¡¥æ¹åæµç¹æ°æ®ä¸ºç©º"; |
| | | return null; |
| | | } |
| | | var complex_dispatch_request = new DispatchAna.Model.RequestParasComplex(); |
| | | //var water_level = allRecords_hour.Find(x => x.MonitorTag == monitorè°èæ± æ¶²ä½.Item1); |
| | | //if (water_level == null) |
| | | //{ |
| | | // water_level = allRecords_hour.Find(x => x.MonitorTag == monitorè°èæ± æ¶²ä½.Item1); |
| | | // if (water_level == null) |
| | | // { |
| | | // error_info = "äºå·æ²åæ¡¥æ¹åæ°´åºæ¶²ä½æµç¹æªæ¾å°"; |
| | | // return null; |
| | | // } |
| | | //} |
| | | //var pipe1_flow = allRecords_hour.Find(x => x.MonitorTag == monitoråºæ°´æ»ç®¡ç¬æ¶æµé.Item1); |
| | | //if (pipe1_flow == null) |
| | | //{ |
| | | // error_info = "äºå·æ²åæ¡¥æ¹å水管é1æµéæµç¹æªæ¾å°"; |
| | | // return null; |
| | | //} |
| | | |
| | | //var pipe1_press = allRecords_hour.Find(x => x.MonitorTag == monitoråºæ°´æ»ç®¡åå.Item1); |
| | | //if (pipe1_press == null) |
| | | //{ |
| | | // error_info = "äºå·æ²åæ¡¥æ¹å水管é1ååæµç¹æªæ¾å°"; |
| | | // return null; |
| | | //} |
| | | |
| | | |
| | | complex_dispatch_request.CorpID = this._corpID; |
| | | complex_dispatch_request.StationID = this._stationID; |
| | | complex_dispatch_request.SchemeNumber = 1; |
| | | complex_dispatch_request.PressValueType = DispatchAna.Model.RequestParasComplex.ePressValueType.åå; |
| | | complex_dispatch_request.WaterLevelPara = new List<DispatchAna.Model.WaterLevelPara>() |
| | | { |
| | | //new DispatchAna.Model.WaterLevelPara(){ Name="æ°´æ± ", Value = water_level.RecordValue} |
| | | }; |
| | | complex_dispatch_request.OutletPipePara = new List<DispatchAna.Model.OutletPipePara>(); |
| | | complex_dispatch_request.OutletPipePara.Add(new DispatchAna.Model.OutletPipePara() |
| | | { |
| | | Name = "æ»ç®¡è·¯", |
| | | //TargetFlow = pipe1_flow.RecordValue, |
| | | //TargetPress = pipe1_press.RecordValue, |
| | | }); |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | error_info = null; |
| | | return complex_dispatch_request; |
| | | } |
| | | |
| | | |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | |
| | | namespace IStation.Calculation |
| | | { |
| | | internal class shyséè¡äºè¾ : PlanAnaBaseCalculator |
| | | { |
| | | public shyséè¡äºè¾() |
| | | { |
| | | this._corpID = 4; |
| | | this._dispatchAnaCalc = new IStation.Calculation.DispatchAna.Calculator_OptAna_General(); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æµç¹åå
¸(è¿ä¸ªæ¯ä¸ªæ³µç«é½ä¸ä¸æ ·) |
| | | /// </summary> |
| | | |
| | | |
| | | private Tuple<string, long> monitoråºæ°´æ»ç®¡1åå = new Tuple<string, long>("_0402010201090105004", 917); |
| | | private Tuple<string, long> monitoråºæ°´æ»ç®¡1ç¬æ¶æµé = new Tuple<string, long>("_0402010201090103020", 918); |
| | | private Tuple<string, long> monitoråºæ°´æ»ç®¡2åå = new Tuple<string, long>("_0402010201090105003", 920); |
| | | private Tuple<string, long> monitoråºæ°´æ»ç®¡2ç¬æ¶æµé = new Tuple<string, long>("_0402010201090103017", 921); |
| | | private Tuple<string, long> monitorè¿æ°´åæ± æ¶²ä½ = new Tuple<string, long>("_0402010201080204002", 916); |
| | | /// <summary> |
| | | /// æ ¹æ®ä¸é«æä¾çåæ°,æå»ºè°åº¦åææéçåæ°, (è¿ä¸ªæ¯ä¸ªæ³µç«é½ä¸ä¸æ ·) |
| | | /// </summary> |
| | | /// <param name="allRecords_hour"></param> |
| | | /// <param name="error_info"></param> |
| | | /// <returns></returns> |
| | | protected override DispatchAna.Model.RequestParasComplex BuildDispatchAnaRequest( |
| | | List<IStation.Dto.MonitorRecord4SG> allRecords_hour, |
| | | out string error_info) |
| | | { |
| | | if (allRecords_hour == null || allRecords_hour.Count == 0) |
| | | { |
| | | error_info = "äºå·æ²åæ¡¥æ¹åæµç¹æ°æ®ä¸ºç©º"; |
| | | return null; |
| | | } |
| | | var complex_dispatch_request = new DispatchAna.Model.RequestParasComplex(); |
| | | //var water_level = allRecords_hour.Find(x => x.MonitorTag == monitorè°èæ± æ¶²ä½.Item1); |
| | | //if (water_level == null) |
| | | //{ |
| | | // water_level = allRecords_hour.Find(x => x.MonitorTag == monitorè°èæ± æ¶²ä½.Item1); |
| | | // if (water_level == null) |
| | | // { |
| | | // error_info = "äºå·æ²åæ¡¥æ¹åæ°´åºæ¶²ä½æµç¹æªæ¾å°"; |
| | | // return null; |
| | | // } |
| | | //} |
| | | //var pipe1_flow = allRecords_hour.Find(x => x.MonitorTag == monitoråºæ°´æ»ç®¡ç¬æ¶æµé.Item1); |
| | | //if (pipe1_flow == null) |
| | | //{ |
| | | // error_info = "äºå·æ²åæ¡¥æ¹å水管é1æµéæµç¹æªæ¾å°"; |
| | | // return null; |
| | | //} |
| | | |
| | | //var pipe1_press = allRecords_hour.Find(x => x.MonitorTag == monitoråºæ°´æ»ç®¡åå.Item1); |
| | | //if (pipe1_press == null) |
| | | //{ |
| | | // error_info = "äºå·æ²åæ¡¥æ¹å水管é1ååæµç¹æªæ¾å°"; |
| | | // return null; |
| | | //} |
| | | |
| | | |
| | | complex_dispatch_request.CorpID = this._corpID; |
| | | complex_dispatch_request.StationID = this._stationID; |
| | | complex_dispatch_request.SchemeNumber = 1; |
| | | complex_dispatch_request.PressValueType = DispatchAna.Model.RequestParasComplex.ePressValueType.åå; |
| | | complex_dispatch_request.WaterLevelPara = new List<DispatchAna.Model.WaterLevelPara>() |
| | | { |
| | | //new DispatchAna.Model.WaterLevelPara(){ Name="æ°´æ± ", Value = water_level.RecordValue} |
| | | }; |
| | | complex_dispatch_request.OutletPipePara = new List<DispatchAna.Model.OutletPipePara>(); |
| | | complex_dispatch_request.OutletPipePara.Add(new DispatchAna.Model.OutletPipePara() |
| | | { |
| | | Name = "æ»ç®¡è·¯", |
| | | //TargetFlow = pipe1_flow.RecordValue, |
| | | //TargetPress = pipe1_press.RecordValue, |
| | | }); |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | error_info = null; |
| | | return complex_dispatch_request; |
| | | } |
| | | |
| | | |
| | | } |
| | | } |