Пример #1
0
        public void Delete(HttpContext context, long type_id)
        {
            var result = new ConfigTypeBLL().Delete(type_id, LoginUserId);

            if (result == DTO.ERROR_CODE.SUCCESS)
            {
                context.Response.Write("删除成功!");
            }
            else
            {
                context.Response.Write("删除失败!");
            }
        }
Пример #2
0
        public void Delete_Valid(HttpContext context, long type_id)
        {
            string returnvalue = string.Empty;
            var    result      = new ConfigTypeBLL().Delete_Valid(type_id, LoginUserId, out returnvalue);

            if (result == DTO.ERROR_CODE.SUCCESS)
            {
                Delete(context, type_id);
            }
            else if (result == DTO.ERROR_CODE.EXIST)
            {
                context.Response.Write(returnvalue);
            }
            else if (result == DTO.ERROR_CODE.SYSTEM)
            {
                context.Response.Write("system");
            }
            else
            {
                context.Response.Write("other");
            }
        }