This commit is contained in:
13118993771@163.com
2023-02-23 11:33:23 +08:00
parent eb23e102b4
commit 562bd7a7b8
481 changed files with 1226605 additions and 24038 deletions

View File

@@ -51,32 +51,27 @@ namespace ARI.EAP.HOST.Handlers.EventHandlers
{
case ("AlarmID"):
{
alarmReportBody.alarmCode = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
alarmReportBody.alarmCode = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Clock"):
{
alarmReportBody.eventTimestamp = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
}
break;
case ("StateFlag"):
{
alarmReportBody.stateFlag = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
alarmReportBody.eventTimestamp = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("AlarmText"):
{
alarmReportBody.alarmText = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
alarmReportBody.alarmText = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("AlarmCategory"):
{
alarmReportBody.alarmCategory = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
alarmReportBody.alarmCategory = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
}
trans.Primary.Root.Item(3).Item(2).Item(index).Name = name;
trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Name = name;
index++;
}
Global.MF.addlog(trans, LoggerService.Receive, even.name, 0);

View File

@@ -51,32 +51,27 @@ namespace ARI.EAP.HOST.Handlers.EventHandlers
{
case ("AlarmID"):
{
alarmReportBody.alarmCode = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
alarmReportBody.alarmCode = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Clock"):
{
alarmReportBody.eventTimestamp = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
}
break;
case ("StateFlag"):
{
alarmReportBody.stateFlag = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
alarmReportBody.eventTimestamp = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("AlarmText"):
{
alarmReportBody.alarmText = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
alarmReportBody.alarmText = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("AlarmCategory"):
{
alarmReportBody.alarmCategory = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
alarmReportBody.alarmCategory = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
}
trans.Primary.Root.Item(3).Item(2).Item(index).Name = name;
trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Name = name;
index++;
}
Global.MF.addlog(trans, LoggerService.Receive, even.name, 0);

View File

@@ -50,26 +50,26 @@ namespace ARI.EAP.HOST.Handlers.EventHandlers
{
case ("Clock"):
{
containerPlaceBody.eventTimestamp = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
containerPlaceBody.eventTimestamp = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("LocationID"):
{
containerPlaceBody.locationId = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
containerPlaceBody.locationId = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("PortID"):
{
containerPlaceBody.portId = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
containerPlaceBody.portId = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("ContainerID"):
{
containerPlaceBody.containerId = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
containerPlaceBody.containerId = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
}
trans.Primary.Root.Item(3).Item(2).Item(index).Name = name;
trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Name = name;
index++;
}

View File

@@ -50,26 +50,26 @@ namespace ARI.EAP.HOST.Handlers.EventHandlers
{
case ("Clock"):
{
containerPlaceBody.eventTimestamp = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
containerPlaceBody.eventTimestamp = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("LocationID"):
{
containerPlaceBody.locationId = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
containerPlaceBody.locationId = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("PortID"):
{
containerPlaceBody.portId = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
containerPlaceBody.portId = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("ContainerID"):
{
containerPlaceBody.containerId = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
containerPlaceBody.containerId = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
}
trans.Primary.Root.Item(3).Item(2).Item(index).Name = name;
trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Name = name;
index++;
}

View File

@@ -48,26 +48,21 @@ namespace ARI.EAP.HOST.Handlers.EventHandlers
{
case ("Clock"):
{
controlStateChangeBody.eventTimestamp = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
}
break;
case ("StateFlag"):
{
controlStateChangeBody.stateFlag = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
controlStateChangeBody.eventTimestamp = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("CurrentControlState"):
{
controlStateChangeBody.currentControlState = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
controlStateChangeBody.currentControlState = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("PreviousControlState"):
{
controlStateChangeBody.previousControlState = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
controlStateChangeBody.previousControlState = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
}
trans.Primary.Root.Item(3).Item(2).Item(index).Name = name;
trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Name = name;
index++;
}
Global.MF.addlog(trans, LoggerService.Receive, even.name, 0);

View File

@@ -48,26 +48,21 @@ namespace ARI.EAP.HOST.Handlers.EventHandlers
{
case ("Clock"):
{
controlStateChangeBody.eventTimestamp = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
}
break;
case ("StateFlag"):
{
controlStateChangeBody.stateFlag = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
controlStateChangeBody.eventTimestamp = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("CurrentControlState"):
{
controlStateChangeBody.currentControlState = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
controlStateChangeBody.currentControlState = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("PreviousControlState"):
{
controlStateChangeBody.previousControlState = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
controlStateChangeBody.previousControlState = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
}
trans.Primary.Root.Item(3).Item(2).Item(index).Name = name;
trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Name = name;
index++;
}
Global.MF.addlog(trans, LoggerService.Receive, even.name, 0);

View File

@@ -0,0 +1,82 @@
#region << >>
/*----------------------------------------------------------------
* 创建者Hupe
* 创建时间2021/10/14 20:04:50
* 版本V1.0.0
* 描述:
*
* ----------------------------------------------------------------
* 修改人:
* 时间:
* 修改说明:
*
* 版本V1.0.1
*----------------------------------------------------------------*/
#endregion << >>
using ARI.EAP.HOST.Common;
using ARI.EAP.HOST.MQ;
using ARI.EAP.HOST.MQ.body;
using ARI.EAP.HOST.SRD;
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 EquipmentOfflineHandler : IEventHandler
{
public void Execute(SECSTransaction trans, EVENT even)
{
try
{
MQMessage mQMessage = new MQMessage();
mQMessage.header.messageName = "ControlStateChange";
ControlStateChangeBody controlStateChangeBody = new ControlStateChangeBody();
controlStateChangeBody.spoolingFlag = EquipmentStatus.SpoolingFlag.ToString();
int index = 1;
foreach (var key in even.validVariables)
{
string name = Configurations.conf.sRDConfiguration.tryGetSVOrDV(key);
switch (name)
{
case ("Clock"):
{
controlStateChangeBody.eventTimestamp = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("CurrentControlState"):
{
controlStateChangeBody.currentControlState = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("PreviousControlState"):
{
controlStateChangeBody.previousControlState = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
}
trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Name = name;
index++;
}
Global.MF.addlog(trans, LoggerService.Receive, even.name, 0);
LoggerService.SECSLogger.Info(trans.Primary);
Global.MF.addlog(trans, LoggerService.Send, even.name, 1);
LoggerService.SECSLogger.Info(trans.Secondary);
mQMessage.body = controlStateChangeBody;
Task.Run(() => MainForm.mq.EAPRequest(mQMessage));
}
catch (Exception e)
{
LoggerService.SECSLogger.Error(e);
}
}
}
}

View File

@@ -48,26 +48,21 @@ namespace ARI.EAP.HOST.Handlers.EventHandlers
{
case ("Clock"):
{
equipmentStateChangeBody.eventTimestamp = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
}
break;
case ("StateFlag"):
{
equipmentStateChangeBody.stateFlag = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
equipmentStateChangeBody.eventTimestamp = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("CurrentEquipmentState"):
{
equipmentStateChangeBody.currentEquipmentState = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
equipmentStateChangeBody.currentEquipmentState = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("PreviousEquipmentState"):
{
equipmentStateChangeBody.previousEquipmentState = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
equipmentStateChangeBody.previousEquipmentState = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
}
trans.Primary.Root.Item(3).Item(2).Item(index).Name = name;
trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Name = name;
index++;
}
Global.MF.addlog(trans, LoggerService.Receive, even.name, 0);

View File

@@ -164,8 +164,8 @@ namespace ARI.EAP.HOST.Handlers.EventHandlers
public static void RequestSlotList(JObject body = null)
{
S2F49Item item = new S2F49Item();
item.DATAID = EquipmentStatus.commandCount++;
item.OBJSPEC = "";
item.DATAID = 1031;
item.OBJSPEC = "1031";
item.RCMD = "Slotlist_Request";
//todo:需要加空的list
Command.S2F49Command(item);

View File

@@ -50,22 +50,16 @@ namespace ARI.EAP.HOST.Handlers.EventHandlers
{
case ("Clock"):
{
machineDataBody.eventTimestamp = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
}
break;
case ("StateFlag"):
{
machineDataBody.stateFlag = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
trans.Primary.Root.Item(3).Item(2).Item(index).Name = name;
machineDataBody.eventTimestamp = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
default:
{
machineDataBody.machineData.Add($"{key}({name})", trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString());
machineDataBody.machineData.Add($"{key}({name})", trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString());
}
break;
}
trans.Primary.Root.Item(3).Item(2).Item(index).Name = name;
trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Name = name;
index++;
}
Global.MF.addlog(trans, LoggerService.Receive, even.name, 0);

View File

@@ -51,11 +51,11 @@ namespace ARI.EAP.HOST.Handlers.EventHandlers
{
case ("Clock"):
{
maintenanceBody.eventTimestamp = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
maintenanceBody.eventTimestamp = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
}
trans.Primary.Root.Item(3).Item(2).Item(index).Name = name;
trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Name = name;
index++;
}
Global.MF.addlog(trans, LoggerService.Receive, even.name, 0);

View File

@@ -51,11 +51,11 @@ namespace ARI.EAP.HOST.Handlers.EventHandlers
{
case ("Clock"):
{
maintenanceBody.eventTimestamp = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
maintenanceBody.eventTimestamp = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
}
trans.Primary.Root.Item(3).Item(2).Item(index).Name = name;
trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Name = name;
index++;
}
Global.MF.addlog(trans, LoggerService.Receive, even.name, 0);

View File

@@ -50,66 +50,66 @@ namespace ARI.EAP.HOST.Handlers.EventHandlers
{
case ("SubstrateID"):
{
materialReceivedForTransBody.substrateId = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialReceivedForTransBody.substrateId = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Clock"):
{
materialReceivedForTransBody.eventTimestamp = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialReceivedForTransBody.eventTimestamp = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("LocationID"):
{
materialReceivedForTransBody.locationId = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialReceivedForTransBody.locationId = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("MaterialStatus"):
{
materialReceivedForTransBody.materialStatus = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialReceivedForTransBody.materialStatus = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Target A"):
{
materialReceivedForTransBody.target_A = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialReceivedForTransBody.target_A = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Target B"):
{
materialReceivedForTransBody.target_B = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialReceivedForTransBody.target_B = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Target C"):
{
materialReceivedForTransBody.target_C = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialReceivedForTransBody.target_C = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Target D"):
{
materialReceivedForTransBody.target_D = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialReceivedForTransBody.target_D = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Reroute A"):
{
materialReceivedForTransBody.reroutet_A = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialReceivedForTransBody.reroutet_A = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Reroute B"):
{
materialReceivedForTransBody.reroutet_B = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialReceivedForTransBody.reroutet_B = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Reroute C"):
{
materialReceivedForTransBody.reroutet_C = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialReceivedForTransBody.reroutet_C = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Reroute D"):
{
materialReceivedForTransBody.reroutet_D = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialReceivedForTransBody.reroutet_D = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
}
trans.Primary.Root.Item(3).Item(2).Item(index).Name = name;
trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Name = name;
index++;
}

View File

@@ -50,66 +50,66 @@ namespace ARI.EAP.HOST.Handlers.EventHandlers
{
case ("SubstrateID"):
{
materialReceivedForTransBody.substrateId = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialReceivedForTransBody.substrateId = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Clock"):
{
materialReceivedForTransBody.eventTimestamp = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialReceivedForTransBody.eventTimestamp = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("LocationID"):
{
materialReceivedForTransBody.locationId = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialReceivedForTransBody.locationId = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("MaterialStatus"):
{
materialReceivedForTransBody.materialStatus = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialReceivedForTransBody.materialStatus = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Target A"):
{
materialReceivedForTransBody.target_A = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialReceivedForTransBody.target_A = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Target B"):
{
materialReceivedForTransBody.target_B = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialReceivedForTransBody.target_B = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Target C"):
{
materialReceivedForTransBody.target_C = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialReceivedForTransBody.target_C = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Target D"):
{
materialReceivedForTransBody.target_D = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialReceivedForTransBody.target_D = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Reroute A"):
{
materialReceivedForTransBody.reroutet_A = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialReceivedForTransBody.reroutet_A = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Reroute B"):
{
materialReceivedForTransBody.reroutet_B = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialReceivedForTransBody.reroutet_B = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Reroute C"):
{
materialReceivedForTransBody.reroutet_C = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialReceivedForTransBody.reroutet_C = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Reroute D"):
{
materialReceivedForTransBody.reroutet_D = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialReceivedForTransBody.reroutet_D = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
}
trans.Primary.Root.Item(3).Item(2).Item(index).Name = name;
trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Name = name;
index++;
}

View File

@@ -50,31 +50,31 @@ namespace ARI.EAP.HOST.Handlers.EventHandlers
{
case ("VirtualSubstrateID"):
{
lSTAMaterialReceivedBody.virtualSubstrateId = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
lSTAMaterialReceivedBody.virtualSubstrateId = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Clock"):
{
lSTAMaterialReceivedBody.eventTimestamp = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
lSTAMaterialReceivedBody.eventTimestamp = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("StationID"):
{
lSTAMaterialReceivedBody.locationId = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
lSTAMaterialReceivedBody.locationId = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("PortID"):
{
lSTAMaterialReceivedBody.portId = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
lSTAMaterialReceivedBody.portId = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("MaterialStatus"):
{
lSTAMaterialReceivedBody.materialStatus = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
lSTAMaterialReceivedBody.materialStatus = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
}
trans.Primary.Root.Item(3).Item(2).Item(index).Name = name;
trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Name = name;
index++;
}

View File

@@ -50,66 +50,66 @@ namespace ARI.EAP.HOST.Handlers.EventHandlers
{
case ("SubstrateID"):
{
materialReceivedForTransBody.substrateId = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialReceivedForTransBody.substrateId = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Clock"):
{
materialReceivedForTransBody.eventTimestamp = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialReceivedForTransBody.eventTimestamp = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("LocationID"):
{
materialReceivedForTransBody.locationId = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialReceivedForTransBody.locationId = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("MaterialStatus"):
{
materialReceivedForTransBody.materialStatus = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialReceivedForTransBody.materialStatus = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Target A"):
{
materialReceivedForTransBody.target_A = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialReceivedForTransBody.target_A = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Target B"):
{
materialReceivedForTransBody.target_B = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialReceivedForTransBody.target_B = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Target C"):
{
materialReceivedForTransBody.target_C = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialReceivedForTransBody.target_C = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Target D"):
{
materialReceivedForTransBody.target_D = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialReceivedForTransBody.target_D = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Reroute A"):
{
materialReceivedForTransBody.reroutet_A = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialReceivedForTransBody.reroutet_A = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Reroute B"):
{
materialReceivedForTransBody.reroutet_B = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialReceivedForTransBody.reroutet_B = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Reroute C"):
{
materialReceivedForTransBody.reroutet_C = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialReceivedForTransBody.reroutet_C = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Reroute D"):
{
materialReceivedForTransBody.reroutet_D = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialReceivedForTransBody.reroutet_D = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
}
trans.Primary.Root.Item(3).Item(2).Item(index).Name = name;
trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Name = name;
index++;
}

View File

@@ -50,67 +50,67 @@ namespace ARI.EAP.HOST.Handlers.EventHandlers
{
case ("SubstrateID"):
{
materialRemovedBody.substrateId = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialRemovedBody.substrateId = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Clock"):
{
materialRemovedBody.eventTimestamp = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialRemovedBody.eventTimestamp = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("MaterialStatus"):
{
materialRemovedBody.materialStatus = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialRemovedBody.materialStatus = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("LocationID"):
{
materialRemovedBody.locationId = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialRemovedBody.locationId = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Target A"):
{
materialRemovedBody.target_A = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialRemovedBody.target_A = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Target B"):
{
materialRemovedBody.target_B = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialRemovedBody.target_B = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Target C"):
{
materialRemovedBody.target_C = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialRemovedBody.target_C = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Target D"):
{
materialRemovedBody.target_D = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialRemovedBody.target_D = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Reroute A"):
{
materialRemovedBody.reroutet_A = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialRemovedBody.reroutet_A = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Reroute B"):
{
materialRemovedBody.reroutet_B = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialRemovedBody.reroutet_B = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Reroute C"):
{
materialRemovedBody.reroutet_C = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialRemovedBody.reroutet_C = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Reroute D"):
{
materialRemovedBody.reroutet_D = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialRemovedBody.reroutet_D = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
}
trans.Primary.Root.Item(3).Item(2).Item(index).Name = name;
trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Name = name;
index++;
}
Global.MF.addlog(trans, LoggerService.Receive, even.name, 0);

View File

@@ -50,67 +50,67 @@ namespace ARI.EAP.HOST.Handlers.EventHandlers
{
case ("SubstrateID"):
{
materialRemovedBody.substrateId = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialRemovedBody.substrateId = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Clock"):
{
materialRemovedBody.eventTimestamp = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialRemovedBody.eventTimestamp = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("MaterialStatus"):
{
materialRemovedBody.materialStatus = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialRemovedBody.materialStatus = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("LocationID"):
{
materialRemovedBody.locationId = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialRemovedBody.locationId = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Target A"):
{
materialRemovedBody.target_A = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialRemovedBody.target_A = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Target B"):
{
materialRemovedBody.target_B = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialRemovedBody.target_B = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Target C"):
{
materialRemovedBody.target_C = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialRemovedBody.target_C = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Target D"):
{
materialRemovedBody.target_D = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialRemovedBody.target_D = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Reroute A"):
{
materialRemovedBody.reroutet_A = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialRemovedBody.reroutet_A = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Reroute B"):
{
materialRemovedBody.reroutet_B = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialRemovedBody.reroutet_B = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Reroute C"):
{
materialRemovedBody.reroutet_C = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialRemovedBody.reroutet_C = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Reroute D"):
{
materialRemovedBody.reroutet_D = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialRemovedBody.reroutet_D = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
}
trans.Primary.Root.Item(3).Item(2).Item(index).Name = name;
trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Name = name;
index++;
}
Global.MF.addlog(trans, LoggerService.Receive, even.name, 0);

View File

@@ -50,67 +50,67 @@ namespace ARI.EAP.HOST.Handlers.EventHandlers
{
case ("SubstrateID"):
{
materialRemovedBody.substrateId = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialRemovedBody.substrateId = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Clock"):
{
materialRemovedBody.eventTimestamp = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialRemovedBody.eventTimestamp = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("MaterialStatus"):
{
materialRemovedBody.materialStatus = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialRemovedBody.materialStatus = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("LocationID"):
{
materialRemovedBody.locationId = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialRemovedBody.locationId = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Target A"):
{
materialRemovedBody.target_A = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialRemovedBody.target_A = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Target B"):
{
materialRemovedBody.target_B = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialRemovedBody.target_B = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Target C"):
{
materialRemovedBody.target_C = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialRemovedBody.target_C = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Target D"):
{
materialRemovedBody.target_D = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialRemovedBody.target_D = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Reroute A"):
{
materialRemovedBody.reroutet_A = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialRemovedBody.reroutet_A = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Reroute B"):
{
materialRemovedBody.reroutet_B = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialRemovedBody.reroutet_B = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Reroute C"):
{
materialRemovedBody.reroutet_C = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialRemovedBody.reroutet_C = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Reroute D"):
{
materialRemovedBody.reroutet_D = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialRemovedBody.reroutet_D = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
}
trans.Primary.Root.Item(3).Item(2).Item(index).Name = name;
trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Name = name;
index++;
}
Global.MF.addlog(trans, LoggerService.Receive, even.name, 0);

View File

@@ -50,67 +50,67 @@ namespace ARI.EAP.HOST.Handlers.EventHandlers
{
case ("SubstrateID"):
{
materialRemovedBody.substrateId = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialRemovedBody.substrateId = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Clock"):
{
materialRemovedBody.eventTimestamp = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialRemovedBody.eventTimestamp = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("MaterialStatus"):
{
materialRemovedBody.materialStatus = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialRemovedBody.materialStatus = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("LocationID"):
{
materialRemovedBody.locationId = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialRemovedBody.locationId = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Target A"):
{
materialRemovedBody.target_A = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialRemovedBody.target_A = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Target B"):
{
materialRemovedBody.target_B = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialRemovedBody.target_B = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Target C"):
{
materialRemovedBody.target_C = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialRemovedBody.target_C = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Target D"):
{
materialRemovedBody.target_D = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialRemovedBody.target_D = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Reroute A"):
{
materialRemovedBody.reroutet_A = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialRemovedBody.reroutet_A = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Reroute B"):
{
materialRemovedBody.reroutet_B = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialRemovedBody.reroutet_B = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Reroute C"):
{
materialRemovedBody.reroutet_C = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialRemovedBody.reroutet_C = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Reroute D"):
{
materialRemovedBody.reroutet_D = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialRemovedBody.reroutet_D = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
}
trans.Primary.Root.Item(3).Item(2).Item(index).Name = name;
trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Name = name;
index++;
}
Global.MF.addlog(trans, LoggerService.Receive, even.name, 0);

View File

@@ -50,81 +50,81 @@ namespace ARI.EAP.HOST.Handlers.EventHandlers
{
case ("SubstrateID"):
{
materialStoredToContainerBody.substrateId = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialStoredToContainerBody.substrateId = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Clock"):
{
materialStoredToContainerBody.eventTimestamp = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialStoredToContainerBody.eventTimestamp = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("LocationID"):
{
materialStoredToContainerBody.locationId = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialStoredToContainerBody.locationId = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("MaterialStatus"):
{
materialStoredToContainerBody.materialStatus = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialStoredToContainerBody.materialStatus = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("PortID"):
{
materialStoredToContainerBody.portId = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialStoredToContainerBody.portId = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("ContainerID"):
{
materialStoredToContainerBody.containerId = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialStoredToContainerBody.containerId = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("SlotID"):
{
materialStoredToContainerBody.slotId = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialStoredToContainerBody.slotId = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Target A"):
{
materialStoredToContainerBody.target_A = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialStoredToContainerBody.target_A = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Target B"):
{
materialStoredToContainerBody.target_B = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialStoredToContainerBody.target_B = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Target C"):
{
materialStoredToContainerBody.target_C = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialStoredToContainerBody.target_C = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Target D"):
{
materialStoredToContainerBody.target_D = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialStoredToContainerBody.target_D = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Reroute A"):
{
materialStoredToContainerBody.reroutet_A = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialStoredToContainerBody.reroutet_A = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Reroute B"):
{
materialStoredToContainerBody.reroutet_B = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialStoredToContainerBody.reroutet_B = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Reroute C"):
{
materialStoredToContainerBody.reroutet_C = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialStoredToContainerBody.reroutet_C = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Reroute D"):
{
materialStoredToContainerBody.reroutet_D = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialStoredToContainerBody.reroutet_D = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
}
trans.Primary.Root.Item(3).Item(2).Item(index).Name = name;
trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Name = name;
index++;
}

View File

@@ -50,81 +50,81 @@ namespace ARI.EAP.HOST.Handlers.EventHandlers
{
case ("SubstrateID"):
{
materialStoredToContainerBody.substrateId = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialStoredToContainerBody.substrateId = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Clock"):
{
materialStoredToContainerBody.eventTimestamp = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialStoredToContainerBody.eventTimestamp = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("LocationID"):
{
materialStoredToContainerBody.locationId = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialStoredToContainerBody.locationId = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("MaterialStatus"):
{
materialStoredToContainerBody.materialStatus = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialStoredToContainerBody.materialStatus = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("PortID"):
{
materialStoredToContainerBody.portId = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialStoredToContainerBody.portId = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("ContainerID"):
{
materialStoredToContainerBody.containerId = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialStoredToContainerBody.containerId = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("SlotID"):
{
materialStoredToContainerBody.slotId = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialStoredToContainerBody.slotId = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Target A"):
{
materialStoredToContainerBody.target_A = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialStoredToContainerBody.target_A = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Target B"):
{
materialStoredToContainerBody.target_B = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialStoredToContainerBody.target_B = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Target C"):
{
materialStoredToContainerBody.target_C = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialStoredToContainerBody.target_C = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Target D"):
{
materialStoredToContainerBody.target_D = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialStoredToContainerBody.target_D = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Reroute A"):
{
materialStoredToContainerBody.reroutet_A = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialStoredToContainerBody.reroutet_A = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Reroute B"):
{
materialStoredToContainerBody.reroutet_B = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialStoredToContainerBody.reroutet_B = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Reroute C"):
{
materialStoredToContainerBody.reroutet_C = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialStoredToContainerBody.reroutet_C = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Reroute D"):
{
materialStoredToContainerBody.reroutet_D = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialStoredToContainerBody.reroutet_D = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
}
trans.Primary.Root.Item(3).Item(2).Item(index).Name = name;
trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Name = name;
index++;
}

View File

@@ -50,36 +50,36 @@ namespace ARI.EAP.HOST.Handlers.EventHandlers
{
case ("Clock"):
{
materialStoredToPalletBody.eventTimestamp = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialStoredToPalletBody.eventTimestamp = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("LocationID"):
{
materialStoredToPalletBody.locationId = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialStoredToPalletBody.locationId = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("PortID"):
{
materialStoredToPalletBody.port = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialStoredToPalletBody.port = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("PalletID"):
{
materialStoredToPalletBody.palletId = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialStoredToPalletBody.palletId = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("SubstrateID"):
{
materialStoredToPalletBody.substrateId = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialStoredToPalletBody.substrateId = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("MaterialStatus"):
{
materialStoredToPalletBody.materialStatus = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialStoredToPalletBody.materialStatus = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
}
trans.Primary.Root.Item(3).Item(2).Item(index).Name = name;
trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Name = name;
index++;
}
Global.MF.addlog(trans, LoggerService.Receive, even.name, 0);

View File

@@ -50,72 +50,72 @@ namespace ARI.EAP.HOST.Handlers.EventHandlers
{
case ("SubstrateID"):
{
materialHoldBody.substrateId = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialHoldBody.substrateId = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Clock"):
{
materialHoldBody.eventTimestamp = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialHoldBody.eventTimestamp = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("MaterialStatus"):
{
materialHoldBody.materialStatus = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialHoldBody.materialStatus = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("StateFlag"):
{
materialHoldBody.stateFlag = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialHoldBody.stateFlag = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("LocationID"):
{
materialHoldBody.locationId = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialHoldBody.locationId = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Target A"):
{
materialHoldBody.target_A = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialHoldBody.target_A = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Target B"):
{
materialHoldBody.target_B = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialHoldBody.target_B = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Target C"):
{
materialHoldBody.target_C = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialHoldBody.target_C = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Target D"):
{
materialHoldBody.target_D = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialHoldBody.target_D = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Reroute A"):
{
materialHoldBody.reroutet_A = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialHoldBody.reroutet_A = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Reroute B"):
{
materialHoldBody.reroutet_B = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialHoldBody.reroutet_B = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Reroute C"):
{
materialHoldBody.reroutet_C = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialHoldBody.reroutet_C = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Reroute D"):
{
materialHoldBody.reroutet_D = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialHoldBody.reroutet_D = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
}
trans.Primary.Root.Item(3).Item(2).Item(index).Name = name;
trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Name = name;
index++;
}
Global.MF.addlog(trans, LoggerService.Receive, even.name, 0);

View File

@@ -50,36 +50,36 @@ namespace ARI.EAP.HOST.Handlers.EventHandlers
{
case ("SubstrateID"):
{
materialReceivedBody.substrateId = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialReceivedBody.substrateId = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Clock"):
{
materialReceivedBody.eventTimestamp = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialReceivedBody.eventTimestamp = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("LocationID"):
{
materialReceivedBody.locationId = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialReceivedBody.locationId = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("StateFlag"):
{
materialReceivedBody.stateFlag = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialReceivedBody.stateFlag = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("PPExecName"):
{
materialReceivedBody.ppExecName = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialReceivedBody.ppExecName = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("MaterialStatus"):
{
materialReceivedBody.materialStatus = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialReceivedBody.materialStatus = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
}
trans.Primary.Root.Item(3).Item(2).Item(index).Name = name;
trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Name = name;
index++;
}

View File

@@ -50,72 +50,72 @@ namespace ARI.EAP.HOST.Handlers.EventHandlers
{
case ("SubstrateID"):
{
materialRemovedBody.substrateId = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialRemovedBody.substrateId = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Clock"):
{
materialRemovedBody.eventTimestamp = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialRemovedBody.eventTimestamp = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("MaterialStatus"):
{
materialRemovedBody.materialStatus = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialRemovedBody.materialStatus = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("StateFlag"):
{
materialRemovedBody.stateFlag = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialRemovedBody.stateFlag = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("LocationID"):
{
materialRemovedBody.locationId = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialRemovedBody.locationId = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Target A"):
{
materialRemovedBody.target_A = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialRemovedBody.target_A = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Target B"):
{
materialRemovedBody.target_B = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialRemovedBody.target_B = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Target C"):
{
materialRemovedBody.target_C = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialRemovedBody.target_C = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Target D"):
{
materialRemovedBody.target_D = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialRemovedBody.target_D = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Reroute A"):
{
materialRemovedBody.reroutet_A = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialRemovedBody.reroutet_A = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Reroute B"):
{
materialRemovedBody.reroutet_B = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialRemovedBody.reroutet_B = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Reroute C"):
{
materialRemovedBody.reroutet_C = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialRemovedBody.reroutet_C = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Reroute D"):
{
materialRemovedBody.reroutet_D = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialRemovedBody.reroutet_D = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
}
trans.Primary.Root.Item(3).Item(2).Item(index).Name = name;
trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Name = name;
index++;
}
Global.MF.addlog(trans, LoggerService.Receive, even.name, 0);

View File

@@ -50,72 +50,72 @@ namespace ARI.EAP.HOST.Handlers.EventHandlers
{
case ("SubstrateID"):
{
materialScrapBody.substrateId = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialScrapBody.substrateId = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Clock"):
{
materialScrapBody.eventTimestamp = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialScrapBody.eventTimestamp = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("MaterialStatus"):
{
materialScrapBody.materialStatus = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialScrapBody.materialStatus = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("StateFlag"):
{
materialScrapBody.stateFlag = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialScrapBody.stateFlag = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("LocationID"):
{
materialScrapBody.locationId = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialScrapBody.locationId = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Target A"):
{
materialScrapBody.target_A = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialScrapBody.target_A = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Target B"):
{
materialScrapBody.target_B = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialScrapBody.target_B = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Target C"):
{
materialScrapBody.target_C = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialScrapBody.target_C = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Target D"):
{
materialScrapBody.target_D = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialScrapBody.target_D = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Reroute A"):
{
materialScrapBody.reroutet_A = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialScrapBody.reroutet_A = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Reroute B"):
{
materialScrapBody.reroutet_B = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialScrapBody.reroutet_B = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Reroute C"):
{
materialScrapBody.reroutet_C = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialScrapBody.reroutet_C = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Reroute D"):
{
materialScrapBody.reroutet_D = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
materialScrapBody.reroutet_D = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
}
trans.Primary.Root.Item(3).Item(2).Item(index).Name = name;
trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Name = name;
index++;
}
Global.MF.addlog(trans, LoggerService.Receive, even.name, 0);

View File

@@ -50,43 +50,43 @@ namespace ARI.EAP.HOST.Handlers.EventHandlers
{
case ("Clock"):
{
palletCompletedBody.eventTimestamp = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
palletCompletedBody.eventTimestamp = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("LocationID"):
{
palletCompletedBody.locationId = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
palletCompletedBody.locationId = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("PortID"):
{
palletCompletedBody.port = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
palletCompletedBody.port = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("PalletID"):
{
palletCompletedBody.palletId = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
palletCompletedBody.palletId = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Grade"):
{
palletCompletedBody.grade = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
palletCompletedBody.grade = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("ContainerSlotMap"):
{
for (int i = 1; i < trans.Primary.Root.Item(3).Item(2).Item(index).ItemCount + 1;i++)
for (int i = 1; i < trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).ItemCount + 1;i++)
{
ContainerSlotMap containerSlotMap = new ContainerSlotMap();
containerSlotMap.slotNo = trans.Primary.Root.Item(3).Item(2).Item(index).Item(i).Item(1).Value.ToString();
containerSlotMap.substrateId = trans.Primary.Root.Item(3).Item(2).Item(index).Item(i).Item(2).Value.ToString();
containerSlotMap.materialStatus = trans.Primary.Root.Item(3).Item(2).Item(index).Item(i).Item(3).Value.ToString();
containerSlotMap.slotNo = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Item(i).Item(1).Value.ToString();
containerSlotMap.substrateId = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Item(i).Item(2).Value.ToString();
containerSlotMap.materialStatus = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Item(i).Item(3).Value.ToString();
palletCompletedBody.containerSlotMap.Add(containerSlotMap);
}
}
break;
}
trans.Primary.Root.Item(3).Item(2).Item(index).Name = name;
trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Name = name;
index++;
}
Global.MF.addlog(trans, LoggerService.Receive, even.name, 0);

View File

@@ -50,26 +50,26 @@ namespace ARI.EAP.HOST.Handlers.EventHandlers
{
case ("Clock"):
{
palletRemovedBody.eventTimestamp = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
palletRemovedBody.eventTimestamp = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("LocationID"):
{
palletRemovedBody.locationId = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
palletRemovedBody.locationId = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("PortID"):
{
palletRemovedBody.port = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
palletRemovedBody.port = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("PalletID"):
{
palletRemovedBody.palletId = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
palletRemovedBody.palletId = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
}
trans.Primary.Root.Item(3).Item(2).Item(index).Name = name;
trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Name = name;
index++;
}
Global.MF.addlog(trans, LoggerService.Receive, even.name, 0);

View File

@@ -32,7 +32,7 @@ using System.Threading.Tasks;
namespace ARI.EAP.HOST.Handlers.EventHandlers
{
public class ProcessProgramChangeBodyHandler : IEventHandler
public class ProcessProgramChangeHandler : IEventHandler
{
public void Execute(SECSTransaction trans, EVENT even)
{
@@ -50,22 +50,22 @@ namespace ARI.EAP.HOST.Handlers.EventHandlers
{
case ("RecipeName"):
{
processProgramChangeBody.ppChangeName = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
processProgramChangeBody.ppChangeName = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Clock"):
{
processProgramChangeBody.eventTimestamp = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
processProgramChangeBody.eventTimestamp = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("RecipeChangeType"):
{
processProgramChangeBody.ppChangeStatus = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
processProgramChangeBody.ppChangeStatus = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
}
trans.Primary.Root.Item(3).Item(2).Item(index).Name = name;
trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Name = name;
index++;
}
Global.MF.addlog(trans, LoggerService.Receive, even.name, 0);

View File

@@ -50,27 +50,22 @@ namespace ARI.EAP.HOST.Handlers.EventHandlers
{
case ("SubstrateID"):
{
processRecipeSelectedBody.substrateId = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
processRecipeSelectedBody.substrateId = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Clock"):
{
processRecipeSelectedBody.eventTimestamp = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
}
break;
case ("StateFlag"):
{
processRecipeSelectedBody.stateFlag = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
processRecipeSelectedBody.eventTimestamp = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("PPExecName"):
{
processRecipeSelectedBody.ppExecName = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
processRecipeSelectedBody.ppExecName = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
}
trans.Primary.Root.Item(3).Item(2).Item(index).Name = name;
trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Name = name;
index++;
}
Global.MF.addlog(trans, LoggerService.Receive, even.name, 0);

View File

@@ -49,48 +49,43 @@ namespace ARI.EAP.HOST.Handlers.EventHandlers
{
case ("SubstrateID"):
{
processFinishBody.substrateId = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
processFinishBody.substrateId = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Clock"):
{
processFinishBody.eventTimestamp = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
processFinishBody.eventTimestamp = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("StateFlag"):
{
processFinishBody.stateFlag = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
trans.Primary.Root.Item(3).Item(2).Item(index).Name = name;
processFinishBody.stateFlag = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Name = name;
}
break;
case ("PPExecName"):
case ("ProcessResult"):
{
processFinishBody.ppExecName = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
}
break;
case ("MaterialStatus"):
{
processFinishBody.materialStatus = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
processFinishBody.materialStatus = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("CurrentEquipmentState"):
{
processFinishBody.currentEquipmentState = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
processFinishBody.currentEquipmentState = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("PreviousEquipmentState"):
{
processFinishBody.previousEquipmentState = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
processFinishBody.previousEquipmentState = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
default:
{
formatCheck(key, trans.Primary.Root.Item(3).Item(2).Item(index));
processFinishBody.processData.Add($"{name}", trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString());
formatCheck(key, trans.Primary.Root.Item(3).Item(1).Item(2).Item(index));
processFinishBody.processData.Add($"{name}", trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString());
}
break;
}
trans.Primary.Root.Item(3).Item(2).Item(index).Name = name;
trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Name = name;
index++;
}
Global.MF.addlog(trans, LoggerService.Receive, even.name, 0);

View File

@@ -50,37 +50,37 @@ namespace ARI.EAP.HOST.Handlers.EventHandlers
{
case ("SubstrateID"):
{
processStartedBody.substrateId = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
processStartedBody.substrateId = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("Clock"):
{
processStartedBody.eventTimestamp = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
processStartedBody.eventTimestamp = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("CurrentEquipmentState"):
{
processStartedBody.currentEquipmentState = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
processStartedBody.currentEquipmentState = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("StateFlag"):
{
processStartedBody.stateFlag = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
processStartedBody.stateFlag = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("PPExecName"):
{
processStartedBody.ppExecName = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
processStartedBody.ppExecName = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("PreviousEquipmentState"):
{
processStartedBody.previousEquipmentState = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
processStartedBody.previousEquipmentState = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
}
trans.Primary.Root.Item(3).Item(2).Item(index).Name = name;
trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Name = name;
index++;
}
Global.MF.addlog(trans, LoggerService.Receive, even.name, 0);

View File

@@ -42,6 +42,16 @@ namespace ARI.EAP.HOST.Handlers.EventHandlers
mQMessage.header.messageName = "SlotList";
SlotListBody slotListBody = new SlotListBody();
slotListBody.spoolingFlag = EquipmentStatus.SpoolingFlag.ToString();
SlotList slot_CV1 = new SlotList();
SlotList slot_SBS = new SlotList();
SlotList slot_EDS1 = new SlotList();
SlotList slot_EDS2 = new SlotList();
SlotList slot_CV2 = new SlotList();
slotListBody.slotList.Add(slot_CV1);
slotListBody.slotList.Add(slot_SBS);
slotListBody.slotList.Add(slot_EDS1);
slotListBody.slotList.Add(slot_EDS2);
slotListBody.slotList.Add(slot_CV2);
int index = 1;
foreach (var key in even.validVariables)
{
@@ -50,31 +60,85 @@ namespace ARI.EAP.HOST.Handlers.EventHandlers
{
case ("Clock"):
{
slotListBody.eventTimestamp = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
slotListBody.eventTimestamp = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("SlotList"):
default:
{
for (int i = 1; i < trans.Primary.Root.Item(3).Item(2).Item(index).ItemCount + 1;i++)
if (name.Equals("SubstrateID_CV1"))
{
SlotList slot = new SlotList();
slot.substrateId = trans.Primary.Root.Item(3).Item(2).Item(index).Item(i).Item(1).Value.ToString();
slot.locationId = trans.Primary.Root.Item(3).Item(2).Item(index).Item(i).Item(2).Value.ToString();
slot.materialStatus = trans.Primary.Root.Item(3).Item(2).Item(index).Item(i).Item(3).Value.ToString();
slot.target_A = trans.Primary.Root.Item(3).Item(2).Item(index).Item(i).Item(4).Value.ToString();
slot.target_B = trans.Primary.Root.Item(3).Item(2).Item(index).Item(i).Item(5).Value.ToString();
slot.target_C = trans.Primary.Root.Item(3).Item(2).Item(index).Item(i).Item(6).Value.ToString();
slot.target_D = trans.Primary.Root.Item(3).Item(2).Item(index).Item(i).Item(7).Value.ToString();
slot.reroute_A = trans.Primary.Root.Item(3).Item(2).Item(index).Item(i).Item(8).Value.ToString();
slot.reroute_B = trans.Primary.Root.Item(3).Item(2).Item(index).Item(i).Item(9).Value.ToString();
slot.reroute_C = trans.Primary.Root.Item(3).Item(2).Item(index).Item(i).Item(10).Value.ToString();
slot.reroute_D = trans.Primary.Root.Item(3).Item(2).Item(index).Item(i).Item(11).Value.ToString();
slotListBody.slotList.Add(slot);
for(int i = 0; i < 5; i++)
{
slotListBody.slotList[i].substrateId = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index+i).Value.ToString();
}
}
else if (name.Equals("LocationId_CV1"))
{
for (int i = 0; i < 5; i++)
{
slotListBody.slotList[i].locationId = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index + i).Value.ToString();
}
}
else if (name.Equals("Target_A_1"))
{
for (int i = 0; i < 5; i++)
{
slotListBody.slotList[i].target_A = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index + i).Value.ToString();
}
}
else if (name.Equals("Target_B_1"))
{
for (int i = 0; i < 5; i++)
{
slotListBody.slotList[i].target_B = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index + i).Value.ToString();
}
}
else if (name.Equals("Target_C_1"))
{
for (int i = 0; i < 5; i++)
{
slotListBody.slotList[i].target_C = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index + i).Value.ToString();
}
}
else if (name.Equals("Target_D_1"))
{
for (int i = 0; i < 5; i++)
{
slotListBody.slotList[i].target_D = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index + i).Value.ToString();
}
}
else if (name.Equals("Reroute_A_1"))
{
for (int i = 0; i < 5; i++)
{
slotListBody.slotList[i].reroute_A = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index + i).Value.ToString();
}
}
else if (name.Equals("Reroute_B_1"))
{
for (int i = 0; i < 5; i++)
{
slotListBody.slotList[i].reroute_B = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index + i).Value.ToString();
}
}
else if (name.Equals("Reroute_C_1"))
{
for (int i = 0; i < 5; i++)
{
slotListBody.slotList[i].reroute_C = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index + i).Value.ToString();
}
}
else if (name.Equals("Reroute_D_1"))
{
for (int i = 0; i < 5; i++)
{
slotListBody.slotList[i].reroute_D = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index + i).Value.ToString();
}
}
}
break;
}
trans.Primary.Root.Item(3).Item(2).Item(index).Name = name;
trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Name = name;
index++;
}
Global.MF.addlog(trans, LoggerService.Receive, even.name, 0);

View File

@@ -51,21 +51,21 @@ namespace ARI.EAP.HOST.Handlers.EventHandlers
{
case ("Clock"):
{
userLoggedOnBody.eventTimestamp = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
userLoggedOnBody.eventTimestamp = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("UserName"):
{
userLoggedOnBody.currentUserName = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
userLoggedOnBody.currentUserName = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("PreviousUserName"):
{
userLoggedOnBody.previousUserName = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
userLoggedOnBody.previousUserName = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
}
trans.Primary.Root.Item(3).Item(2).Item(index).Name = name;
trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Name = name;
index++;
}
Global.MF.addlog(trans, LoggerService.Receive, even.name, 0);

View File

@@ -51,21 +51,21 @@ namespace ARI.EAP.HOST.Handlers.EventHandlers
{
case ("Clock"):
{
userLoggedOnBody.eventTimestamp = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
userLoggedOnBody.eventTimestamp = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("UserName"):
{
userLoggedOnBody.currentUserName = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
userLoggedOnBody.currentUserName = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
case ("PreviousUserName"):
{
userLoggedOnBody.previousUserName = trans.Primary.Root.Item(3).Item(2).Item(index).Value.ToString();
userLoggedOnBody.previousUserName = trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Value.ToString();
}
break;
}
trans.Primary.Root.Item(3).Item(2).Item(index).Name = name;
trans.Primary.Root.Item(3).Item(1).Item(2).Item(index).Name = name;
index++;
}
Global.MF.addlog(trans, LoggerService.Receive, even.name, 0);

View File

@@ -25,6 +25,7 @@ namespace Glorysoft.SECS.EQP.Handlers
{
SimulatorInfo.Instance.IsConnected = false;
EquipmentStatus.EqConnectState = ConnectState.disconnected;
EquipmentStatus.initStatus = false;
}
}
}

View File

@@ -23,7 +23,7 @@ namespace Glorysoft.SECS.EQP.Handlers
public void Execute(SECSContext context, SECSTransaction trans, SECSErrors err, string errmsg)
{
SECSMessage reply = trans.Secondary;
Global.MF.addlog(trans, LoggerService.Receive, trans.Secondary.Description, 1);
Global.MF.addlog(trans, LoggerService.Receive, "Request Equipment Offline", 1);
LoggerService.SECSLogger.Info(trans.Secondary);
if (trans.Tag != null)
{

View File

@@ -23,7 +23,7 @@ namespace Glorysoft.SECS.EQP.Handlers
public void Execute(SECSContext context, SECSTransaction trans, SECSErrors err, string errmsg)
{
SECSMessage reply = trans.Secondary;
Global.MF.addlog(trans, LoggerService.Receive, trans.Secondary.Description, 1);
Global.MF.addlog(trans, LoggerService.Receive, "Request Equipment Online", 1);
LoggerService.SECSLogger.Info(trans.Secondary);
if (trans.Tag != null)
{

View File

@@ -32,52 +32,55 @@ namespace Glorysoft.SECS.EQP.Handlers
var content = Configurations.conf.commandContentCollection.findContent("S1F3").content;
for(int i = 0; i < content.Count; i++)
{
switch (content[i])
if (trans.Secondary.Root.Item(i + 1).Value != null)
{
case "Clock":
sVListBody.eventTimestamp = trans.Secondary.Root.Item(i+1).Value.ToString();
trans.Secondary.Root.Item(i+1).Name = nameof(sVListBody.eventTimestamp);
break;
case "CommunicationState":
trans.Secondary.Root.Item(i + 1).Name = nameof(sVListBody.CommunicationState);
sVListBody.ControlState = trans.Secondary.Root.Item(i + 1).Value.ToString();
break;
case "CurrentControlState":
sVListBody.ControlState = trans.Secondary.Root.Item(i+1).Value.ToString();
trans.Secondary.Root.Item(i+1).Name = nameof(sVListBody.ControlState);
break;
case "PreviousControlState":
sVListBody.PreviousControlState = trans.Secondary.Root.Item(i+1).Value.ToString();
trans.Secondary.Root.Item(i+1).Name = nameof(sVListBody.PreviousControlState);
break;
case "CurrentEquipmentState":
sVListBody.CurrentEquipmentState = trans.Secondary.Root.Item(i+1).Value.ToString();
trans.Secondary.Root.Item(i+1).Name = nameof(sVListBody.CurrentEquipmentState);
break;
case "PreviousEquipmentState":
sVListBody.PreviousEquipmentState = trans.Secondary.Root.Item(i+1).Value.ToString();
trans.Secondary.Root.Item(i+1).Name = nameof(sVListBody.PreviousEquipmentState);
break;
case "PPExecName":
sVListBody.PPExecName = trans.Secondary.Root.Item(i+1).Value.ToString();
trans.Secondary.Root.Item(i+1).Name = nameof(sVListBody.PPExecName);
break;
case "SpoolingState":
sVListBody.SpoolingState = trans.Secondary.Root.Item(i+1).Value.ToString();
trans.Secondary.Root.Item(i+1).Name = nameof(sVListBody.SpoolingState);
break;
case "SpoolCountActual":
sVListBody.SpoolCountActual = trans.Secondary.Root.Item(i+1).Value.ToString();
trans.Secondary.Root.Item(i+1).Name = nameof(sVListBody.SpoolCountActual);
break;
case "SpoolCountTotal":
sVListBody.SpoolCountTotal = trans.Secondary.Root.Item(i+1).Value.ToString();
trans.Secondary.Root.Item(i+1).Name = nameof(sVListBody.SpoolCountTotal);
break;
switch (content[i])
{
case "Clock":
sVListBody.eventTimestamp = trans.Secondary.Root.Item(i + 1).Value.ToString();
trans.Secondary.Root.Item(i + 1).Name = nameof(sVListBody.eventTimestamp);
break;
case "CommunicationState":
trans.Secondary.Root.Item(i + 1).Name = nameof(sVListBody.CommunicationState);
sVListBody.CommunicationState = trans.Secondary.Root.Item(i + 1).Value.ToString();
break;
case "CurrentControlState":
sVListBody.ControlState = trans.Secondary.Root.Item(i + 1).Value.ToString();
trans.Secondary.Root.Item(i + 1).Name = nameof(sVListBody.ControlState);
break;
case "PreviousControlState":
sVListBody.PreviousControlState = trans.Secondary.Root.Item(i + 1).Value.ToString();
trans.Secondary.Root.Item(i + 1).Name = nameof(sVListBody.PreviousControlState);
break;
case "CurrentEquipmentState":
sVListBody.CurrentEquipmentState = trans.Secondary.Root.Item(i + 1).Value.ToString();
trans.Secondary.Root.Item(i + 1).Name = nameof(sVListBody.CurrentEquipmentState);
break;
case "PreviousEquipmentState":
sVListBody.PreviousEquipmentState = trans.Secondary.Root.Item(i + 1).Value.ToString();
trans.Secondary.Root.Item(i + 1).Name = nameof(sVListBody.PreviousEquipmentState);
break;
case "PPExecName":
sVListBody.PPExecName = trans.Secondary.Root.Item(i + 1).Value.ToString();
trans.Secondary.Root.Item(i + 1).Name = nameof(sVListBody.PPExecName);
break;
case "SpoolingState":
sVListBody.SpoolingState = trans.Secondary.Root.Item(i + 1).Value.ToString();
trans.Secondary.Root.Item(i + 1).Name = nameof(sVListBody.SpoolingState);
break;
case "SpoolCountActual":
sVListBody.SpoolCountActual = trans.Secondary.Root.Item(i + 1).Value.ToString();
trans.Secondary.Root.Item(i + 1).Name = nameof(sVListBody.SpoolCountActual);
break;
case "SpoolCountTotal":
sVListBody.SpoolCountTotal = trans.Secondary.Root.Item(i + 1).Value.ToString();
trans.Secondary.Root.Item(i + 1).Name = nameof(sVListBody.SpoolCountTotal);
break;
}
}
}
Global.MF.addlog(trans, LoggerService.Receive, trans.Secondary.Description, 1);
Global.MF.addlog(trans, LoggerService.Receive, "Selected Equipment Status Request", 1);
LoggerService.SECSLogger.Info(trans.Secondary);
mQMessage.body = sVListBody;

View File

@@ -32,12 +32,15 @@ namespace Glorysoft.SECS.EQP.Handlers
int index = 1;
foreach(var ec in Configurations.conf.sRDConfiguration.ecvs)
{
eCRequestBody.ECList.Add(ec.name, trans.Secondary.Root.Item(index).Value.ToString());
if (trans.Secondary.Root.Item(index).Value != null)
{
eCRequestBody.ECList.Add(ec.name, trans.Secondary.Root.Item(index).Value.ToString());
}
trans.Secondary.Root.Item(index).Name = ec.name;
index++;
}
Global.MF.addlog(trans, LoggerService.Receive, trans.Secondary.Description, 1);
Global.MF.addlog(trans, LoggerService.Receive, "Equipment Constant Request", 1);
LoggerService.SECSLogger.Info(trans.Secondary);
mQMessage.body = eCRequestBody;

View File

@@ -27,7 +27,7 @@ namespace Glorysoft.SECS.EQP.Handlers
{
public void Execute(SECSContext context, SECSTransaction trans, SECSErrors err, string errmsg)
{
Global.MF.addlog(trans, LoggerService.Receive, trans.Secondary.Description, 1);
Global.MF.addlog(trans, LoggerService.Receive, "New Equipment Constants Send", 1);
LoggerService.SECSLogger.Info(trans.Secondary);
SECSMessage reply = trans.Secondary;
S2F16Item item = new S2F16Item();

View File

@@ -22,7 +22,7 @@ namespace Glorysoft.SECS.EQP.Handlers
{
public void Execute(SECSContext context, SECSTransaction trans, SECSErrors err, string errmsg)
{
Global.MF.addlog(trans, LoggerService.Receive, trans.Secondary.Description, 1);
Global.MF.addlog(trans, LoggerService.Receive, "Trace Data Start", 1);
LoggerService.SECSLogger.Info(trans.Secondary);
if (trans.Tag != null)
{

View File

@@ -22,7 +22,7 @@ namespace Glorysoft.SECS.EQP.Handlers
{
public void Execute(SECSContext context, SECSTransaction trans, SECSErrors err, string errmsg)
{
Global.MF.addlog(trans, LoggerService.Receive, trans.Secondary.Description, 1);
Global.MF.addlog(trans, LoggerService.Receive, "All Enable/Disable Event Report", 1);
LoggerService.SECSLogger.Info(trans.Secondary);
SECSMessage reply = trans.Secondary;

View File

@@ -22,7 +22,7 @@ namespace Glorysoft.SECS.EQP.Handlers
{
public void Execute(SECSContext context, SECSTransaction trans, SECSErrors err, string errmsg)
{
Global.MF.addlog(trans, LoggerService.Receive, trans.Secondary.Description, 1);
Global.MF.addlog(trans, LoggerService.Receive, "Reset/Set Spooling", 1);
LoggerService.SECSLogger.Info(trans.Secondary);
if (trans.Tag != null)
{

View File

@@ -22,7 +22,7 @@ namespace Glorysoft.SECS.EQP.Handlers
{
public void Execute(SECSContext context, SECSTransaction trans, SECSErrors err, string errmsg)
{
Global.MF.addlog(trans, LoggerService.Receive, trans.Secondary.Description, 1);
Global.MF.addlog(trans, LoggerService.Receive, "Enhanced Remote Command", 1);
LoggerService.SECSLogger.Info(trans.Secondary);
}
}

View File

@@ -33,21 +33,27 @@ namespace Glorysoft.SECS.EQP.Handlers
mQMessage.header.messageName = "DisableEnableAlarm";
S5F3Body s5F3Body = new S5F3Body();
s5F3Body.eventTimestamp = System.DateTime.Now.ToString("yyyy-MM-ddTHH:mm:ss.fff");
if (EquipmentStatus.S5F3 == "AlarmEnable" && item.ACKC5 == 0)
if (EquipmentStatus.S5F3 == "AlarmEnable" )
{
Global.MF.S5F3BottonUpdate(EquipmentStatus.S5F3);
Global.MF.addlog(trans, LoggerService.Receive, "Alarm Disable", 1);
LoggerService.SECSLogger.Info(trans.Secondary);
s5F3Body.enableAlarmState = "0";
EquipmentStatus.S5F3 = "AlarmDisable";
if (item.ACKC5 == 0)
{
Global.MF.S5F3BottonUpdate(EquipmentStatus.S5F3);
s5F3Body.enableAlarmState = "0";
EquipmentStatus.S5F3 = "AlarmDisable";
}
}
else if(EquipmentStatus.S5F3 == "AlarmDisable" && item.ACKC5 == 0)
else if(EquipmentStatus.S5F3 == "AlarmDisable" )
{
Global.MF.S5F3BottonUpdate(EquipmentStatus.S5F3);
Global.MF.addlog(trans, LoggerService.Receive, "Alarm Enable", 1);
LoggerService.SECSLogger.Info(trans.Secondary);
s5F3Body.enableAlarmState = "1";
EquipmentStatus.S5F3 = "AlarmEnable";
if (item.ACKC5 == 0)
{
Global.MF.S5F3BottonUpdate(EquipmentStatus.S5F3);
s5F3Body.enableAlarmState = "1";
EquipmentStatus.S5F3 = "AlarmEnable";
}
}
if(item.ACKC5 == 0)
{

View File

@@ -43,19 +43,17 @@ namespace Glorysoft.SECS.EQP.Handlers
index++;
}
Global.MF.addlog(trans, LoggerService.Receive, trans.Secondary.Description, 1);
Global.MF.addlog(trans, LoggerService.Receive, "List Alarm Request", 1);
LoggerService.SECSLogger.Info(trans.Secondary);
mQMessage.body = alarmListBody;
Task.Run(() => MainForm.mq.EAPRequest(mQMessage));
if (trans.Tag != null)
{
var scenario = trans.Tag as Scenario;
Thread.Sleep(500);
scenario.ExecuteNextStep();
}
else
{
mQMessage.body = alarmListBody;
Task.Run(() => MainForm.mq.EAPRequest(mQMessage));
}
}
}
}

View File

@@ -32,7 +32,7 @@ namespace Glorysoft.SECS.EQP.Handlers
{
SECSMessage primary = trans.Primary;
context.ReplyMessage(trans);
Global.MF.addlog(trans, LoggerService.Receive, trans.Primary.Description, 0);
Global.MF.addlog(trans, LoggerService.Receive, "Trace Data Acknowledge", 0);
LoggerService.SECSLogger.Info(trans.Primary);
Global.MF.addlog(trans, LoggerService.Send, trans.Secondary.Description, 1);
LoggerService.SECSLogger.Info(trans.Secondary);

View File

@@ -23,13 +23,17 @@ namespace Glorysoft.SECS.EQP.Handlers
{
public void Execute(SECSContext context, SECSTransaction trans, SECSErrors err, string errmsg)
{
Global.MF.addlog(trans, LoggerService.Receive, trans.Secondary.Description, 1);
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<byte[]>().FirstOrDefault();
if (item.RSDA.ToString() != "0")
uint RSDC = uint.Parse(trans.Primary.Root.Value.ToString());
if (item.RSDA.ToString() == "0" && RSDC == 0)
{
EquipmentStatus.SpoolingFlag = 1;
}
else
{
if (trans.Tag != null)
{
@@ -38,10 +42,6 @@ namespace Glorysoft.SECS.EQP.Handlers
scenario.ExecuteNextStep();
}
}
else
{
EquipmentStatus.SpoolingFlag = 1;
}
}
}
}