package com.foreverwin.mesnac.common.constant;

/**
 * 常量
 *
 * @author Leon
 * @since 2021-05-12
 */
public interface Constants {

    String OP_WX_6106GX = "WX_6106GX";

    String STATUS_NEW = "NEW";
    String STATE_CONFIRM ="CONF";
    String STATE_REJECT="REJ";

    String BOOL_TRUE = "true";
    String BOOL_FALSE = "false";
    String RSESULT_OK = "OK";
    String RSESULT_NG = "NG";
    String STATUS_Y = "Y";
    String STATUS_N = "N";

    //异常单状态
    String NEW = "N";
    String RESPONSE = "X";
    String PROGRAM_CONFIRM = "F";
    String CORRECTION_CONFIRM = "J";
    String CANCEL = "Q";
    String SHUT_DOWN = "G";

    //异常单上报来源
    String REPORT =  "B"; // 自报
    String QUALITY_INSPECTION = "J"; //质检
    String DEVCICE_USER = "R";//设备人员
    String DEVICE_AUTO = "Z";//设备自动
    String REPAIR_CHECK = "C";// 维修自查
    String TECHNOLOGY = "Y";//工艺

    //异常单发现环节
    String SELF_MADE = "Z";//自制
    String OUTSOURCING = "W";//外协
    String ARRIVAL = "D";//到货
    String CUSTOMER = "K";//客户

    //异常方案
    String OFFLINE_REFUELING = "X";//线下换料
    String TEST_EQUIPMENT = "S";//试装
    String CONCESSION = "R";//让步放行
    String PRODUCT_SCRAP = "C";//产品报废
    String MATCH = "P"; //配作
    String REPAIR = "F";//返修
    String REPAIR_OUT_SOURCING = "FW";//返修（外协）
    String REPAIR_NOT_ROUTER = "FB";//返修（不回原工艺）
    String REGULAR_REPAIR = "CG";//常规维修
    String PLAN_REPAIR = "JH";//计划维修
    String MAJOR_REPAIR = "DX";//大项修

    //任务编号常量
    String RESOURCE_INSPECT_TASK = "RESOURCE_INSPECT_TASK";
    //报修任务单号
    String RESOURCE_REPAIR_TASK = "RESOURCE_REPAIR_TASK";

    String SITE_ADMIN = "SITE_ADMIN";

    //上料
    String ACTION_CODE_LOAD="1";
    //卸料
    String ACTION_CODE_UNLOAD="2";
    //消耗
    String ACTION_CODE_CONSUMPTION="3";

    //--------------------检验项目|任务-----------------------------------------------------------------------------------
    // 新建
    String INSPECTION_TASK_STATUS_NEW="NEW";
    // 完成
    String INSPECTION_TASK_STATUS_COMPLETE="COMPLETE";
    // 处理中/进行中
    String INSPECTION_TASK_STATUS_DOING="DOING";
    // 已取消
    String INSPECTION_TASK_STATUS_CANCEL="CANCEL";

    //附加类型物料
    String ADDITIONAL_OBJECT_TYPE_ITEM="ITEM";
    //附加类型工序
    String ADDITIONAL_OBJECT_TYPE_OPERATION="OPERATION";
    //附加类型工步
    String ADDITIONAL_OBJECT_TYPE_STEP="SUB_STEP";
    //附加类型设备类型
    String ADDITIONAL_OBJECT_TYPE_RESOURCE_TYPE="RESOURCE_TYPE";

    //首件检验
    String INSPECTION_TYPE_S="S";
    //互检检验
    String INSPECTION_TYPE_H="H";
    //自检检验
    String INSPECTION_TYPE_Z="Z";
    //专检检验
    String INSPECTION_TYPE_P="P";
    //日常保养
    String INSPECTION_TYPE_EM="EM";
    //一级保养
    String INSPECTION_TYPE_OM="OM";
    //二级保养
    String INSPECTION_TYPE_SM="SM";
    //日点检
    String INSPECTION_TYPE_DM="DM";
    //周点检
    String INSPECTION_TYPE_WM="WM";
    //月点检
    String INSPECTION_TYPE_MM="MM";
    //年点检
    String INSPECTION_TYPE_YM="YM";

    //叫料类型
    String CALL_TYPE_MATERIAL = "MATERIAL";
    String CALL_TYPE_OPERATION = "OPERATION";

    //叫料状态
    String CALL_ITEM_STATUS_NEW = "801";
    String CALL_ITEM_STATUS_CALLED = "802";
    String CALL_ITEM_STATUS_ISSUED = "803";
    String CALL_ITEM_STATUS_CANCELED = "804";

    //异常单的类型
    String ABNORMAL_QUALITY = "Z";
    String ABNORMAL_OTHER = "Q";
    String ABNORMAL_RESRCE = "S";
    String ABNORMAL_PLAN = "P";
    /**
     * 维修提报的消息类型
     */
    String REPAIR_TYPE = "REPAIR";

    /**
     * 设备维修
     */
    // 维修任务状态
    String REPAIR_STATUS_NEW = "401"; // 新建/待维修
    String REPAIR_STATUS_DOING = "501"; // 维修中
    String REPAIR_STATUS_WAIT = "502"; // 维修等待
    String REPAIR_STATUS_CLOSE = "302"; // 关闭
    String REPAIR_STATUS_COMPLETE = "301"; // 维修完成
    String REPAIR_STATUS_CONFIRM = "601"; // 报修单确认

    // 纠正预防-根本原因
    String PRIMARY_BURN_IN = "BI"; //部件老化
    String REASON_BREAK_DOWN = "BD"; //正常损坏
    String REASON_ABNORMAL = "AB"; //非正常使用
    String REASON_OTHER = "OT"; //其他
    // 处理方式
    String DEAL_REPLACE_ITEM = "RI"; //更换备件
    String DEAL_REPAIR = "RP"; //维修
    String DEAL_OUTSOURCE = "OS"; //委外
    String DEAL_POSTPONE = "PT"; //延后处理

    /**
     * 消息类型
     */
    String ABNORMAL_MESSAGE_QUALITY = "QCYC";//质量异常消息类型
    String ABNORMAL_MESSAGE_OTHER = "OTYC";//其他异常消息类型
    String ABNORMAL_MESSAGE_RESOURCE = "RSYC";//设备异常消息类型
    String ABNORMAL_MESSAGE_PLAN = "PLYC";//计划异常待办事项

    /**
     * 设备维修提报节点
     */
    String RESOURCE_REPAIR_MESSAGE_REPORT = "RESOURCE_REPORT";

    /**
     * 异常节点
     */
    String ABNORMAL_MESSAGE_REPORT = "REPORT";//异常上报
    String ABNORMAL_MESSAGE_RESPONSE = "RESPONSE";//响应
    String ABNORMAL_MESSAGE_PROGRAM_CONFIRM = "PROGRAM_CONFIRM";//方案确认
    String ABNORMAL_MESSAGE_CORRECTION_CONFIRM = "CORRECTION_CONFIRM";//纠防确认
    String ABNORMAL_MESSAGE_CANCEL = "CANCEL";//取消
    String ABNORMAL_MESSAGE_RESPONSE_DUTY ="RESPONSE_DUTY";//责任划分超时
    String ABNORMAL_MESSAGE_RESPONSE_RESOLVE = "RESPONSE_RESOLVE";//方案确认超时

    /**
     * 打印类型
     */
    // 原材料标签
    String PRINT_TYPE_INV = "INV";
    // 在制品标签
    String PRINT_TYPE_SFC = "SFC";
    // 在制品标签条件打印
    String PRINT_TYPE_SFC_SPE = "SFC_SPE";
    // 余料标签
    String PRINT_TYPE_EXM = "EXM";

    // 成品标签
    String PRINT_TYPE_PRODUCT = "PRODUCT";
    /**
     * 刀具状态，Y-使用，N-报废/删除
     */
    String TOOL_STATUS_Y = "Y";
    String TOOL_STATUS_N = "N";

    /**
     * 异常计划表的状态
     */
    String UNTREATED = "UN"; //未处理
    String PROCESSED = "PR"; //已处理


    //用户组
    String USER_GROUP_ADMINISTRATOR = "ADMINISTRATORS";
    //外协
    String USER_GROUP_WX_USER = "WX_USER";
    //车间调度
    String USER_GROUP_CJDD = "CJDD";
    //总计划
    String USER_GROUP_ZJH = "ZJH";
}
