diff --git a/04.系统编码/App/Controllers/TaskController.cs b/04.系统编码/App/Controllers/TaskController.cs new file mode 100644 index 0000000..d9a8d10 --- /dev/null +++ b/04.系统编码/App/Controllers/TaskController.cs @@ -0,0 +1,24 @@ +using System; +using System.Web.Mvc; +using System.Collections.Generic; + +using Pingchuan.BeijingSafeguard.BLL; +using Pingchuan.BeijingSafeguard.Model; + +namespace Pingchuan.BeijingSafeguard.App.Controllers +{ + public class TaskController : BaseController + { + public ActionResult Index() + { + return View(); + } + + [HttpPost] + public JsonResult GetList(DateTime fromDate, DateTime toDate) + { + List tasks = TaskBLL.GetList(fromDate, toDate); + return Json(tasks); + } + } +} \ No newline at end of file