package cn.estsh.i3plus.ext.mes.pcn.pojo.context;

import cn.estsh.i3plus.pojo.mes.bean.MesPart;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import org.springframework.beans.BeanUtils;

import java.io.Serializable;

/**
 * 生产过程上下文对象-零件条码(非排序产出零件条码)
 */
@Data
public class MesPartContext extends MesPart implements Serializable {

    private static final long serialVersionUID = -1221271846639577097L;

    @ApiParam("客户物料号")
    private String custPartNo;

    @ApiParam("打印份数")
    private Integer copies = 1;

    @ApiParam("包装条码规则")
    private String packageSnRule;

    @ApiParam("标签模板")
    private String labelTemplate;

    @ApiParam("产成数量")
    private Double qty;

    @ApiParam("标包数量")
    private Double packageQty;

    @ApiParam("打印机")
    private String printer;

    public MesPartContext(MesPart part) {
        BeanUtils.copyProperties(part, this);
    }


}
