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 static final String AGREEMENT_PREFIX = "H";

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

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

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

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

}
