Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

52 wiersze
2.1 KiB

  1. // ********************************************************************************
  2. // 文件名字: Command.S6F23
  3. // 文件描述: Command.S6F23
  4. // 开发人员: Hupe
  5. // 创建时间: 2021/4/14 16:12
  6. //
  7. // 更新历史:
  8. // + 创建 Command.S6F23.cs 文件. by Hupe @2021/4/14 16:12
  9. // ********************************************************************************
  10. using System;
  11. using ARI.EAP.HOST;
  12. using Glorysoft.SECS.EQP.Message;
  13. using Glorysoft.SECS.EQP.Utilities;
  14. using Glorysoft.SECSwell;
  15. namespace Glorysoft.SECS.EQP.Commands
  16. {
  17. public static partial class Command
  18. {
  19. public static void S2F23Command(S2F23Item items, object tag = null)
  20. {
  21. if (SimulatorInfo.Instance.Context != null && SimulatorInfo.Instance.Context.IsConnected)
  22. {
  23. try
  24. {
  25. var trans = SimulatorInfo.Instance.Context.GetTransaction(2, 23, "S2F23");
  26. trans.Primary.Root.Item(1).SetValue(eSECS_FORMAT.U4, items.TRID);
  27. trans.Primary.Root.Item(2).SetValue(eSECS_FORMAT.ASCII, items.DSPER_hhmmss);
  28. trans.Primary.Root.Item(3).SetValue(eSECS_FORMAT.U4, items.TOTSMP);
  29. trans.Primary.Root.Item(4).SetValue(eSECS_FORMAT.U4, items.REPGSZ);
  30. var SVID = SECSUtil.CreateSECSItem(nameof(items.SVID), eSECS_FORMAT.LIST, items.SVID);
  31. foreach(var svid in items.SVID)
  32. {
  33. SVID.Add(SECSUtil.CreateSECSItem("SVID", eSECS_FORMAT.U4, svid));
  34. }
  35. trans.Primary.Root.Add(SVID);
  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. catch (Exception e)
  42. {
  43. LoggerService.SECSLogger.Error(e);
  44. }
  45. }
  46. }
  47. }
  48. }