| | |
| | | private Tuple<string, long> monitoråºæ°´æ»ç®¡2ç¬æ¶æµé = new Tuple<string, long>("_0402010501080102005", 269); |
| | | private Tuple<string, long> monitoråæ± æ¶²ä½4 = new Tuple<string, long>("_0402010501080103001", 263); |
| | | private Tuple<string, long> monitoråæ± æ¶²ä½5 = new Tuple<string, long>("_0402010501080103002", 264); |
| | | |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | |
| | | return null; |
| | | } |
| | | var complex_dispatch_request = new DispatchAna.Model.RequestParasComplex(); |
| | | |
| | | var water_level5 = allRecords_hour.Find(x => x.MonitorTag == monitoråæ± æ¶²ä½5.Item1); |
| | | if (water_level5 == null) |
| | | { |
| | | error_info = "äºå·æ²éæµ·æ¹ååæ± æ¶²ä½5 æµç¹æªæ¾å°"; |
| | | return null; |
| | | } |
| | | |
| | | var water_level4 = allRecords_hour.Find(x => x.MonitorTag == monitoråæ± æ¶²ä½4.Item1); |
| | | if (water_level4 == null) |
| | | { |
| | | error_info = "äºå·æ²éæµ·æ¹ååæ± æ¶²ä½4 æµç¹æªæ¾å°"; |
| | | return null; |
| | | } |
| | | var pipe1_flow = allRecords_hour.Find(x => x.MonitorTag == monitoråºæ°´æ»ç®¡1ç¬æ¶æµé.Item1); |
| | | if (pipe1_flow == null) |
| | | { |
| | |
| | | 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>() |
| | | complex_dispatch_request.InletPipePara = new List<DispatchAna.Model.InletPipePara>() |
| | | { |
| | | new DispatchAna.Model.WaterLevelPara(){ Name="åæ± æ¶²ä½5", Value = water_level5.RecordValue} |
| | | new DispatchAna.Model.InletPipePara(){ Name="åæ± æ¶²ä½4", Value = water_level4.RecordValue}, |
| | | new DispatchAna.Model.InletPipePara(){ Name="åæ± æ¶²ä½5", Value = water_level5.RecordValue} |
| | | }; |
| | | complex_dispatch_request.OutletPipePara = new List<DispatchAna.Model.OutletPipePara>(); |
| | | complex_dispatch_request.OutletPipePara.Add(new DispatchAna.Model.OutletPipePara() |