MonthReportController.cs 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. using LeaRun.Application.Busines.WaterWell;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Web;
  6. using System.Web.Mvc;
  7. namespace LeaRun.Application.Web.Areas.WaterWellManage.Controllers
  8. {
  9. public class MonthReportController : MvcControllerBase
  10. {
  11. // 月报表
  12. // GET: /WaterWellManage/MonthRecord/
  13. MonthReportBLL monthReportBLL = new MonthReportBLL();
  14. public ActionResult Index()
  15. {
  16. return View();
  17. }
  18. #region 获取分析数据
  19. /// <summary>
  20. /// 获取分析数据
  21. /// </summary>
  22. /// <returns></returns>
  23. [HttpGet]
  24. public ActionResult GetListJson(string waterWellId, string month)
  25. {
  26. return Content(monthReportBLL.GetMonthReport(waterWellId, month));
  27. }
  28. #endregion
  29. #region 获取分析子数据
  30. /// <summary>
  31. /// 获取分析子数据
  32. /// </summary>
  33. /// <param name="Day"></param>
  34. /// <param name="Month"></param>
  35. /// <param name="WaterWellId"></param>
  36. /// <param name="id"></param>
  37. /// <returns></returns>
  38. [HttpGet]
  39. public ActionResult GetSubListJson(string Day, string Month, string WaterWellId, string id)
  40. {
  41. return Content(monthReportBLL.GetSubMonthReport(Day, Month, WaterWellId));
  42. }
  43. #endregion
  44. }
  45. }