ReSetMeterAddressController.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Web;
  5. using System.Web.Mvc;
  6. using LeaRun.Application.Service.NBManage;
  7. namespace LeaRun.Application.Web.Areas.NBManage.Controllers
  8. {
  9. /// <summary>
  10. /// 设置表地址
  11. /// </summary>
  12. public class ReSetMeterAddressController : MvcControllerBase
  13. {
  14. ReSetMeterAddressService service = new ReSetMeterAddressService();
  15. public ActionResult Index()
  16. {
  17. return View();
  18. }
  19. /// <summary>
  20. /// 发送命令
  21. /// </summary>
  22. /// <param name="id"></param>
  23. /// <param name="commandValue"></param>
  24. /// <returns></returns>
  25. public ActionResult SendCommand(string id, string addr, string metesta, string IOT_Code, string timeStart, string timeEnd)
  26. {
  27. var result = service.SendCommand(id, addr, metesta, IOT_Code, timeStart,timeEnd);
  28. return Success("命令发送成功");
  29. }
  30. public ActionResult ReSetAddrForm()
  31. {
  32. return View();
  33. }
  34. }
  35. }