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