Exemplo n.º 1
0
        public ActionResult RcDisAgree(int id)
        {
            LeaveManager lm        = new LeaveManager();
            string       leaveover = "不批准";
            //int id = Convert.ToInt32(Request.QueryString["id"]);
            bool pd = lm.UpdateG(id, leaveover);

            if (pd)
            {
                return(Redirect("~/LiuXin/MangerLeave/TcAgree"));
            }
            else
            {
                return(Content("<script>alert('不允许批准');window.location.href='~/LiuXin/MangerLeave/TcAgree';</script>"));
            }
        }