2022-04-01 17:03:54 +08:00
|
|
|
|
// ********************************************************************************
|
|
|
|
|
// 文件名字: S1F18Handler
|
|
|
|
|
// 文件描述: S1F18Handler
|
|
|
|
|
// 开发人员: Hupe
|
|
|
|
|
// 创建时间: 2021/4/19 15:38
|
|
|
|
|
//
|
|
|
|
|
// 更新历史:
|
|
|
|
|
// + 创建 S1F18Handler.cs 文件. by Hupe @2021/4/19 15:38
|
|
|
|
|
// ********************************************************************************
|
|
|
|
|
using Glorysoft.SECS.EQP.Common;
|
|
|
|
|
using Glorysoft.SECS.EQP.Message;
|
|
|
|
|
using Glorysoft.SECS.EQP.Utilities;
|
|
|
|
|
using Glorysoft.SECSwell;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Threading;
|
|
|
|
|
using System;
|
|
|
|
|
using ARI.EAP.HOST;
|
|
|
|
|
|
|
|
|
|
namespace Glorysoft.SECS.EQP.Handlers
|
|
|
|
|
{
|
|
|
|
|
public class S1F16Handler : ISECSMessageHandler
|
|
|
|
|
{
|
|
|
|
|
public void Execute(SECSContext context, SECSTransaction trans, SECSErrors err, string errmsg)
|
|
|
|
|
{
|
|
|
|
|
SECSMessage reply = trans.Secondary;
|
2023-02-23 11:33:23 +08:00
|
|
|
|
Global.MF.addlog(trans, LoggerService.Receive, "Request Equipment Offline", 1);
|
2022-04-01 17:03:54 +08:00
|
|
|
|
LoggerService.SECSLogger.Info(trans.Secondary);
|
|
|
|
|
if (trans.Tag != null)
|
|
|
|
|
{
|
|
|
|
|
var scenario = trans.Tag as Scenario;
|
|
|
|
|
Thread.Sleep(500);
|
|
|
|
|
scenario.ExecuteNextStep();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|