| | |
| | | StartupDto startupDto = new StartupDto(); |
| | | int start; |
| | | int end; |
| | | Integer theCrnNo = null; |
| | | switch (sourceStaNo) { |
| | | case 103: |
| | | whsType = 1; |
| | | start = 1; |
| | | end = 14; |
| | | if (null != wrkMastService.selectPakoutOfStaNo(104)) { |
| | | start = 8; |
| | | theCrnNo = 2; |
| | | } |
| | | break; |
| | | case 203: |
| | | whsType = 2; |
| | | start = 8; |
| | | end = 21; |
| | | if (null != wrkMastService.selectPakoutOfStaNo(204)) { |
| | | end = 14; |
| | | theCrnNo = 2; |
| | | } |
| | | break; |
| | | default: |
| | | throw new CoolException("检索库位失败,请联系管理员"); |
| | |
| | | switch (curRow) { |
| | | case 1: |
| | | curRow = 1; |
| | | if (null != theCrnNo) { |
| | | curRow = 8; |
| | | crnNo1 = crnNo1 + 1; |
| | | } |
| | | break; |
| | | case 2: |
| | | curRow = 7; |
| | | if (null != theCrnNo) { |
| | | curRow = 14; |
| | | crnNo1 = crnNo1 + 1; |
| | | } |
| | | break; |
| | | case 3: |
| | | curRow = 8; |
| | |
| | | break; |
| | | case 3: |
| | | curRow = 15; |
| | | if (null != theCrnNo) { |
| | | curRow = 8; |
| | | crnNo1 = crnNo1 - 1; |
| | | } |
| | | break; |
| | | case 4: |
| | | curRow = 21; |
| | | if (null != theCrnNo) { |
| | | curRow = 14; |
| | | crnNo1 = crnNo1 - 1; |
| | | } |
| | | break; |
| | | default: |
| | | throw new CoolException("检索库位失败,请联系管理员"); |