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

import cn.estsh.i3plus.pojo.base.enumutil.CommonEnumUtil;
import io.swagger.annotations.ApiParam;
import lombok.Data;

import java.io.Serializable;

/**
 * 生产过程打包规则上下文
 */
@Data
public class MesPackageRuleContext implements Serializable {

    private static final long serialVersionUID = 1369218116212836881L;

    @ApiParam(name = "包装代码")
    public String packageCode;

    @ApiParam(name = "行号")
    public String lineNo;

    @ApiParam(name = "零件号")
    public String partNo;

    @ApiParam(name = "零件名称")
    public String partName;

    @ApiParam(name = "零件类型")
    public String partType;

    @ApiParam("包装规格数量")
    public Double packSpecQty;

    @ApiParam("最小数量")
    public Double minQty;

    @ApiParam("取整数量")
    public Double roundnessQty;

    @ApiParam(name = "计量单位")
    public String unit;

    @ApiParam(name = "是否默认包装")
    public Integer defaultFlag;

    @ApiParam(name = "统计方式")
    public Integer generateType;

    @ApiParam(name = "箱类别代号")
    public String packCode;

    @ApiParam(name = "包装条码编码规则")
    public String packageBarcodeRule;

    @ApiParam(name = "包装条码模板")
    public String packageTemplate;

    @ApiParam(name = "打印机")
    public String printer;

    @ApiParam(name = "同步状态WMS")
    public Integer systemSyncStatusWms = CommonEnumUtil.TRUE_OR_FALSE.FALSE.getValue();

    @ApiParam("零件打包加工单号")
    public String partPackWorkOrderNo;

    @ApiParam("是否打印包装条码")
    private Integer isPrintPackage = CommonEnumUtil.TRUE_OR_FALSE.TRUE.getValue();

}
