コード例 #1
0
 public ActionResult Delete(string id, string key = "")
 {
     if (string.IsNullOrEmpty(key))
     {
         return(Alert("请输入删除确认码!", -1));
     }
     if (reportServices.Delete(id) & key == "1")
     {
         return(Alert("删除成功"));
     }
     else
     {
         return(Alert("删除失败:报表不存在"));
     }
 }