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 GetAreaList() { return service.GetAreaList(); } public List GetExceptionUse(Pagination pagination, string thisDate, string lastDate, string moreUsed, string lessUsed, string areaId) { return service.GetExceptionUse(pagination, thisDate, lastDate, moreUsed, lessUsed, areaId); } public List GetBldgByArea(string areaId) { return service.getBldgListByAreaId(areaId); } public List GetApmtByBldg(string bldgId) { return service.getApmtListByBldgId(bldgId); } public List GetUserByApmt(string apmtId) { return service.getRoomListByBldgId(apmtId); } public List 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 GetMonthUse(string where, string order, Pagination pagination, string start, string end) { List items = service.GetMonthUse(where, order, pagination, start, end); return items; } //零用量统计 public List GetZeroUse(string where, string order, Pagination pagination, string start, string end) { List items = service.GetZeroUse(where, order, pagination, start, end); return items; } /// /// 获取平台数据 /// /// /// /// /// public DataTable GetPlatformRecord(string queryType, string queryValue, string thisDate = "", string lastDate = "", string isButton = "") { return service.GetPlatformRecord(queryType, queryValue, thisDate, lastDate, isButton); } /// /// 获取实时数据 /// /// /// /// public DataTable GetRealTimeData(Pagination pagination, string areaID) { return service.GetRealTimeData(pagination,areaID); } #region 2022-02-25 数据库 /// /// 获取实时数据 /// /// /// /// 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); } } }