52 rindas
2.1 KiB
C#
52 rindas
2.1 KiB
C#
// ********************************************************************************
|
|
// 文件名字: Command.S6F23
|
|
// 文件描述: Command.S6F23
|
|
// 开发人员: Hupe
|
|
// 创建时间: 2021/4/14 16:12
|
|
//
|
|
// 更新历史:
|
|
// + 创建 Command.S6F23.cs 文件. by Hupe @2021/4/14 16:12
|
|
// ********************************************************************************
|
|
using System;
|
|
using ARI.EAP.HOST;
|
|
using Glorysoft.SECS.EQP.Message;
|
|
using Glorysoft.SECS.EQP.Utilities;
|
|
using Glorysoft.SECSwell;
|
|
|
|
namespace Glorysoft.SECS.EQP.Commands
|
|
{
|
|
public static partial class Command
|
|
{
|
|
public static void S2F23Command(S2F23Item items, object tag = null)
|
|
{
|
|
|
|
if (SimulatorInfo.Instance.Context != null && SimulatorInfo.Instance.Context.IsConnected)
|
|
{
|
|
try
|
|
{
|
|
var trans = SimulatorInfo.Instance.Context.GetTransaction(2, 23, "S2F23");
|
|
trans.Primary.Root.Item(1).SetValue(eSECS_FORMAT.U4, items.TRID);
|
|
trans.Primary.Root.Item(2).SetValue(eSECS_FORMAT.ASCII, items.DSPER_hhmmss);
|
|
trans.Primary.Root.Item(3).SetValue(eSECS_FORMAT.U4, items.TOTSMP);
|
|
trans.Primary.Root.Item(4).SetValue(eSECS_FORMAT.U4, items.REPGSZ);
|
|
var SVID = SECSUtil.CreateSECSItem(nameof(items.SVID), eSECS_FORMAT.LIST, items.SVID);
|
|
foreach(var svid in items.SVID)
|
|
{
|
|
SVID.Add(SECSUtil.CreateSECSItem("SVID", eSECS_FORMAT.U4, svid));
|
|
}
|
|
trans.Primary.Root.Add(SVID);
|
|
|
|
|
|
trans.Tag = tag;
|
|
SimulatorInfo.Instance.Context.SendMessage(trans);
|
|
Global.MF.addlog(trans, LoggerService.Send, trans.Primary.Description, 0);
|
|
LoggerService.SECSLogger.Info(trans.Primary);
|
|
}
|
|
catch (Exception e)
|
|
{
|
|
LoggerService.SECSLogger.Error(e);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |