123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122 |
- using LeaRun.Application.Entity.NBManage;
- using LeaRun.Application.Service.NBManage;
- using LeaRun.Util.WebControl;
- using System;
- using System.Collections.Generic;
- using System.Data;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace LeaRun.Application.Busines.NBManage
- {
- /*----------------------------------------------------------------
- // 版 本 1.0
- // Copyright (c) 山东潍微科技股份有限公司
- // 创建人:王理民
- // 日期:2018-03-19 15:47:44
- // 描述:
- // 修改人:
- // 最后一次修改日期:2018-03-19 15:47:44
- //----------------------------------------------------------------*/
- public class NBHistoryBLL
- {
- NBHistoryService service = new NBHistoryService();
- //查询历史记录
- public DataTable GetHistory(string where, Pagination pagination)
- {
- DataTable items = service.GetHistory(where,pagination);
- return items;
- }
- public List<AreaInfoEntity> GetAreaList()
- {
- return service.GetAreaList();
- }
- public List<NBHistoryEntity> GetExceptionUse(Pagination pagination, string thisDate, string lastDate, string moreUsed, string lessUsed, string areaId)
- {
- return service.GetExceptionUse(pagination, thisDate, lastDate, moreUsed, lessUsed, areaId);
- }
- public List<BldgInfoEntity> GetBldgByArea(string areaId)
- {
- return service.getBldgListByAreaId(areaId);
- }
- public List<ApmtInfoEntity> GetApmtByBldg(string bldgId)
- {
- return service.getApmtListByBldgId(bldgId);
- }
- public List<NBUserEntity> GetUserByApmt(string apmtId)
- {
- return service.getRoomListByBldgId(apmtId);
- }
- public List<NBMeterEntity> GetDeviceByRoom(string roomId)
- {
- return service.GetDeviceByRoom(roomId);
- }
- //查询区间用量
- public DataTable GetSectionUse(string where, string order, Pagination pagination, string start, string end)
- {
- return service.GetSectionUse(where, order, pagination, start, end);
- }
- //查询月用量
- public List<NBHistoryEntity> GetMonthUse(string where, string order, Pagination pagination, string start, string end)
- {
- List<NBHistoryEntity> items = service.GetMonthUse(where, order, pagination, start, end);
- return items;
- }
- //零用量统计
- public List<NBHistoryEntity> GetZeroUse(string where, string order, Pagination pagination, string start, string end)
- {
- List<NBHistoryEntity> items = service.GetZeroUse(where, order, pagination, start, end);
- return items;
- }
- /// <summary>
- /// 获取平台数据
- /// </summary>
- /// <param name="devideId"></param>
- /// <param name="thisDate"></param>
- /// <param name="lastDate"></param>
- /// <returns></returns>
- public DataTable GetPlatformRecord(string queryType, string queryValue, string thisDate = "", string lastDate = "", string isButton = "")
- {
- return service.GetPlatformRecord(queryType, queryValue, thisDate, lastDate, isButton);
- }
- /// <summary>
- /// 获取实时数据
- /// </summary>
- /// <param name="pagination"></param>
- /// <param name="areaID"></param>
- /// <returns></returns>
- public DataTable GetRealTimeData(Pagination pagination, string areaID)
- {
- return service.GetRealTimeData(pagination,areaID);
- }
- #region 2022-02-25 数据库
- /// <summary>
- /// 获取实时数据
- /// </summary>
- /// <param name="pagination"></param>
- /// <param name="areaID"></param>
- /// <returns></returns>
- public DataTable GetRealTimeDataBySql(Pagination pagination, string areaID)
- {
- return service.GetRealTimeDataBySql(pagination, areaID);
- }
- #endregion
- public string GetNBMeterHisData(string meterAddr, string beginDate)
- {
- return service.GetNBMeterHisData(meterAddr, beginDate);
- }
- }
- }
|