MeterWorkOnlineService.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. using com.hnshituo.core.webapp.vo;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace Common
  8. {
  9. /// <summary>
  10. /// 最后在线时间
  11. /// </summary>
  12. public class MeterWorkOnlineService
  13. {
  14. /// <summary>
  15. /// 新增或者修改
  16. /// </summary>
  17. /// <returns></returns>
  18. public RESTfulResult<string> doSaveWf(MeterWorkOnline online)
  19. {
  20. DbHelper db = new DbHelper();
  21. RESTfulResult<string> rm = db.doOption<string>("meterworkonlines", "doSaveWf", new object[] { online }, 1);
  22. return rm;
  23. }
  24. }
  25. public class MeterWorkStorageOnlineService
  26. {
  27. /// <summary>
  28. /// 新增或者修改
  29. /// </summary>
  30. /// <returns></returns>
  31. public RESTfulResult<string> doSaveWf(MeterWorkStorageOnline online)
  32. {
  33. DbHelper db = new DbHelper();
  34. RESTfulResult<string> rm = db.doOption<string>("meterworkstorageonlines", "doSaveWf", new object[] { online }, 1);
  35. return rm;
  36. }
  37. }
  38. }