package com.unis.sxzcl.ui.work_module;

import com.unis.sxzcl.R;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

/**
 * 包名: com.unis.model
 * 类名: HomeModel
 * 作用描述: 工作台数据
 * 创建人: mQ
 * 创建时间: 2020/11/11 10:22
 * 更新人:
 * 更新时间: 2020/11/11 10:22
 * 更新说明:
 * 版本号: 1.0
 */
public class WorkbenchModel {
    private WorkbenchModel() {
    }

    private static class SingleHolder {
        private static final WorkbenchModel INSTANCE = new WorkbenchModel();
    }

    public static WorkbenchModel get() {
        return SingleHolder.INSTANCE;
    }

    public static final String TYPE_JBXX = "基本信息";
    public static final String TYPE_RYJG = "人员结构";


    public static final String TYPE_SLZL = "数量质量";
    public static final String TYPE_CFXX = "仓房信息";
    public static final String TYPE_RKZL = "入库质量";
    public static final String TYPE_KCZL = "库存质量";
    public static final String TYPE_CKZL = "出库质量";


    public static final String TYPE_CLGL = "储粮管理";
    public static final String TYPE_LQJC = "粮情检查";
    public static final String TYPE_JXTF = "机械通风";
    public static final String TYPE_XZGL = "熏蒸管理";


    public static final String TYPE_YJGL = "药剂管理";
    public static final String TYPE_YJCG = "药剂采购";
    public static final String TYPE_YJBG = "药剂保管";
    public static final String TYPE_YJLY = "药剂领用";


    public static final String TYPE_SSSB = "设施设备";
    public static final String TYPE_SSGL = "设施管理";
    public static final String TYPE_SBGL = "设备管理";


    public static final String TYPE_AQSC = "安全生产";


    public static final String TYPE_JDJC = "监督检查";


    public static final String TYPE_KWGL = "库外管理";
    public static final String TYPE_ZCGL = "租仓管理";
    public static final String TYPE_WTGL = "委托管理";


    /**
     * 所有作业功能
     * 分一级标题 和 二级功能
     */
    public List<WorkModuleBean> getModuleList() {
        List<WorkModuleBean> list = new ArrayList<>();

        list.add(new WorkModuleBean(TYPE_JBXX, Arrays.asList(
                new WorkModuleBean(TYPE_RYJG, R.drawable.ic_model_ryjg)
        )));

        list.add(new WorkModuleBean(TYPE_SLZL, Arrays.asList(
                new WorkModuleBean(TYPE_CFXX, R.drawable.ic_model_cfxx)
//                new WorkModuleBean(TYPE_RKZL, R.drawable.ic_model_rkzl),
//                new WorkModuleBean(TYPE_KCZL, R.drawable.ic_model_kczl),
//                new WorkModuleBean(TYPE_CKZL, R.drawable.ic_model_ckzl)
        )));

        list.add(new WorkModuleBean(TYPE_CLGL, Arrays.asList(
                new WorkModuleBean(TYPE_LQJC, R.drawable.ic_model_lqjc),
                new WorkModuleBean(TYPE_JXTF, R.drawable.ic_model_jxtf)
//                new WorkModuleBean(TYPE_XZGL, R.drawable.ic_model_xzgl)
        )));

//        list.add(new WorkModuleBean(TYPE_YJGL, Arrays.asList(
//                new WorkModuleBean(TYPE_YJCG, R.drawable.ic_model_yjcg),
//                new WorkModuleBean(TYPE_YJBG, R.drawable.ic_model_yjbg),
//                new WorkModuleBean(TYPE_YJLY, R.drawable.ic_model_yjly)
//        )));

//        list.add(new WorkModuleBean(TYPE_SSSB, Arrays.asList(
//                new WorkModuleBean(TYPE_SSGL, R.drawable.ic_model_ssgl),
//                new WorkModuleBean(TYPE_SBGL, R.drawable.ic_model_sbgl)
//        )));

//        list.add(new WorkModuleBean(TYPE_AQSC, Arrays.asList(
//                new WorkModuleBean(TYPE_AQSC, R.drawable.ic_model_aqsc)
//        )));

//        list.add(new WorkModuleBean(TYPE_JDJC, Arrays.asList(
//                new WorkModuleBean(TYPE_JDJC, R.drawable.ic_model_jdjc)
//        )));

//        list.add(new WorkModuleBean(TYPE_KWGL, Arrays.asList(
//                new WorkModuleBean(TYPE_ZCGL, R.drawable.ic_model_zcgl),
//                new WorkModuleBean(TYPE_WTGL, R.drawable.ic_model_wtgl)
//        )));

        return list;
    }

}
