package zy.cloud.wms.common.utils;
|
|
import zy.cloud.wms.manager.entity.Comb;
|
import zy.cloud.wms.manager.entity.LocDetl;
|
import zy.cloud.wms.manager.entity.Mat;
|
import zy.cloud.wms.manager.entity.Pakout;
|
|
/**
|
* Created by vincent on 2020/7/14
|
*/
|
public class VersionUtils {
|
|
// 业务 ----------------------------------------------------------------------
|
|
public static void setComb(Comb comb, Mat mat) {
|
comb.setMatnr(mat.getMatnr());
|
comb.setMaktx(mat.getMaktx());
|
comb.setName(mat.getName());
|
comb.setSpecs(mat.getSpecs());
|
comb.setModel(mat.getModel());
|
comb.setBatch(mat.getBatch());
|
comb.setUnit(mat.getUnit());
|
comb.setBarcode(mat.getBarcode());
|
comb.setDocId(mat.getDocId());
|
comb.setDocNum(mat.getDocNum());
|
comb.setCustName(mat.getCustName());
|
comb.setItemNum(mat.getItemNum());
|
comb.setCount(mat.getCount());
|
comb.setWeight(mat.getWeight());
|
}
|
|
public static void setLocDetl(LocDetl locDetl, Comb comb) {
|
locDetl.setMatnr(comb.getMatnr());
|
locDetl.setMaktx(comb.getMaktx());
|
locDetl.setName(comb.getName());
|
locDetl.setSpecs(comb.getSpecs());
|
locDetl.setModel(comb.getModel());
|
locDetl.setBatch(comb.getBatch());
|
locDetl.setUnit(comb.getUnit());
|
locDetl.setBarcode(comb.getBarcode());
|
locDetl.setDocId(comb.getDocId());
|
locDetl.setDocNum(comb.getDocNum());
|
locDetl.setCustName(comb.getCustName());
|
locDetl.setItemNum(comb.getItemNum());
|
locDetl.setCount(comb.getCount());
|
locDetl.setWeight(comb.getWeight());
|
}
|
|
public static void setPakout(Pakout pakout, Mat mat) {
|
pakout.setMatnr(mat.getMatnr());
|
pakout.setMaktx(mat.getMaktx());
|
pakout.setName(mat.getName());
|
pakout.setSpecs(mat.getSpecs());
|
pakout.setModel(mat.getModel());
|
pakout.setBatch(mat.getBatch());
|
pakout.setUnit(mat.getUnit());
|
pakout.setBarcode(mat.getBarcode());
|
pakout.setCustName(mat.getCustName());
|
pakout.setItemNum(mat.getItemNum());
|
pakout.setCount(mat.getCount());
|
pakout.setWeight(mat.getWeight());
|
}
|
|
public static void setPakout(Pakout pakout, LocDetl locDetl) {
|
pakout.setNodeId(locDetl.getNodeId());
|
pakout.setLocNo(locDetl.getLocNo());
|
pakout.setZpallet(locDetl.getZpallet());
|
pakout.setMatnr(locDetl.getMatnr());
|
pakout.setMaktx(locDetl.getMaktx());
|
pakout.setName(locDetl.getName());
|
pakout.setSpecs(locDetl.getSpecs());
|
pakout.setModel(locDetl.getModel());
|
pakout.setBatch(locDetl.getBatch());
|
pakout.setUnit(locDetl.getUnit());
|
pakout.setBarcode(locDetl.getBarcode());
|
pakout.setCustName(locDetl.getCustName());
|
pakout.setItemNum(locDetl.getItemNum());
|
pakout.setCount(locDetl.getCount());
|
pakout.setWeight(locDetl.getWeight());
|
|
pakout.setDocId(locDetl.getDocId());
|
pakout.setDocNum(locDetl.getDocNum());
|
}
|
|
public static void setLocDetl(LocDetl locDetl, Pakout pakout) {
|
locDetl.setNodeId(pakout.getNodeId());
|
locDetl.setLocNo(pakout.getLocNo());
|
locDetl.setZpallet(pakout.getZpallet());
|
locDetl.setAnfme(pakout.getAnfme());
|
locDetl.setMatnr(pakout.getMatnr());
|
locDetl.setMaktx(pakout.getMaktx());
|
locDetl.setName(pakout.getName());
|
locDetl.setSpecs(pakout.getSpecs());
|
locDetl.setModel(pakout.getModel());
|
locDetl.setBatch(pakout.getBatch());
|
locDetl.setUnit(pakout.getUnit());
|
locDetl.setBarcode(pakout.getBarcode());
|
locDetl.setCustName(pakout.getCustName());
|
locDetl.setItemNum(pakout.getItemNum());
|
locDetl.setCount(pakout.getCount());
|
locDetl.setWeight(pakout.getWeight());
|
locDetl.setStatus(1);
|
locDetl.setDocId(pakout.getDocId());
|
locDetl.setDocNum(pakout.getDocNum());
|
}
|
|
}
|