HistoryController.cs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. using LeaRun.Application.Busines.WaterWell;
  2. using LeaRun.Util.WebControl;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Net;
  7. using System.Web.Mvc;
  8. namespace LeaRun.Application.Web.Areas.WaterWellManage.Controllers
  9. {
  10. /// <summary>
  11. /// 创 建:宋熙明
  12. /// 日 期:2017-12-22
  13. /// 描 述:历史记录
  14. /// </summary>
  15. public class HistoryController : MvcControllerBase
  16. {
  17. private WaterWellHistoryBLL historyBll = new WaterWellHistoryBLL();
  18. #region 视图功能
  19. // GET: /HistoryManager/History/
  20. /// <summary>
  21. /// 历史记录首页
  22. /// </summary>
  23. /// <returns></returns>
  24. public ActionResult HistoryIndex()
  25. {
  26. return View();
  27. }
  28. #endregion
  29. #region 获取历史数据
  30. /// <summary>
  31. /// 获取历史数据
  32. /// </summary>
  33. /// <returns></returns>
  34. [HttpGet]
  35. public ActionResult GetListJson(Pagination pagination, string keyword, string startT, string endT, string nodes, bool isAll)
  36. {
  37. string data = historyBll.GetHistoryData(pagination, keyword, startT, endT, nodes, isAll);
  38. return Content(data);
  39. }
  40. #endregion
  41. }
  42. }