Пример #1
0
        public void ActiveSecurityLevel(HttpContext context, long securitylevel_id)
        {
            //此处激活逻辑

            var result = new SecurityLevelBLL().ActiveSecurityLevel(LoginUserId, (int)securitylevel_id);

            if (result == DTO.ERROR_CODE.SUCCESS)
            {
                context.Response.Write("激活安全等级成功!");
            }
            if (result == DTO.ERROR_CODE.ACTIVATION)
            {
                context.Response.Write("激活状态的模板不可以进行该操作!");
            }
            if (result == DTO.ERROR_CODE.ERROR)
            {
                context.Response.Write("激活安全等级失败!");
            }
        }
Пример #2
0
        public void DeleteSecurityLevel(HttpContext context, long securitylevel_id)
        {
            //此处写删除逻辑

            var result = new SecurityLevelBLL().DeleteSecurityLevel(LoginUserId, (int)securitylevel_id);

            if (result == DTO.ERROR_CODE.SUCCESS)
            {
                context.Response.Write("删除安全等级成功!");
            }
            else if (result == DTO.ERROR_CODE.SYSTEM)
            {
                context.Response.Write("系统安全等级不能删除!");
            }
            else
            {
                context.Response.Write("删除安全等级失败!");
            }
        }