package org.qinan.safetyeval.domain.constant;

import java.math.BigDecimal;

/**
 * 资质备案合规检查项枚举
 *
 * @author safety-eval
 */
public enum QualFilingComplianceCheckEnum {

    MAIN_QUALIFICATION("主体资格", "独立法人资格，固定资产不少于一千万元"),
    WORKPLACE("场所与设备", "工作场所建筑面积不少于1000㎡"),
    PERSONNEL_COUNT("人员数量与结构", "专职技术人员≥25人，中级注安师≥30%"),
    PERSONNEL_EXPERIENCE("人员资历", "专职技术人员在本行业领域工作二年以上"),
    KEY_POSITION("关键岗位要求", "负责人具有高级职称，工作八年以上"),
    MANAGEMENT_SYSTEM("管理体系", "需核验文件化管理体系是否符合要求"),
    COMMITMENT("责任承诺", "法定代表人已出具承诺书"),
    INFO_DISCLOSURE("信息公开", "未检测到公示网站"),
    CREDIT_RECORD("信用记录", "三年内无重大违法失信记录"),
    OTHER("其他", "法律、行政法规规定的其他条件"),
    ;

    /**
     * 结果状态：通过
     */
    public static final String STATUS_PASS = "PASS";
    /**
     * 结果状态：未通过
     */
    public static final String STATUS_FAIL = "NOT_PASS";
    /**
     * 结果状态：警告/暂无法判断
     */
    public static final String STATUS_WARN = "WARN";

    /**
     * 场所与设备 底线
     */
    public static final int WORKPLACE_LOWER = 1000;
    public static final int PERSONNEL_COUNT_LOWER = 25;
    public static final int PERSONNEL_RATE = 30;

    private final String title;
    private final String description;

    QualFilingComplianceCheckEnum(String title, String description) {
        this.title = title;
        this.description = description;
    }

    public String getTitle() {
        return title;
    }

    public String getDescription() {
        return description;
    }
}
