| | |
| | | |
| | | double totalQ = 0, totalH = 0, totalP = 0; |
| | | int pipe_count = 0; |
| | | |
| | | int ResultStatus = 1; |
| | | string ResultStatusInfo = null; |
| | | IStation.Calculation.DispatchAna.Model.AnaScheme pipe1_result = null; |
| | | List<IStation.Calculation.DispatchAna.Model.AnaScheme> pipe1_results = null; |
| | | if (pipe1_TargetFlow > 50) |
| | |
| | | break; |
| | | } |
| | | outlet_press_calc = outlet_press_calc * 1.05; |
| | | ResultStatus = 2; |
| | | ResultStatusInfo = "æé«äºä¸å·åºå£ç®¡æ¶²ä½åæ°"; |
| | | } |
| | | if (pipe1_results == null || pipe1_results.Count() == 0) |
| | | { |
| | |
| | | } |
| | | IStation.Calculation.DispatchAna.Model.AnaScheme pipe2_result = null; |
| | | List<IStation.Calculation.DispatchAna.Model.AnaScheme> pipe2_results = null; |
| | | |
| | | if (pipe2_TargetFlow > 50) |
| | | { |
| | | double outlet_press_calc = pipe2_TargetPess; |
| | | for (int i = 0; i < 5; i++) |
| | | double outlet_press_calc = pipe2_TargetPess; |
| | | int i = 0; |
| | | for ( i = 0; i < 5; i++) |
| | | {//æ¬ç¨è¿ä½,ç®ä¸åºæ¥å°±å¢å åºå£åå |
| | | calc_pipe2_helper.InitialParas( |
| | | pipe2_TargetFlow, |
| | |
| | | { |
| | | break; |
| | | } |
| | | ResultStatus = 2; |
| | | outlet_press_calc = outlet_press_calc * 1.05; |
| | | ResultStatusInfo = "æé«äºäºå·åºå£ç®¡æ¶²ä½åæ°"; |
| | | } |
| | | if (pipe2_results == null || pipe2_results.Count() == 0) |
| | | { |
| | |
| | | return null; |
| | | } |
| | | pipe2_result = pipe2_results[0]; |
| | | |
| | | totalQ += pipe2_result.TotalWrkQ; |
| | | totalP += pipe2_result.TotalWrkP; |
| | | totalH += pipe2_result.TotalWrkH; |
| | |
| | | { |
| | | break; |
| | | } |
| | | ResultStatus = 2; |
| | | outlet_press_calc = outlet_press_calc * 1.05; |
| | | ResultStatusInfo = "æé«äºä¸å·åºå£ç®¡æ¶²ä½åæ°"; |
| | | } |
| | | if (pipe3_results == null || pipe3_results.Count() == 0) |
| | | { |
| | |
| | | if (pipe3_result.Items != null && pipe3_result.Items.Count > 0) |
| | | plan.Items.AddRange(pipe3_result.Items); |
| | | |
| | | |
| | | plan.ResultStatus = ResultStatus; |
| | | plan.ResultStatusInfo = ResultStatusInfo; |
| | | return new List<Model.AnaScheme>() { plan }; |
| | | } |
| | | |