No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

45 líneas
1.5 KiB

  1. // ********************************************************************************
  2. // 文件名字: S2F34Handler
  3. // 文件描述: S2F34Handler
  4. // 开发人员: Michael
  5. // 创建时间: 2019/11/8 0:08
  6. //
  7. // 更新历史:
  8. // + 创建 S2F34Handler.cs 文件. by Michael @2019/11/8 0:08
  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. using ARI.EAP.HOST.Common;
  19. namespace Glorysoft.SECS.EQP.Handlers
  20. {
  21. public class S2F34Handler : ISECSMessageHandler
  22. {
  23. public void Execute(SECSContext context, SECSTransaction trans, SECSErrors err, string errmsg)
  24. {
  25. var sc = trans.Tag as Scenario;
  26. if(!EquipmentStatus.initStatus)
  27. Global.MF.addlog(trans, LoggerService.Receive, "Delete Report", 1);
  28. else
  29. Global.MF.addlog(trans, LoggerService.Receive, "Define Report", 1);
  30. LoggerService.SECSLogger.Info(trans.Secondary);
  31. EquipmentStatus.initStatus = true;
  32. SECSMessage reply = trans.Secondary;
  33. S2F34Item item = new S2F34Item();
  34. item.DRACK = reply.Root.Value.To<byte[]>().FirstOrDefault();
  35. if (trans.Tag != null)
  36. {
  37. var scenario = trans.Tag as Scenario;
  38. Thread.Sleep(500);
  39. scenario.ExecuteNextStep();
  40. }
  41. }
  42. }
  43. }