You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 rivejä
1.2 KiB

  1. // ********************************************************************************
  2. // 文件名字: S1F18Handler
  3. // 文件描述: S1F18Handler
  4. // 开发人员: Hupe
  5. // 创建时间: 2021/4/19 15:38
  6. //
  7. // 更新历史:
  8. // + 创建 S1F18Handler.cs 文件. by Hupe @2021/4/19 15:38
  9. // ********************************************************************************
  10. using Glorysoft.SECS.EQP.Common;
  11. using Glorysoft.SECS.EQP.Message;
  12. using Glorysoft.SECS.EQP.Utilities;
  13. using Glorysoft.SECSwell;
  14. using System.Linq;
  15. using System.Threading;
  16. using System;
  17. using ARI.EAP.HOST;
  18. namespace Glorysoft.SECS.EQP.Handlers
  19. {
  20. public class S1F18Handler : ISECSMessageHandler
  21. {
  22. public void Execute(SECSContext context, SECSTransaction trans, SECSErrors err, string errmsg)
  23. {
  24. SECSMessage reply = trans.Secondary;
  25. Global.MF.addlog(trans, LoggerService.Receive, "Request Equipment Online", 1);
  26. LoggerService.SECSLogger.Info(trans.Secondary);
  27. if (trans.Tag != null)
  28. {
  29. var scenario = trans.Tag as Scenario;
  30. Thread.Sleep(500);
  31. scenario.ExecuteNextStep();
  32. }
  33. }
  34. }
  35. }