dc/Handlers/S1F2Handler.cs
13118993771@163.com 5e9d0f1e2d EAP
2022-04-01 17:03:54 +08:00

32 lines
1.1 KiB
C#

// ********************************************************************************
// 文件名字: S1F2Handler
// 文件描述: S1F2Handler
// 开发人员: Michael
// 创建时间: 2019/11/8 0:08
//
// 更新历史:
// + 创建 S1F2Handler.cs 文件. by Michael @2019/11/8 0:08
// ********************************************************************************
using Glorysoft.SECS.EQP.Common;
using Glorysoft.SECS.EQP.Message;
using Glorysoft.SECSwell;
using System.Threading;
namespace Glorysoft.SECS.EQP.Handlers
{
public class S1F2Handler : ISECSMessageHandler
{
public void Execute(SECSContext context, SECSTransaction trans, SECSErrors err, string errmsg)
{
SECSMessage reply = trans.Secondary;
S1F2Item item = new S1F2Item();
item.MDLN = reply.Root.Item(1).Value.ToString();
item.SOFTREV = reply.Root.Item(2).Value.ToString();
var scenario = trans.Tag as Scenario;
scenario.CurrentStep++;
Thread.Sleep(500);
scenario.ExecuteNextStep();
}
}
}