| | |
| | | throw new CoolException("数据异常,请联系管理员"); |
| | | } |
| | | // ===============>>>> 开始执行 |
| | | if (sourceStaNo == 118 || sourceStaNo == 122){ |
| | | if (sourceStaNo == 118 || sourceStaNo == 122 || sourceStaNo == 1901){ |
| | | curRow = rowLastno.getCurrentRow1(); |
| | | } else if (sourceStaNo == 120 || sourceStaNo == 121 || sourceStaNo == 123 || sourceStaNo == 171){ |
| | | curRow = rowLastno.getCurrentRow2(); |
| | |
| | | } |
| | | |
| | | //此程序用于优化堆垛机异常时的运行时间 |
| | | for (int i = times; i < crnNumber*2; i++) { |
| | | for (int i = times; i < crnNumber*4; i++) { |
| | | int[] locNecessaryParameters = Utils.LocNecessaryParameters(whsType, curRow, crnNumber); |
| | | curRow = locNecessaryParameters[1]; |
| | | crnNo = locNecessaryParameters[2]; |
| | |
| | | if (locMast2.getCrnNo()==1 || locMast2.getCrnNo()==6){ |
| | | continue; |
| | | } |
| | | if (sourceStaNo == 118 || sourceStaNo == 122){ |
| | | if (sourceStaNo == 118 || sourceStaNo == 122 || sourceStaNo == 1901){ |
| | | if (locMast2.getCrnNo()>3){ |
| | | continue; |
| | | } |
| | |
| | | if (shallowLoc.getCrnNo()==1 || shallowLoc.getCrnNo()==6){ |
| | | continue; |
| | | } |
| | | if (sourceStaNo == 118 || sourceStaNo == 122){ |
| | | if (sourceStaNo == 118 || sourceStaNo == 122 || sourceStaNo == 1901){ |
| | | if (shallowLoc.getCrnNo()>3){ |
| | | continue; |
| | | } |
| | |
| | | |
| | | // 更新库位排号 |
| | | if (Utils.BooleanWhsTypeSta(whsType, staDescId) && Cools.isEmpty(locMast)) { |
| | | if (sourceStaNo == 118 || sourceStaNo == 122){ |
| | | if (sourceStaNo == 118 || sourceStaNo == 122 || sourceStaNo == 1901){ |
| | | rowLastno.setCurrentRow1(curRow); |
| | | } else if (sourceStaNo == 120 || sourceStaNo == 121 || sourceStaNo == 123 || sourceStaNo == 171){ |
| | | rowLastno.setCurrentRow2(curRow); |
| | |
| | | // 递归查询 |
| | | if (Cools.isEmpty(locMast) || !locMast.getLocSts().equals("O")) { |
| | | // 当前巷道无空库位时,递归调整至下一巷道,检索全部巷道无果后,跳出递归 |
| | | if (times < rowCount) { |
| | | if (times < rowCount*4) { |
| | | times = times + 1; |
| | | return getLocNoRun(1, staDescId, sourceStaNo, matnr, batch, grade,moveCrnNo, locTypeDto, times); |
| | | } |
| | |
| | | throw new CoolException("数据异常,请联系管理员"); |
| | | } |
| | | // ===============>>>> 开始执行 |
| | | if (sourceStaNo == 118 || sourceStaNo == 122){ |
| | | if (sourceStaNo == 118 || sourceStaNo == 122 || sourceStaNo == 1901){ |
| | | curRow = rowLastno.getCurrentRow1(); |
| | | } else if (sourceStaNo == 120 || sourceStaNo == 121 || sourceStaNo == 123 || sourceStaNo == 171){ |
| | | curRow = rowLastno.getCurrentRow2(); |
| | |
| | | } |
| | | |
| | | //此程序用于优化堆垛机异常时的运行时间 |
| | | for (int i = times; i < crnNumber; i++) { |
| | | for (int i = times; i < crnNumber*4; i++) { |
| | | int[] locNecessaryParameters = Utils.LocNecessaryParameters(whsType, curRow, crnNumber); |
| | | curRow = locNecessaryParameters[1]; |
| | | crnNo = locNecessaryParameters[2]; |
| | |
| | | |
| | | // 更新库位排号 |
| | | if (Utils.BooleanWhsTypeSta(whsType, staDescId) && Cools.isEmpty(locMast)) { |
| | | if (sourceStaNo == 118 || sourceStaNo == 122){ |
| | | if (sourceStaNo == 118 || sourceStaNo == 122 || sourceStaNo == 1901){ |
| | | rowLastno.setCurrentRow1(curRow); |
| | | } else if (sourceStaNo == 120 || sourceStaNo == 121 || sourceStaNo == 123 || sourceStaNo == 171){ |
| | | rowLastno.setCurrentRow2(curRow); |
| | |
| | | // 递归查询 |
| | | if (Cools.isEmpty(locMast) || !locMast.getLocSts().equals("O")) { |
| | | // 当前巷道无空库位时,递归调整至下一巷道,检索全部巷道无果后,跳出递归 |
| | | if (times < rowCount) { |
| | | if (times < rowCount*4) { |
| | | times = times + 1; |
| | | return getLocNoRun(1, staDescId, sourceStaNo, matnr, batch, grade,moveCrnNo, locTypeDto, times,rgvNo); |
| | | } |