package com.zt.plat.module.qms.resource.record.constant;

/**
 * 档案记录常量
 */
public class RecordConstants {

    /**
     * 权限目标类型
     */
    public static class TargetType {
        /** key */
        public static final String TARGET_KEY = "文件记录授权类型";
        /** 用户 */
        public static final String USER = "用户";
        /** 角色 */
        public static final String ROLE = "角色";
        /** 部门 */
        public static final String DEPT = "部门";
        /** admin */
        public static final String ADMIN = "admin";
        /** 文件 */
        public static final String FILE = "文件";
    }

    /**
     * 权限类型
     */
    public static class PermissionType {
        /** key */
        public static final String PERMISSION_KEY = "file_record_permission_type";
        /** 管理员 */
        public static final String ADMIN = "管理员";
        /** 查看 */
        public static final String VIEW = "可查看";
        /** 编辑 */
        public static final String EDIT = "可编辑";
    }


    /**
     * 业务类型常量
     */
    public static class BusinessType {
        /**
         * key
         */
        public static final String BUSINESS_KEY = "jy_record_apply_bsn_type";
        /**
         * 分发
         */
        public static final String DISTRIBUTION = "文件分发";
        /**
         * 查看申请
         */
        public static final String VIEW_APPLY = "文件查看";
        /**
         * 作废
         */
        public static final String INVALID = "文件作废";
        /**
         * 评审
         */
        public static final String REVIEW = "文件评审";
        /**
         * 文件提交
         * */
        public static final String RECORD_SUBMIT = "文件提交";
        /**
         * 文件提交
         * */
        public static final String RECORD_UPDATE = "文件更改";

        public static final String CHANGE_NOTICE = "更改通知单";
    }

    /**
     * 流程定义key常量  ${qmsExecutionListener}
     */
    public static class ProcessDefinitionKey{
        /**
         * 分发
         */
        public static final String DISTRIBUTION_DEFINITION_KEY = "QMS_RECORD_DISTRIBUTION";
        /**
         * 查看申请
         */
        public static final String VIEW_APPLY_DEFINITION_KEY = "QMS_RECORD_APPLY";
        /**
         * 作废
         */
        public static final String INVALID_DEFINITION_KEY = "QMS_RECORD_INVALID";
        /**
         * 评审
         */
        public static final String REVIEW_DEFINITION_KEY = "QMS_RECORD_REVIEW";
        /**
         * 文件提交
         */
        public static final String RECORD_SUBMIT_DEFINITION_KEY = "QMS_RECORD_SUBMIT";
        /**
         * 文件修改
         * */
        public static final String RECORD_UPDATE_DEFINITION_KEY = "QMS_RECORD_UPDATE";
    }

    /**
     * 权限类型
     */
    public static class PermissionSourceType {
        /** 分类 */
        public static final String CATEGORY = "分类";
        /** 记录 */
        public static final String RECORD = "记录";
    }

    /**
     * 文件分类目录类型
     */
    public static class CategoryType {
        /** 分类 */
        public static final String BASE_TYPE = "base_type"; // 基础分类
        /** 记录 */
        public static final String PARTY_BUILD_TYPE = "party_build_type"; // 党建分类
    }
}
