2022-04-01 17:03:54 +08:00
|
|
|
|
#region << 版 本 注 释 >>
|
|
|
|
|
/*----------------------------------------------------------------
|
|
|
|
|
* 创建者:Hupe
|
|
|
|
|
* 创建时间:2021/10/14 20:04:50
|
|
|
|
|
* 版本:V1.0.0
|
|
|
|
|
* 描述:
|
|
|
|
|
*
|
|
|
|
|
* ----------------------------------------------------------------
|
|
|
|
|
* 修改人:
|
|
|
|
|
* 时间:
|
|
|
|
|
* 修改说明:
|
|
|
|
|
*
|
|
|
|
|
* 版本:V1.0.1
|
|
|
|
|
*----------------------------------------------------------------*/
|
|
|
|
|
#endregion << 版 本 注 释 >>
|
|
|
|
|
|
|
|
|
|
using ARI.EAP.HOST.Common;
|
|
|
|
|
using ARI.EAP.HOST.SRD;
|
|
|
|
|
using Glorysoft.SECS.EQP;
|
|
|
|
|
using Glorysoft.SECS.EQP.Common;
|
|
|
|
|
using Glorysoft.SECS.EQP.Utilities;
|
|
|
|
|
using Glorysoft.SECSwell;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace ARI.EAP.HOST.Handlers.EventHandlers
|
|
|
|
|
{
|
|
|
|
|
public class SpoolingDeactivatedHandler : IEventHandler
|
|
|
|
|
{
|
|
|
|
|
public void Execute(SECSTransaction trans, EVENT even)
|
|
|
|
|
{
|
|
|
|
|
try
|
|
|
|
|
{
|
2022-12-16 13:01:24 +08:00
|
|
|
|
Global.MF.addlog(trans, LoggerService.Receive, even.name, 0);
|
2022-04-01 17:03:54 +08:00
|
|
|
|
LoggerService.SECSLogger.Info(trans.Primary);
|
2022-12-16 13:01:24 +08:00
|
|
|
|
Global.MF.addlog(trans, LoggerService.Send, even.name, 1);
|
2022-04-01 17:03:54 +08:00
|
|
|
|
LoggerService.SECSLogger.Info(trans.Secondary);
|
|
|
|
|
Scenario scenario = SimulatorInfo.Instance.Scenarios.Scenarios.FirstOrDefault(sc => sc.Name == "Init");
|
|
|
|
|
if (scenario.CurrentStep == 8)
|
|
|
|
|
{
|
|
|
|
|
scenario.ExecuteNextStep();
|
|
|
|
|
}
|
|
|
|
|
EquipmentStatus.SpoolingFlag = 0;
|
|
|
|
|
}
|
|
|
|
|
catch(Exception e)
|
|
|
|
|
{
|
|
|
|
|
LoggerService.SECSLogger.Error(e);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|