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.

преди 2 години
123456789101112131415161718192021222324252627282930313233343536
  1. // ********************************************************************************
  2. // 文件名字: Command.S2F15
  3. // 文件描述: Command.S2F15
  4. // 开发人员: Michael
  5. // 创建时间: 2019/11/8 0:08
  6. //
  7. // 更新历史:
  8. // + 创建 Command.S2F15.cs 文件. by Michael @2019/11/8 0:08
  9. // ********************************************************************************
  10. using Glorysoft.SECS.EQP.Message;
  11. using Glorysoft.SECS.EQP.Utilities;
  12. using Glorysoft.SECSwell;
  13. namespace Glorysoft.SECS.EQP.Commands
  14. {
  15. public partial class Command
  16. {
  17. public static void S2F15CommandRcp(S2F15Item items, object tag = null)
  18. {
  19. if (SimulatorInfo.Instance.Context != null && SimulatorInfo.Instance.Context.IsConnected)
  20. {
  21. var trans = SimulatorInfo.Instance.Context.GetTransaction(2, 15, "S2F15");
  22. foreach (var item in items.ECs)
  23. {
  24. var ec = SECSUtil.CreateSECSItem(nameof(items.ECs), eSECS_FORMAT.LIST);
  25. ec.Add(SECSUtil.CreateSECSItem(nameof(item.ECID), eSECS_FORMAT.U2, item.ECID));
  26. ec.Add(SECSUtil.CreateSECSItem(nameof(item.ECV), item.ECV.GetSECS_FORMAT(), item.ECV));
  27. trans.Primary.Root.Add(ec);
  28. }
  29. trans.Tag = tag;
  30. SimulatorInfo.Instance.Context.SendMessage(trans);
  31. }
  32. }
  33. }
  34. }