| | |
| | | System.out.println("\n" + solution); |
| | | } |
| | | |
| | | public static String MergerParameter(String sku,String po,String upc){ |
| | | return sku+sign_F+po+sign_F+upc; |
| | | public static String MergerParameter(String item,String sku,String po,String upc){ |
| | | return item+sign_F+sku+sign_F+po+sign_F+upc; |
| | | } |
| | | |
| | | public static OrderToLine GetOrderToLine(List<ItemUtilParam.Item> items, OrderToLine orderToLine,String sign){ |
| | |
| | | for (OptimizedLockerPackingUtils.Locker locker:packingSolution.lockers) { |
| | | for (String mantnr : locker.contents.keySet()){ |
| | | System.out.println(mantnr+"<===>"+locker.contents.get(mantnr)); |
| | | String[] split = mantnr.split(Pattern.quote(sign_F)); |
| | | String[] split = mantnr.split(Pattern.quote(sign_F),-1); |
| | | OrderToLine.MatList mat = new OrderToLine.MatList( |
| | | split[0], // matnr -> sku |
| | | split[1], // supp -> po -> s1 |
| | | split[0], // matnr -> matnr -> item |
| | | split[1], // sku -> sku |
| | | split[2], // standby1 -> po -> s1 |
| | | locker.contents.get(mantnr).doubleValue(), //整料 |
| | | split[2], //barcode -> upc -> s2 |
| | | split[3], //standby2 -> upc -> s2 |
| | | 1, |
| | | null, //origin -> supplier 货源 |
| | | locker.bindingTags |
| | | ); |
| | | matLists.add(mat); |
| | |
| | | // System.out.println(mantnr+"<===>"+locker.contents.get(mantnr)); |
| | | String[] split = mantnr.split(Pattern.quote(sign_F),-1); |
| | | OrderToLine.MatList mat = new OrderToLine.MatList( |
| | | split[0], // matnr -> sku |
| | | split[1], // supp -> po -> s1 |
| | | split[0], // matnr -> item -> matnr |
| | | split[1], // standby3 -> sku -> standby3 |
| | | split[2], // standby1 -> po -> standby1 |
| | | locker.contents.get(mantnr).doubleValue(), //整料 |
| | | split[2], //barcode -> upc -> s2 |
| | | split[3], //standby2 -> upc -> standby2 |
| | | 1, |
| | | null, //origin -> supplier 货源 |
| | | locker.bindingTags |
| | | ); |
| | | matLists.add(mat); |