package com.rongwei.bscommon.sys.utils;

import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.List;

public class QuestionConstants {

    /**
     * 数据字典TYPE
     */
    public static class SysDictType {
        // 问题类型
        public static final String PROBLEM_TYPE = "PROBLEMTYPE";
        // 8D计划实施分析状态
        public static final String SUE_STATUS = "EDISSUESTATUS";
        // 是否中文
        public static final String YES_OR_NO = "yesno";
        // 问题状态
        public static final String PROBLEM_STATUS = "PROBLEMSTATUS";
        // 问题分类
        public static final String ISSUE_TYPE = "issuetype";
        // 频率周期
        public static final String FERQUENCY = "FERQUENCY";
        // 故障种类
        public static final String FAULT_TYPE = "faulttype";
        // 影响种类
        public static final String IMPACTCATEGORY = "impactcategory";
        // 跟踪天数
        public static final String TRACKDAY = "TRACKDAY";
    }

    /**
     * 是否
     */
    public static class YesOrNo {
        public static final String YES = "是";
        public static final String NO = "否";
    }

    public static class StandardizedContent {
        public static final String SUFFIX = "%s     是Yes      %s     否No";
        public static final String PFMEA = "更新PFMEA ：";
        public static final String CONTROL_PLAN = "更新控制计划：";
        public static final String SOP = "更新SOP：";
        public static final String SYSTEM_DOCUMENT = "更新体系文件：";
        public static final String HORIZONTAL_EXPANSION = "是否需要横向展开：";

    }

    public static class MES {
        public static final String QUA_TABLE_NAME = "QUA";
        public static final String EQU_TABLE_NAME = "EQU";
        public static final String OPR_TABLE_NAME = "OPR";
        public static final String DEFAULT_USER = "MES";
    }

    /**
     * 问题分类
     */
    public static class TriggerLevel {
        public static final String PS = "PS";
        public static final String RCA = "RCA";
    }

    /**
     * 问题级别
     */
    public static class ProblemLevel {
        // 车间级
        public static final String WORKSHOP = "1";
        // 工厂级
        public static final String FACTORY = "2";
    }

    public static class Shift {
        public static final int NIGHT_SHIFT = 30;
        public static final int MORNING_SHIFT = 830;
        public static final int MIDDLE_SHIFT = 1630;
        public static final String MORNING_SHIFT_STR = "早班";
        public static final String MIDDLE_SHIFT_STR = "中班";
        public static final String NIGHT_SHIFT_STR = "晚班";
        public static final SimpleDateFormat SHIFT_FORMAT = new SimpleDateFormat("HHmm");
    }

    public static final List<String> FIVE_WHY_ONT_H_DESC = new ArrayList<String>(){{
        add("When(什么时间)");
        add("Where(什么地方、机台)");
        add("Who(谁、或者班组)");
        add("What(发生了什么)");
        add("Why(为什么)");
        add("How(产生了什么影响)");
    }};

    public static final String FACTORY_NAME = "奥科宁克（昆山）铝业有限公司";
}
