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.

39 líneas
1.4 KiB

  1. // ********************************************************************************
  2. // 文件名字: Command.S2F13
  3. // 文件描述: Command.S2F13
  4. // 开发人员: Hupe
  5. // 创建时间: 2021/4/19 10:52
  6. //
  7. // 更新历史:
  8. // + 创建 Command.S2F13.cs 文件. by Hupe @2021/4/19 10:52
  9. // ********************************************************************************
  10. using ARI.EAP.HOST;
  11. using ARI.EAP.HOST.SRD;
  12. using Glorysoft.SECS.EQP.Message;
  13. using Glorysoft.SECS.EQP.Utilities;
  14. using Glorysoft.SECSwell;
  15. using System;
  16. namespace Glorysoft.SECS.EQP.Commands
  17. {
  18. public static partial class Command
  19. {
  20. public static void S2F13Command(object tag = null)
  21. {
  22. if (SimulatorInfo.Instance.Context != null && SimulatorInfo.Instance.Context.IsConnected)
  23. {
  24. var trans = SimulatorInfo.Instance.Context.GetTransaction(2, 13, "S2F13");
  25. foreach(var ec in Configurations.conf.sRDConfiguration.ecvs)
  26. {
  27. trans.Primary.Root.Add(SECSUtil.CreateSECSItem(ec.name, eSECS_FORMAT.U4, ec.ecid));
  28. }
  29. Global.MF.addlog(trans, LoggerService.Send, trans.Primary.Description, 0);
  30. LoggerService.SECSLogger.Info(trans.Primary);
  31. trans.Tag = tag;
  32. SimulatorInfo.Instance.Context.SendMessage(trans);
  33. }
  34. }
  35. }
  36. }