public void Delete(int id) { int result = BLL.Del(id); if (result > 0) { Response.Write("<script>alert('撤销成功');location.href='/Leave/Index';</script>"); } }