123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108 |
- using LeaRun.Application.Service.PipeNetworkManage;
- using LeaRun.Util.WebControl;
- using System.Collections.Generic;
- using System;
- using System.Data;
- using LeaRun.Application.Entity.PipeNetworkManage;
- namespace LeaRun.Application.Busines.PipeNetworkManage
- {
- /// <summary>
- /// 版 本 6.1
- /// Copyright (c) 2013-2016 上海力软信息技术有限公司
- /// 创 建:administrator
- /// 日 期:2017-08-05 09:35
- /// 描 述:历史记录模板
- /// </summary>
- public class HistoryBLL
- {
- private HistoryService service = new HistoryService();
- #region 获取数据
-
- /// <summary>
- /// 查询设备历史记录
- /// </summary>
- /// <param name="deviceId">设备ID</param>
- /// <param name="startT">开始时间</param>
- /// <param name="endT">结束时间</param>
- /// <returns></returns>
- public string GetEntityList(string deviceId, string startT, string endT, Pagination pagination)
- {
- return service.GetGridData(deviceId, startT, endT, pagination);
- }
- /// <summary>
- /// 查询设备历史记录
- /// </summary>
- /// <param name="deviceId">设备ID</param>
- /// <param name="startT">开始时间</param>
- /// <param name="endT">结束时间</param>
- /// <returns></returns>
- public DataTable GetHistoryData(string deviceId, string startT, string endT)
- {
- return service.GetHistoryData(deviceId,startT,endT);
- }
- /// <summary>
- /// 凌晨流量Json
- /// </summary>
- /// <param name="tablename"></param>
- /// <param name="dtStart"></param>
- /// <param name="devName"></param>
- /// <param name="lineType"></param>
- /// <param name="datas"></param>
- /// <param name="size"></param>
- /// <returns></returns>
- public string GetDaybreakJsonData(MeterEntity entity, DateTime dtStart, string lineType, List<string> datas, int size, int flowType)
- {
- return service.GetDaybreakJsonData(entity, dtStart,lineType,datas,size,flowType);
- }
- /// <summary>
- /// 获取K线数据
- /// </summary>
- /// <param name="devId"></param>
- /// <param name="start"></param>
- /// <param name="end"></param>
- /// <param name="interval"></param>
- /// <returns></returns>
- public string GetFlowKData(string devId, string start, string end, string interval)
- {
- return service.GetFlowKData(devId,start,end,interval);
- }
- /// <summary>
- /// 获取某一段时间的流量
- /// </summary>
- /// <param name="entity"></param>
- /// <param name="dtStart"></param>
- /// <param name="dtEnd"></param>
- /// <param name="datas"></param>
- /// <returns></returns>
- public string GetInsData(MeterEntity entity, string dtStart, string dtEnd)
- {
- return service.GetInsData(entity,dtStart,dtEnd);
- }
- /// <summary>
- /// 获取某一段时间的流量
- /// </summary>
- /// <param name="entity"></param>
- /// <param name="dtStart"></param>
- /// <param name="dtEnd"></param>
- /// <param name="datas"></param>
- /// <returns></returns>
- public string GetInsData(MeterEntity entity, string dtStart, string dtEnd, List<string> datas)
- {
- return service.GetInsData(entity, dtStart, dtEnd, datas);
- }
- #endregion
- }
- }
|