package com.hw.common.core.constant;

/**
 * @Description:生产部分常量定义
 * @ProjectName:HwMes
 * @Author:xins
 * @Date:2024-01-26 11:02
 * @Version:1.0
 */
public class MesConstants {

    /**
     * 条码类型:原材料
     */
    public static final String MES_BARCODE_TYPE_RAW = "1";
    /**
     * 条码类型:半成品
     */
    public static final String MES_BARCODE_TYPE_SEMI = "2";
    /**
     * 条码类型:成品
     */
    public static final String MES_BARCODE_TYPE_PRODUCT = "3";
    /**
     * 条码类型:背板
     */
    public static final String MES_BARCODE_TYPE_BACKPLATE = "4";

    /** 条码批次标识；0-否 */
    public static final String NOT_IS_BATCH = "0";

    /** 条码批次标识；1-是 */
    public static final String IS_BATCH = "1";

    /** 工单状态；0-待发布 */
    public static final String UN_PUBLISH = "0";

    /** 工单状态；1已发布 */
    public static final String PUBLISHED = "1";

    /** 工单状态；2-已完成 */
    public static final String FINISHED = "2";

    /** 工单状态；3-已开始 */
    public static final String BEGIN = "3";

    /** 工单状态；4-暂停 */
    public static final String PAUSE = "4";

    /** 工单状态；8-已撤回 */
    public static final String RECALL = "8";

    /** 工单状态；9-已删除 */
    public static final String DELETE = "9";


    /*生产计划明细状态*/
    public static final String MES_PRODUCT_PLAN_DETAIL_STATUS_TO_START = "1";//未开始
    public static final String MES_PRODUCT_PLAN_DETAIL_STATUS_STARTED = "2";//已开始
    public static final String MES_PRODUCT_PLAN_DETAIL_STATUS_FINISH = "3";//已完成
    public static final String MES_PRODUCT_PLAN_DETAIL_STATUS_ABNORMAL_FINISH = "9";// 异常完成（校验物料信息不完整）

    /*生产计划状态*/
    public static final String MES_PRODUCT_PLAN_STATUS_TO_DISPATCH = "0";//未派工
    public static final String MES_PRODUCT_PLAN_STATUS_DISPATCHED = "1";//已派工
    public static final String MES_PRODUCT_PLAN_STATUS_STARTED = "2";//已开始
    public static final String MES_PRODUCT_PLAN_STATUS_FINISH = "3";//已完成

    /** 附件类别；1-加工图纸 */
    public static final String MES_ATTACH_TYPE_DRAWING = "1";

    /** 附件类别；2-SOP */
    public static final String MES_ATTACH_TYPE_SOP = "2";

    /** 附件类别；9-其他文件 */
    public static final String MES_ATTACH_TYPE_OTHER = "9";


    /**校验类型(0不校验,1人工校验,2自动校验)*/
    public static final String MES_MATERIAL_BOM_CHECK_TYPE_MANUAL = "1";//人工校验


    /**条码信息绑定状态*/
    public static final String MES_BARCODE_BIND_STATUS_BINDING= "1";//绑定


    public static final String MES_ASSIGN_TASK_KEY = "fifth_floor_assign_task";//五楼分配柜体任务到具体工位的key

    public static final String MES_ASSIGN_TASK_RESULT_KEY = "fifth_floor_assign_task_result";//五楼分配柜体任务到具体工位返库key


    /**生产派工开始类型*/
    public static final String MES_START_TYPE_FIFTH_FLOOR_ASSEMBLE = "1";//五楼装配工位

}
