| | |
| | | // System.out.println(deepRow); |
| | | // } |
| | | |
| | | public static boolean BooleanWhsTypeStaIoType(Integer whsType) { //查询相似物料开关 |
| | | if (whsType == 1 || whsType==3 || whsType==4) { |
| | | return true; |
| | | } |
| | | return false; |
| | | } |
| | | |
| | | public static boolean BooleanWhsTypeSta(Integer whsType) { |
| | | if (whsType == 1) { |
| | | if (whsType == 1 || whsType == 2 || whsType == 5 || whsType==3 || whsType==4) { |
| | | return true; |
| | | } |
| | | return false; |
| | | } |
| | | |
| | | public static boolean BooleanWhsTypeSta(Integer whsType, Integer staDescId) { |
| | | if (whsType == 1 && staDescId != 11 && staDescId != 111) { |
| | | if ((whsType == 1 || whsType == 5 || whsType == 2 || whsType==3 || whsType==4) && staDescId != 11 && staDescId != 111) { |
| | | return true; |
| | | } |
| | | return false; |
| | |
| | | return null; |
| | | } |
| | | |
| | | |
| | | public static Integer GetWhsType(Integer sourceStaNo) { |
| | | switch (sourceStaNo){ |
| | | case 104: |
| | | case 173: |
| | | case 174: |
| | | case 175: |
| | | case 130: |
| | | case 125: |
| | | return 5; |
| | | case 204: |
| | | case 273: |
| | | case 274: |
| | | case 275: |
| | | case 230: |
| | | case 225: |
| | | return 2; |
| | | default: |
| | | return 0; |
| | | } |
| | | } |
| | | |
| | | /* |
| | | * 最深库位排号 : curRow |
| | | * 最浅库位排号 : nearRow |
| | | * 最浅库位号,用于锁定列、层 : nearRow |
| | | * 入库 true:pakin |
| | | * 出库 false:pakin |
| | | * */ |
| | | // 外侧方向的货位 优先入库方向 ===>> 反之 |
| | | public static List<String> getGroupOutLocCrn(Integer curRow,Integer nearRow,String locNo,boolean pakin){ |
| | | List<String> result = new ArrayList<>(); |
| | | if (pakin){ |
| | | for (int row = curRow;row<=nearRow;row++){ |
| | | result.add(zerofill(String.valueOf(row), 2) + locNo.substring(2)); |
| | | } |
| | | }else { |
| | | for (int row = curRow;row>=curRow;row--){ |
| | | result.add(zerofill(String.valueOf(row), 2) + locNo.substring(2)); |
| | | } |
| | | } |
| | | return result; |
| | | } |
| | | |
| | | } |