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

45 linhas
1.6 KiB
C#

// ********************************************************************************
// 文件名字: Command.S1F3
// 文件描述: Command.S1F3
// 开发人员: Michael
// 创建时间: 2019/11/8 0:08
//
// 更新历史:
// + 创建 Command.S1F3.cs 文件. by Michael @2019/11/8 0:08
// ********************************************************************************
using ARI.EAP.HOST;
using ARI.EAP.HOST.SRD;
using Glorysoft.SECS.EQP.Message;
using Glorysoft.SECS.EQP.Utilities;
using Glorysoft.SECSwell;
using System;
using System.Collections.Generic;
using System.Linq;
namespace Glorysoft.SECS.EQP.Commands
{
public static partial class Command
{
public static void S1F3Command(object tag = null)
{
if (SimulatorInfo.Instance.Context != null && SimulatorInfo.Instance.Context.IsConnected)
{
var trans = SimulatorInfo.Instance.Context.GetTransaction(1, 3, "S1F3");
var content = Configurations.conf.commandContentCollection.findContent("S1F3").content;
foreach(string value in content)
{
var sv = Configurations.conf.sRDConfiguration.findSV(value);
if (sv != null)
{
trans.Primary.Root.Add(SECSUtil.CreateSECSItem(value, eSECS_FORMAT.U4, sv.svid));
}
}
trans.Tag = tag;
SimulatorInfo.Instance.Context.SendMessage(trans);
Global.MF.addlog(trans, LoggerService.Send, trans.Primary.Description, 0);
LoggerService.SECSLogger.Info(trans.Primary);
}
}
}
}