| | |
| | | |
| | | private static final DecimalFormat fmt = new DecimalFormat("##0.00"); |
| | | |
| | | public static String getWmsRow(String loc){ |
| | | String row = loc.substring(0, 2); |
| | | String bay = loc.substring(3, 5); |
| | | String lev = loc.substring(5, 7); |
| | | String locNo = null; |
| | | |
| | | ArrayList<String> list = new ArrayList<>(); |
| | | list.add("01");list.add("02");list.add("03");list.add("04"); |
| | | int i = list.indexOf(row); |
| | | if (i != -1){ |
| | | if (i == 0){ |
| | | locNo = "01"+"-"+bay+"-"+lev+"-"+"01-02"; |
| | | }else if (i == 1) { |
| | | locNo = "01"+"-"+bay+"-"+lev+"-"+"01-01"; |
| | | }else if (i == 2) { |
| | | locNo = "01"+"-"+bay+"-"+lev+"-"+"02-01"; |
| | | }else if (i == 3) { |
| | | locNo = "01"+"-"+bay+"-"+lev+"-"+"02-02"; |
| | | } |
| | | |
| | | } |
| | | return locNo; |
| | | } |
| | | |
| | | |
| | | //转换wms传输的库位号 |
| | | public static String getWcsLocNo(String locNo){ |