// ******************************************************************************** // 文件名字: S1F14Handler // 文件描述: S1F14Handler // 开发人员: Michael // 创建时间: 2019/11/8 0:08 // // 更新历史: // + 创建 S1F14Handler.cs 文件. by Michael @2019/11/8 0:08 // ******************************************************************************** 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; using ARI.EAP.HOST.Common; namespace Glorysoft.SECS.EQP.Handlers { public class S6F24Handler : ISECSMessageHandler { public void Execute(SECSContext context, SECSTransaction trans, SECSErrors err, string errmsg) { Global.MF.addlog(trans, LoggerService.Receive, "Transmit Spooling Data", 1); LoggerService.SECSLogger.Info(trans.Secondary); S6F24Item item = new S6F24Item(); item.RSDA = trans.Secondary.Root.Value.To().FirstOrDefault(); uint RSDC = uint.Parse(trans.Primary.Root.Value.ToString()); if (item.RSDA.ToString() == "0" && RSDC == 0) { EquipmentStatus.SpoolingFlag = 1; } else { if (trans.Tag != null) { var scenario = trans.Tag as Scenario; Thread.Sleep(500); scenario.ExecuteNextStep(); } } } } }