| | |
| | | { |
| | | public Calculator_KeepStatus_SHYS_é¿å
´å²() |
| | | { |
| | | _corpID = 4; |
| | | _stationID = 2; |
| | | } |
| | | Model.RequestParasComplex _request_paras; |
| | | List<long> _open_machine_IdList ; |
| | |
| | | /// </summary> |
| | | /// <param name="error_info">é误信æ¯</param> |
| | | /// <returns></returns> |
| | | public Model.AnaScheme Calc ( out string error_info) |
| | | public Model.AnaScheme Calc(out string error_info) |
| | | { |
| | | _corpID = 4; |
| | | _stationID = 2; |
| | | if (_open_machine_IdList == null || _open_machine_IdList.Count == 0) |
| | | { |
| | | error_info = "ERROR 25"; |
| | |
| | | |
| | | |
| | | double water_level = 0;//æ°´ä½ |
| | | if (_request_paras.WaterLevelPara != null && _request_paras.WaterLevelPara.Count > 0) |
| | | if (_request_paras.InletPipePara != null && _request_paras.InletPipePara.Count > 0) |
| | | { |
| | | water_level = _request_paras.WaterLevelPara.First().Value; |
| | | water_level = _request_paras.InletPipePara.First().Value; |
| | | } |
| | | |
| | | |
| | |
| | | new Common.DispatchAnaGeneralHelperåå(); |
| | | calc_pipe_helper.InitialParas( |
| | | pipe1_TargetFlow + pipe2_TargetFlow, |
| | | water_level, |
| | | press, |
| | | null, null, |
| | | allMachineList, null); |
| | | water_level, true, |
| | | press, false, |
| | | null, null, |
| | | allMachineList, null, out error_info); |
| | | |
| | | return calc_pipe_helper.CalcKeepStatus(_open_machine_IdList); |
| | | } |
| | | else //éé¨å
³çç¶æä¸ ä¸¤ç®¡ç¸è¿æ°æ®ç¸å |
| | | { |
| | | var pipe1_machineIds = new List<long>() { 19, 22 };//1å·æ³µï¼2å·æ³µ |
| | | var pipe2_machineIds = new List<long>() { 25, 28 };//3å·æ³µï¼4å·æ³µ |
| | | |
| | | Common.DispatchAnaGeneralHelperåå calc_pipe1_helper |
| | | = new Common.DispatchAnaGeneralHelperåå(); |
| | | |
| | |
| | | {//åªå¼ä¸å·æ³µäºå·æ³µ |
| | | calc_pipe1_helper.InitialParas( |
| | | pipe1_TargetFlow, |
| | | water_level, |
| | | pipe1_TargetPess, |
| | | water_level, true, |
| | | pipe1_TargetPess, false, |
| | | null, null, |
| | | (from x in allMachineList where pipe1_machineIds.Contains(x.MachineID) select x).ToList(), null); |
| | | (from x in allMachineList where pipe1_machineIds.Contains(x.MachineID) select x).ToList(), null, out error_info); |
| | | |
| | | return calc_pipe1_helper.CalcKeepStatus(_open_machine_IdList); |
| | | } |
| | |
| | | { |
| | | calc_pipe2_helper.InitialParas( |
| | | pipe2_TargetFlow, |
| | | water_level, |
| | | pipe2_TargetPess, |
| | | water_level, true, |
| | | pipe2_TargetPess, false, |
| | | null, null, |
| | | (from x in allMachineList where pipe2_machineIds.Contains(x.MachineID) select x).ToList(), null); |
| | | (from x in allMachineList where pipe2_machineIds.Contains(x.MachineID) select x).ToList(), null, out error_info); |
| | | |
| | | return calc_pipe2_helper.CalcKeepStatus(_open_machine_IdList); |
| | | } |
| | |
| | | |
| | | calc_pipe1_helper.InitialParas( |
| | | pipe1_TargetFlow, |
| | | water_level, |
| | | pipe1_TargetPess, |
| | | water_level, true, |
| | | pipe1_TargetPess, false, |
| | | null, null, |
| | | (from x in allMachineList where pipe1_machineIds.Contains(x.MachineID) select x).ToList(), null); |
| | | (from x in allMachineList where pipe1_machineIds.Contains(x.MachineID) select x).ToList(), null, out error_info); |
| | | var pipe1_result = calc_pipe1_helper.CalcKeepStatus(_open_machine_IdList); |
| | | |
| | | |
| | | calc_pipe2_helper.InitialParas( |
| | | pipe2_TargetFlow, |
| | | water_level, |
| | | pipe2_TargetPess, |
| | | water_level,true , |
| | | pipe2_TargetPess,false , |
| | | null, null, |
| | | (from x in allMachineList where pipe2_machineIds.Contains(x.MachineID) select x).ToList(), null); |
| | | (from x in allMachineList where pipe2_machineIds.Contains(x.MachineID) select x).ToList(), null, out error_info); |
| | | |
| | | var pipe2_result = calc_pipe2_helper.CalcKeepStatus(_open_machine_IdList); |
| | | |