dc/Commands/Command.S2F13.cs
13118993771@163.com eb23e102b4 大更新
2022-12-16 13:01:24 +08:00

39 rindas
1.4 KiB
C#

// ********************************************************************************
// 文件名字: Command.S2F13
// 文件描述: Command.S2F13
// 开发人员: Hupe
// 创建时间: 2021/4/19 10:52
//
// 更新历史:
// + 创建 Command.S2F13.cs 文件. by Hupe @2021/4/19 10:52
// ********************************************************************************
using ARI.EAP.HOST;
using ARI.EAP.HOST.SRD;
using Glorysoft.SECS.EQP.Message;
using Glorysoft.SECS.EQP.Utilities;
using Glorysoft.SECSwell;
using System;
namespace Glorysoft.SECS.EQP.Commands
{
public static partial class Command
{
public static void S2F13Command(object tag = null)
{
if (SimulatorInfo.Instance.Context != null && SimulatorInfo.Instance.Context.IsConnected)
{
var trans = SimulatorInfo.Instance.Context.GetTransaction(2, 13, "S2F13");
foreach(var ec in Configurations.conf.sRDConfiguration.ecvs)
{
trans.Primary.Root.Add(SECSUtil.CreateSECSItem(ec.name, eSECS_FORMAT.U4, ec.ecid));
}
Global.MF.addlog(trans, LoggerService.Send, trans.Primary.Description, 0);
LoggerService.SECSLogger.Info(trans.Primary);
trans.Tag = tag;
SimulatorInfo.Instance.Context.SendMessage(trans);
}
}
}
}