string DeleteA(HHPrincipal principal, HttpContext context, ref bool result) { string msg = string.Empty; if (principal.IsInRole("ArticleModule-Delete")) { DataActionStatus s = ArticleManager.DeleteArticles(context.Request["newsIds"]); switch (s) { case DataActionStatus.Success: msg = "已成功删除所选的资讯!"; result = true; break; case DataActionStatus.RelationshipExist: result = false; msg = "资讯下存在关联数据[子分类/资讯],无法被删除!"; break; case DataActionStatus.UnknownFailure: result = false; msg = "删除资讯信息时发生了未知的错误!"; break; } } else { throw new Exception("您没有执行此操作的权限!"); } return(msg); }