PressureController.cs 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Web;
  5. using System.Web.Mvc;
  6. using LeaRun.Application.Busines.PipeNetworkManage;
  7. namespace LeaRun.Application.Web.Areas.PipeNetworkManage.Controllers
  8. {
  9. public class PressureController : Controller
  10. {
  11. PressureBLL pressureBll = new PressureBLL();
  12. /// <summary>
  13. /// 压力报表
  14. /// </summary>
  15. /// <returns></returns>
  16. public ActionResult PressureReport()
  17. {
  18. return View();
  19. }
  20. /// <summary>
  21. /// 压力曲线
  22. /// </summary>
  23. /// <returns></returns>
  24. public ActionResult PressureCurves()
  25. {
  26. return View();
  27. }
  28. public string GetPressureCuivesData(string devId, string start, string end)
  29. {
  30. return pressureBll.GetPressureCuivesData( devId, start, end);
  31. }
  32. public string GetPressureReport(string typeFlag, string ids, string time)
  33. {
  34. if (string.IsNullOrEmpty(ids))
  35. {
  36. return "[]";
  37. }
  38. return pressureBll.GetPressureReport(typeFlag, ids, time);
  39. }
  40. public string GetPressureReportDayHead(string ids)
  41. {
  42. if (string.IsNullOrEmpty(ids))
  43. {
  44. return "[]";
  45. }
  46. return pressureBll.GetPressureDayReportHead(ids);
  47. }
  48. public string GetPressureMonthReportHead(string ids)
  49. {
  50. if (string.IsNullOrEmpty(ids))
  51. {
  52. return "[]";
  53. }
  54. return pressureBll.GetPressureMonthReportHead(ids);
  55. }
  56. }
  57. }