public ActionResult JLagree(int id) { LeaveManager lm = new LeaveManager(); string leaveover = "批准"; //int id = Convert.ToInt32(Request.QueryString["id"]); bool pd = lm.UpdateL(id, leaveover); if (pd) { return(Redirect("~/LiuXin/MangerLeave/Index")); } else { return(Content("<script>alert('不允许批准');window.location.href='~/LiuXin/MangerLeave/Index';</script>")); } }
public ActionResult JLdisagree(int id) { LeaveManager lm = new LeaveManager(); string leaveover = "不批准"; bool pdd = lm.UpdateL(id, leaveover); if (pdd) { string leaveoline = "不可见"; lm.UpdateC(id, leaveoline); return(Redirect("~/LiuXin/MangerLeave/Index")); } else { return(Content("<script>alert('不允许批准');window.location.href='~/LiuXin/MangerLeave/Index';</script>")); } }