using System;
using System.Collections.Generic;
using System.Text;
namespace Admin.Core.Common
{
public class SysConst
{
///
/// 文件下载固定路径
///
public const string SYS_FILE_EXPORT_PATH = "download/";
///
/// 文件上传固定路径
///
public const string SYS_FILE_UPLOAD_PATH = "upload/";
///
/// 平台内系统用户的唯一标志
///
public const string SYS_USER = "SYS_USER";
///
/// 正常状态
///
public const string NORMAL = "0";
///
/// 用户类型-其他用户
///
public const int USERTYPE_OTHER = 0;
///
/// 用户类型-后台用户
///
public const int USERTYPE_MANAGER = 0;
///
/// 用户类型-手机端用户
///
public const int USERTYPE_PHONE = 0;
///
/// 操作状态-成功状态
///
public const int SUCCESS = 0;
///
/// 操作状态-失败状态
///
public const int FAIL = 1;
///
/// 操作状态-其他状态
///
public const int OTHER = 2;
///
/// 异常状态
///
public const string EXCEPTION = "1";
///
/// 启用状态
///
public const int ENABLE = 0;
///
/// 管理员角色Code
///
public const string ADMIN_KEY = "admin";
///
/// 封禁状态
///
public const int DISABLE = 1;
///
/// 数据标量
///
public const int FLAGINT = -1;
///
/// 用户封禁状态
///
public const string USER_DISABLE = "1";
///
/// 角色封禁状态
///
public const string ROLE_DISABLE = "1";
///
/// 部门正常状态
///
public const string DEPT_NORMAL = "0";
///
/// 部门停用状态
///
public const string DEPT_DISABLE = "1";
///
/// 字典正常状态
///
public const string DICT_NORMAL = "0";
///
/// 是否为系统默认(是)
///
public const string YES = "Y";
///
/// 是否菜单外链(是)
///
public const bool YES_FRAME = true;
///
/// 是否菜单外链(否)
///
public const bool NO_FRAME = false;
///
/// 菜单类型(目录)
///
public const string TYPE_DIR = "M";
///
/// 菜单类型(菜单)
///
public const string TYPE_MENU = "C";
///
/// 菜单类型(按钮)
///
public const string TYPE_BUTTON = "F";
///
/// Layout组件标识
///
public const string LAYOUT = "Layout";
///
/// ParentView组件标识
///
public const string PARENT_VIEW = "ParentView";
///
/// InnerLink组件标识
///
public const string INNER_LINK = "InnerLink";
///
/// 校验返回结果码
///
public const string UNIQUE = "0";
public const string NOT_UNIQUE = "1";
///
/// 用户名长度限制
///
public const int USERNAME_MIN_LENGTH = 2;
public const int USERNAME_MAX_LENGTH = 20;
///
/// 密码长度限制
///
public const int PASSWORD_MIN_LENGTH = 5;
public const int PASSWORD_MAX_LENGTH = 20;
///
/// 验证码开关Key
///
public const string KEY_OFF_CAPTCHA = "sys.account.captchaOnOff";
///
/// 注册开关Key
///
public const string KEY_OFF_REGISTER = "sys.account.registerUser";
///
/// 项目类型字典标识
///
public const string DW_peoject_type = "dw_project_type";
///
/// 项目分组字典标识
///
public const string DW_peoject_group = "dw_project_group";
///
/// 项目手续字典标识
///
public const string DW_project_procedures = "dw_project_procedures";
///
/// 督察办部门ID
///
public const int DW_deptid_dcb = 101;
///
/// 系统管理员用户ID
///
public const int DW_user_admin = 1;
///
/// 督察办默认用户ID
///
public const int DW_user_dcb = 1010;
///
/// 系统默认用户ID
///
public const int SYS_user_id = 1010;
///
/// 系统默认用户ID
///
public const string SYS_user_login = "admin";
///
/// 系统默认草稿状态字典值
///
public const string DW_status_draft = "1";
///
/// 系统默认待解决状态字典值
///
public const string DW_status_do = "1";
///
/// 系统默认已解决状态字典值
///
public const string DW_status_ok = "2";
///
/// 系统默认待汇报状态字典值
///
public const string DW_report_do = "1";
///
/// 系统默认已汇报状态字典值
///
public const string DW_report_ok = "2";
}
}