AnalysisBLL.cs 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using LeaRun.Application.Service.PipeNetworkManage;
  7. using LeaRun.Util.WebControl;
  8. namespace LeaRun.Application.Busines.PipeNetworkManage
  9. {
  10. public class AnalysisBLL
  11. {
  12. private AnalysisService service = new AnalysisService();
  13. /// <summary>
  14. /// 月度用水分析
  15. /// </summary>
  16. /// <param name="departId"></param>
  17. /// <param name="typeID"></param>
  18. /// <param name="devId"></param>
  19. /// <param name="time"></param>
  20. /// <returns></returns>
  21. public string GetMonthAnalysis(string devId, string time, Pagination pagination)
  22. {
  23. return service.GetMonthAnalysis(devId, time, pagination);
  24. }
  25. /// <summary>
  26. /// 年度用水分析
  27. /// </summary>
  28. /// <param name="departId"></param>
  29. /// <param name="typeID"></param>
  30. /// <param name="devId"></param>
  31. /// <param name="time"></param>
  32. /// <returns></returns>
  33. public string GetYearAnalysis(string devId, string time, Pagination pagination)
  34. {
  35. return service.GetYearAnalysis(devId, time, pagination);
  36. }
  37. /// <summary>
  38. /// 每小时用水量
  39. /// </summary>
  40. /// <param name="deviceId">测点ID</param>
  41. /// <param name="time">时间</param>
  42. /// <returns></returns>
  43. public string GetHourFlow(string deviceId, string time)
  44. {
  45. return service.GetHourFlow(deviceId, time);
  46. }
  47. /// <summary>
  48. /// 前三天平均用水量
  49. /// </summary>
  50. /// <param name="deviceId"></param>
  51. /// <param name="time"></param>
  52. /// <returns></returns>
  53. public string GetHourAvgFlow(string deviceId, string time)
  54. {
  55. return service.GetHourAvgFlow(deviceId, time);
  56. }
  57. /// <summary>
  58. /// 每日用水量
  59. /// </summary>
  60. /// <param name="deviceId"></param>
  61. /// <param name="time"></param>
  62. /// <returns></returns>
  63. public string GetDayFlow(string deviceId, string time)
  64. {
  65. return service.GetDayFlow(deviceId, time);
  66. }
  67. /// <summary>
  68. /// 每月用水量
  69. /// </summary>
  70. /// <param name="deviceId"></param>
  71. /// <param name="time"></param>
  72. /// <returns></returns>
  73. public string GetMonthFlow(string deviceId, string time)
  74. {
  75. return service.GetMonthFlow(deviceId, time);
  76. }
  77. /// <summary>
  78. /// 瞬时流量
  79. /// </summary>
  80. /// <param name="deviceId"></param>
  81. /// <param name="start"></param>
  82. /// <param name="end"></param>
  83. /// <returns></returns>
  84. public string GetFlowRate(string deviceId, string start, string end)
  85. {
  86. return service.GetFlowRate(deviceId, start, end);
  87. }
  88. /// <summary>
  89. /// 最小流量分析
  90. /// </summary>
  91. /// <param name="deviceId"></param>
  92. /// <param name="start"></param>
  93. /// <param name="end"></param>
  94. /// <returns></returns>
  95. public string GetMinFlow(string deviceId, string start, string end)
  96. {
  97. return service.GetMinFlow(deviceId,start,end);
  98. }
  99. }
  100. }