|
|
|
@ -7,6 +7,7 @@ import cn.estsh.i3plus.ext.mes.pcn.api.busi.IMesProduceSnPrintService;
|
|
|
|
|
import cn.estsh.i3plus.ext.mes.pcn.apiservice.util.MesPcnException;
|
|
|
|
|
import cn.estsh.i3plus.ext.mes.pcn.pojo.model.MesProduceSnPrintDataModel;
|
|
|
|
|
import cn.estsh.i3plus.ext.mes.pcn.pojo.model.MesProduceSnPrintModel;
|
|
|
|
|
import cn.estsh.i3plus.ext.mes.pcn.pojo.util.MesPcnExtConstWords;
|
|
|
|
|
import cn.estsh.i3plus.mes.pcn.util.DateUtil;
|
|
|
|
|
import cn.estsh.i3plus.platform.common.convert.ConvertBean;
|
|
|
|
|
import cn.estsh.i3plus.platform.common.tool.CheckTool;
|
|
|
|
@ -250,11 +251,11 @@ public class MesProduceSnPrintService implements IMesProduceSnPrintService {
|
|
|
|
|
mesProduceSn.setCustLabelTemplate(mesPart.getCustLabelTemplate());
|
|
|
|
|
mesProduceSn.setProdLabelTemplate(mesPart.getProductLabelTemplate());
|
|
|
|
|
mesProduceSn.setQty(qty);
|
|
|
|
|
mesProduceSn.setSnStatus(10);
|
|
|
|
|
mesProduceSn.setSnStatus(MesExtEnumUtil.PRODUCE_SN_STATUS.CREATE.getValue());
|
|
|
|
|
mesProduceSn.setQcStatus(MesExtEnumUtil.PRODUCE_QC_STATUS.QUALIFIED.getValue());
|
|
|
|
|
mesProduceSn.setLotNo(TimeTool.getNowTime(format));
|
|
|
|
|
mesProduceSn.setPrintCount(1);
|
|
|
|
|
mesProduceSn.setPrintStatus(20);
|
|
|
|
|
mesProduceSn.setPrintCount(MesPcnExtConstWords.ONE);
|
|
|
|
|
mesProduceSn.setPrintStatus(MesExtEnumUtil.PRINT_STATUS.PRINTED.getValue());
|
|
|
|
|
mesProduceSn.setOrganizeCode(mesPart.getOrganizeCode());
|
|
|
|
|
ConvertBean.serviceModelInitialize(mesProduceSn, userName);
|
|
|
|
|
return mesProduceSn;
|
|
|
|
|