NBEquipmentDebugBLL.cs 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using LeaRun.Application.Service.NBManage;
  7. using LeaRun.Util.WebControl;
  8. using System.Data;
  9. namespace LeaRun.Application.Busines.NBManage
  10. {
  11. public class NBEquipmentDebugBLL
  12. {
  13. NBEquipmentDebugService service = new NBEquipmentDebugService();
  14. //IMEI,SIM,MeterAddr,DeviceID
  15. public string SendCommand(string IMEI, string SIM, string MeterAddr)
  16. {
  17. return service.SendCommand(IMEI, SIM, MeterAddr);
  18. }
  19. /// <summary>
  20. /// 数据同步
  21. /// </summary>
  22. /// <param name="IMEI"></param>
  23. /// <param name="SIM"></param>
  24. /// <param name="MeterAddr"></param>
  25. /// <returns></returns>
  26. public int SendCommandForSync(string area,string bldg,string apmt,string room,string IMEI,string SIM,string MeterAddr,string DeviceID)
  27. {
  28. return service.SendCommandForSync(area, bldg,apmt,room,IMEI, SIM, MeterAddr,DeviceID);
  29. }
  30. public string GetRecordJson(Pagination pagination, string imei , string thisDate , string lastDate,String address)
  31. {
  32. return service.GetRecordJson(pagination, imei, thisDate, lastDate, address);
  33. }
  34. #region 删除表具信息
  35. /// <summary>
  36. /// 删除表具信息
  37. /// </summary>
  38. /// <param name="data"></param>
  39. /// <returns></returns>
  40. public int DeleteMeterForm(string meterId)
  41. {
  42. return service.DeleteMeterForm(meterId);
  43. }
  44. #endregion
  45. #region 获取表具信息
  46. /// <summary>
  47. /// 保存用户信息
  48. /// </summary>
  49. /// <param name="data"></param>
  50. /// <returns></returns>
  51. public DataTable GetMeterByMeterId(string meterId)
  52. {
  53. return service.GetMeterByMeterId(meterId);
  54. }
  55. public int EditMeterForm(string keyValue, string meterAddr, string imei, string sim)
  56. {
  57. return service.EditMeterForm(keyValue, meterAddr, imei, sim);
  58. }
  59. #endregion
  60. public DataTable GetBatchMeterByIMEI(string IMEI)
  61. {
  62. return service.GetBatchMeterByIMEI(IMEI);
  63. }
  64. public DataTable GetBatchMeterByDeviceID(string str_DeviceID)
  65. {
  66. return service.GetBatchMeterByDeviceID(str_DeviceID);
  67. }
  68. //批量删除
  69. public Int32 DelMeter(string IMEI, string SIM, string MeterAddr, String str_DeviceID)
  70. {
  71. return service.DelMeter(IMEI, SIM, MeterAddr, str_DeviceID);
  72. }
  73. }
  74. }