123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using LeaRun.Application.Service.PipeNetworkManage;
- using LeaRun.Util.WebControl;
- namespace LeaRun.Application.Busines.PipeNetworkManage
- {
- public class AnalysisBLL
- {
- private AnalysisService service = new AnalysisService();
- /// <summary>
- /// 月度用水分析
- /// </summary>
- /// <param name="departId"></param>
- /// <param name="typeID"></param>
- /// <param name="devId"></param>
- /// <param name="time"></param>
- /// <returns></returns>
- public string GetMonthAnalysis(string devId, string time, Pagination pagination)
- {
- return service.GetMonthAnalysis(devId, time, pagination);
- }
- /// <summary>
- /// 年度用水分析
- /// </summary>
- /// <param name="departId"></param>
- /// <param name="typeID"></param>
- /// <param name="devId"></param>
- /// <param name="time"></param>
- /// <returns></returns>
- public string GetYearAnalysis(string devId, string time, Pagination pagination)
- {
- return service.GetYearAnalysis(devId, time, pagination);
- }
- /// <summary>
- /// 每小时用水量
- /// </summary>
- /// <param name="deviceId">测点ID</param>
- /// <param name="time">时间</param>
- /// <returns></returns>
- public string GetHourFlow(string deviceId, string time)
- {
- return service.GetHourFlow(deviceId, time);
- }
- /// <summary>
- /// 前三天平均用水量
- /// </summary>
- /// <param name="deviceId"></param>
- /// <param name="time"></param>
- /// <returns></returns>
- public string GetHourAvgFlow(string deviceId, string time)
- {
- return service.GetHourAvgFlow(deviceId, time);
- }
- /// <summary>
- /// 每日用水量
- /// </summary>
- /// <param name="deviceId"></param>
- /// <param name="time"></param>
- /// <returns></returns>
- public string GetDayFlow(string deviceId, string time)
- {
- return service.GetDayFlow(deviceId, time);
- }
- /// <summary>
- /// 每月用水量
- /// </summary>
- /// <param name="deviceId"></param>
- /// <param name="time"></param>
- /// <returns></returns>
- public string GetMonthFlow(string deviceId, string time)
- {
- return service.GetMonthFlow(deviceId, time);
- }
- /// <summary>
- /// 瞬时流量
- /// </summary>
- /// <param name="deviceId"></param>
- /// <param name="start"></param>
- /// <param name="end"></param>
- /// <returns></returns>
- public string GetFlowRate(string deviceId, string start, string end)
- {
- return service.GetFlowRate(deviceId, start, end);
- }
- /// <summary>
- /// 最小流量分析
- /// </summary>
- /// <param name="deviceId"></param>
- /// <param name="start"></param>
- /// <param name="end"></param>
- /// <returns></returns>
- public string GetMinFlow(string deviceId, string start, string end)
- {
- return service.GetMinFlow(deviceId,start,end);
- }
- }
- }
|