Exemple #1
0
        /// <summary>
        /// 删除附件
        /// </summary>
        /// <param name="context"></param>
        private void DeleteAttachment(HttpContext context)
        {
            long id = long.Parse(context.Request.QueryString["id"]);

            if (AuthBLL.GetUserAttAuth(LoginUserId, LoginUser.security_Level_id, id).CanDelete == false)
            {
                context.Response.Write(new Tools.Serialize().SerializeJson(false));
                return;
            }
            bll.DeleteAttachment(id, LoginUserId);
            context.Response.Write(new Tools.Serialize().SerializeJson(true));
        }