initialize

This commit is contained in:
Pruefer
2025-06-06 09:15:13 +02:00
commit fa7c2730f1
5817 changed files with 1339670 additions and 0 deletions

View File

@@ -0,0 +1,106 @@
/*
* Copyright (c) 2018 iTAC Software AG, Germany. All Rights Reserved.
*
* This software is protected by copyright. Under no circumstances may any part of this file in any form be copied,
* printed, edited or otherwise distributed, be stored in a retrieval system, or be translated into another language
* without the written permission of iTAC Software AG.
*/
// created 23.11.2018 08:10:38
using System;
using System.Collections.Generic;
namespace com.itac.oib.linecontrol.contracts.data
{
// source: assembly 3.2.0.152
// source: assembly ASM.AS.OIB.SIPLACEPro.LineControl.Contracts
public class ComponentKnownButNotSetUpMapper
{
// used for itac->asm: True
// used for asm->itac: True
// maps iTAC namespace conform type to ASM namespace type
public static Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ComponentKnownButNotSetUp get(ComponentKnownButNotSetUp itacComponentKnownButNotSetUp)
{
if (itacComponentKnownButNotSetUp == null) { return null; }
Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ComponentKnownButNotSetUp asmComponentKnownButNotSetUp = new Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ComponentKnownButNotSetUp();
mapItac2Asm(asmComponentKnownButNotSetUp, itacComponentKnownButNotSetUp);
return asmComponentKnownButNotSetUp;
}
public static void mapItac2Asm(Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ComponentKnownButNotSetUp asmComponentKnownButNotSetUp, ComponentKnownButNotSetUp itacComponentKnownButNotSetUp)
{
asmComponentKnownButNotSetUp.ComponentFullPath = itacComponentKnownButNotSetUp.ComponentFullPath;
asmComponentKnownButNotSetUp.StationFullPath = itacComponentKnownButNotSetUp.StationFullPath;
asmComponentKnownButNotSetUp.LocationNumber = itacComponentKnownButNotSetUp.LocationNumber;
asmComponentKnownButNotSetUp.DeviceNumber = itacComponentKnownButNotSetUp.DeviceNumber;
asmComponentKnownButNotSetUp.AlreadyConfirmed = itacComponentKnownButNotSetUp.AlreadyConfirmed;
}
// maps iTAC namespace conform array to ASM namespace array
public static Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ComponentKnownButNotSetUp[] get(ComponentKnownButNotSetUp[] itacComponentKnownButNotSetUp)
{
if (itacComponentKnownButNotSetUp == null) { return null; }
Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ComponentKnownButNotSetUp[] asmComponentKnownButNotSetUp = new Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ComponentKnownButNotSetUp[itacComponentKnownButNotSetUp.Length];
for (int i = 0; i < itacComponentKnownButNotSetUp.Length; i++)
{
// to itac array
asmComponentKnownButNotSetUp[i] = ComponentKnownButNotSetUpMapper.get(itacComponentKnownButNotSetUp[i]);
}
return asmComponentKnownButNotSetUp;
}
// maps iTAC namespace conform array to ASM namespace list
public static List<Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ComponentKnownButNotSetUp> getList(ComponentKnownButNotSetUp[] asmComponentKnownButNotSetUp)
{
if (asmComponentKnownButNotSetUp == null) { return null; }
List<Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ComponentKnownButNotSetUp> itacComponentKnownButNotSetUp = new List<Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ComponentKnownButNotSetUp>();
for (int i = 0; i < asmComponentKnownButNotSetUp.Length; i++)
{
itacComponentKnownButNotSetUp.Add(ComponentKnownButNotSetUpMapper.get(asmComponentKnownButNotSetUp[i]));
}
return itacComponentKnownButNotSetUp;
}
// map type from ASM namespace to iTAC namespace
public static ComponentKnownButNotSetUp get(Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ComponentKnownButNotSetUp asmComponentKnownButNotSetUp)
{
if (asmComponentKnownButNotSetUp == null) { return null; }
ComponentKnownButNotSetUp itacComponentKnownButNotSetUp = new ComponentKnownButNotSetUp();
mapAsm2Itac(asmComponentKnownButNotSetUp, itacComponentKnownButNotSetUp);
return itacComponentKnownButNotSetUp;
}
public static void mapAsm2Itac(Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ComponentKnownButNotSetUp asmComponentKnownButNotSetUp, ComponentKnownButNotSetUp itacComponentKnownButNotSetUp)
{
itacComponentKnownButNotSetUp.ComponentFullPath = asmComponentKnownButNotSetUp.ComponentFullPath;
itacComponentKnownButNotSetUp.StationFullPath = asmComponentKnownButNotSetUp.StationFullPath;
itacComponentKnownButNotSetUp.LocationNumber = asmComponentKnownButNotSetUp.LocationNumber;
itacComponentKnownButNotSetUp.DeviceNumber = asmComponentKnownButNotSetUp.DeviceNumber;
itacComponentKnownButNotSetUp.AlreadyConfirmed = asmComponentKnownButNotSetUp.AlreadyConfirmed;
}
// maps ASM namespace conform list to iTAC namespace array
public static ComponentKnownButNotSetUp[] getArray(IList<Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ComponentKnownButNotSetUp> asmComponentKnownButNotSetUp)
{
if (asmComponentKnownButNotSetUp == null) { return null; }
ComponentKnownButNotSetUp[] itacComponentKnownButNotSetUp = new ComponentKnownButNotSetUp[asmComponentKnownButNotSetUp.Count];
for (int i = 0; i < asmComponentKnownButNotSetUp.Count; i++)
{
itacComponentKnownButNotSetUp[i] = ComponentKnownButNotSetUpMapper.get(asmComponentKnownButNotSetUp[i]);
}
return itacComponentKnownButNotSetUp;
}
// maps ASM namespace conform array to iTAC namespace array
public static ComponentKnownButNotSetUp[] getArray(Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ComponentKnownButNotSetUp[] asmComponentKnownButNotSetUp)
{
if (asmComponentKnownButNotSetUp == null) { return null; }
ComponentKnownButNotSetUp[] itacComponentKnownButNotSetUp = new ComponentKnownButNotSetUp[asmComponentKnownButNotSetUp.Length];
for (int i = 0; i < asmComponentKnownButNotSetUp.Length; i++)
{
itacComponentKnownButNotSetUp[i] = ComponentKnownButNotSetUpMapper.get(asmComponentKnownButNotSetUp[i]);
}
return itacComponentKnownButNotSetUp;
}
}
}

View File

@@ -0,0 +1,98 @@
/*
* Copyright (c) 2018 iTAC Software AG, Germany. All Rights Reserved.
*
* This software is protected by copyright. Under no circumstances may any part of this file in any form be copied,
* printed, edited or otherwise distributed, be stored in a retrieval system, or be translated into another language
* without the written permission of iTAC Software AG.
*/
// created 23.11.2018 08:10:38
using System;
using System.Collections.Generic;
namespace com.itac.oib.linecontrol.contracts.data
{
// source: assembly 3.2.0.152
// source: assembly ASM.AS.OIB.SIPLACEPro.LineControl.Contracts
public class ComponentNotKnownAtAllMapper
{
// used for itac->asm: True
// used for asm->itac: True
// maps iTAC namespace conform type to ASM namespace type
public static Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ComponentNotKnownAtAll get(ComponentNotKnownAtAll itacComponentNotKnownAtAll)
{
if (itacComponentNotKnownAtAll == null) { return null; }
Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ComponentNotKnownAtAll asmComponentNotKnownAtAll = new Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ComponentNotKnownAtAll();
mapItac2Asm(asmComponentNotKnownAtAll, itacComponentNotKnownAtAll);
return asmComponentNotKnownAtAll;
}
public static void mapItac2Asm(Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ComponentNotKnownAtAll asmComponentNotKnownAtAll, ComponentNotKnownAtAll itacComponentNotKnownAtAll)
{
asmComponentNotKnownAtAll.ComponentFullPath = itacComponentNotKnownAtAll.ComponentFullPath;
}
// maps iTAC namespace conform array to ASM namespace array
public static Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ComponentNotKnownAtAll[] get(ComponentNotKnownAtAll[] itacComponentNotKnownAtAll)
{
if (itacComponentNotKnownAtAll == null) { return null; }
Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ComponentNotKnownAtAll[] asmComponentNotKnownAtAll = new Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ComponentNotKnownAtAll[itacComponentNotKnownAtAll.Length];
for (int i = 0; i < itacComponentNotKnownAtAll.Length; i++)
{
// to itac array
asmComponentNotKnownAtAll[i] = ComponentNotKnownAtAllMapper.get(itacComponentNotKnownAtAll[i]);
}
return asmComponentNotKnownAtAll;
}
// maps iTAC namespace conform array to ASM namespace list
public static List<Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ComponentNotKnownAtAll> getList(ComponentNotKnownAtAll[] asmComponentNotKnownAtAll)
{
if (asmComponentNotKnownAtAll == null) { return null; }
List<Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ComponentNotKnownAtAll> itacComponentNotKnownAtAll = new List<Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ComponentNotKnownAtAll>();
for (int i = 0; i < asmComponentNotKnownAtAll.Length; i++)
{
itacComponentNotKnownAtAll.Add(ComponentNotKnownAtAllMapper.get(asmComponentNotKnownAtAll[i]));
}
return itacComponentNotKnownAtAll;
}
// map type from ASM namespace to iTAC namespace
public static ComponentNotKnownAtAll get(Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ComponentNotKnownAtAll asmComponentNotKnownAtAll)
{
if (asmComponentNotKnownAtAll == null) { return null; }
ComponentNotKnownAtAll itacComponentNotKnownAtAll = new ComponentNotKnownAtAll();
mapAsm2Itac(asmComponentNotKnownAtAll, itacComponentNotKnownAtAll);
return itacComponentNotKnownAtAll;
}
public static void mapAsm2Itac(Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ComponentNotKnownAtAll asmComponentNotKnownAtAll, ComponentNotKnownAtAll itacComponentNotKnownAtAll)
{
itacComponentNotKnownAtAll.ComponentFullPath = asmComponentNotKnownAtAll.ComponentFullPath;
}
// maps ASM namespace conform list to iTAC namespace array
public static ComponentNotKnownAtAll[] getArray(IList<Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ComponentNotKnownAtAll> asmComponentNotKnownAtAll)
{
if (asmComponentNotKnownAtAll == null) { return null; }
ComponentNotKnownAtAll[] itacComponentNotKnownAtAll = new ComponentNotKnownAtAll[asmComponentNotKnownAtAll.Count];
for (int i = 0; i < asmComponentNotKnownAtAll.Count; i++)
{
itacComponentNotKnownAtAll[i] = ComponentNotKnownAtAllMapper.get(asmComponentNotKnownAtAll[i]);
}
return itacComponentNotKnownAtAll;
}
// maps ASM namespace conform array to iTAC namespace array
public static ComponentNotKnownAtAll[] getArray(Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ComponentNotKnownAtAll[] asmComponentNotKnownAtAll)
{
if (asmComponentNotKnownAtAll == null) { return null; }
ComponentNotKnownAtAll[] itacComponentNotKnownAtAll = new ComponentNotKnownAtAll[asmComponentNotKnownAtAll.Length];
for (int i = 0; i < asmComponentNotKnownAtAll.Length; i++)
{
itacComponentNotKnownAtAll[i] = ComponentNotKnownAtAllMapper.get(asmComponentNotKnownAtAll[i]);
}
return itacComponentNotKnownAtAll;
}
}
}

View File

@@ -0,0 +1,112 @@
/*
* Copyright (c) 2018 iTAC Software AG, Germany. All Rights Reserved.
*
* This software is protected by copyright. Under no circumstances may any part of this file in any form be copied,
* printed, edited or otherwise distributed, be stored in a retrieval system, or be translated into another language
* without the written permission of iTAC Software AG.
*/
// created 23.11.2018 08:10:38
using System;
using System.Collections.Generic;
namespace com.itac.oib.linecontrol.contracts.data
{
// source: assembly 3.2.0.152
// source: assembly ASM.AS.OIB.SIPLACEPro.LineControl.Contracts
public class ComponentSetUpOnWrongTableMapper
{
// used for itac->asm: True
// used for asm->itac: True
// maps iTAC namespace conform type to ASM namespace type
public static Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ComponentSetUpOnWrongTable get(ComponentSetUpOnWrongTable itacComponentSetUpOnWrongTable)
{
if (itacComponentSetUpOnWrongTable == null) { return null; }
Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ComponentSetUpOnWrongTable asmComponentSetUpOnWrongTable = new Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ComponentSetUpOnWrongTable();
mapItac2Asm(asmComponentSetUpOnWrongTable, itacComponentSetUpOnWrongTable);
return asmComponentSetUpOnWrongTable;
}
public static void mapItac2Asm(Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ComponentSetUpOnWrongTable asmComponentSetUpOnWrongTable, ComponentSetUpOnWrongTable itacComponentSetUpOnWrongTable)
{
asmComponentSetUpOnWrongTable.ComponentFullPath = itacComponentSetUpOnWrongTable.ComponentFullPath;
asmComponentSetUpOnWrongTable.ActualStationFullPath = itacComponentSetUpOnWrongTable.ActualStationFullPath;
asmComponentSetUpOnWrongTable.ActualLocationNumber = itacComponentSetUpOnWrongTable.ActualLocationNumber;
asmComponentSetUpOnWrongTable.ActualDeviceNumber = itacComponentSetUpOnWrongTable.ActualDeviceNumber;
asmComponentSetUpOnWrongTable.StationFullPath = itacComponentSetUpOnWrongTable.StationFullPath;
asmComponentSetUpOnWrongTable.LocationNumber = itacComponentSetUpOnWrongTable.LocationNumber;
asmComponentSetUpOnWrongTable.DeviceNumber = itacComponentSetUpOnWrongTable.DeviceNumber;
asmComponentSetUpOnWrongTable.AlreadyConfirmed = itacComponentSetUpOnWrongTable.AlreadyConfirmed;
}
// maps iTAC namespace conform array to ASM namespace array
public static Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ComponentSetUpOnWrongTable[] get(ComponentSetUpOnWrongTable[] itacComponentSetUpOnWrongTable)
{
if (itacComponentSetUpOnWrongTable == null) { return null; }
Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ComponentSetUpOnWrongTable[] asmComponentSetUpOnWrongTable = new Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ComponentSetUpOnWrongTable[itacComponentSetUpOnWrongTable.Length];
for (int i = 0; i < itacComponentSetUpOnWrongTable.Length; i++)
{
// to itac array
asmComponentSetUpOnWrongTable[i] = ComponentSetUpOnWrongTableMapper.get(itacComponentSetUpOnWrongTable[i]);
}
return asmComponentSetUpOnWrongTable;
}
// maps iTAC namespace conform array to ASM namespace list
public static List<Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ComponentSetUpOnWrongTable> getList(ComponentSetUpOnWrongTable[] asmComponentSetUpOnWrongTable)
{
if (asmComponentSetUpOnWrongTable == null) { return null; }
List<Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ComponentSetUpOnWrongTable> itacComponentSetUpOnWrongTable = new List<Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ComponentSetUpOnWrongTable>();
for (int i = 0; i < asmComponentSetUpOnWrongTable.Length; i++)
{
itacComponentSetUpOnWrongTable.Add(ComponentSetUpOnWrongTableMapper.get(asmComponentSetUpOnWrongTable[i]));
}
return itacComponentSetUpOnWrongTable;
}
// map type from ASM namespace to iTAC namespace
public static ComponentSetUpOnWrongTable get(Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ComponentSetUpOnWrongTable asmComponentSetUpOnWrongTable)
{
if (asmComponentSetUpOnWrongTable == null) { return null; }
ComponentSetUpOnWrongTable itacComponentSetUpOnWrongTable = new ComponentSetUpOnWrongTable();
mapAsm2Itac(asmComponentSetUpOnWrongTable, itacComponentSetUpOnWrongTable);
return itacComponentSetUpOnWrongTable;
}
public static void mapAsm2Itac(Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ComponentSetUpOnWrongTable asmComponentSetUpOnWrongTable, ComponentSetUpOnWrongTable itacComponentSetUpOnWrongTable)
{
itacComponentSetUpOnWrongTable.ComponentFullPath = asmComponentSetUpOnWrongTable.ComponentFullPath;
itacComponentSetUpOnWrongTable.ActualStationFullPath = asmComponentSetUpOnWrongTable.ActualStationFullPath;
itacComponentSetUpOnWrongTable.ActualLocationNumber = asmComponentSetUpOnWrongTable.ActualLocationNumber;
itacComponentSetUpOnWrongTable.ActualDeviceNumber = asmComponentSetUpOnWrongTable.ActualDeviceNumber;
itacComponentSetUpOnWrongTable.StationFullPath = asmComponentSetUpOnWrongTable.StationFullPath;
itacComponentSetUpOnWrongTable.LocationNumber = asmComponentSetUpOnWrongTable.LocationNumber;
itacComponentSetUpOnWrongTable.DeviceNumber = asmComponentSetUpOnWrongTable.DeviceNumber;
itacComponentSetUpOnWrongTable.AlreadyConfirmed = asmComponentSetUpOnWrongTable.AlreadyConfirmed;
}
// maps ASM namespace conform list to iTAC namespace array
public static ComponentSetUpOnWrongTable[] getArray(IList<Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ComponentSetUpOnWrongTable> asmComponentSetUpOnWrongTable)
{
if (asmComponentSetUpOnWrongTable == null) { return null; }
ComponentSetUpOnWrongTable[] itacComponentSetUpOnWrongTable = new ComponentSetUpOnWrongTable[asmComponentSetUpOnWrongTable.Count];
for (int i = 0; i < asmComponentSetUpOnWrongTable.Count; i++)
{
itacComponentSetUpOnWrongTable[i] = ComponentSetUpOnWrongTableMapper.get(asmComponentSetUpOnWrongTable[i]);
}
return itacComponentSetUpOnWrongTable;
}
// maps ASM namespace conform array to iTAC namespace array
public static ComponentSetUpOnWrongTable[] getArray(Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ComponentSetUpOnWrongTable[] asmComponentSetUpOnWrongTable)
{
if (asmComponentSetUpOnWrongTable == null) { return null; }
ComponentSetUpOnWrongTable[] itacComponentSetUpOnWrongTable = new ComponentSetUpOnWrongTable[asmComponentSetUpOnWrongTable.Length];
for (int i = 0; i < asmComponentSetUpOnWrongTable.Length; i++)
{
itacComponentSetUpOnWrongTable[i] = ComponentSetUpOnWrongTableMapper.get(asmComponentSetUpOnWrongTable[i]);
}
return itacComponentSetUpOnWrongTable;
}
}
}

View File

@@ -0,0 +1,32 @@
/*
* Copyright (c) 2018 iTAC Software AG, Germany. All Rights Reserved.
*
* This software is protected by copyright. Under no circumstances may any part of this file in any form be copied,
* printed, edited or otherwise distributed, be stored in a retrieval system, or be translated into another language
* without the written permission of iTAC Software AG.
*/
// created 23.11.2018 08:10:38
using System;
using System.Collections.Generic;
namespace com.itac.oib.linecontrol.contracts.data
{
// source: assembly 3.2.0.152
// source: assembly ASM.AS.OIB.SIPLACEPro.LineControl.Contracts
public class ConveyorLanesMapper
{
// map asm enum value to itac enum value
public static ConveyorLanes get(Asm.As.Oib.SiplacePro.LineControl.Contracts.ConveyorLanes conveyorLanes)
{
int intValue = (int)conveyorLanes;
return (ConveyorLanes)intValue;
}
// map itac enum value to ASM enum value
public static Asm.As.Oib.SiplacePro.LineControl.Contracts.ConveyorLanes get(ConveyorLanes conveyorLanes)
{
int intValue = (int)conveyorLanes;
return (Asm.As.Oib.SiplacePro.LineControl.Contracts.ConveyorLanes)intValue;
}
}
}

View File

@@ -0,0 +1,122 @@
/*
* Copyright (c) 2018 iTAC Software AG, Germany. All Rights Reserved.
*
* This software is protected by copyright. Under no circumstances may any part of this file in any form be copied,
* printed, edited or otherwise distributed, be stored in a retrieval system, or be translated into another language
* without the written permission of iTAC Software AG.
*/
// created 23.11.2018 08:10:38
// skip property IList, declared in DownloadMessage
using System;
using System.Collections.Generic;
using com.itac.oib.linecontrol.contracts.data;
namespace com.itac.oib.linecontrol.contracts.data
{
// source: assembly 3.2.0.152
// source: assembly ASM.AS.OIB.SIPLACEPro.LineControl.Contracts
public class DownloadMessageMapper
{
// used for itac->asm: True
// used for asm->itac: True
// maps iTAC namespace conform type to ASM namespace type
/*public static Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.DownloadMessage get(DownloadMessage itacDownloadMessage)
{
if (itacDownloadMessage == null) { return null; }
Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.DownloadMessage asmDownloadMessage = new Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.DownloadMessage(Asm.As.Oib.SiplacePro.Proxy.Business.Types.ResourceIDs.AttachableheadtypeCp_20);
mapItac2Asm(asmDownloadMessage, itacDownloadMessage);
return asmDownloadMessage;
}*/
public static void mapItac2Asm(Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.DownloadMessage asmDownloadMessage, DownloadMessage itacDownloadMessage)
{
// complex property Level, isArray:False, isGeneric:False
asmDownloadMessage.Level = com.itac.oib.linecontrol.contracts.data.MessageLevelMapper.get( itacDownloadMessage.Level);
// complex property Subsystem, isArray:False, isGeneric:False
asmDownloadMessage.Subsystem = com.itac.oib.linecontrol.contracts.data.SubsystemMapper.get( itacDownloadMessage.Subsystem);
asmDownloadMessage.Id = itacDownloadMessage.Id;
asmDownloadMessage.Text = itacDownloadMessage.Text;
// complex property SubMessages, isArray:False, isGeneric:True
asmDownloadMessage.SubMessages = DownloadMessageMapper.getList(itacDownloadMessage.SubMessages);
asmDownloadMessage.DateTime = itacDownloadMessage.DateTime;
// skip property IList, declared in DownloadMessage
// skip readonly property SubMessagesArray
}
// maps iTAC namespace conform array to ASM namespace array
public static Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.DownloadMessage[] get(DownloadMessage[] itacDownloadMessage)
{
if (itacDownloadMessage == null) { return null; }
Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.DownloadMessage[] asmDownloadMessage = new Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.DownloadMessage[itacDownloadMessage.Length];
for (int i = 0; i < itacDownloadMessage.Length; i++)
{
// to itac array
// asmDownloadMessage[i] = DownloadMessageMapper.get(itacDownloadMessage[i]);
}
return asmDownloadMessage;
}
// maps iTAC namespace conform array to ASM namespace list
public static List<Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.DownloadMessage> getList(DownloadMessage[] asmDownloadMessage)
{
if (asmDownloadMessage == null) { return null; }
List<Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.DownloadMessage> itacDownloadMessage = new List<Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.DownloadMessage>();
for (int i = 0; i < asmDownloadMessage.Length; i++)
{
// itacDownloadMessage.Add(DownloadMessageMapper.get(asmDownloadMessage[i]));
}
return itacDownloadMessage;
}
// map type from ASM namespace to iTAC namespace
public static DownloadMessage get(Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.DownloadMessage asmDownloadMessage)
{
if (asmDownloadMessage == null) { return null; }
DownloadMessage itacDownloadMessage = new DownloadMessage();
mapAsm2Itac(asmDownloadMessage, itacDownloadMessage);
return itacDownloadMessage;
}
public static void mapAsm2Itac(Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.DownloadMessage asmDownloadMessage, DownloadMessage itacDownloadMessage)
{
itacDownloadMessage.Level = com.itac.oib.linecontrol.contracts.data.MessageLevelMapper.get(asmDownloadMessage.Level);
// complex asm property Level
itacDownloadMessage.Subsystem = com.itac.oib.linecontrol.contracts.data.SubsystemMapper.get(asmDownloadMessage.Subsystem);
// complex asm property Subsystem
itacDownloadMessage.Id = asmDownloadMessage.Id;
itacDownloadMessage.Text = asmDownloadMessage.Text;
// maps ASM list 2 iTAC array
itacDownloadMessage.SubMessages = DownloadMessageMapper.getArray(asmDownloadMessage.SubMessages);
itacDownloadMessage.DateTime = asmDownloadMessage.DateTime;
// skip property IList, declared in DownloadMessage
// array mapping
itacDownloadMessage.SubMessagesArray = DownloadMessageMapper.getArray(asmDownloadMessage.SubMessagesArray);
// complex asm property SubMessagesArray
}
// maps ASM namespace conform list to iTAC namespace array
public static DownloadMessage[] getArray(IList<Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.DownloadMessage> asmDownloadMessage)
{
if (asmDownloadMessage == null) { return null; }
DownloadMessage[] itacDownloadMessage = new DownloadMessage[asmDownloadMessage.Count];
for (int i = 0; i < asmDownloadMessage.Count; i++)
{
itacDownloadMessage[i] = DownloadMessageMapper.get(asmDownloadMessage[i]);
}
return itacDownloadMessage;
}
// maps ASM namespace conform array to iTAC namespace array
public static DownloadMessage[] getArray(Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.DownloadMessage[] asmDownloadMessage)
{
if (asmDownloadMessage == null) { return null; }
DownloadMessage[] itacDownloadMessage = new DownloadMessage[asmDownloadMessage.Length];
for (int i = 0; i < asmDownloadMessage.Length; i++)
{
itacDownloadMessage[i] = DownloadMessageMapper.get(asmDownloadMessage[i]);
}
return itacDownloadMessage;
}
}
}

View File

@@ -0,0 +1,32 @@
/*
* Copyright (c) 2018 iTAC Software AG, Germany. All Rights Reserved.
*
* This software is protected by copyright. Under no circumstances may any part of this file in any form be copied,
* printed, edited or otherwise distributed, be stored in a retrieval system, or be translated into another language
* without the written permission of iTAC Software AG.
*/
// created 23.11.2018 08:10:38
using System;
using System.Collections.Generic;
namespace com.itac.oib.linecontrol.contracts.data
{
// source: assembly 3.2.0.152
// source: assembly ASM.AS.OIB.SIPLACEPro.LineControl.Contracts
public class DownloadProcessingOptionsMapper
{
// map asm enum value to itac enum value
public static DownloadProcessingOptions get(Asm.As.Oib.SiplacePro.LineControl.Contracts.DownloadProcessingOptions downloadProcessingOptions)
{
int intValue = (int)downloadProcessingOptions;
return (DownloadProcessingOptions)intValue;
}
// map itac enum value to ASM enum value
public static Asm.As.Oib.SiplacePro.LineControl.Contracts.DownloadProcessingOptions get(DownloadProcessingOptions downloadProcessingOptions)
{
int intValue = (int)downloadProcessingOptions;
return (Asm.As.Oib.SiplacePro.LineControl.Contracts.DownloadProcessingOptions)intValue;
}
}
}

View File

@@ -0,0 +1,96 @@
/*
* Copyright (c) 2018 iTAC Software AG, Germany. All Rights Reserved.
*
* This software is protected by copyright. Under no circumstances may any part of this file in any form be copied,
* printed, edited or otherwise distributed, be stored in a retrieval system, or be translated into another language
* without the written permission of iTAC Software AG.
*/
// created 23.11.2018 08:10:38
using System;
using System.Collections.Generic;
namespace com.itac.oib.linecontrol.contracts.data
{
// source: assembly 3.2.0.152
// source: assembly ASM.AS.OIB.SIPLACEPro.LineControl.Contracts
public class DownloadReportMapper
{
// used for itac->asm: True
// used for asm->itac: True
// maps iTAC namespace conform type to ASM namespace type
public static Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.DownloadReport get(DownloadReport itacDownloadReport)
{
if (itacDownloadReport == null) { return null; }
Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.DownloadReport asmDownloadReport = new Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.DownloadReport();
mapItac2Asm(asmDownloadReport, itacDownloadReport);
return asmDownloadReport;
}
public static void mapItac2Asm(Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.DownloadReport asmDownloadReport, DownloadReport itacDownloadReport)
{
}
// maps iTAC namespace conform array to ASM namespace array
public static Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.DownloadReport[] get(DownloadReport[] itacDownloadReport)
{
if (itacDownloadReport == null) { return null; }
Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.DownloadReport[] asmDownloadReport = new Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.DownloadReport[itacDownloadReport.Length];
for (int i = 0; i < itacDownloadReport.Length; i++)
{
// to itac array
asmDownloadReport[i] = DownloadReportMapper.get(itacDownloadReport[i]);
}
return asmDownloadReport;
}
// maps iTAC namespace conform array to ASM namespace list
public static List<Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.DownloadReport> getList(DownloadReport[] asmDownloadReport)
{
if (asmDownloadReport == null) { return null; }
List<Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.DownloadReport> itacDownloadReport = new List<Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.DownloadReport>();
for (int i = 0; i < asmDownloadReport.Length; i++)
{
itacDownloadReport.Add(DownloadReportMapper.get(asmDownloadReport[i]));
}
return itacDownloadReport;
}
// map type from ASM namespace to iTAC namespace
public static DownloadReport get(Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.DownloadReport asmDownloadReport)
{
if (asmDownloadReport == null) { return null; }
DownloadReport itacDownloadReport = new DownloadReport();
mapAsm2Itac(asmDownloadReport, itacDownloadReport);
return itacDownloadReport;
}
public static void mapAsm2Itac(Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.DownloadReport asmDownloadReport, DownloadReport itacDownloadReport)
{
}
// maps ASM namespace conform list to iTAC namespace array
public static DownloadReport[] getArray(IList<Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.DownloadReport> asmDownloadReport)
{
if (asmDownloadReport == null) { return null; }
DownloadReport[] itacDownloadReport = new DownloadReport[asmDownloadReport.Count];
for (int i = 0; i < asmDownloadReport.Count; i++)
{
itacDownloadReport[i] = DownloadReportMapper.get(asmDownloadReport[i]);
}
return itacDownloadReport;
}
// maps ASM namespace conform array to iTAC namespace array
public static DownloadReport[] getArray(Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.DownloadReport[] asmDownloadReport)
{
if (asmDownloadReport == null) { return null; }
DownloadReport[] itacDownloadReport = new DownloadReport[asmDownloadReport.Length];
for (int i = 0; i < asmDownloadReport.Length; i++)
{
itacDownloadReport[i] = DownloadReportMapper.get(asmDownloadReport[i]);
}
return itacDownloadReport;
}
}
}

View File

@@ -0,0 +1,124 @@
/*
* Copyright (c) 2018 iTAC Software AG, Germany. All Rights Reserved.
*
* This software is protected by copyright. Under no circumstances may any part of this file in any form be copied,
* printed, edited or otherwise distributed, be stored in a retrieval system, or be translated into another language
* without the written permission of iTAC Software AG.
*/
// created 23.11.2018 08:10:38
// skip property IList, property in exclude list
using System;
using System.Collections.Generic;
using com.itac.oib.linecontrol.contracts.data;
namespace com.itac.oib.linecontrol.contracts.data
{
// source: assembly 3.2.0.152
// source: assembly ASM.AS.OIB.SIPLACEPro.LineControl.Contracts
public class DownloadResultMapper
{
// used for itac->asm: True
// used for asm->itac: True
// maps iTAC namespace conform type to ASM namespace type
public static Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.DownloadResult get(DownloadResult itacDownloadResult)
{
if (itacDownloadResult == null) { return null; }
Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.DownloadResult asmDownloadResult = new Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.DownloadResult();
mapItac2Asm(asmDownloadResult, itacDownloadResult);
return asmDownloadResult;
}
public static void mapItac2Asm(Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.DownloadResult asmDownloadResult, DownloadResult itacDownloadResult)
{
asmDownloadResult.Succeeded = itacDownloadResult.Succeeded;
asmDownloadResult.ExceptionMessage = itacDownloadResult.ExceptionMessage;
// complex property ICResultRight, isArray:False, isGeneric:False
asmDownloadResult.ICResultRight = com.itac.oib.linecontrol.contracts.data.IntegrityCheckResultMapper.get( itacDownloadResult.ICResultRight);
// complex property ICResultLeft, isArray:False, isGeneric:False
asmDownloadResult.ICResultLeft = com.itac.oib.linecontrol.contracts.data.IntegrityCheckResultMapper.get( itacDownloadResult.ICResultLeft);
// complex property DetailedResults, isArray:False, isGeneric:False
asmDownloadResult.DetailedResults = com.itac.oib.linecontrol.contracts.data.DownloadResultsMapper.get( itacDownloadResult.DetailedResults);
// complex property DownloadMessages, isArray:False, isGeneric:True
asmDownloadResult.DownloadMessages = DownloadMessageMapper.getList(itacDownloadResult.DownloadMessages);
// skip property IList, property in exclude list
// skip readonly property DownloadMessagesArray
}
// maps iTAC namespace conform array to ASM namespace array
public static Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.DownloadResult[] get(DownloadResult[] itacDownloadResult)
{
if (itacDownloadResult == null) { return null; }
Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.DownloadResult[] asmDownloadResult = new Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.DownloadResult[itacDownloadResult.Length];
for (int i = 0; i < itacDownloadResult.Length; i++)
{
// to itac array
asmDownloadResult[i] = DownloadResultMapper.get(itacDownloadResult[i]);
}
return asmDownloadResult;
}
// maps iTAC namespace conform array to ASM namespace list
public static List<Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.DownloadResult> getList(DownloadResult[] asmDownloadResult)
{
if (asmDownloadResult == null) { return null; }
List<Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.DownloadResult> itacDownloadResult = new List<Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.DownloadResult>();
for (int i = 0; i < asmDownloadResult.Length; i++)
{
itacDownloadResult.Add(DownloadResultMapper.get(asmDownloadResult[i]));
}
return itacDownloadResult;
}
// map type from ASM namespace to iTAC namespace
public static DownloadResult get(Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.DownloadResult asmDownloadResult)
{
if (asmDownloadResult == null) { return null; }
DownloadResult itacDownloadResult = new DownloadResult();
mapAsm2Itac(asmDownloadResult, itacDownloadResult);
return itacDownloadResult;
}
public static void mapAsm2Itac(Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.DownloadResult asmDownloadResult, DownloadResult itacDownloadResult)
{
itacDownloadResult.Succeeded = asmDownloadResult.Succeeded;
itacDownloadResult.ExceptionMessage = asmDownloadResult.ExceptionMessage;
itacDownloadResult.ICResultRight = com.itac.oib.linecontrol.contracts.data.IntegrityCheckResultMapper.get(asmDownloadResult.ICResultRight);
// complex asm property ICResultRight
itacDownloadResult.ICResultLeft = com.itac.oib.linecontrol.contracts.data.IntegrityCheckResultMapper.get(asmDownloadResult.ICResultLeft);
// complex asm property ICResultLeft
itacDownloadResult.DetailedResults = com.itac.oib.linecontrol.contracts.data.DownloadResultsMapper.get(asmDownloadResult.DetailedResults);
// complex asm property DetailedResults
// maps ASM list 2 iTAC array
itacDownloadResult.DownloadMessages = DownloadMessageMapper.getArray(asmDownloadResult.DownloadMessages);
// skip property IList, property in exclude list
// array mapping
itacDownloadResult.DownloadMessagesArray = DownloadMessageMapper.getArray(asmDownloadResult.DownloadMessagesArray);
// complex asm property DownloadMessagesArray
}
// maps ASM namespace conform list to iTAC namespace array
public static DownloadResult[] getArray(IList<Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.DownloadResult> asmDownloadResult)
{
if (asmDownloadResult == null) { return null; }
DownloadResult[] itacDownloadResult = new DownloadResult[asmDownloadResult.Count];
for (int i = 0; i < asmDownloadResult.Count; i++)
{
itacDownloadResult[i] = DownloadResultMapper.get(asmDownloadResult[i]);
}
return itacDownloadResult;
}
// maps ASM namespace conform array to iTAC namespace array
public static DownloadResult[] getArray(Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.DownloadResult[] asmDownloadResult)
{
if (asmDownloadResult == null) { return null; }
DownloadResult[] itacDownloadResult = new DownloadResult[asmDownloadResult.Length];
for (int i = 0; i < asmDownloadResult.Length; i++)
{
itacDownloadResult[i] = DownloadResultMapper.get(asmDownloadResult[i]);
}
return itacDownloadResult;
}
}
}

View File

@@ -0,0 +1,32 @@
/*
* Copyright (c) 2018 iTAC Software AG, Germany. All Rights Reserved.
*
* This software is protected by copyright. Under no circumstances may any part of this file in any form be copied,
* printed, edited or otherwise distributed, be stored in a retrieval system, or be translated into another language
* without the written permission of iTAC Software AG.
*/
// created 23.11.2018 08:10:38
using System;
using System.Collections.Generic;
namespace com.itac.oib.linecontrol.contracts.data
{
// source: assembly 3.2.0.152
// source: assembly ASM.AS.OIB.SIPLACEPro.LineControl.Contracts
public class DownloadResultsMapper
{
// map asm enum value to itac enum value
public static DownloadResults get(Asm.As.Oib.SiplacePro.LineControl.Contracts.DownloadResults downloadResults)
{
int intValue = (int)downloadResults;
return (DownloadResults)intValue;
}
// map itac enum value to ASM enum value
public static Asm.As.Oib.SiplacePro.LineControl.Contracts.DownloadResults get(DownloadResults downloadResults)
{
int intValue = (int)downloadResults;
return (Asm.As.Oib.SiplacePro.LineControl.Contracts.DownloadResults)intValue;
}
}
}

View File

@@ -0,0 +1,32 @@
/*
* Copyright (c) 2018 iTAC Software AG, Germany. All Rights Reserved.
*
* This software is protected by copyright. Under no circumstances may any part of this file in any form be copied,
* printed, edited or otherwise distributed, be stored in a retrieval system, or be translated into another language
* without the written permission of iTAC Software AG.
*/
// created 23.11.2018 08:10:38
using System;
using System.Collections.Generic;
namespace com.itac.oib.linecontrol.contracts.data
{
// source: assembly 3.2.0.152
// source: assembly ASM.AS.OIB.SIPLACEPro.LineControl.Contracts
public class IntegrityCheckModeForRepartitioningMapper
{
// map asm enum value to itac enum value
public static IntegrityCheckModeForRepartitioning get(Asm.As.Oib.SiplacePro.LineControl.Contracts.IntegrityCheckModeForRepartitioning integrityCheckModeForRepartitioning)
{
int intValue = (int)integrityCheckModeForRepartitioning;
return (IntegrityCheckModeForRepartitioning)intValue;
}
// map itac enum value to ASM enum value
public static Asm.As.Oib.SiplacePro.LineControl.Contracts.IntegrityCheckModeForRepartitioning get(IntegrityCheckModeForRepartitioning integrityCheckModeForRepartitioning)
{
int intValue = (int)integrityCheckModeForRepartitioning;
return (Asm.As.Oib.SiplacePro.LineControl.Contracts.IntegrityCheckModeForRepartitioning)intValue;
}
}
}

View File

@@ -0,0 +1,32 @@
/*
* Copyright (c) 2018 iTAC Software AG, Germany. All Rights Reserved.
*
* This software is protected by copyright. Under no circumstances may any part of this file in any form be copied,
* printed, edited or otherwise distributed, be stored in a retrieval system, or be translated into another language
* without the written permission of iTAC Software AG.
*/
// created 23.11.2018 08:10:38
using System;
using System.Collections.Generic;
namespace com.itac.oib.linecontrol.contracts.data
{
// source: assembly 3.2.0.152
// source: assembly ASM.AS.OIB.SIPLACEPro.LineControl.Contracts
public class IntegrityCheckModeMapper
{
// map asm enum value to itac enum value
public static IntegrityCheckMode get(Asm.As.Oib.SiplacePro.LineControl.Contracts.IntegrityCheckMode integrityCheckMode)
{
int intValue = (int)integrityCheckMode;
return (IntegrityCheckMode)intValue;
}
// map itac enum value to ASM enum value
public static Asm.As.Oib.SiplacePro.LineControl.Contracts.IntegrityCheckMode get(IntegrityCheckMode integrityCheckMode)
{
int intValue = (int)integrityCheckMode;
return (Asm.As.Oib.SiplacePro.LineControl.Contracts.IntegrityCheckMode)intValue;
}
}
}

View File

@@ -0,0 +1,32 @@
/*
* Copyright (c) 2018 iTAC Software AG, Germany. All Rights Reserved.
*
* This software is protected by copyright. Under no circumstances may any part of this file in any form be copied,
* printed, edited or otherwise distributed, be stored in a retrieval system, or be translated into another language
* without the written permission of iTAC Software AG.
*/
// created 23.11.2018 08:10:38
using System;
using System.Collections.Generic;
namespace com.itac.oib.linecontrol.contracts.data
{
// source: assembly 3.2.0.152
// source: assembly ASM.AS.OIB.SIPLACEPro.LineControl.Contracts
public class IntegrityCheckResultMapper
{
// map asm enum value to itac enum value
public static IntegrityCheckResult get(Asm.As.Oib.SiplacePro.LineControl.Contracts.IntegrityCheckResult integrityCheckResult)
{
int intValue = (int)integrityCheckResult;
return (IntegrityCheckResult)intValue;
}
// map itac enum value to ASM enum value
public static Asm.As.Oib.SiplacePro.LineControl.Contracts.IntegrityCheckResult get(IntegrityCheckResult integrityCheckResult)
{
int intValue = (int)integrityCheckResult;
return (Asm.As.Oib.SiplacePro.LineControl.Contracts.IntegrityCheckResult)intValue;
}
}
}

View File

@@ -0,0 +1,121 @@
/*
* Copyright (c) 2018 iTAC Software AG, Germany. All Rights Reserved.
*
* This software is protected by copyright. Under no circumstances may any part of this file in any form be copied,
* printed, edited or otherwise distributed, be stored in a retrieval system, or be translated into another language
* without the written permission of iTAC Software AG.
*/
// created 23.11.2018 08:10:38
using System;
using System.Collections.Generic;
using com.itac.oib.linecontrol.contracts.data;
namespace com.itac.oib.linecontrol.contracts.data
{
// source: assembly 3.2.0.152
// source: assembly ASM.AS.OIB.SIPLACEPro.LineControl.Contracts
public class LineControlConveyorStatusMapper
{
// used for itac->asm: True
// used for asm->itac: True
// maps iTAC namespace conform type to ASM namespace type
public static Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.LineControlConveyorStatus get(LineControlConveyorStatus itacLineControlConveyorStatus)
{
if (itacLineControlConveyorStatus == null) { return null; }
Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.LineControlConveyorStatus asmLineControlConveyorStatus = new Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.LineControlConveyorStatus();
mapItac2Asm(asmLineControlConveyorStatus, itacLineControlConveyorStatus);
return asmLineControlConveyorStatus;
}
public static void mapItac2Asm(Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.LineControlConveyorStatus asmLineControlConveyorStatus, LineControlConveyorStatus itacLineControlConveyorStatus)
{
asmLineControlConveyorStatus.RecipeName = itacLineControlConveyorStatus.RecipeName;
asmLineControlConveyorStatus.BoardName = itacLineControlConveyorStatus.BoardName;
asmLineControlConveyorStatus.BoardSide = itacLineControlConveyorStatus.BoardSide;
asmLineControlConveyorStatus.ProcessState = itacLineControlConveyorStatus.ProcessState;
asmLineControlConveyorStatus.ProcessedBoards = itacLineControlConveyorStatus.ProcessedBoards;
asmLineControlConveyorStatus.AbortedBoards = itacLineControlConveyorStatus.AbortedBoards;
asmLineControlConveyorStatus.LotSizeMode = itacLineControlConveyorStatus.LotSizeMode;
asmLineControlConveyorStatus.LotSize = itacLineControlConveyorStatus.LotSize;
asmLineControlConveyorStatus.LastDownloadedRecipeTimeStamp = itacLineControlConveyorStatus.LastDownloadedRecipeTimeStamp;
asmLineControlConveyorStatus.ProductionScheduleElementId = itacLineControlConveyorStatus.ProductionScheduleElementId;
// complex property StationwiseDownloadState, isArray:False, isGeneric:False
asmLineControlConveyorStatus.StationwiseDownloadState = com.itac.oib.linecontrol.contracts.data.StationwiseDownloadStateMapper.get( itacLineControlConveyorStatus.StationwiseDownloadState);
}
// maps iTAC namespace conform array to ASM namespace array
public static Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.LineControlConveyorStatus[] get(LineControlConveyorStatus[] itacLineControlConveyorStatus)
{
if (itacLineControlConveyorStatus == null) { return null; }
Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.LineControlConveyorStatus[] asmLineControlConveyorStatus = new Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.LineControlConveyorStatus[itacLineControlConveyorStatus.Length];
for (int i = 0; i < itacLineControlConveyorStatus.Length; i++)
{
// to itac array
asmLineControlConveyorStatus[i] = LineControlConveyorStatusMapper.get(itacLineControlConveyorStatus[i]);
}
return asmLineControlConveyorStatus;
}
// maps iTAC namespace conform array to ASM namespace list
public static List<Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.LineControlConveyorStatus> getList(LineControlConveyorStatus[] asmLineControlConveyorStatus)
{
if (asmLineControlConveyorStatus == null) { return null; }
List<Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.LineControlConveyorStatus> itacLineControlConveyorStatus = new List<Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.LineControlConveyorStatus>();
for (int i = 0; i < asmLineControlConveyorStatus.Length; i++)
{
itacLineControlConveyorStatus.Add(LineControlConveyorStatusMapper.get(asmLineControlConveyorStatus[i]));
}
return itacLineControlConveyorStatus;
}
// map type from ASM namespace to iTAC namespace
public static LineControlConveyorStatus get(Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.LineControlConveyorStatus asmLineControlConveyorStatus)
{
if (asmLineControlConveyorStatus == null) { return null; }
LineControlConveyorStatus itacLineControlConveyorStatus = new LineControlConveyorStatus();
mapAsm2Itac(asmLineControlConveyorStatus, itacLineControlConveyorStatus);
return itacLineControlConveyorStatus;
}
public static void mapAsm2Itac(Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.LineControlConveyorStatus asmLineControlConveyorStatus, LineControlConveyorStatus itacLineControlConveyorStatus)
{
itacLineControlConveyorStatus.RecipeName = asmLineControlConveyorStatus.RecipeName;
itacLineControlConveyorStatus.BoardName = asmLineControlConveyorStatus.BoardName;
itacLineControlConveyorStatus.BoardSide = asmLineControlConveyorStatus.BoardSide;
itacLineControlConveyorStatus.ProcessState = asmLineControlConveyorStatus.ProcessState;
itacLineControlConveyorStatus.ProcessedBoards = asmLineControlConveyorStatus.ProcessedBoards;
itacLineControlConveyorStatus.AbortedBoards = asmLineControlConveyorStatus.AbortedBoards;
itacLineControlConveyorStatus.LotSizeMode = asmLineControlConveyorStatus.LotSizeMode;
itacLineControlConveyorStatus.LotSize = asmLineControlConveyorStatus.LotSize;
itacLineControlConveyorStatus.LastDownloadedRecipeTimeStamp = asmLineControlConveyorStatus.LastDownloadedRecipeTimeStamp;
itacLineControlConveyorStatus.ProductionScheduleElementId = asmLineControlConveyorStatus.ProductionScheduleElementId;
itacLineControlConveyorStatus.StationwiseDownloadState = com.itac.oib.linecontrol.contracts.data.StationwiseDownloadStateMapper.get(asmLineControlConveyorStatus.StationwiseDownloadState);
// complex asm property StationwiseDownloadState
}
// maps ASM namespace conform list to iTAC namespace array
public static LineControlConveyorStatus[] getArray(IList<Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.LineControlConveyorStatus> asmLineControlConveyorStatus)
{
if (asmLineControlConveyorStatus == null) { return null; }
LineControlConveyorStatus[] itacLineControlConveyorStatus = new LineControlConveyorStatus[asmLineControlConveyorStatus.Count];
for (int i = 0; i < asmLineControlConveyorStatus.Count; i++)
{
itacLineControlConveyorStatus[i] = LineControlConveyorStatusMapper.get(asmLineControlConveyorStatus[i]);
}
return itacLineControlConveyorStatus;
}
// maps ASM namespace conform array to iTAC namespace array
public static LineControlConveyorStatus[] getArray(Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.LineControlConveyorStatus[] asmLineControlConveyorStatus)
{
if (asmLineControlConveyorStatus == null) { return null; }
LineControlConveyorStatus[] itacLineControlConveyorStatus = new LineControlConveyorStatus[asmLineControlConveyorStatus.Length];
for (int i = 0; i < asmLineControlConveyorStatus.Length; i++)
{
itacLineControlConveyorStatus[i] = LineControlConveyorStatusMapper.get(asmLineControlConveyorStatus[i]);
}
return itacLineControlConveyorStatus;
}
}
}

View File

@@ -0,0 +1,32 @@
/*
* Copyright (c) 2018 iTAC Software AG, Germany. All Rights Reserved.
*
* This software is protected by copyright. Under no circumstances may any part of this file in any form be copied,
* printed, edited or otherwise distributed, be stored in a retrieval system, or be translated into another language
* without the written permission of iTAC Software AG.
*/
// created 23.11.2018 08:10:38
using System;
using System.Collections.Generic;
namespace com.itac.oib.linecontrol.contracts.data
{
// source: assembly 3.2.0.152
// source: assembly ASM.AS.OIB.SIPLACEPro.LineControl.Contracts
public class LineControlErrorEnumMapper
{
// map asm enum value to itac enum value
public static LineControlErrorEnum get(Asm.As.Oib.SiplacePro.LineControl.Contracts.Faults.LineControlErrorEnum lineControlErrorEnum)
{
int intValue = (int)lineControlErrorEnum;
return (LineControlErrorEnum)intValue;
}
// map itac enum value to ASM enum value
public static Asm.As.Oib.SiplacePro.LineControl.Contracts.Faults.LineControlErrorEnum get(LineControlErrorEnum lineControlErrorEnum)
{
int intValue = (int)lineControlErrorEnum;
return (Asm.As.Oib.SiplacePro.LineControl.Contracts.Faults.LineControlErrorEnum)intValue;
}
}
}

View File

@@ -0,0 +1,115 @@
/*
* Copyright (c) 2018 iTAC Software AG, Germany. All Rights Reserved.
*
* This software is protected by copyright. Under no circumstances may any part of this file in any form be copied,
* printed, edited or otherwise distributed, be stored in a retrieval system, or be translated into another language
* without the written permission of iTAC Software AG.
*/
// created 23.11.2018 08:10:38
using System;
using System.Collections.Generic;
using com.itac.oib.linecontrol.contracts.data;
namespace com.itac.oib.linecontrol.contracts.data
{
// source: assembly 3.2.0.152
// source: assembly ASM.AS.OIB.SIPLACEPro.LineControl.Contracts
public class LineControlLineStatusMapper
{
// used for itac->asm: True
// used for asm->itac: True
// maps iTAC namespace conform type to ASM namespace type
public static Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.LineControlLineStatus get(LineControlLineStatus itacLineControlLineStatus)
{
if (itacLineControlLineStatus == null) { return null; }
Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.LineControlLineStatus asmLineControlLineStatus = new Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.LineControlLineStatus();
mapItac2Asm(asmLineControlLineStatus, itacLineControlLineStatus);
return asmLineControlLineStatus;
}
public static void mapItac2Asm(Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.LineControlLineStatus asmLineControlLineStatus, LineControlLineStatus itacLineControlLineStatus)
{
asmLineControlLineStatus.Line = itacLineControlLineStatus.Line;
asmLineControlLineStatus.LineControlServerHostName = itacLineControlLineStatus.LineControlServerHostName;
// complex property LineControlStationStati, isArray:False, isGeneric:True
asmLineControlLineStatus.LineControlStationStati = LineControlStationStatusMapper.getList(itacLineControlLineStatus.LineControlStationStati);
asmLineControlLineStatus.ProductionSchedule = itacLineControlLineStatus.ProductionSchedule;
// complex property StationwiseDownloadStateRight, isArray:False, isGeneric:False
asmLineControlLineStatus.StationwiseDownloadStateRight = com.itac.oib.linecontrol.contracts.data.StationwiseDownloadStateMapper.get( itacLineControlLineStatus.StationwiseDownloadStateRight);
// complex property StationwiseDownloadStateLeft, isArray:False, isGeneric:False
asmLineControlLineStatus.StationwiseDownloadStateLeft = com.itac.oib.linecontrol.contracts.data.StationwiseDownloadStateMapper.get( itacLineControlLineStatus.StationwiseDownloadStateLeft);
}
// maps iTAC namespace conform array to ASM namespace array
public static Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.LineControlLineStatus[] get(LineControlLineStatus[] itacLineControlLineStatus)
{
if (itacLineControlLineStatus == null) { return null; }
Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.LineControlLineStatus[] asmLineControlLineStatus = new Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.LineControlLineStatus[itacLineControlLineStatus.Length];
for (int i = 0; i < itacLineControlLineStatus.Length; i++)
{
// to itac array
asmLineControlLineStatus[i] = LineControlLineStatusMapper.get(itacLineControlLineStatus[i]);
}
return asmLineControlLineStatus;
}
// maps iTAC namespace conform array to ASM namespace list
public static List<Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.LineControlLineStatus> getList(LineControlLineStatus[] asmLineControlLineStatus)
{
if (asmLineControlLineStatus == null) { return null; }
List<Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.LineControlLineStatus> itacLineControlLineStatus = new List<Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.LineControlLineStatus>();
for (int i = 0; i < asmLineControlLineStatus.Length; i++)
{
itacLineControlLineStatus.Add(LineControlLineStatusMapper.get(asmLineControlLineStatus[i]));
}
return itacLineControlLineStatus;
}
// map type from ASM namespace to iTAC namespace
public static LineControlLineStatus get(Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.LineControlLineStatus asmLineControlLineStatus)
{
if (asmLineControlLineStatus == null) { return null; }
LineControlLineStatus itacLineControlLineStatus = new LineControlLineStatus();
mapAsm2Itac(asmLineControlLineStatus, itacLineControlLineStatus);
return itacLineControlLineStatus;
}
public static void mapAsm2Itac(Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.LineControlLineStatus asmLineControlLineStatus, LineControlLineStatus itacLineControlLineStatus)
{
itacLineControlLineStatus.Line = asmLineControlLineStatus.Line;
itacLineControlLineStatus.LineControlServerHostName = asmLineControlLineStatus.LineControlServerHostName;
// maps ASM list 2 iTAC array
itacLineControlLineStatus.LineControlStationStati = LineControlStationStatusMapper.getArray(asmLineControlLineStatus.LineControlStationStati);
itacLineControlLineStatus.ProductionSchedule = asmLineControlLineStatus.ProductionSchedule;
itacLineControlLineStatus.StationwiseDownloadStateRight = com.itac.oib.linecontrol.contracts.data.StationwiseDownloadStateMapper.get(asmLineControlLineStatus.StationwiseDownloadStateRight);
// complex asm property StationwiseDownloadStateRight
itacLineControlLineStatus.StationwiseDownloadStateLeft = com.itac.oib.linecontrol.contracts.data.StationwiseDownloadStateMapper.get(asmLineControlLineStatus.StationwiseDownloadStateLeft);
// complex asm property StationwiseDownloadStateLeft
}
// maps ASM namespace conform list to iTAC namespace array
public static LineControlLineStatus[] getArray(IList<Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.LineControlLineStatus> asmLineControlLineStatus)
{
if (asmLineControlLineStatus == null) { return null; }
LineControlLineStatus[] itacLineControlLineStatus = new LineControlLineStatus[asmLineControlLineStatus.Count];
for (int i = 0; i < asmLineControlLineStatus.Count; i++)
{
itacLineControlLineStatus[i] = LineControlLineStatusMapper.get(asmLineControlLineStatus[i]);
}
return itacLineControlLineStatus;
}
// maps ASM namespace conform array to iTAC namespace array
public static LineControlLineStatus[] getArray(Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.LineControlLineStatus[] asmLineControlLineStatus)
{
if (asmLineControlLineStatus == null) { return null; }
LineControlLineStatus[] itacLineControlLineStatus = new LineControlLineStatus[asmLineControlLineStatus.Length];
for (int i = 0; i < asmLineControlLineStatus.Length; i++)
{
itacLineControlLineStatus[i] = LineControlLineStatusMapper.get(asmLineControlLineStatus[i]);
}
return itacLineControlLineStatus;
}
}
}

View File

@@ -0,0 +1,122 @@
/*
* Copyright (c) 2018 iTAC Software AG, Germany. All Rights Reserved.
*
* This software is protected by copyright. Under no circumstances may any part of this file in any form be copied,
* printed, edited or otherwise distributed, be stored in a retrieval system, or be translated into another language
* without the written permission of iTAC Software AG.
*/
// created 23.11.2018 08:10:38
using System;
using System.Collections.Generic;
namespace com.itac.oib.linecontrol.contracts.data
{
// source: assembly 3.2.0.152
// source: assembly ASM.AS.OIB.SIPLACEPro.LineControl.Contracts
public class LineControlStationStatusMapper
{
// used for itac->asm: True
// used for asm->itac: True
// maps iTAC namespace conform type to ASM namespace type
public static Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.LineControlStationStatus get(LineControlStationStatus itacLineControlStationStatus)
{
if (itacLineControlStationStatus == null) { return null; }
Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.LineControlStationStatus asmLineControlStationStatus = new Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.LineControlStationStatus();
mapItac2Asm(asmLineControlStationStatus, itacLineControlStationStatus);
return asmLineControlStationStatus;
}
public static void mapItac2Asm(Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.LineControlStationStatus asmLineControlStationStatus, LineControlStationStatus itacLineControlStationStatus)
{
asmLineControlStationStatus.Name = itacLineControlStationStatus.Name;
asmLineControlStationStatus.HostName = itacLineControlStationStatus.HostName;
asmLineControlStationStatus.HostIP = itacLineControlStationStatus.HostIP;
asmLineControlStationStatus.SoftwareVersion = itacLineControlStationStatus.SoftwareVersion;
asmLineControlStationStatus.IsEndOfCluster = itacLineControlStationStatus.IsEndOfCluster;
asmLineControlStationStatus.IsControlledByExternSystem = itacLineControlStationStatus.IsControlledByExternSystem;
asmLineControlStationStatus.ConnectionState = itacLineControlStationStatus.ConnectionState;
// complex property LeftConveyorStatus, isArray:False, isGeneric:False
asmLineControlStationStatus.LeftConveyorStatus = com.itac.oib.linecontrol.contracts.data.LineControlConveyorStatusMapper.get( itacLineControlStationStatus.LeftConveyorStatus);
// complex property RightConveyorStatus, isArray:False, isGeneric:False
asmLineControlStationStatus.RightConveyorStatus = com.itac.oib.linecontrol.contracts.data.LineControlConveyorStatusMapper.get( itacLineControlStationStatus.RightConveyorStatus);
asmLineControlStationStatus.SetupName = itacLineControlStationStatus.SetupName;
asmLineControlStationStatus.LastDownloadedSetupTimeStamp = itacLineControlStationStatus.LastDownloadedSetupTimeStamp;
}
// maps iTAC namespace conform array to ASM namespace array
public static Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.LineControlStationStatus[] get(LineControlStationStatus[] itacLineControlStationStatus)
{
if (itacLineControlStationStatus == null) { return null; }
Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.LineControlStationStatus[] asmLineControlStationStatus = new Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.LineControlStationStatus[itacLineControlStationStatus.Length];
for (int i = 0; i < itacLineControlStationStatus.Length; i++)
{
// to itac array
asmLineControlStationStatus[i] = LineControlStationStatusMapper.get(itacLineControlStationStatus[i]);
}
return asmLineControlStationStatus;
}
// maps iTAC namespace conform array to ASM namespace list
public static List<Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.LineControlStationStatus> getList(LineControlStationStatus[] asmLineControlStationStatus)
{
if (asmLineControlStationStatus == null) { return null; }
List<Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.LineControlStationStatus> itacLineControlStationStatus = new List<Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.LineControlStationStatus>();
for (int i = 0; i < asmLineControlStationStatus.Length; i++)
{
itacLineControlStationStatus.Add(LineControlStationStatusMapper.get(asmLineControlStationStatus[i]));
}
return itacLineControlStationStatus;
}
// map type from ASM namespace to iTAC namespace
public static LineControlStationStatus get(Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.LineControlStationStatus asmLineControlStationStatus)
{
if (asmLineControlStationStatus == null) { return null; }
LineControlStationStatus itacLineControlStationStatus = new LineControlStationStatus();
mapAsm2Itac(asmLineControlStationStatus, itacLineControlStationStatus);
return itacLineControlStationStatus;
}
public static void mapAsm2Itac(Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.LineControlStationStatus asmLineControlStationStatus, LineControlStationStatus itacLineControlStationStatus)
{
itacLineControlStationStatus.Name = asmLineControlStationStatus.Name;
itacLineControlStationStatus.HostName = asmLineControlStationStatus.HostName;
itacLineControlStationStatus.HostIP = asmLineControlStationStatus.HostIP;
itacLineControlStationStatus.SoftwareVersion = asmLineControlStationStatus.SoftwareVersion;
itacLineControlStationStatus.IsEndOfCluster = asmLineControlStationStatus.IsEndOfCluster;
itacLineControlStationStatus.IsControlledByExternSystem = asmLineControlStationStatus.IsControlledByExternSystem;
itacLineControlStationStatus.ConnectionState = asmLineControlStationStatus.ConnectionState;
itacLineControlStationStatus.LeftConveyorStatus = com.itac.oib.linecontrol.contracts.data.LineControlConveyorStatusMapper.get(asmLineControlStationStatus.LeftConveyorStatus);
// complex asm property LeftConveyorStatus
itacLineControlStationStatus.RightConveyorStatus = com.itac.oib.linecontrol.contracts.data.LineControlConveyorStatusMapper.get(asmLineControlStationStatus.RightConveyorStatus);
// complex asm property RightConveyorStatus
itacLineControlStationStatus.SetupName = asmLineControlStationStatus.SetupName;
itacLineControlStationStatus.LastDownloadedSetupTimeStamp = asmLineControlStationStatus.LastDownloadedSetupTimeStamp;
}
// maps ASM namespace conform list to iTAC namespace array
public static LineControlStationStatus[] getArray(IList<Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.LineControlStationStatus> asmLineControlStationStatus)
{
if (asmLineControlStationStatus == null) { return null; }
LineControlStationStatus[] itacLineControlStationStatus = new LineControlStationStatus[asmLineControlStationStatus.Count];
for (int i = 0; i < asmLineControlStationStatus.Count; i++)
{
itacLineControlStationStatus[i] = LineControlStationStatusMapper.get(asmLineControlStationStatus[i]);
}
return itacLineControlStationStatus;
}
// maps ASM namespace conform array to iTAC namespace array
public static LineControlStationStatus[] getArray(Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.LineControlStationStatus[] asmLineControlStationStatus)
{
if (asmLineControlStationStatus == null) { return null; }
LineControlStationStatus[] itacLineControlStationStatus = new LineControlStationStatus[asmLineControlStationStatus.Length];
for (int i = 0; i < asmLineControlStationStatus.Length; i++)
{
itacLineControlStationStatus[i] = LineControlStationStatusMapper.get(asmLineControlStationStatus[i]);
}
return itacLineControlStationStatus;
}
}
}

View File

@@ -0,0 +1,32 @@
/*
* Copyright (c) 2018 iTAC Software AG, Germany. All Rights Reserved.
*
* This software is protected by copyright. Under no circumstances may any part of this file in any form be copied,
* printed, edited or otherwise distributed, be stored in a retrieval system, or be translated into another language
* without the written permission of iTAC Software AG.
*/
// created 23.11.2018 08:10:38
using System;
using System.Collections.Generic;
namespace com.itac.oib.linecontrol.contracts.data
{
// source: assembly 3.2.0.152
// source: assembly ASM.AS.OIB.SIPLACEPro.LineControl.Contracts
public class MessageLevelMapper
{
// map asm enum value to itac enum value
public static MessageLevel get(Asm.As.Oib.SiplacePro.LineControl.Contracts.MessageLevel messageLevel)
{
int intValue = (int)messageLevel;
return (MessageLevel)intValue;
}
// map itac enum value to ASM enum value
public static Asm.As.Oib.SiplacePro.LineControl.Contracts.MessageLevel get(MessageLevel messageLevel)
{
int intValue = (int)messageLevel;
return (Asm.As.Oib.SiplacePro.LineControl.Contracts.MessageLevel)intValue;
}
}
}

View File

@@ -0,0 +1,182 @@
/*
* Copyright (c) 2018 iTAC Software AG, Germany. All Rights Reserved.
*
* This software is protected by copyright. Under no circumstances may any part of this file in any form be copied,
* printed, edited or otherwise distributed, be stored in a retrieval system, or be translated into another language
* without the written permission of iTAC Software AG.
*/
// created 23.11.2018 08:10:38
using System;
using System.Collections.Generic;
namespace com.itac.oib.linecontrol.contracts.data
{
// source: assembly 3.2.0.152
// source: assembly ASM.AS.OIB.SIPLACEPro.LineControl.Contracts
public class MissingComponentsMapper
{
// used for itac->asm: True
// used for asm->itac: True
// maps iTAC namespace conform type to ASM namespace type
public static Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.MissingComponents get(MissingComponents itacMissingComponents)
{
if (itacMissingComponents == null) { return null; }
Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.MissingComponents asmMissingComponents = new Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.MissingComponents();
mapItac2Asm(asmMissingComponents, itacMissingComponents);
return asmMissingComponents;
}
public static void mapItac2Asm(Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.MissingComponents asmMissingComponents, MissingComponents itacMissingComponents)
{
// skip readonly property MissingComponentsTotalCount
// complex property ComponentsNotKnownAtAll, isArray:False, isGeneric:True
// map Dictionary
asmMissingComponents.ComponentsNotKnownAtAll = getDictionary(itacMissingComponents.ComponentsNotKnownAtAll);
// complex property ComponentsSetUpOnWrongTable, isArray:False, isGeneric:True
// map Dictionary
asmMissingComponents.ComponentsSetUpOnWrongTable = getDictionary(itacMissingComponents.ComponentsSetUpOnWrongTable);
// complex property ComponentsKnownButNotSetUp, isArray:False, isGeneric:True
// map Dictionary
asmMissingComponents.ComponentsKnownButNotSetUp = getDictionary(itacMissingComponents.ComponentsKnownButNotSetUp);
}
// maps iTAC namespace conform array to ASM namespace array
public static Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.MissingComponents[] get(MissingComponents[] itacMissingComponents)
{
if (itacMissingComponents == null) { return null; }
Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.MissingComponents[] asmMissingComponents = new Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.MissingComponents[itacMissingComponents.Length];
for (int i = 0; i < itacMissingComponents.Length; i++)
{
// to itac array
asmMissingComponents[i] = MissingComponentsMapper.get(itacMissingComponents[i]);
}
return asmMissingComponents;
}
// maps iTAC namespace conform array to ASM namespace list
public static List<Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.MissingComponents> getList(MissingComponents[] asmMissingComponents)
{
if (asmMissingComponents == null) { return null; }
List<Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.MissingComponents> itacMissingComponents = new List<Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.MissingComponents>();
for (int i = 0; i < asmMissingComponents.Length; i++)
{
itacMissingComponents.Add(MissingComponentsMapper.get(asmMissingComponents[i]));
}
return itacMissingComponents;
}
// map type from ASM namespace to iTAC namespace
public static MissingComponents get(Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.MissingComponents asmMissingComponents)
{
if (asmMissingComponents == null) { return null; }
MissingComponents itacMissingComponents = new MissingComponents();
mapAsm2Itac(asmMissingComponents, itacMissingComponents);
return itacMissingComponents;
}
public static void mapAsm2Itac(Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.MissingComponents asmMissingComponents, MissingComponents itacMissingComponents)
{
itacMissingComponents.MissingComponentsTotalCount = asmMissingComponents.MissingComponentsTotalCount;
// assign Dictionary(): maps ASM Dictionary 2 iTAC dictionary
itacMissingComponents.ComponentsNotKnownAtAll = getComponentsNotKnownAtAllDictionary( asmMissingComponents.ComponentsNotKnownAtAll);
// assign Dictionary(): maps ASM Dictionary 2 iTAC dictionary
itacMissingComponents.ComponentsSetUpOnWrongTable = getComponentsSetUpOnWrongTableDictionary( asmMissingComponents.ComponentsSetUpOnWrongTable);
// assign Dictionary(): maps ASM Dictionary 2 iTAC dictionary
itacMissingComponents.ComponentsKnownButNotSetUp = getComponentsKnownButNotSetUpDictionary( asmMissingComponents.ComponentsKnownButNotSetUp);
}
// maps ASM namespace conform list to iTAC namespace array
public static MissingComponents[] getArray(IList<Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.MissingComponents> asmMissingComponents)
{
if (asmMissingComponents == null) { return null; }
MissingComponents[] itacMissingComponents = new MissingComponents[asmMissingComponents.Count];
for (int i = 0; i < asmMissingComponents.Count; i++)
{
itacMissingComponents[i] = MissingComponentsMapper.get(asmMissingComponents[i]);
}
return itacMissingComponents;
}
// maps ASM namespace conform array to iTAC namespace array
public static MissingComponents[] getArray(Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.MissingComponents[] asmMissingComponents)
{
if (asmMissingComponents == null) { return null; }
MissingComponents[] itacMissingComponents = new MissingComponents[asmMissingComponents.Length];
for (int i = 0; i < asmMissingComponents.Length; i++)
{
itacMissingComponents[i] = MissingComponentsMapper.get(asmMissingComponents[i]);
}
return itacMissingComponents;
}
// maps c# dictionary with ASM types to c# dictionary with java types
public static Dictionary<String, Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ComponentNotKnownAtAll> getDictionary(Dictionary<String, ComponentNotKnownAtAll> dictionary)
{
Dictionary<String, Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ComponentNotKnownAtAll> result = new Dictionary<String,Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ComponentNotKnownAtAll>();
foreach (String key in dictionary.Keys)
{
result.Add(key, ComponentNotKnownAtAllMapper.get(dictionary[key]));
}
return result;
}
// maps c# dictionary with ASM types to c# dictionary with java types
public static Dictionary<String, Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ComponentSetUpOnWrongTable> getDictionary(Dictionary<String, ComponentSetUpOnWrongTable> dictionary)
{
Dictionary<String, Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ComponentSetUpOnWrongTable> result = new Dictionary<String,Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ComponentSetUpOnWrongTable>();
foreach (String key in dictionary.Keys)
{
result.Add(key, ComponentSetUpOnWrongTableMapper.get(dictionary[key]));
}
return result;
}
// maps c# dictionary with ASM types to c# dictionary with java types
public static Dictionary<String, Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ComponentKnownButNotSetUp> getDictionary(Dictionary<String, ComponentKnownButNotSetUp> dictionary)
{
Dictionary<String, Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ComponentKnownButNotSetUp> result = new Dictionary<String,Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ComponentKnownButNotSetUp>();
foreach (String key in dictionary.Keys)
{
result.Add(key, ComponentKnownButNotSetUpMapper.get(dictionary[key]));
}
return result;
}
// original declaration: System.Collections.Generic.Dictionary`2[System.String,Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ComponentNotKnownAtAll]
// generate key / value array for dictionary
// generated dictionary mapper
private static Dictionary<String, ComponentNotKnownAtAll> getComponentsNotKnownAtAllDictionary(IDictionary<String, Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ComponentNotKnownAtAll> componentsNotKnownAtAll)
{
Dictionary <String, ComponentNotKnownAtAll> result = new Dictionary<String, ComponentNotKnownAtAll>();
foreach (String key in componentsNotKnownAtAll.Keys)
{
result.Add(key, com.itac.oib.linecontrol.contracts.data.ComponentNotKnownAtAllMapper.get(componentsNotKnownAtAll[key]));
}
return result;
}
// original declaration: System.Collections.Generic.Dictionary`2[System.String,Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ComponentSetUpOnWrongTable]
// generate key / value array for dictionary
// generated dictionary mapper
private static Dictionary<String, ComponentSetUpOnWrongTable> getComponentsSetUpOnWrongTableDictionary(IDictionary<String, Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ComponentSetUpOnWrongTable> componentsSetUpOnWrongTable)
{
Dictionary <String, ComponentSetUpOnWrongTable> result = new Dictionary<String, ComponentSetUpOnWrongTable>();
foreach (String key in componentsSetUpOnWrongTable.Keys)
{
result.Add(key, com.itac.oib.linecontrol.contracts.data.ComponentSetUpOnWrongTableMapper.get(componentsSetUpOnWrongTable[key]));
}
return result;
}
// original declaration: System.Collections.Generic.Dictionary`2[System.String,Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ComponentKnownButNotSetUp]
// generate key / value array for dictionary
// generated dictionary mapper
private static Dictionary<String, ComponentKnownButNotSetUp> getComponentsKnownButNotSetUpDictionary(IDictionary<String, Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ComponentKnownButNotSetUp> componentsKnownButNotSetUp)
{
Dictionary <String, ComponentKnownButNotSetUp> result = new Dictionary<String, ComponentKnownButNotSetUp>();
foreach (String key in componentsKnownButNotSetUp.Keys)
{
result.Add(key, com.itac.oib.linecontrol.contracts.data.ComponentKnownButNotSetUpMapper.get(componentsKnownButNotSetUp[key]));
}
return result;
}
}
}

View File

@@ -0,0 +1,102 @@
/*
* Copyright (c) 2018 iTAC Software AG, Germany. All Rights Reserved.
*
* This software is protected by copyright. Under no circumstances may any part of this file in any form be copied,
* printed, edited or otherwise distributed, be stored in a retrieval system, or be translated into another language
* without the written permission of iTAC Software AG.
*/
// created 23.11.2018 08:10:38
using System;
using System.Collections.Generic;
namespace com.itac.oib.linecontrol.contracts.data
{
// source: assembly 3.2.0.152
// source: assembly ASM.AS.OIB.SIPLACEPro.LineControl.Contracts
public class MissingFeederMapper
{
// used for itac->asm: True
// used for asm->itac: True
// maps iTAC namespace conform type to ASM namespace type
public static Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.MissingFeeder get(MissingFeeder itacMissingFeeder)
{
if (itacMissingFeeder == null) { return null; }
Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.MissingFeeder asmMissingFeeder = new Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.MissingFeeder();
mapItac2Asm(asmMissingFeeder, itacMissingFeeder);
return asmMissingFeeder;
}
public static void mapItac2Asm(Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.MissingFeeder asmMissingFeeder, MissingFeeder itacMissingFeeder)
{
asmMissingFeeder.ComponentFullPath = itacMissingFeeder.ComponentFullPath;
asmMissingFeeder.FeederTypeFullPath = itacMissingFeeder.FeederTypeFullPath;
asmMissingFeeder.FeederTypeOID = itacMissingFeeder.FeederTypeOID;
}
// maps iTAC namespace conform array to ASM namespace array
public static Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.MissingFeeder[] get(MissingFeeder[] itacMissingFeeder)
{
if (itacMissingFeeder == null) { return null; }
Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.MissingFeeder[] asmMissingFeeder = new Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.MissingFeeder[itacMissingFeeder.Length];
for (int i = 0; i < itacMissingFeeder.Length; i++)
{
// to itac array
asmMissingFeeder[i] = MissingFeederMapper.get(itacMissingFeeder[i]);
}
return asmMissingFeeder;
}
// maps iTAC namespace conform array to ASM namespace list
public static List<Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.MissingFeeder> getList(MissingFeeder[] asmMissingFeeder)
{
if (asmMissingFeeder == null) { return null; }
List<Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.MissingFeeder> itacMissingFeeder = new List<Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.MissingFeeder>();
for (int i = 0; i < asmMissingFeeder.Length; i++)
{
itacMissingFeeder.Add(MissingFeederMapper.get(asmMissingFeeder[i]));
}
return itacMissingFeeder;
}
// map type from ASM namespace to iTAC namespace
public static MissingFeeder get(Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.MissingFeeder asmMissingFeeder)
{
if (asmMissingFeeder == null) { return null; }
MissingFeeder itacMissingFeeder = new MissingFeeder();
mapAsm2Itac(asmMissingFeeder, itacMissingFeeder);
return itacMissingFeeder;
}
public static void mapAsm2Itac(Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.MissingFeeder asmMissingFeeder, MissingFeeder itacMissingFeeder)
{
itacMissingFeeder.ComponentFullPath = asmMissingFeeder.ComponentFullPath;
itacMissingFeeder.FeederTypeFullPath = asmMissingFeeder.FeederTypeFullPath;
itacMissingFeeder.FeederTypeOID = asmMissingFeeder.FeederTypeOID;
}
// maps ASM namespace conform list to iTAC namespace array
public static MissingFeeder[] getArray(IList<Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.MissingFeeder> asmMissingFeeder)
{
if (asmMissingFeeder == null) { return null; }
MissingFeeder[] itacMissingFeeder = new MissingFeeder[asmMissingFeeder.Count];
for (int i = 0; i < asmMissingFeeder.Count; i++)
{
itacMissingFeeder[i] = MissingFeederMapper.get(asmMissingFeeder[i]);
}
return itacMissingFeeder;
}
// maps ASM namespace conform array to iTAC namespace array
public static MissingFeeder[] getArray(Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.MissingFeeder[] asmMissingFeeder)
{
if (asmMissingFeeder == null) { return null; }
MissingFeeder[] itacMissingFeeder = new MissingFeeder[asmMissingFeeder.Length];
for (int i = 0; i < asmMissingFeeder.Length; i++)
{
itacMissingFeeder[i] = MissingFeederMapper.get(asmMissingFeeder[i]);
}
return itacMissingFeeder;
}
}
}

View File

@@ -0,0 +1,130 @@
/*
* Copyright (c) 2018 iTAC Software AG, Germany. All Rights Reserved.
*
* This software is protected by copyright. Under no circumstances may any part of this file in any form be copied,
* printed, edited or otherwise distributed, be stored in a retrieval system, or be translated into another language
* without the written permission of iTAC Software AG.
*/
// created 23.11.2018 08:10:38
using System;
using System.Collections.Generic;
namespace com.itac.oib.linecontrol.contracts.data
{
// source: assembly 3.2.0.152
// source: assembly ASM.AS.OIB.SIPLACEPro.LineControl.Contracts
public class OptimizerMessageMapper
{
// used for itac->asm: True
// used for asm->itac: True
// maps iTAC namespace conform type to ASM namespace type
public static Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.OptimizerMessage get(OptimizerMessage itacOptimizerMessage)
{
if (itacOptimizerMessage == null) { return null; }
Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.OptimizerMessage asmOptimizerMessage = new Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.OptimizerMessage();
mapItac2Asm(asmOptimizerMessage, itacOptimizerMessage);
return asmOptimizerMessage;
}
public static void mapItac2Asm(Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.OptimizerMessage asmOptimizerMessage, OptimizerMessage itacOptimizerMessage)
{
asmOptimizerMessage.MessageType = itacOptimizerMessage.MessageType;
asmOptimizerMessage.MessageCode = itacOptimizerMessage.MessageCode;
asmOptimizerMessage.Message = itacOptimizerMessage.Message;
// complex property Parameters, isArray:False, isGeneric:True
// implicit mapping primitive type itac->ASM!!!
asmOptimizerMessage.Parameters = getList(itacOptimizerMessage.Parameters);
}
// maps iTAC namespace conform array to ASM namespace array
public static Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.OptimizerMessage[] get(OptimizerMessage[] itacOptimizerMessage)
{
if (itacOptimizerMessage == null) { return null; }
Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.OptimizerMessage[] asmOptimizerMessage = new Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.OptimizerMessage[itacOptimizerMessage.Length];
for (int i = 0; i < itacOptimizerMessage.Length; i++)
{
// to itac array
asmOptimizerMessage[i] = OptimizerMessageMapper.get(itacOptimizerMessage[i]);
}
return asmOptimizerMessage;
}
// maps iTAC namespace conform array to ASM namespace list
public static List<Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.OptimizerMessage> getList(OptimizerMessage[] asmOptimizerMessage)
{
if (asmOptimizerMessage == null) { return null; }
List<Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.OptimizerMessage> itacOptimizerMessage = new List<Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.OptimizerMessage>();
for (int i = 0; i < asmOptimizerMessage.Length; i++)
{
itacOptimizerMessage.Add(OptimizerMessageMapper.get(asmOptimizerMessage[i]));
}
return itacOptimizerMessage;
}
// map type from ASM namespace to iTAC namespace
public static OptimizerMessage get(Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.OptimizerMessage asmOptimizerMessage)
{
if (asmOptimizerMessage == null) { return null; }
OptimizerMessage itacOptimizerMessage = new OptimizerMessage();
mapAsm2Itac(asmOptimizerMessage, itacOptimizerMessage);
return itacOptimizerMessage;
}
public static void mapAsm2Itac(Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.OptimizerMessage asmOptimizerMessage, OptimizerMessage itacOptimizerMessage)
{
itacOptimizerMessage.MessageType = asmOptimizerMessage.MessageType;
itacOptimizerMessage.MessageCode = asmOptimizerMessage.MessageCode;
itacOptimizerMessage.Message = asmOptimizerMessage.Message;
// maps ASM list 2 iTAC array
// implicit mapping primitive type !!!
itacOptimizerMessage.Parameters = getArray(asmOptimizerMessage.Parameters);
}
// maps ASM namespace conform list to iTAC namespace array
public static OptimizerMessage[] getArray(IList<Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.OptimizerMessage> asmOptimizerMessage)
{
if (asmOptimizerMessage == null) { return null; }
OptimizerMessage[] itacOptimizerMessage = new OptimizerMessage[asmOptimizerMessage.Count];
for (int i = 0; i < asmOptimizerMessage.Count; i++)
{
itacOptimizerMessage[i] = OptimizerMessageMapper.get(asmOptimizerMessage[i]);
}
return itacOptimizerMessage;
}
// maps ASM namespace conform array to iTAC namespace array
public static OptimizerMessage[] getArray(Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.OptimizerMessage[] asmOptimizerMessage)
{
if (asmOptimizerMessage == null) { return null; }
OptimizerMessage[] itacOptimizerMessage = new OptimizerMessage[asmOptimizerMessage.Length];
for (int i = 0; i < asmOptimizerMessage.Length; i++)
{
itacOptimizerMessage[i] = OptimizerMessageMapper.get(asmOptimizerMessage[i]);
}
return itacOptimizerMessage;
}
// maps c# list to iTAC c# array
public static String[] getArray(List<System.String> value)
{
if (value == null) { return null; }
String[] result = new String[value.Count];
for (int i = 0; i < value.Count; i++)
{
result[i] = value[i];
}
return result;
}
// maps c# list to iTAC c# array
public static List<String> getList(System.String[] value)
{
if (value == null) { return null; }
List<System.String> result = new List<System.String>();
for (int i = 0; i < value.Length; i++)
{
result.Add( value[i]);
}
return result;
}
}
}

View File

@@ -0,0 +1,111 @@
/*
* Copyright (c) 2018 iTAC Software AG, Germany. All Rights Reserved.
*
* This software is protected by copyright. Under no circumstances may any part of this file in any form be copied,
* printed, edited or otherwise distributed, be stored in a retrieval system, or be translated into another language
* without the written permission of iTAC Software AG.
*/
// created 23.11.2018 08:10:38
using System;
using System.Collections.Generic;
using com.itac.oib.linecontrol.contracts.data;
namespace com.itac.oib.linecontrol.contracts.data
{
// source: assembly 3.2.0.152
// source: assembly ASM.AS.OIB.SIPLACEPro.LineControl.Contracts
public class ProductionScheduleElementMapper
{
// used for itac->asm: True
// used for asm->itac: True
// maps iTAC namespace conform type to ASM namespace type
public static Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ProductionScheduleElement get(ProductionScheduleElement itacProductionScheduleElement)
{
if (itacProductionScheduleElement == null) { return null; }
Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ProductionScheduleElement asmProductionScheduleElement = new Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ProductionScheduleElement();
mapItac2Asm(asmProductionScheduleElement, itacProductionScheduleElement);
return asmProductionScheduleElement;
}
public static void mapItac2Asm(Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ProductionScheduleElement asmProductionScheduleElement, ProductionScheduleElement itacProductionScheduleElement)
{
asmProductionScheduleElement.Id = itacProductionScheduleElement.Id;
// complex property nLanes, isArray:False, isGeneric:False
// asmProductionScheduleElement.nLanes = com.itac.oib.linecontrol.contracts.data.ConveyorLanesMapper.get( itacProductionScheduleElement.nLanes);
asmProductionScheduleElement.Recipe = itacProductionScheduleElement.Recipe;
asmProductionScheduleElement.LotSize = itacProductionScheduleElement.LotSize;
asmProductionScheduleElement.OrderId = itacProductionScheduleElement.OrderId;
asmProductionScheduleElement.OrderId2 = itacProductionScheduleElement.OrderId2;
}
// maps iTAC namespace conform array to ASM namespace array
public static Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ProductionScheduleElement[] get(ProductionScheduleElement[] itacProductionScheduleElement)
{
if (itacProductionScheduleElement == null) { return null; }
Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ProductionScheduleElement[] asmProductionScheduleElement = new Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ProductionScheduleElement[itacProductionScheduleElement.Length];
for (int i = 0; i < itacProductionScheduleElement.Length; i++)
{
// to itac array
asmProductionScheduleElement[i] = ProductionScheduleElementMapper.get(itacProductionScheduleElement[i]);
}
return asmProductionScheduleElement;
}
// maps iTAC namespace conform array to ASM namespace list
public static List<Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ProductionScheduleElement> getList(ProductionScheduleElement[] asmProductionScheduleElement)
{
if (asmProductionScheduleElement == null) { return null; }
List<Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ProductionScheduleElement> itacProductionScheduleElement = new List<Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ProductionScheduleElement>();
for (int i = 0; i < asmProductionScheduleElement.Length; i++)
{
itacProductionScheduleElement.Add(ProductionScheduleElementMapper.get(asmProductionScheduleElement[i]));
}
return itacProductionScheduleElement;
}
// map type from ASM namespace to iTAC namespace
public static ProductionScheduleElement get(Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ProductionScheduleElement asmProductionScheduleElement)
{
if (asmProductionScheduleElement == null) { return null; }
ProductionScheduleElement itacProductionScheduleElement = new ProductionScheduleElement();
mapAsm2Itac(asmProductionScheduleElement, itacProductionScheduleElement);
return itacProductionScheduleElement;
}
public static void mapAsm2Itac(Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ProductionScheduleElement asmProductionScheduleElement, ProductionScheduleElement itacProductionScheduleElement)
{
itacProductionScheduleElement.Id = asmProductionScheduleElement.Id;
// itacProductionScheduleElement.nLanes = com.itac.oib.linecontrol.contracts.data.ConveyorLanesMapper.get(asmProductionScheduleElement.nLanes);
// complex asm property nLanes
itacProductionScheduleElement.Recipe = asmProductionScheduleElement.Recipe;
itacProductionScheduleElement.LotSize = asmProductionScheduleElement.LotSize;
itacProductionScheduleElement.OrderId = asmProductionScheduleElement.OrderId;
itacProductionScheduleElement.OrderId2 = asmProductionScheduleElement.OrderId2;
}
// maps ASM namespace conform list to iTAC namespace array
public static ProductionScheduleElement[] getArray(IList<Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ProductionScheduleElement> asmProductionScheduleElement)
{
if (asmProductionScheduleElement == null) { return null; }
ProductionScheduleElement[] itacProductionScheduleElement = new ProductionScheduleElement[asmProductionScheduleElement.Count];
for (int i = 0; i < asmProductionScheduleElement.Count; i++)
{
itacProductionScheduleElement[i] = ProductionScheduleElementMapper.get(asmProductionScheduleElement[i]);
}
return itacProductionScheduleElement;
}
// maps ASM namespace conform array to iTAC namespace array
public static ProductionScheduleElement[] getArray(Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ProductionScheduleElement[] asmProductionScheduleElement)
{
if (asmProductionScheduleElement == null) { return null; }
ProductionScheduleElement[] itacProductionScheduleElement = new ProductionScheduleElement[asmProductionScheduleElement.Length];
for (int i = 0; i < asmProductionScheduleElement.Length; i++)
{
itacProductionScheduleElement[i] = ProductionScheduleElementMapper.get(asmProductionScheduleElement[i]);
}
return itacProductionScheduleElement;
}
}
}

View File

@@ -0,0 +1,107 @@
/*
* Copyright (c) 2018 iTAC Software AG, Germany. All Rights Reserved.
*
* This software is protected by copyright. Under no circumstances may any part of this file in any form be copied,
* printed, edited or otherwise distributed, be stored in a retrieval system, or be translated into another language
* without the written permission of iTAC Software AG.
*/
// created 23.11.2018 08:10:38
// skip property IList, declared in ProductionSchedule
using System;
using System.Collections.Generic;
namespace com.itac.oib.linecontrol.contracts.data
{
// source: assembly 3.2.0.152
// source: assembly ASM.AS.OIB.SIPLACEPro.LineControl.Contracts
public class ProductionScheduleMapper
{
// used for itac->asm: True
// used for asm->itac: True
// maps iTAC namespace conform type to ASM namespace type
public static Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ProductionSchedule get(ProductionSchedule itacProductionSchedule)
{
if (itacProductionSchedule == null) { return null; }
Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ProductionSchedule asmProductionSchedule = new Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ProductionSchedule();
mapItac2Asm(asmProductionSchedule, itacProductionSchedule);
return asmProductionSchedule;
}
public static void mapItac2Asm(Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ProductionSchedule asmProductionSchedule, ProductionSchedule itacProductionSchedule)
{
asmProductionSchedule.Name = itacProductionSchedule.Name;
asmProductionSchedule.lineName = itacProductionSchedule.LineName;
// skip property IList, declared in ProductionSchedule
// complex property ProductionScheduleElements, isArray:False, isGeneric:True
asmProductionSchedule.ProductionScheduleElements = ProductionScheduleElementMapper.getList(itacProductionSchedule.ProductionScheduleElements);
}
// maps iTAC namespace conform array to ASM namespace array
public static Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ProductionSchedule[] get(ProductionSchedule[] itacProductionSchedule)
{
if (itacProductionSchedule == null) { return null; }
Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ProductionSchedule[] asmProductionSchedule = new Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ProductionSchedule[itacProductionSchedule.Length];
for (int i = 0; i < itacProductionSchedule.Length; i++)
{
// to itac array
asmProductionSchedule[i] = ProductionScheduleMapper.get(itacProductionSchedule[i]);
}
return asmProductionSchedule;
}
// maps iTAC namespace conform array to ASM namespace list
public static List<Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ProductionSchedule> getList(ProductionSchedule[] asmProductionSchedule)
{
if (asmProductionSchedule == null) { return null; }
List<Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ProductionSchedule> itacProductionSchedule = new List<Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ProductionSchedule>();
for (int i = 0; i < asmProductionSchedule.Length; i++)
{
itacProductionSchedule.Add(ProductionScheduleMapper.get(asmProductionSchedule[i]));
}
return itacProductionSchedule;
}
// map type from ASM namespace to iTAC namespace
public static ProductionSchedule get(Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ProductionSchedule asmProductionSchedule)
{
if (asmProductionSchedule == null) { return null; }
ProductionSchedule itacProductionSchedule = new ProductionSchedule();
mapAsm2Itac(asmProductionSchedule, itacProductionSchedule);
return itacProductionSchedule;
}
public static void mapAsm2Itac(Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ProductionSchedule asmProductionSchedule, ProductionSchedule itacProductionSchedule)
{
itacProductionSchedule.Name = asmProductionSchedule.Name;
itacProductionSchedule.LineName = asmProductionSchedule.lineName;
// skip property IList, declared in ProductionSchedule
// maps ASM list 2 iTAC array
itacProductionSchedule.ProductionScheduleElements = ProductionScheduleElementMapper.getArray(asmProductionSchedule.ProductionScheduleElements);
}
// maps ASM namespace conform list to iTAC namespace array
public static ProductionSchedule[] getArray(IList<Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ProductionSchedule> asmProductionSchedule)
{
if (asmProductionSchedule == null) { return null; }
ProductionSchedule[] itacProductionSchedule = new ProductionSchedule[asmProductionSchedule.Count];
for (int i = 0; i < asmProductionSchedule.Count; i++)
{
itacProductionSchedule[i] = ProductionScheduleMapper.get(asmProductionSchedule[i]);
}
return itacProductionSchedule;
}
// maps ASM namespace conform array to iTAC namespace array
public static ProductionSchedule[] getArray(Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ProductionSchedule[] asmProductionSchedule)
{
if (asmProductionSchedule == null) { return null; }
ProductionSchedule[] itacProductionSchedule = new ProductionSchedule[asmProductionSchedule.Length];
for (int i = 0; i < asmProductionSchedule.Length; i++)
{
itacProductionSchedule[i] = ProductionScheduleMapper.get(asmProductionSchedule[i]);
}
return itacProductionSchedule;
}
}
}

View File

@@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace com.itac.oib.linecontrol.contracts.data
{
public class StartJobResult
{
public bool result;
public string errorText;
}
}

View File

@@ -0,0 +1,32 @@
/*
* Copyright (c) 2018 iTAC Software AG, Germany. All Rights Reserved.
*
* This software is protected by copyright. Under no circumstances may any part of this file in any form be copied,
* printed, edited or otherwise distributed, be stored in a retrieval system, or be translated into another language
* without the written permission of iTAC Software AG.
*/
// created 23.11.2018 08:10:38
using System;
using System.Collections.Generic;
namespace com.itac.oib.linecontrol.contracts.data
{
// source: assembly 3.2.0.152
// source: assembly ASM.AS.OIB.SIPLACEPro.LineControl.Contracts
public class StationwiseDownloadStateMapper
{
// map asm enum value to itac enum value
public static StationwiseDownloadState get(Asm.As.Oib.SiplacePro.LineControl.Contracts.StationwiseDownloadState stationwiseDownloadState)
{
int intValue = (int)stationwiseDownloadState;
return (StationwiseDownloadState)intValue;
}
// map itac enum value to ASM enum value
public static Asm.As.Oib.SiplacePro.LineControl.Contracts.StationwiseDownloadState get(StationwiseDownloadState stationwiseDownloadState)
{
int intValue = (int)stationwiseDownloadState;
return (Asm.As.Oib.SiplacePro.LineControl.Contracts.StationwiseDownloadState)intValue;
}
}
}

View File

@@ -0,0 +1,32 @@
/*
* Copyright (c) 2018 iTAC Software AG, Germany. All Rights Reserved.
*
* This software is protected by copyright. Under no circumstances may any part of this file in any form be copied,
* printed, edited or otherwise distributed, be stored in a retrieval system, or be translated into another language
* without the written permission of iTAC Software AG.
*/
// created 23.11.2018 08:10:38
using System;
using System.Collections.Generic;
namespace com.itac.oib.linecontrol.contracts.data
{
// source: assembly 3.2.0.152
// source: assembly ASM.AS.OIB.SIPLACEPro.LineControl.Contracts
public class SubsystemMapper
{
// map asm enum value to itac enum value
public static Subsystem get(Asm.As.Oib.SiplacePro.LineControl.Contracts.Subsystem subsystem)
{
int intValue = (int)subsystem;
return (Subsystem)intValue;
}
// map itac enum value to ASM enum value
public static Asm.As.Oib.SiplacePro.LineControl.Contracts.Subsystem get(Subsystem subsystem)
{
int intValue = (int)subsystem;
return (Asm.As.Oib.SiplacePro.LineControl.Contracts.Subsystem)intValue;
}
}
}

View File

@@ -0,0 +1,32 @@
/*
* Copyright (c) 2018 iTAC Software AG, Germany. All Rights Reserved.
*
* This software is protected by copyright. Under no circumstances may any part of this file in any form be copied,
* printed, edited or otherwise distributed, be stored in a retrieval system, or be translated into another language
* without the written permission of iTAC Software AG.
*/
// created 23.11.2018 08:10:38
using System;
using System.Collections.Generic;
namespace com.itac.oib.linecontrol.contracts.data
{
// source: assembly 3.2.0.152
// source: assembly ASM.AS.OIB.SIPLACEPro.LineControl.Contracts
public class UpdateModeComponentLibraryMapper
{
// map asm enum value to itac enum value
public static UpdateModeComponentLibrary get(Asm.As.Oib.SiplacePro.LineControl.Contracts.UpdateModeComponentLibrary updateModeComponentLibrary)
{
int intValue = (int)updateModeComponentLibrary;
return (UpdateModeComponentLibrary)intValue;
}
// map itac enum value to ASM enum value
public static Asm.As.Oib.SiplacePro.LineControl.Contracts.UpdateModeComponentLibrary get(UpdateModeComponentLibrary updateModeComponentLibrary)
{
int intValue = (int)updateModeComponentLibrary;
return (Asm.As.Oib.SiplacePro.LineControl.Contracts.UpdateModeComponentLibrary)intValue;
}
}
}