package com.bonus.common.biz.constant;

/**
 * 仓储通用常量信息
 * 
 * @author bonus
 */
public class MaterialConstants {

    private MaterialConstants() {

    }

    /**
     * UTF-8 字符集
     */
    public static final String UTF8 = "UTF-8";

    // 树的根节点ID
    public static final Long TREE_ROOT_ID = 0L;

    /**
     * XLS
     */
    public static final String XLS = "xls";

    /**
     * XLSX
     */
    public static final String XLSX = "xlsx";

    /**
     * 身份证正则表达式
     */
    public static final String CREDENTIALS_CODE_PATTERN = "^[1-9]\\d{5}[1-9]\\d{3}((0[1-9])|(1[0-2]))(0[1-9]|([1|2][0-9])|3[0-1])((\\d{4})|\\d{3}X)$";

    /**
     * 经度正则表达式
     */
    public static final String LONGITUDE_PATTERN = "^(-?(180(\\.0+)?|1[0-7][0-9](\\.\\d{1,6})?|[1-9]?\\d(\\.\\d{1,6})?))$";

    /**
     * 纬度正则表达式
     */
    public static final String LATITUDE_PATTERN = "^(-?(90(\\.0+)?|[1-8]?\\d(\\.\\d{1,6})?))$";

    public final static String STRING_ADMIN = "admin";

    /** 新购号的开头字母 */
    public final static String PURCHASE_TASK_TYPE_LABEL = "XG";

    /** 协议号的开头字母 */
    public static final String AGREEMENT_PREFIX = "H";

    /** 领料单号的开头字母 */
    public static final String LEASE_TASK_TYPE_LABEL = "L";

    /** 材料站领料单号的开头字母 */
    public static final String MATERIAL_LEASE_TASK_TYPE_LABEL = "ML";

    /** 机具公司领料单号的开头字母 */
    public static final String JJ_LEASE_TASK_TYPE_LABEL = "JJL";

    /** 安全工器具领料单号的开头字母 */
    public static final String AQ_LEASE_TASK_TYPE_LABEL = "AQL";

    /** 宏源领料单号的开头字母 */
    public static final String HY_LEASE_TASK_TYPE_LABEL = "HYL";

    /** 退料单号的开头字母 */
    public static final String BACK_TASK_TYPE_LABEL = "T";

    /** 材料站退料单号的开头字母 */
    public static final String BACK_MATERIAL_TASK_TYPE_LABEL = "MT";

    /** 材料站预约退料单号的开头字母 */
    public static final String BACK_MATERIAL_APPOINT_TASK_TYPE_LABEL = "YT";

    /** 维修单号的开头字母 */
    public static final String REPAIR_TASK_TYPE_LABEL = "WX";

    /** 维修审核单号的开头字母 */
    public static final String REPAIR_AUDIT_TYPE_LABEL = "WS";

    /** 报废单号的开头字母 */
    public static final String SCRAP_TASK_TYPE_LABEL = "BF";

    /** 盘点报废单号的开头字母 */
    public static final String PD_SCRAP_TASK_TYPE_LABEL = "PDB";

    /** 修饰入库单号的开头字母 */
    public static final String REPAIR_INPUT_TASK_TYPE_LABEL = "R";

    /** 配件新购号的开头字母 */
    public final static String PART_TASK_TYPE_LABEL = "PJXG";

    /** 配件领料单号的开头字母 */
    public static final String PART_LEASE_TASK_TYPE_LEASE = "LP";

    /** 现场维修的开头字母 */
    public static final String FIELD_TASK_TYPE_LABEL = "XCWX";

    /**
     * 领用发布
     */
    public static final String LEASE_PUBLISH = "LF";

    /**
     * 内部单位协议
     */
    public static final String INNER_PROTOCAL = "1";

    /**
     * 外部单位协议
     */
    public static final String OUTER_PROTOCAL = "2";

    /**
     * 标准箱前缀
     */
    public static final String QR_BOX_PREFIX = "BOX";

}
