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.

45 line
1.6 KiB

  1. // ********************************************************************************
  2. // 文件名字: Command.S1F3
  3. // 文件描述: Command.S1F3
  4. // 开发人员: Michael
  5. // 创建时间: 2019/11/8 0:08
  6. //
  7. // 更新历史:
  8. // + 创建 Command.S1F3.cs 文件. by Michael @2019/11/8 0:08
  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. using System.Collections.Generic;
  17. using System.Linq;
  18. namespace Glorysoft.SECS.EQP.Commands
  19. {
  20. public static partial class Command
  21. {
  22. public static void S1F3Command(object tag = null)
  23. {
  24. if (SimulatorInfo.Instance.Context != null && SimulatorInfo.Instance.Context.IsConnected)
  25. {
  26. var trans = SimulatorInfo.Instance.Context.GetTransaction(1, 3, "S1F3");
  27. var content = Configurations.conf.commandContentCollection.findContent("S1F3").content;
  28. foreach(string value in content)
  29. {
  30. var sv = Configurations.conf.sRDConfiguration.findSV(value);
  31. if (sv != null)
  32. {
  33. trans.Primary.Root.Add(SECSUtil.CreateSECSItem(value, eSECS_FORMAT.U4, sv.svid));
  34. }
  35. }
  36. trans.Tag = tag;
  37. SimulatorInfo.Instance.Context.SendMessage(trans);
  38. Global.MF.addlog(trans, LoggerService.Send, trans.Primary.Description, 0);
  39. LoggerService.SECSLogger.Info(trans.Primary);
  40. }
  41. }
  42. }
  43. }