| | |
| | | package com.zy.asrs.utils; |
| | | |
| | | import com.zy.asrs.entity.LocMast; |
| | | import com.zy.asrs.entity.Mat; |
| | | import com.zy.asrs.entity.result.Pakin; |
| | | import com.zy.common.model.LocTypeDto; |
| | | |
| | | /** |
| | |
| | | |
| | | // 业务 ---------------------------------------------------------------------- |
| | | |
| | | // public static void setWrkDetl(WrkDetl wrkDetl, Mat mat) { |
| | | // public static void setWrkDetl(WrkDetl wrkDetl, Mat mat) { |
| | | // wrkDetl.setMatnr(matCode.getMatNo()); // 物料编号 |
| | | // wrkDetl.setMaktx(matCode.getMatName()); // 物料描述 |
| | | // wrkDetl.setLgnum(matCode.getStr2()); // 规格 |
| | |
| | | // wrkDetl.setSupplier(orderDetl.getSupplier()); // 序列码 |
| | | // wrkDetl.setAltme(orderDetl.getUnit()); // 单位 |
| | | // } |
| | | public static void setPakin(Pakin pakin, Mat mat) { |
| | | pakin.setMatnr(mat.getMatnr()); |
| | | pakin.setMaktx(mat.getMaktx()); |
| | | pakin.setName(mat.getName()); |
| | | pakin.setSpecs(mat.getSpecs()); |
| | | pakin.setModel(mat.getModel()); |
| | | pakin.setUnit(mat.getUnit()); |
| | | pakin.setBarcode(mat.getBarcode()); |
| | | pakin.setItemNum(Integer.valueOf(mat.getItemNum())); |
| | | pakin.setPrice(mat.getPrice()); |
| | | pakin.setWeight(mat.getWeight()); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 库位移转时类型检测 |
| | | * 库位移转时类型检测 |
| | | **/ |
| | | public static boolean locMoveCheckLocType(LocMast loc, LocTypeDto dto){ |
| | | public static boolean locMoveCheckLocType(LocMast loc, LocTypeDto dto) { |
| | | // 如果源库位是高库位,目标库位是低库位 |
| | | if (dto.getLocType1() == 2 && loc.getLocType1() == 1) { |
| | | return false; |