예제 #1
0
        public ActionResult Edit(Leave leave, string radio1)
        {
            leave.LeaveState = Convert.ToInt32(radio1) == 2 ? "2" : "3";
            leave.AuditName  = Session["UserName"].ToString();
            int result = BLL.Upt(leave);

            if (result > 0)
            {
                Response.Write("<script>alert('审批成功');location.href='/Leave/Index'</script>");
            }
            return(View());
        }