Ejemplo n.º 1
0
        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>"));
            }
        }
Ejemplo n.º 2
0
        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>"));
            }
        }