public ActionResult DEL1(int id) { human_fileModel hfm = new human_fileModel { Id = id }; if (hfb.Del(hfm) > 0) { return(Content("<script>alert('删除成功');window.location='DEL'</script>")); } return(Content("<script>alert('删除失败');window.location='DEL'</script>")); }
//人力资源档案永久删除 public ActionResult True_Del(int id) { human_file hf = ihdb.SelectWhere(e => e.huf_id == id).FirstOrDefault(); if (ihdb.Del(hf) > 0) { return(Content("<script>alert('永久删除成功!');location.href='/Human_file/index7'</script>")); } else { return(Content("<script>alert('永久删除失败!');location.href='/Human_file/index7'</script>")); } }