1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using LeaRun.Application.Service.NBManage;
- using LeaRun.Util.WebControl;
- using System.Data;
- namespace LeaRun.Application.Busines.NBManage
- {
- public class NBEquipmentDebugBLL
- {
- NBEquipmentDebugService service = new NBEquipmentDebugService();
- //IMEI,SIM,MeterAddr,DeviceID
- public string SendCommand(string IMEI, string SIM, string MeterAddr)
- {
- return service.SendCommand(IMEI, SIM, MeterAddr);
- }
- /// <summary>
- /// 数据同步
- /// </summary>
- /// <param name="IMEI"></param>
- /// <param name="SIM"></param>
- /// <param name="MeterAddr"></param>
- /// <returns></returns>
- public int SendCommandForSync(string area,string bldg,string apmt,string room,string IMEI,string SIM,string MeterAddr,string DeviceID)
- {
- return service.SendCommandForSync(area, bldg,apmt,room,IMEI, SIM, MeterAddr,DeviceID);
- }
- public string GetRecordJson(Pagination pagination, string imei , string thisDate , string lastDate,String address)
- {
- return service.GetRecordJson(pagination, imei, thisDate, lastDate, address);
- }
- #region 删除表具信息
- /// <summary>
- /// 删除表具信息
- /// </summary>
- /// <param name="data"></param>
- /// <returns></returns>
- public int DeleteMeterForm(string meterId)
- {
- return service.DeleteMeterForm(meterId);
- }
- #endregion
- #region 获取表具信息
- /// <summary>
- /// 保存用户信息
- /// </summary>
- /// <param name="data"></param>
- /// <returns></returns>
- public DataTable GetMeterByMeterId(string meterId)
- {
- return service.GetMeterByMeterId(meterId);
- }
- public int EditMeterForm(string keyValue, string meterAddr, string imei, string sim)
- {
- return service.EditMeterForm(keyValue, meterAddr, imei, sim);
- }
- #endregion
- public DataTable GetBatchMeterByIMEI(string IMEI)
- {
- return service.GetBatchMeterByIMEI(IMEI);
- }
- public DataTable GetBatchMeterByDeviceID(string str_DeviceID)
- {
- return service.GetBatchMeterByDeviceID(str_DeviceID);
- }
- //批量删除
- public Int32 DelMeter(string IMEI, string SIM, string MeterAddr, String str_DeviceID)
- {
- return service.DelMeter(IMEI, SIM, MeterAddr, str_DeviceID);
- }
- }
- }
|