| | |
| | | do { |
| | | String locNo; |
| | | if (!devpThread.charge0) { |
| | | locNo = SteChargeType.FIRST.locNo; |
| | | if (basSteService.hasCarOfLocNo(locNo) == null) { |
| | | steCharge = SteChargeType.FIRST; |
| | | SteChargeType first = SteChargeType.FIRST; |
| | | locNo = first.locNo; |
| | | if (basSteService.hasCarOfLocNo(locNo) == null |
| | | && wrkChargeService.selectWorkingOfCharge(first.ssbm) != null) { |
| | | steCharge = first; |
| | | break; |
| | | } |
| | | } |
| | | if (!devpThread.charge1) { |
| | | locNo = SteChargeType.SECOND.locNo; |
| | | if (basSteService.hasCarOfLocNo(locNo) == null) { |
| | | steCharge = SteChargeType.SECOND; |
| | | SteChargeType second = SteChargeType.SECOND; |
| | | locNo = second.locNo; |
| | | if (basSteService.hasCarOfLocNo(locNo) == null |
| | | && wrkChargeService.selectWorkingOfCharge(second.ssbm) != null) { |
| | | steCharge = second; |
| | | break; |
| | | } |
| | | } |
| | | if (!devpThread.charge2) { |
| | | locNo = SteChargeType.THIRD.locNo; |
| | | if (basSteService.hasCarOfLocNo(locNo) == null) { |
| | | steCharge = SteChargeType.THIRD; |
| | | SteChargeType third = SteChargeType.THIRD; |
| | | locNo = third.locNo; |
| | | if (basSteService.hasCarOfLocNo(locNo) == null |
| | | && wrkChargeService.selectWorkingOfCharge(third.ssbm) != null) { |
| | | steCharge = third; |
| | | break; |
| | | } |
| | | } |