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,144 @@
/*
* 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 05.11.2018 14:52:23
// skip property DictionaryProxy`2, property in exclude list
// skip property Double, property in exclude list
// skip property Double, property in exclude list
using System;
using System.Collections.Generic;
using com.itac.oib.siplacepro.contracts.types;
namespace com.itac.oib.siplacepro.contracts.data
{
// source: assembly 5.1.0.84
// source: assembly ASM.AS.OIB.SIPLACEPro.Proxy
public class BoardElementMapper
{
// 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.Proxy.Business.Objects.BoardElement get(BoardElement itacBoardElement)
{
if (itacBoardElement == null) { return null; }
Asm.As.Oib.SiplacePro.Proxy.Business.Objects.BoardElement asmBoardElement = new Asm.As.Oib.SiplacePro.Proxy.Business.Objects.BoardElement();
mapItac2Asm(asmBoardElement, itacBoardElement);
return asmBoardElement;
}
public static void mapItac2Asm(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.BoardElement asmBoardElement, BoardElement itacBoardElement)
{
// complex property Board, isArray:False, isGeneric:False
itacBoardElement.Board = com.itac.oib.siplacepro.contracts.data.BoardMapper.get( asmBoardElement.Board);
// complex property BoardSideProduced, isArray:False, isGeneric:False
itacBoardElement.BoardSideProduced = com.itac.oib.siplacepro.contracts.types.BoardSideMapper.get( asmBoardElement.BoardSideProduced);
// complex property BoardOrientation, isArray:False, isGeneric:False
itacBoardElement.BoardOrientation = com.itac.oib.siplacepro.contracts.types.BoardOrientationMapper.get( asmBoardElement.BoardOrientation);
asmBoardElement.ExplicitOffsetX = itacBoardElement.ExplicitOffsetX;
asmBoardElement.ExplicitOffsetY = itacBoardElement.ExplicitOffsetY;
asmBoardElement.ExplicitOffsetZ = itacBoardElement.ExplicitOffsetZ;
// skip property DictionaryProxy`2, property in exclude list
// complex property BoardElementOffsetMode, isArray:False, isGeneric:False
itacBoardElement.BoardElementOffsetMode = com.itac.oib.siplacepro.contracts.types.BoardElementOffsetModeMapper.get( asmBoardElement.BoardElementOffsetMode);
// skip property Double, property in exclude list
// skip property Double, property in exclude list
asmBoardElement.OffsetZ = itacBoardElement.OffsetZ;
// skip readonly property XDimension
// skip readonly property YDimension
// complex property SubLaneId, isArray:False, isGeneric:False
itacBoardElement.SubLaneId = com.itac.oib.siplacepro.contracts.types.ConveyorSubLaneTypeMapper.get( asmBoardElement.SubLaneId);
// skip readonly property AssembledPCBCountString
// skip readonly property AssembledPCBCount
// skip readonly property HasAssembledPCBMarkers
}
// maps iTAC namespace conform array to ASM namespace array
public static Asm.As.Oib.SiplacePro.Proxy.Business.Objects.BoardElement[] get(BoardElement[] itacBoardElement)
{
if (itacBoardElement == null) { return null; }
Asm.As.Oib.SiplacePro.Proxy.Business.Objects.BoardElement[] asmBoardElement = new Asm.As.Oib.SiplacePro.Proxy.Business.Objects.BoardElement[itacBoardElement.Length];
for (int i = 0; i < itacBoardElement.Length; i++)
{
// to itac array
asmBoardElement[i] = BoardElementMapper.get(itacBoardElement[i]);
}
return asmBoardElement;
}
// maps iTAC namespace conform array to ASM namespace list
public static List<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.BoardElement> getList(BoardElement[] asmBoardElement)
{
if (asmBoardElement == null) { return null; }
List<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.BoardElement> itacBoardElement = new List<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.BoardElement>();
for (int i = 0; i < asmBoardElement.Length; i++)
{
itacBoardElement.Add(BoardElementMapper.get(asmBoardElement[i]));
}
return itacBoardElement;
}
// map type from ASM namespace to iTAC namespace
public static BoardElement get(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.BoardElement asmBoardElement)
{
if (asmBoardElement == null) { return null; }
BoardElement itacBoardElement = new BoardElement();
mapAsm2Itac(asmBoardElement, itacBoardElement);
return itacBoardElement;
}
public static void mapAsm2Itac(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.BoardElement asmBoardElement, BoardElement itacBoardElement)
{
itacBoardElement.Board = com.itac.oib.siplacepro.contracts.data.BoardMapper.get(asmBoardElement.Board);
// complex asm property Board
itacBoardElement.BoardSideProduced = com.itac.oib.siplacepro.contracts.types.BoardSideMapper.get(asmBoardElement.BoardSideProduced);
// complex asm property BoardSideProduced
itacBoardElement.BoardOrientation = com.itac.oib.siplacepro.contracts.types.BoardOrientationMapper.get(asmBoardElement.BoardOrientation);
// complex asm property BoardOrientation
itacBoardElement.ExplicitOffsetX = asmBoardElement.ExplicitOffsetX;
itacBoardElement.ExplicitOffsetY = asmBoardElement.ExplicitOffsetY;
itacBoardElement.ExplicitOffsetZ = asmBoardElement.ExplicitOffsetZ;
// skip property DictionaryProxy`2, property in exclude list
itacBoardElement.BoardElementOffsetMode = com.itac.oib.siplacepro.contracts.types.BoardElementOffsetModeMapper.get(asmBoardElement.BoardElementOffsetMode);
// complex asm property BoardElementOffsetMode
// skip property Double, property in exclude list
// skip property Double, property in exclude list
itacBoardElement.OffsetZ = asmBoardElement.OffsetZ;
itacBoardElement.XDimension = asmBoardElement.XDimension;
itacBoardElement.YDimension = asmBoardElement.YDimension;
itacBoardElement.SubLaneId = com.itac.oib.siplacepro.contracts.types.ConveyorSubLaneTypeMapper.get(asmBoardElement.SubLaneId);
// complex asm property SubLaneId
itacBoardElement.AssembledPCBCountString = asmBoardElement.AssembledPCBCountString;
itacBoardElement.AssembledPCBCount = asmBoardElement.AssembledPCBCount;
itacBoardElement.HasAssembledPCBMarkers = asmBoardElement.HasAssembledPCBMarkers;
}
// maps ASM namespace conform list to iTAC namespace array
public static BoardElement[] getArray(IList<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.BoardElement> asmBoardElement)
{
if (asmBoardElement == null) { return null; }
BoardElement[] itacBoardElement = new BoardElement[asmBoardElement.Count];
for (int i = 0; i < asmBoardElement.Count; i++)
{
itacBoardElement[i] = BoardElementMapper.get(asmBoardElement[i]);
}
return itacBoardElement;
}
// maps ASM namespace conform array to iTAC namespace array
public static BoardElement[] getArray(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.BoardElement[] asmBoardElement)
{
if (asmBoardElement == null) { return null; }
BoardElement[] itacBoardElement = new BoardElement[asmBoardElement.Length];
for (int i = 0; i < asmBoardElement.Length; i++)
{
itacBoardElement[i] = BoardElementMapper.get(asmBoardElement[i]);
}
return itacBoardElement;
}
}
}

View File

@@ -0,0 +1,139 @@
/*
* 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 05.11.2018 14:52:23
// skip property NamedObjectBase, declared in Board
// skip property Boolean, property in exclude list
// skip property DictionaryProxy`2, property in exclude list
// skip property EnforcedFiducialCount, declared in Board
// skip property ListProxy`1, property in exclude list
using System;
using System.Collections.Generic;
namespace com.itac.oib.siplacepro.contracts.data
{
// source: assembly 5.1.0.84
// source: assembly ASM.AS.OIB.SIPLACEPro.Proxy
public class BoardMapper
{
// 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.Proxy.Business.Objects.Board get(Board itacBoard)
{
if (itacBoard == null) { return null; }
Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Board asmBoard = new Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Board();
mapItac2Asm(asmBoard, itacBoard);
return asmBoard;
}
public static void mapItac2Asm(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Board asmBoard, Board itacBoard)
{
// skip property NamedObjectBase, declared in Board
asmBoard.Comment = itacBoard.Comment;
// skip property Boolean, property in exclude list
// skip readonly property TopSide
// skip readonly property BottomSide
asmBoard.Length = itacBoard.Length;
asmBoard.Width = itacBoard.Width;
asmBoard.Height = itacBoard.Height;
asmBoard.IsWorkHoldingDevice = itacBoard.IsWorkHoldingDevice;
// skip property DictionaryProxy`2, property in exclude list
asmBoard.UsePanelOffsetForInkspots = itacBoard.UsePanelOffsetForInkspots;
asmBoard.RequiresTraceInformation = itacBoard.RequiresTraceInformation;
asmBoard.RequiresPCBBarcodeForTraceability = itacBoard.RequiresPCBBarcodeForTraceability;
// skip property EnforcedFiducialCount, declared in Board
// skip property ListProxy`1, property in exclude list
// skip readonly property IsAnyPanelInkspotPresent
// skip readonly property Name
// skip readonly property FullPath
}
// maps iTAC namespace conform array to ASM namespace array
public static Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Board[] get(Board[] itacBoard)
{
if (itacBoard == null) { return null; }
Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Board[] asmBoard = new Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Board[itacBoard.Length];
for (int i = 0; i < itacBoard.Length; i++)
{
// to itac array
asmBoard[i] = BoardMapper.get(itacBoard[i]);
}
return asmBoard;
}
// maps iTAC namespace conform array to ASM namespace list
public static List<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Board> getList(Board[] asmBoard)
{
if (asmBoard == null) { return null; }
List<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Board> itacBoard = new List<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Board>();
for (int i = 0; i < asmBoard.Length; i++)
{
itacBoard.Add(BoardMapper.get(asmBoard[i]));
}
return itacBoard;
}
// map type from ASM namespace to iTAC namespace
public static Board get(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Board asmBoard)
{
if (asmBoard == null) { return null; }
Board itacBoard = new Board();
mapAsm2Itac(asmBoard, itacBoard);
return itacBoard;
}
public static void mapAsm2Itac(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Board asmBoard, Board itacBoard)
{
// skip property NamedObjectBase, declared in Board
itacBoard.Comment = asmBoard.Comment;
// skip property Boolean, property in exclude list
itacBoard.TopSide = com.itac.oib.siplacepro.contracts.data.BoardSideMapper.get(asmBoard.TopSide);
// complex asm property TopSide
itacBoard.BottomSide = com.itac.oib.siplacepro.contracts.data.BoardSideMapper.get(asmBoard.BottomSide);
// complex asm property BottomSide
itacBoard.Length = asmBoard.Length;
itacBoard.Width = asmBoard.Width;
itacBoard.Height = asmBoard.Height;
itacBoard.IsWorkHoldingDevice = asmBoard.IsWorkHoldingDevice;
// skip property DictionaryProxy`2, property in exclude list
itacBoard.UsePanelOffsetForInkspots = asmBoard.UsePanelOffsetForInkspots;
itacBoard.RequiresTraceInformation = asmBoard.RequiresTraceInformation;
itacBoard.RequiresPCBBarcodeForTraceability = asmBoard.RequiresPCBBarcodeForTraceability;
// skip property EnforcedFiducialCount, declared in Board
// skip property ListProxy`1, property in exclude list
itacBoard.IsAnyPanelInkspotPresent = asmBoard.IsAnyPanelInkspotPresent;
itacBoard.Name = asmBoard.Name;
itacBoard.FullPath = asmBoard.FullPath;
}
// maps ASM namespace conform list to iTAC namespace array
public static Board[] getArray(IList<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Board> asmBoard)
{
if (asmBoard == null) { return null; }
Board[] itacBoard = new Board[asmBoard.Count];
for (int i = 0; i < asmBoard.Count; i++)
{
itacBoard[i] = BoardMapper.get(asmBoard[i]);
}
return itacBoard;
}
// maps ASM namespace conform array to iTAC namespace array
public static Board[] getArray(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Board[] asmBoard)
{
if (asmBoard == null) { return null; }
Board[] itacBoard = new Board[asmBoard.Length];
for (int i = 0; i < asmBoard.Length; i++)
{
itacBoard[i] = BoardMapper.get(asmBoard[i]);
}
return itacBoard;
}
}
}

View File

@@ -0,0 +1,244 @@
/*
* 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 05.11.2018 14:52:23
// skip property BoardDIB, declared in BoardSide
// skip property FiducialList, property in exclude list
// skip property FiducialList, declared in BoardSide
// skip property ListProxy`1, property in exclude list
// skip property Color, declared in BoardSide
// skip property CoordSys, declared in BoardSide
// skip property String, property in exclude list
// skip property Boolean, property in exclude list
// skip property String, property in exclude list
// skip property Double, property in exclude list
// skip property GerberData, declared in BoardSide
// skip property Boolean, property in exclude list
// skip property SupportPinList, property in exclude list
// skip property Boolean, property in exclude list
// skip property Double, property in exclude list
// skip property Boolean, property in exclude list
// skip property String, property in exclude list
// skip property PositionCorrectionMethod, property in exclude list
// skip property ListProxy`1, property in exclude list
// skip property BoardSideProductionSequence, declared in BoardSide
// skip property BoardWeightClass, property in exclude list
// skip property Int32, property in exclude list
// skip property FiducialList, property in exclude list
// skip property Boolean, property in exclude list
// skip property ListProxy`1, property in exclude list
// skip property ArrayList, property in exclude list
// skip property String, property in exclude list
// skip property FiducialPlacement, declared in BoardSide
// skip property FiducialPlacement, declared in BoardSide
// skip property Boolean, property in exclude list
using System;
using System.Collections.Generic;
using com.itac.oib.siplacepro.contracts.types;
namespace com.itac.oib.siplacepro.contracts.data
{
// source: assembly 5.1.0.84
// source: assembly ASM.AS.OIB.SIPLACEPro.Proxy
public class BoardSideMapper
{
// 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.Proxy.Business.Objects.BoardSide get(BoardSide itacBoardSide)
{
if (itacBoardSide == null) { return null; }
Asm.As.Oib.SiplacePro.Proxy.Business.Objects.BoardSide asmBoardSide = new Asm.As.Oib.SiplacePro.Proxy.Business.Objects.BoardSide();
mapItac2Asm(asmBoardSide, itacBoardSide);
return asmBoardSide;
}
public static void mapItac2Asm(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.BoardSide asmBoardSide, BoardSide itacBoardSide)
{
// skip property BoardDIB, declared in BoardSide
// skip readonly property ChildPanels
// skip property FiducialList, property in exclude list
// skip property FiducialList, declared in BoardSide
asmBoardSide.OffsetZeroPointX = itacBoardSide.OffsetZeroPointX;
asmBoardSide.OffsetZeroPointY = itacBoardSide.OffsetZeroPointY;
asmBoardSide.Omit = itacBoardSide.Omit;
// skip property ListProxy`1, property in exclude list
// skip property Color, declared in BoardSide
// skip property CoordSys, declared in BoardSide
asmBoardSide.Standoff = itacBoardSide.Standoff;
asmBoardSide.PrintFrontLimit = itacBoardSide.PrintFrontLimit;
asmBoardSide.PrintRearLimit = itacBoardSide.PrintRearLimit;
// skip property String, property in exclude list
// skip property Boolean, property in exclude list
// complex property DefaultBoardOrientation, isArray:False, isGeneric:False
itacBoardSide.DefaultBoardOrientation = com.itac.oib.siplacepro.contracts.types.BoardOrientationMapper.get( asmBoardSide.DefaultBoardOrientation);
// skip property String, property in exclude list
// skip property Double, property in exclude list
// skip property GerberData, declared in BoardSide
// skip property Boolean, property in exclude list
// skip property SupportPinList, property in exclude list
// skip property Boolean, property in exclude list
// skip property Double, property in exclude list
// skip property Boolean, property in exclude list
asmBoardSide.BoardGrouping = itacBoardSide.BoardGrouping;
asmBoardSide.ProductGroupName = itacBoardSide.ProductGroupName;
// skip property String, property in exclude list
// skip property PositionCorrectionMethod, property in exclude list
// skip property ListProxy`1, property in exclude list
// skip property BoardSideProductionSequence, declared in BoardSide
asmBoardSide.CountAsAssembledPCB = itacBoardSide.CountAsAssembledPCB;
// skip property BoardWeightClass, property in exclude list
// skip property Int32, property in exclude list
asmBoardSide.BarcodeLocatedOnTheOtherSide = itacBoardSide.BarcodeLocatedOnTheOtherSide;
// skip property FiducialList, property in exclude list
// skip property Boolean, property in exclude list
// skip property ListProxy`1, property in exclude list
asmBoardSide.Mirrored = itacBoardSide.Mirrored;
// skip property ArrayList, property in exclude list
// skip property String, property in exclude list
// skip property FiducialPlacement, declared in BoardSide
// skip readonly property BoardSideType
// skip readonly property SubPanelCount
asmBoardSide.Name = itacBoardSide.Name;
// skip property FiducialPlacement, declared in BoardSide
// skip readonly property TotalPanelCount
// skip property Boolean, property in exclude list
// complex property PlacementList, isArray:False, isGeneric:False
itacBoardSide.PlacementList = com.itac.oib.siplacepro.contracts.data.PlacementListMapper.get( asmBoardSide.PlacementList);
asmBoardSide.IsBoardSideHeavy = itacBoardSide.IsBoardSideHeavy;
}
// maps iTAC namespace conform array to ASM namespace array
public static Asm.As.Oib.SiplacePro.Proxy.Business.Objects.BoardSide[] get(BoardSide[] itacBoardSide)
{
if (itacBoardSide == null) { return null; }
Asm.As.Oib.SiplacePro.Proxy.Business.Objects.BoardSide[] asmBoardSide = new Asm.As.Oib.SiplacePro.Proxy.Business.Objects.BoardSide[itacBoardSide.Length];
for (int i = 0; i < itacBoardSide.Length; i++)
{
// to itac array
asmBoardSide[i] = BoardSideMapper.get(itacBoardSide[i]);
}
return asmBoardSide;
}
// maps iTAC namespace conform array to ASM namespace list
public static List<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.BoardSide> getList(BoardSide[] asmBoardSide)
{
if (asmBoardSide == null) { return null; }
List<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.BoardSide> itacBoardSide = new List<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.BoardSide>();
for (int i = 0; i < asmBoardSide.Length; i++)
{
itacBoardSide.Add(BoardSideMapper.get(asmBoardSide[i]));
}
return itacBoardSide;
}
// map type from ASM namespace to iTAC namespace
public static BoardSide get(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.BoardSide asmBoardSide)
{
if (asmBoardSide == null) { return null; }
BoardSide itacBoardSide = new BoardSide();
mapAsm2Itac(asmBoardSide, itacBoardSide);
return itacBoardSide;
}
public static void mapAsm2Itac(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.BoardSide asmBoardSide, BoardSide itacBoardSide)
{
// skip property BoardDIB, declared in BoardSide
// assign Dictionary(): maps ASM Dictionary 2 iTAC dictionary
itacBoardSide.ChildPanels = getChildPanelsDictionary( asmBoardSide.ChildPanels);
// skip property FiducialList, property in exclude list
// skip property FiducialList, declared in BoardSide
itacBoardSide.OffsetZeroPointX = asmBoardSide.OffsetZeroPointX;
itacBoardSide.OffsetZeroPointY = asmBoardSide.OffsetZeroPointY;
itacBoardSide.Omit = asmBoardSide.Omit;
// skip property ListProxy`1, property in exclude list
// skip property Color, declared in BoardSide
// skip property CoordSys, declared in BoardSide
itacBoardSide.Standoff = asmBoardSide.Standoff;
itacBoardSide.PrintFrontLimit = asmBoardSide.PrintFrontLimit;
itacBoardSide.PrintRearLimit = asmBoardSide.PrintRearLimit;
// skip property String, property in exclude list
// skip property Boolean, property in exclude list
itacBoardSide.DefaultBoardOrientation = com.itac.oib.siplacepro.contracts.types.BoardOrientationMapper.get(asmBoardSide.DefaultBoardOrientation);
// complex asm property DefaultBoardOrientation
// skip property String, property in exclude list
// skip property Double, property in exclude list
// skip property GerberData, declared in BoardSide
// skip property Boolean, property in exclude list
// skip property SupportPinList, property in exclude list
// skip property Boolean, property in exclude list
// skip property Double, property in exclude list
// skip property Boolean, property in exclude list
itacBoardSide.BoardGrouping = asmBoardSide.BoardGrouping;
itacBoardSide.ProductGroupName = asmBoardSide.ProductGroupName;
// skip property String, property in exclude list
// skip property PositionCorrectionMethod, property in exclude list
// skip property ListProxy`1, property in exclude list
// skip property BoardSideProductionSequence, declared in BoardSide
itacBoardSide.CountAsAssembledPCB = asmBoardSide.CountAsAssembledPCB;
// skip property BoardWeightClass, property in exclude list
// skip property Int32, property in exclude list
itacBoardSide.BarcodeLocatedOnTheOtherSide = asmBoardSide.BarcodeLocatedOnTheOtherSide;
// skip property FiducialList, property in exclude list
// skip property Boolean, property in exclude list
// skip property ListProxy`1, property in exclude list
itacBoardSide.Mirrored = asmBoardSide.Mirrored;
// skip property ArrayList, property in exclude list
// skip property String, property in exclude list
// skip property FiducialPlacement, declared in BoardSide
itacBoardSide.BoardSideType = com.itac.oib.siplacepro.contracts.types.BoardSideMapper.get(asmBoardSide.BoardSideType);
// complex asm property BoardSideType
itacBoardSide.SubPanelCount = asmBoardSide.SubPanelCount;
itacBoardSide.Name = asmBoardSide.Name;
// skip property FiducialPlacement, declared in BoardSide
itacBoardSide.TotalPanelCount = asmBoardSide.TotalPanelCount;
// skip property Boolean, property in exclude list
itacBoardSide.PlacementList = com.itac.oib.siplacepro.contracts.data.PlacementListMapper.get(asmBoardSide.PlacementList);
// complex asm property PlacementList
itacBoardSide.IsBoardSideHeavy = asmBoardSide.IsBoardSideHeavy;
}
// maps ASM namespace conform list to iTAC namespace array
public static BoardSide[] getArray(IList<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.BoardSide> asmBoardSide)
{
if (asmBoardSide == null) { return null; }
BoardSide[] itacBoardSide = new BoardSide[asmBoardSide.Count];
for (int i = 0; i < asmBoardSide.Count; i++)
{
itacBoardSide[i] = BoardSideMapper.get(asmBoardSide[i]);
}
return itacBoardSide;
}
// maps ASM namespace conform array to iTAC namespace array
public static BoardSide[] getArray(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.BoardSide[] asmBoardSide)
{
if (asmBoardSide == null) { return null; }
BoardSide[] itacBoardSide = new BoardSide[asmBoardSide.Length];
for (int i = 0; i < asmBoardSide.Length; i++)
{
itacBoardSide[i] = BoardSideMapper.get(asmBoardSide[i]);
}
return itacBoardSide;
}
// original declaration: Asm.As.Oib.SiplacePro.Proxy.Architecture.Collections.DictionaryProxy`2[System.String,Asm.As.Oib.SiplacePro.Proxy.Business.Objects.PanelMatrix]
// generate key / value array for dictionary
// generated dictionary mapper
private static Dictionary<String, PanelMatrix> getChildPanelsDictionary(IDictionary<String, Asm.As.Oib.SiplacePro.Proxy.Business.Objects.PanelMatrix> childPanels)
{
Dictionary <String, PanelMatrix> result = new Dictionary<String, PanelMatrix>();
foreach (String key in childPanels.Keys)
{
result.Add(key, com.itac.oib.siplacepro.contracts.data.PanelMatrixMapper.get(childPanels[key]));
}
return result;
}
}
}

View File

@@ -0,0 +1,197 @@
/*
* 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 05.11.2018 14:52:23
// skip property Boolean, property in exclude list
// skip property IFeederType, declared in Component
// skip property IReserveType, declared in Component
// skip property IFeederType, declared in Component
// skip property String, property in exclude list
// skip property ArrayList, property in exclude list
// skip property ListProxy`1, property in exclude list
// skip (ignore generic type IReserveType)
// skip property ValidationMode, declared in Component
// skip property IReserveType, declared in Component
// skip property DictionaryProxy`2, property in exclude list
// skip property ListProxy`1, property in exclude list
// skip property AlternativeComponentShapeDefinitions, declared in Component
// skip property ComponentShape, property in exclude list
// skip property IReserveType, declared in Component
// skip property IFeederType, declared in Component
using System;
using System.Collections.Generic;
using com.itac.oib.siplacepro.contracts.types;
namespace com.itac.oib.siplacepro.contracts.data
{
// source: assembly 5.1.0.84
// source: assembly ASM.AS.OIB.SIPLACEPro.Proxy
public class ComponentMapper
{
// 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.Proxy.Business.Objects.Component get(Component itacComponent)
{
if (itacComponent == null) { return null; }
Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Component asmComponent = new Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Component();
mapItac2Asm(asmComponent, itacComponent);
return asmComponent;
}
public static void mapItac2Asm(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Component asmComponent, Component itacComponent)
{
asmComponent.Comment = itacComponent.Comment;
asmComponent.Omit = itacComponent.Omit;
asmComponent.CoplanarModule = itacComponent.CoplanarModule;
asmComponent.NonPolarized = itacComponent.NonPolarized;
// skip property Boolean, property in exclude list
asmComponent.DisposeComponent = itacComponent.DisposeComponent;
asmComponent.MeasureCRDL = itacComponent.MeasureCRDL;
asmComponent.RotateCRDL = itacComponent.RotateCRDL;
asmComponent.Place = itacComponent.Place;
asmComponent.Validate = itacComponent.Validate;
asmComponent.WithSpliceDetection = itacComponent.WithSpliceDetection;
asmComponent.WithTrace = itacComponent.WithTrace;
// skip property IFeederType, declared in Component
// skip property IReserveType, declared in Component
// skip property IFeederType, declared in Component
// skip property String, property in exclude list
// skip property ArrayList, property in exclude list
asmComponent.ActionProperties = itacComponent.ActionProperties;
asmComponent.MaxSetupCount = itacComponent.MaxSetupCount;
// skip property ListProxy`1, property in exclude list
// skip (ignore generic type IReserveType)
asmComponent.ComponentsPerReel = itacComponent.ComponentsPerReel;
// skip property ValidationMode, declared in Component
asmComponent.RejectFeeder = itacComponent.RejectFeeder;
asmComponent.DippingActive = itacComponent.DippingActive;
asmComponent.NumberOfRepicks = itacComponent.NumberOfRepicks;
// skip property IReserveType, declared in Component
// skip property DictionaryProxy`2, property in exclude list
asmComponent.Pitch = itacComponent.Pitch;
// complex property ComponentType, isArray:False, isGeneric:False
itacComponent.ComponentType = com.itac.oib.siplacepro.contracts.types.ComponentTypeMapper.get( asmComponent.ComponentType);
asmComponent.ShortageTracking = itacComponent.ShortageTracking;
asmComponent.OrientationCheckByOperator = itacComponent.OrientationCheckByOperator;
asmComponent.MeasurePickupPositionPerPick = itacComponent.MeasurePickupPositionPerPick;
// skip property ListProxy`1, property in exclude list
asmComponent.ScanIndividualBarcode = itacComponent.ScanIndividualBarcode;
// skip property AlternativeComponentShapeDefinitions, declared in Component
// skip property ComponentShape, property in exclude list
// skip property IReserveType, declared in Component
// skip property IFeederType, declared in Component
// skip readonly property Name
// skip readonly property FullPath
}
// maps iTAC namespace conform array to ASM namespace array
public static Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Component[] get(Component[] itacComponent)
{
if (itacComponent == null) { return null; }
Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Component[] asmComponent = new Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Component[itacComponent.Length];
for (int i = 0; i < itacComponent.Length; i++)
{
// to itac array
asmComponent[i] = ComponentMapper.get(itacComponent[i]);
}
return asmComponent;
}
// maps iTAC namespace conform array to ASM namespace list
public static List<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Component> getList(Component[] asmComponent)
{
if (asmComponent == null) { return null; }
List<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Component> itacComponent = new List<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Component>();
for (int i = 0; i < asmComponent.Length; i++)
{
itacComponent.Add(ComponentMapper.get(asmComponent[i]));
}
return itacComponent;
}
// map type from ASM namespace to iTAC namespace
public static Component get(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Component asmComponent)
{
if (asmComponent == null) { return null; }
Component itacComponent = new Component();
mapAsm2Itac(asmComponent, itacComponent);
return itacComponent;
}
public static void mapAsm2Itac(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Component asmComponent, Component itacComponent)
{
itacComponent.Comment = asmComponent.Comment;
itacComponent.Omit = asmComponent.Omit;
itacComponent.CoplanarModule = asmComponent.CoplanarModule;
itacComponent.NonPolarized = asmComponent.NonPolarized;
// skip property Boolean, property in exclude list
itacComponent.DisposeComponent = asmComponent.DisposeComponent;
itacComponent.MeasureCRDL = asmComponent.MeasureCRDL;
itacComponent.RotateCRDL = asmComponent.RotateCRDL;
itacComponent.Place = asmComponent.Place;
itacComponent.Validate = asmComponent.Validate;
itacComponent.WithSpliceDetection = asmComponent.WithSpliceDetection;
itacComponent.WithTrace = asmComponent.WithTrace;
// skip property IFeederType, declared in Component
// skip property IReserveType, declared in Component
// skip property IFeederType, declared in Component
// skip property String, property in exclude list
// skip property ArrayList, property in exclude list
itacComponent.ActionProperties = asmComponent.ActionProperties;
itacComponent.MaxSetupCount = asmComponent.MaxSetupCount;
// skip property ListProxy`1, property in exclude list
// skip (ignore generic type IReserveType)
itacComponent.ComponentsPerReel = asmComponent.ComponentsPerReel;
// skip property ValidationMode, declared in Component
itacComponent.RejectFeeder = asmComponent.RejectFeeder;
itacComponent.DippingActive = asmComponent.DippingActive;
itacComponent.NumberOfRepicks = asmComponent.NumberOfRepicks;
// skip property IReserveType, declared in Component
// skip property DictionaryProxy`2, property in exclude list
itacComponent.Pitch = asmComponent.Pitch;
itacComponent.ComponentType = com.itac.oib.siplacepro.contracts.types.ComponentTypeMapper.get(asmComponent.ComponentType);
// complex asm property ComponentType
itacComponent.ShortageTracking = asmComponent.ShortageTracking;
itacComponent.OrientationCheckByOperator = asmComponent.OrientationCheckByOperator;
itacComponent.MeasurePickupPositionPerPick = asmComponent.MeasurePickupPositionPerPick;
// skip property ListProxy`1, property in exclude list
itacComponent.ScanIndividualBarcode = asmComponent.ScanIndividualBarcode;
// skip property AlternativeComponentShapeDefinitions, declared in Component
// skip property ComponentShape, property in exclude list
// skip property IReserveType, declared in Component
// skip property IFeederType, declared in Component
itacComponent.Name = asmComponent.Name;
itacComponent.FullPath = asmComponent.FullPath;
}
// maps ASM namespace conform list to iTAC namespace array
public static Component[] getArray(IList<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Component> asmComponent)
{
if (asmComponent == null) { return null; }
Component[] itacComponent = new Component[asmComponent.Count];
for (int i = 0; i < asmComponent.Count; i++)
{
itacComponent[i] = ComponentMapper.get(asmComponent[i]);
}
return itacComponent;
}
// maps ASM namespace conform array to iTAC namespace array
public static Component[] getArray(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Component[] asmComponent)
{
if (asmComponent == null) { return null; }
Component[] itacComponent = new Component[asmComponent.Length];
for (int i = 0; i < asmComponent.Length; i++)
{
itacComponent[i] = ComponentMapper.get(asmComponent[i]);
}
return itacComponent;
}
}
}

View File

@@ -0,0 +1,183 @@
/*
* 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 05.11.2018 14:52:23
// skip property Double, property in exclude list
// skip property Double, property in exclude list
// skip property Double, property in exclude list
// skip property Double, property in exclude list
// skip property Color, declared in ComponentPlacement
// skip property String, property in exclude list
// skip property String, property in exclude list
// skip property Boolean, property in exclude list
// skip property Int32, property in exclude list
// skip property Boolean, property in exclude list
// skip (ignore generic type AlternativeComponent)
// skip property PlacementOffset, property in exclude list
// skip property Boolean, property in exclude list
// skip property Boolean, property in exclude list
// skip property DictionaryProxy`2, property in exclude list
// skip property ComponentShape, property in exclude list
// skip property Boolean, property in exclude list
// skip property String, property in exclude list
// skip property String, property in exclude list
// skip property String[], property in exclude list
// skip property Double, property in exclude list
// skip property Double, property in exclude list
// skip property Double, property in exclude list
// skip property Double, property in exclude list
// skip property Double, property in exclude list
using System;
using System.Collections.Generic;
namespace com.itac.oib.siplacepro.contracts.data
{
// source: assembly 5.1.0.84
// source: assembly ASM.AS.OIB.SIPLACEPro.Proxy
public class ComponentPlacementMapper
{
// 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.Proxy.Business.Objects.ComponentPlacement get(ComponentPlacement itacComponentPlacement)
{
if (itacComponentPlacement == null) { return null; }
Asm.As.Oib.SiplacePro.Proxy.Business.Objects.ComponentPlacement asmComponentPlacement = new Asm.As.Oib.SiplacePro.Proxy.Business.Objects.ComponentPlacement();
mapItac2Asm(asmComponentPlacement, itacComponentPlacement);
return asmComponentPlacement;
}
public static void mapItac2Asm(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.ComponentPlacement asmComponentPlacement, ComponentPlacement itacComponentPlacement)
{
// skip property Double, property in exclude list
// skip property Double, property in exclude list
// skip property Double, property in exclude list
// complex property Component, isArray:False, isGeneric:False
itacComponentPlacement.Component = com.itac.oib.siplacepro.contracts.data.ComponentMapper.get( asmComponentPlacement.Component);
// skip property Double, property in exclude list
// skip property Color, declared in ComponentPlacement
asmComponentPlacement.Level = itacComponentPlacement.Level;
// skip property String, property in exclude list
// skip property String, property in exclude list
asmComponentPlacement.ComponentDescription = itacComponentPlacement.ComponentDescription;
// skip property Boolean, property in exclude list
// skip property Int32, property in exclude list
// skip property Boolean, property in exclude list
// skip (ignore generic type AlternativeComponent)
// skip property PlacementOffset, property in exclude list
// skip property Boolean, property in exclude list
// skip property Boolean, property in exclude list
// skip property DictionaryProxy`2, property in exclude list
// skip property ComponentShape, property in exclude list
asmComponentPlacement.Omit = itacComponentPlacement.Omit;
// skip property Boolean, property in exclude list
// skip property String, property in exclude list
// skip property String, property in exclude list
// skip property String[], property in exclude list
asmComponentPlacement.RefDesignator = itacComponentPlacement.RefDesignator;
// skip property Double, property in exclude list
// skip property Double, property in exclude list
// skip property Double, property in exclude list
// skip property Double, property in exclude list
// skip property Double, property in exclude list
}
// maps iTAC namespace conform array to ASM namespace array
public static Asm.As.Oib.SiplacePro.Proxy.Business.Objects.ComponentPlacement[] get(ComponentPlacement[] itacComponentPlacement)
{
if (itacComponentPlacement == null) { return null; }
Asm.As.Oib.SiplacePro.Proxy.Business.Objects.ComponentPlacement[] asmComponentPlacement = new Asm.As.Oib.SiplacePro.Proxy.Business.Objects.ComponentPlacement[itacComponentPlacement.Length];
for (int i = 0; i < itacComponentPlacement.Length; i++)
{
// to itac array
asmComponentPlacement[i] = ComponentPlacementMapper.get(itacComponentPlacement[i]);
}
return asmComponentPlacement;
}
// maps iTAC namespace conform array to ASM namespace list
public static List<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.ComponentPlacement> getList(ComponentPlacement[] asmComponentPlacement)
{
if (asmComponentPlacement == null) { return null; }
List<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.ComponentPlacement> itacComponentPlacement = new List<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.ComponentPlacement>();
for (int i = 0; i < asmComponentPlacement.Length; i++)
{
itacComponentPlacement.Add(ComponentPlacementMapper.get(asmComponentPlacement[i]));
}
return itacComponentPlacement;
}
// map type from ASM namespace to iTAC namespace
public static ComponentPlacement get(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.ComponentPlacement asmComponentPlacement)
{
if (asmComponentPlacement == null) { return null; }
ComponentPlacement itacComponentPlacement = new ComponentPlacement();
mapAsm2Itac(asmComponentPlacement, itacComponentPlacement);
return itacComponentPlacement;
}
public static void mapAsm2Itac(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.ComponentPlacement asmComponentPlacement, ComponentPlacement itacComponentPlacement)
{
// skip property Double, property in exclude list
// skip property Double, property in exclude list
// skip property Double, property in exclude list
itacComponentPlacement.Component = com.itac.oib.siplacepro.contracts.data.ComponentMapper.get(asmComponentPlacement.Component);
// complex asm property Component
// skip property Double, property in exclude list
// skip property Color, declared in ComponentPlacement
itacComponentPlacement.Level = asmComponentPlacement.Level;
// skip property String, property in exclude list
// skip property String, property in exclude list
itacComponentPlacement.ComponentDescription = asmComponentPlacement.ComponentDescription;
// skip property Boolean, property in exclude list
// skip property Int32, property in exclude list
// skip property Boolean, property in exclude list
// skip (ignore generic type AlternativeComponent)
// skip property PlacementOffset, property in exclude list
// skip property Boolean, property in exclude list
// skip property Boolean, property in exclude list
// skip property DictionaryProxy`2, property in exclude list
// skip property ComponentShape, property in exclude list
itacComponentPlacement.Omit = asmComponentPlacement.Omit;
// skip property Boolean, property in exclude list
// skip property String, property in exclude list
// skip property String, property in exclude list
// skip property String[], property in exclude list
itacComponentPlacement.RefDesignator = asmComponentPlacement.RefDesignator;
// skip property Double, property in exclude list
// skip property Double, property in exclude list
// skip property Double, property in exclude list
// skip property Double, property in exclude list
// skip property Double, property in exclude list
}
// maps ASM namespace conform list to iTAC namespace array
public static ComponentPlacement[] getArray(IList<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.ComponentPlacement> asmComponentPlacement)
{
if (asmComponentPlacement == null) { return null; }
ComponentPlacement[] itacComponentPlacement = new ComponentPlacement[asmComponentPlacement.Count];
for (int i = 0; i < asmComponentPlacement.Count; i++)
{
itacComponentPlacement[i] = ComponentPlacementMapper.get(asmComponentPlacement[i]);
}
return itacComponentPlacement;
}
// maps ASM namespace conform array to iTAC namespace array
public static ComponentPlacement[] getArray(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.ComponentPlacement[] asmComponentPlacement)
{
if (asmComponentPlacement == null) { return null; }
ComponentPlacement[] itacComponentPlacement = new ComponentPlacement[asmComponentPlacement.Length];
for (int i = 0; i < asmComponentPlacement.Length; i++)
{
itacComponentPlacement[i] = ComponentPlacementMapper.get(asmComponentPlacement[i]);
}
return itacComponentPlacement;
}
}
}

View File

@@ -0,0 +1,108 @@
/*
* 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 05.11.2018 14:52:23
using System;
using System.Collections.Generic;
namespace com.itac.oib.siplacepro.contracts.data
{
// source: assembly 5.1.0.84
// source: assembly ASM.AS.OIB.SIPLACEPro.Proxy
public class DownloadDataMapper
{
// 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.Proxy.Business.Objects.DownloadData get(DownloadData itacDownloadData)
{
if (itacDownloadData == null) { return null; }
Asm.As.Oib.SiplacePro.Proxy.Business.Objects.DownloadData asmDownloadData = new Asm.As.Oib.SiplacePro.Proxy.Business.Objects.DownloadData();
mapItac2Asm(asmDownloadData, itacDownloadData);
return asmDownloadData;
}
public static void mapItac2Asm(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.DownloadData asmDownloadData, DownloadData itacDownloadData)
{
// complex property LastDownloadRecipeData1, isArray:False, isGeneric:False
itacDownloadData.LastDownloadRecipeData1 = com.itac.oib.siplacepro.contracts.data.LastDownloadRecipeDataMapper.get( asmDownloadData.LastDownloadRecipeData1);
// complex property LastDownloadRecipeData2, isArray:False, isGeneric:False
itacDownloadData.LastDownloadRecipeData2 = com.itac.oib.siplacepro.contracts.data.LastDownloadRecipeDataMapper.get( asmDownloadData.LastDownloadRecipeData2);
// complex property LastDownloadSetupData, isArray:False, isGeneric:False
itacDownloadData.LastDownloadSetupData = com.itac.oib.siplacepro.contracts.data.LastDownloadSetupDataMapper.get( asmDownloadData.LastDownloadSetupData);
}
// maps iTAC namespace conform array to ASM namespace array
public static Asm.As.Oib.SiplacePro.Proxy.Business.Objects.DownloadData[] get(DownloadData[] itacDownloadData)
{
if (itacDownloadData == null) { return null; }
Asm.As.Oib.SiplacePro.Proxy.Business.Objects.DownloadData[] asmDownloadData = new Asm.As.Oib.SiplacePro.Proxy.Business.Objects.DownloadData[itacDownloadData.Length];
for (int i = 0; i < itacDownloadData.Length; i++)
{
// to itac array
asmDownloadData[i] = DownloadDataMapper.get(itacDownloadData[i]);
}
return asmDownloadData;
}
// maps iTAC namespace conform array to ASM namespace list
public static List<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.DownloadData> getList(DownloadData[] asmDownloadData)
{
if (asmDownloadData == null) { return null; }
List<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.DownloadData> itacDownloadData = new List<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.DownloadData>();
for (int i = 0; i < asmDownloadData.Length; i++)
{
itacDownloadData.Add(DownloadDataMapper.get(asmDownloadData[i]));
}
return itacDownloadData;
}
// map type from ASM namespace to iTAC namespace
public static DownloadData get(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.DownloadData asmDownloadData)
{
if (asmDownloadData == null) { return null; }
DownloadData itacDownloadData = new DownloadData();
mapAsm2Itac(asmDownloadData, itacDownloadData);
return itacDownloadData;
}
public static void mapAsm2Itac(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.DownloadData asmDownloadData, DownloadData itacDownloadData)
{
itacDownloadData.LastDownloadRecipeData1 = com.itac.oib.siplacepro.contracts.data.LastDownloadRecipeDataMapper.get(asmDownloadData.LastDownloadRecipeData1);
// complex asm property LastDownloadRecipeData1
itacDownloadData.LastDownloadRecipeData2 = com.itac.oib.siplacepro.contracts.data.LastDownloadRecipeDataMapper.get(asmDownloadData.LastDownloadRecipeData2);
// complex asm property LastDownloadRecipeData2
itacDownloadData.LastDownloadSetupData = com.itac.oib.siplacepro.contracts.data.LastDownloadSetupDataMapper.get(asmDownloadData.LastDownloadSetupData);
// complex asm property LastDownloadSetupData
}
// maps ASM namespace conform list to iTAC namespace array
public static DownloadData[] getArray(IList<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.DownloadData> asmDownloadData)
{
if (asmDownloadData == null) { return null; }
DownloadData[] itacDownloadData = new DownloadData[asmDownloadData.Count];
for (int i = 0; i < asmDownloadData.Count; i++)
{
itacDownloadData[i] = DownloadDataMapper.get(asmDownloadData[i]);
}
return itacDownloadData;
}
// maps ASM namespace conform array to iTAC namespace array
public static DownloadData[] getArray(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.DownloadData[] asmDownloadData)
{
if (asmDownloadData == null) { return null; }
DownloadData[] itacDownloadData = new DownloadData[asmDownloadData.Length];
for (int i = 0; i < asmDownloadData.Length; i++)
{
itacDownloadData[i] = DownloadDataMapper.get(asmDownloadData[i]);
}
return itacDownloadData;
}
}
}

View File

@@ -0,0 +1,9 @@
/*
* 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 05.11.2018 14:52:23
// this type should be skipped, check class BaseMapper, dictionary ignoreTypeNames

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 05.11.2018 14:52:23
// skip property ConveyorShuttleOption, property in exclude list
// skip property ConveyorShuttleOption, property in exclude list
using System;
using System.Collections.Generic;
using com.itac.oib.siplacepro.contracts.types;
namespace com.itac.oib.siplacepro.contracts.data
{
// source: assembly 5.1.0.84
// source: assembly ASM.AS.OIB.SIPLACEPro.Proxy
public class GenericDeviceInLineMapper
{
// 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.Proxy.Business.Objects.GenericDeviceInLine get(GenericDeviceInLine itacGenericDeviceInLine)
{
if (itacGenericDeviceInLine == null) { return null; }
Asm.As.Oib.SiplacePro.Proxy.Business.Objects.GenericDeviceInLine asmGenericDeviceInLine = new Asm.As.Oib.SiplacePro.Proxy.Business.Objects.GenericDeviceInLine();
mapItac2Asm(asmGenericDeviceInLine, itacGenericDeviceInLine);
return asmGenericDeviceInLine;
}
public static void mapItac2Asm(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.GenericDeviceInLine asmGenericDeviceInLine, GenericDeviceInLine itacGenericDeviceInLine)
{
// complex property Device, isArray:False, isGeneric:False
itacGenericDeviceInLine.Device = com.itac.oib.siplacepro.contracts.data.GenericLineDeviceMapper.get( asmGenericDeviceInLine.Device);
asmGenericDeviceInLine.InvertedOrientationInLine = itacGenericDeviceInLine.InvertedOrientationInLine;
// skip readonly property DeviceInLineSpecies
// skip property ConveyorShuttleOption, property in exclude list
// skip property ConveyorShuttleOption, property in exclude list
// skip readonly property DeviceSoftwareVersion
// skip readonly property DeviceTypeName
// skip readonly property DeviceHostName
// skip readonly property DeviceIPAddress
asmGenericDeviceInLine.ConveyorLaneCount = itacGenericDeviceInLine.ConveyorLaneCount;
}
// maps iTAC namespace conform array to ASM namespace array
public static Asm.As.Oib.SiplacePro.Proxy.Business.Objects.GenericDeviceInLine[] get(GenericDeviceInLine[] itacGenericDeviceInLine)
{
if (itacGenericDeviceInLine == null) { return null; }
Asm.As.Oib.SiplacePro.Proxy.Business.Objects.GenericDeviceInLine[] asmGenericDeviceInLine = new Asm.As.Oib.SiplacePro.Proxy.Business.Objects.GenericDeviceInLine[itacGenericDeviceInLine.Length];
for (int i = 0; i < itacGenericDeviceInLine.Length; i++)
{
// to itac array
asmGenericDeviceInLine[i] = GenericDeviceInLineMapper.get(itacGenericDeviceInLine[i]);
}
return asmGenericDeviceInLine;
}
// maps iTAC namespace conform array to ASM namespace list
public static List<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.GenericDeviceInLine> getList(GenericDeviceInLine[] asmGenericDeviceInLine)
{
if (asmGenericDeviceInLine == null) { return null; }
List<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.GenericDeviceInLine> itacGenericDeviceInLine = new List<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.GenericDeviceInLine>();
for (int i = 0; i < asmGenericDeviceInLine.Length; i++)
{
itacGenericDeviceInLine.Add(GenericDeviceInLineMapper.get(asmGenericDeviceInLine[i]));
}
return itacGenericDeviceInLine;
}
// map type from ASM namespace to iTAC namespace
public static GenericDeviceInLine get(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.GenericDeviceInLine asmGenericDeviceInLine)
{
if (asmGenericDeviceInLine == null) { return null; }
GenericDeviceInLine itacGenericDeviceInLine = new GenericDeviceInLine();
mapAsm2Itac(asmGenericDeviceInLine, itacGenericDeviceInLine);
return itacGenericDeviceInLine;
}
public static void mapAsm2Itac(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.GenericDeviceInLine asmGenericDeviceInLine, GenericDeviceInLine itacGenericDeviceInLine)
{
itacGenericDeviceInLine.Device = com.itac.oib.siplacepro.contracts.data.GenericLineDeviceMapper.get(asmGenericDeviceInLine.Device);
// complex asm property Device
itacGenericDeviceInLine.InvertedOrientationInLine = asmGenericDeviceInLine.InvertedOrientationInLine;
itacGenericDeviceInLine.DeviceInLineSpecies = com.itac.oib.siplacepro.contracts.types.DeviceInLineSpeciesMapper.get(asmGenericDeviceInLine.DeviceInLineSpecies);
// complex asm property DeviceInLineSpecies
// skip property ConveyorShuttleOption, property in exclude list
// skip property ConveyorShuttleOption, property in exclude list
itacGenericDeviceInLine.DeviceSoftwareVersion = asmGenericDeviceInLine.DeviceSoftwareVersion;
itacGenericDeviceInLine.DeviceTypeName = asmGenericDeviceInLine.DeviceTypeName;
itacGenericDeviceInLine.DeviceHostName = asmGenericDeviceInLine.DeviceHostName;
itacGenericDeviceInLine.DeviceIPAddress = asmGenericDeviceInLine.DeviceIPAddress;
itacGenericDeviceInLine.ConveyorLaneCount = asmGenericDeviceInLine.ConveyorLaneCount;
}
// maps ASM namespace conform list to iTAC namespace array
public static GenericDeviceInLine[] getArray(IList<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.GenericDeviceInLine> asmGenericDeviceInLine)
{
if (asmGenericDeviceInLine == null) { return null; }
GenericDeviceInLine[] itacGenericDeviceInLine = new GenericDeviceInLine[asmGenericDeviceInLine.Count];
for (int i = 0; i < asmGenericDeviceInLine.Count; i++)
{
itacGenericDeviceInLine[i] = GenericDeviceInLineMapper.get(asmGenericDeviceInLine[i]);
}
return itacGenericDeviceInLine;
}
// maps ASM namespace conform array to iTAC namespace array
public static GenericDeviceInLine[] getArray(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.GenericDeviceInLine[] asmGenericDeviceInLine)
{
if (asmGenericDeviceInLine == null) { return null; }
GenericDeviceInLine[] itacGenericDeviceInLine = new GenericDeviceInLine[asmGenericDeviceInLine.Length];
for (int i = 0; i < asmGenericDeviceInLine.Length; i++)
{
itacGenericDeviceInLine[i] = GenericDeviceInLineMapper.get(asmGenericDeviceInLine[i]);
}
return itacGenericDeviceInLine;
}
}
}

View File

@@ -0,0 +1,152 @@
/*
* 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 05.11.2018 14:52:23
// skip property DictionaryProxy`2, property in exclude list
// skip property ListProxy`1, property in exclude list
// skip property DictionaryProxy`2, property in exclude list
// skip property DictionaryProxy`2, property in exclude list
// skip property Color, declared in GenericLineDevice
using System;
using System.Collections.Generic;
using com.itac.oib.siplacepro.contracts.types;
namespace com.itac.oib.siplacepro.contracts.data
{
// source: assembly 5.1.0.84
// source: assembly ASM.AS.OIB.SIPLACEPro.Proxy
public class GenericLineDeviceMapper
{
// 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.Proxy.Business.Objects.GenericLineDevice get(GenericLineDevice itacGenericLineDevice)
{
if (itacGenericLineDevice == null) { return null; }
Asm.As.Oib.SiplacePro.Proxy.Business.Objects.GenericLineDevice asmGenericLineDevice = new Asm.As.Oib.SiplacePro.Proxy.Business.Objects.GenericLineDevice();
mapItac2Asm(asmGenericLineDevice, itacGenericLineDevice);
return asmGenericLineDevice;
}
public static void mapItac2Asm(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.GenericLineDevice asmGenericLineDevice, GenericLineDevice itacGenericLineDevice)
{
asmGenericLineDevice.IPName = itacGenericLineDevice.IPName;
asmGenericLineDevice.IPAddress = itacGenericLineDevice.IPAddress;
// skip property DictionaryProxy`2, property in exclude list
asmGenericLineDevice.SoftwareVersion = itacGenericLineDevice.SoftwareVersion;
// skip property ListProxy`1, property in exclude list
// complex property DeviceType, isArray:False, isGeneric:False
itacGenericLineDevice.DeviceType = com.itac.oib.siplacepro.contracts.types.GenericLineDeviceTypeMapper.get( asmGenericLineDevice.DeviceType);
asmGenericLineDevice.SizeX = itacGenericLineDevice.SizeX;
asmGenericLineDevice.SizeY = itacGenericLineDevice.SizeY;
asmGenericLineDevice.SizeZ = itacGenericLineDevice.SizeZ;
asmGenericLineDevice.OffsetZeroPointX = itacGenericLineDevice.OffsetZeroPointX;
asmGenericLineDevice.OffsetZeroPointY = itacGenericLineDevice.OffsetZeroPointY;
asmGenericLineDevice.OffsetZeroPointZ = itacGenericLineDevice.OffsetZeroPointZ;
// skip property DictionaryProxy`2, property in exclude list
// skip property DictionaryProxy`2, property in exclude list
// skip property Color, declared in GenericLineDevice
asmGenericLineDevice.IPAddressString = itacGenericLineDevice.IPAddressString;
asmGenericLineDevice.OverallSizeX = itacGenericLineDevice.OverallSizeX;
asmGenericLineDevice.OverallSizeY = itacGenericLineDevice.OverallSizeY;
asmGenericLineDevice.ConveyorSizeY = itacGenericLineDevice.ConveyorSizeY;
asmGenericLineDevice.InputConveyorSizeX = itacGenericLineDevice.InputConveyorSizeX;
asmGenericLineDevice.OutputConveyorSizeX = itacGenericLineDevice.OutputConveyorSizeX;
// skip readonly property DeviceTypeName
// skip readonly property Name
// skip readonly property FullPath
}
// maps iTAC namespace conform array to ASM namespace array
public static Asm.As.Oib.SiplacePro.Proxy.Business.Objects.GenericLineDevice[] get(GenericLineDevice[] itacGenericLineDevice)
{
if (itacGenericLineDevice == null) { return null; }
Asm.As.Oib.SiplacePro.Proxy.Business.Objects.GenericLineDevice[] asmGenericLineDevice = new Asm.As.Oib.SiplacePro.Proxy.Business.Objects.GenericLineDevice[itacGenericLineDevice.Length];
for (int i = 0; i < itacGenericLineDevice.Length; i++)
{
// to itac array
asmGenericLineDevice[i] = GenericLineDeviceMapper.get(itacGenericLineDevice[i]);
}
return asmGenericLineDevice;
}
// maps iTAC namespace conform array to ASM namespace list
public static List<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.GenericLineDevice> getList(GenericLineDevice[] asmGenericLineDevice)
{
if (asmGenericLineDevice == null) { return null; }
List<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.GenericLineDevice> itacGenericLineDevice = new List<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.GenericLineDevice>();
for (int i = 0; i < asmGenericLineDevice.Length; i++)
{
itacGenericLineDevice.Add(GenericLineDeviceMapper.get(asmGenericLineDevice[i]));
}
return itacGenericLineDevice;
}
// map type from ASM namespace to iTAC namespace
public static GenericLineDevice get(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.GenericLineDevice asmGenericLineDevice)
{
if (asmGenericLineDevice == null) { return null; }
GenericLineDevice itacGenericLineDevice = new GenericLineDevice();
mapAsm2Itac(asmGenericLineDevice, itacGenericLineDevice);
return itacGenericLineDevice;
}
public static void mapAsm2Itac(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.GenericLineDevice asmGenericLineDevice, GenericLineDevice itacGenericLineDevice)
{
itacGenericLineDevice.IPName = asmGenericLineDevice.IPName;
itacGenericLineDevice.IPAddress = asmGenericLineDevice.IPAddress;
// skip property DictionaryProxy`2, property in exclude list
itacGenericLineDevice.SoftwareVersion = asmGenericLineDevice.SoftwareVersion;
// skip property ListProxy`1, property in exclude list
itacGenericLineDevice.DeviceType = com.itac.oib.siplacepro.contracts.types.GenericLineDeviceTypeMapper.get(asmGenericLineDevice.DeviceType);
// complex asm property DeviceType
itacGenericLineDevice.SizeX = asmGenericLineDevice.SizeX;
itacGenericLineDevice.SizeY = asmGenericLineDevice.SizeY;
itacGenericLineDevice.SizeZ = asmGenericLineDevice.SizeZ;
itacGenericLineDevice.OffsetZeroPointX = asmGenericLineDevice.OffsetZeroPointX;
itacGenericLineDevice.OffsetZeroPointY = asmGenericLineDevice.OffsetZeroPointY;
itacGenericLineDevice.OffsetZeroPointZ = asmGenericLineDevice.OffsetZeroPointZ;
// skip property DictionaryProxy`2, property in exclude list
// skip property DictionaryProxy`2, property in exclude list
// skip property Color, declared in GenericLineDevice
itacGenericLineDevice.IPAddressString = asmGenericLineDevice.IPAddressString;
itacGenericLineDevice.OverallSizeX = asmGenericLineDevice.OverallSizeX;
itacGenericLineDevice.OverallSizeY = asmGenericLineDevice.OverallSizeY;
itacGenericLineDevice.ConveyorSizeY = asmGenericLineDevice.ConveyorSizeY;
itacGenericLineDevice.InputConveyorSizeX = asmGenericLineDevice.InputConveyorSizeX;
itacGenericLineDevice.OutputConveyorSizeX = asmGenericLineDevice.OutputConveyorSizeX;
itacGenericLineDevice.DeviceTypeName = asmGenericLineDevice.DeviceTypeName;
itacGenericLineDevice.Name = asmGenericLineDevice.Name;
itacGenericLineDevice.FullPath = asmGenericLineDevice.FullPath;
}
// maps ASM namespace conform list to iTAC namespace array
public static GenericLineDevice[] getArray(IList<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.GenericLineDevice> asmGenericLineDevice)
{
if (asmGenericLineDevice == null) { return null; }
GenericLineDevice[] itacGenericLineDevice = new GenericLineDevice[asmGenericLineDevice.Count];
for (int i = 0; i < asmGenericLineDevice.Count; i++)
{
itacGenericLineDevice[i] = GenericLineDeviceMapper.get(asmGenericLineDevice[i]);
}
return itacGenericLineDevice;
}
// maps ASM namespace conform array to iTAC namespace array
public static GenericLineDevice[] getArray(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.GenericLineDevice[] asmGenericLineDevice)
{
if (asmGenericLineDevice == null) { return null; }
GenericLineDevice[] itacGenericLineDevice = new GenericLineDevice[asmGenericLineDevice.Length];
for (int i = 0; i < asmGenericLineDevice.Length; i++)
{
itacGenericLineDevice[i] = GenericLineDeviceMapper.get(asmGenericLineDevice[i]);
}
return itacGenericLineDevice;
}
}
}

View File

@@ -0,0 +1,135 @@
/*
* 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 05.11.2018 14:52:23
// skip property DictionaryProxy`2, property in exclude list
// skip property ListProxy`1, property in exclude list
// skip property BoardWidthRestriction, property in exclude list
// skip property ListProxy`1, property in exclude list
// skip property LineTopology, declared in Line
using System;
using System.Collections.Generic;
using com.itac.oib.siplacepro.contracts.types;
namespace com.itac.oib.siplacepro.contracts.data
{
// source: assembly 5.1.0.84
// source: assembly ASM.AS.OIB.SIPLACEPro.Proxy
public class LineMapper
{
// 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.Proxy.Business.Objects.Line get(Line itacLine)
{
if (itacLine == null) { return null; }
Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Line asmLine = new Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Line();
mapItac2Asm(asmLine, itacLine);
return asmLine;
}
public static void mapItac2Asm(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Line asmLine, Line itacLine)
{
// skip readonly property StationInLines
// complex property StationInLineOptions, isArray:False, isGeneric:False
itacLine.StationInLineOptions = com.itac.oib.siplacepro.contracts.types.StationInLineOptionsMapper.get( asmLine.StationInLineOptions);
// complex property LineHandlingOptions, isArray:False, isGeneric:False
itacLine.LineHandlingOptions = com.itac.oib.siplacepro.contracts.types.LineHandlingOptionsMapper.get( asmLine.LineHandlingOptions);
// skip property DictionaryProxy`2, property in exclude list
// skip property ListProxy`1, property in exclude list
// skip property BoardWidthRestriction, property in exclude list
// skip property ListProxy`1, property in exclude list
// skip readonly property PrintersInLine
// skip readonly property GenericDevicesInLine
// skip property LineTopology, declared in Line
asmLine.IsBoardWidthRestrictionEnabled = itacLine.IsBoardWidthRestrictionEnabled;
// skip readonly property Name
// skip readonly property FullPath
}
// maps iTAC namespace conform array to ASM namespace array
public static Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Line[] get(Line[] itacLine)
{
if (itacLine == null) { return null; }
Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Line[] asmLine = new Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Line[itacLine.Length];
for (int i = 0; i < itacLine.Length; i++)
{
// to itac array
asmLine[i] = LineMapper.get(itacLine[i]);
}
return asmLine;
}
// maps iTAC namespace conform array to ASM namespace list
public static List<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Line> getList(Line[] asmLine)
{
if (asmLine == null) { return null; }
List<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Line> itacLine = new List<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Line>();
for (int i = 0; i < asmLine.Length; i++)
{
itacLine.Add(LineMapper.get(asmLine[i]));
}
return itacLine;
}
// map type from ASM namespace to iTAC namespace
public static Line get(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Line asmLine)
{
if (asmLine == null) { return null; }
Line itacLine = new Line();
mapAsm2Itac(asmLine, itacLine);
return itacLine;
}
public static void mapAsm2Itac(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Line asmLine, Line itacLine)
{
// maps ASM list 2 iTAC array
itacLine.StationInLines = StationInLineMapper.getArray(asmLine.StationInLines);
itacLine.StationInLineOptions = com.itac.oib.siplacepro.contracts.types.StationInLineOptionsMapper.get(asmLine.StationInLineOptions);
// complex asm property StationInLineOptions
itacLine.LineHandlingOptions = com.itac.oib.siplacepro.contracts.types.LineHandlingOptionsMapper.get(asmLine.LineHandlingOptions);
// complex asm property LineHandlingOptions
// skip property DictionaryProxy`2, property in exclude list
// skip property ListProxy`1, property in exclude list
// skip property BoardWidthRestriction, property in exclude list
// skip property ListProxy`1, property in exclude list
// maps ASM list 2 iTAC array
itacLine.PrintersInLine = PrinterInLineMapper.getArray(asmLine.PrintersInLine);
// maps ASM list 2 iTAC array
itacLine.GenericDevicesInLine = GenericDeviceInLineMapper.getArray(asmLine.GenericDevicesInLine);
// skip property LineTopology, declared in Line
itacLine.IsBoardWidthRestrictionEnabled = asmLine.IsBoardWidthRestrictionEnabled;
itacLine.Name = asmLine.Name;
itacLine.FullPath = asmLine.FullPath;
}
// maps ASM namespace conform list to iTAC namespace array
public static Line[] getArray(IList<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Line> asmLine)
{
if (asmLine == null) { return null; }
Line[] itacLine = new Line[asmLine.Count];
for (int i = 0; i < asmLine.Count; i++)
{
itacLine[i] = LineMapper.get(asmLine[i]);
}
return itacLine;
}
// maps ASM namespace conform array to iTAC namespace array
public static Line[] getArray(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Line[] asmLine)
{
if (asmLine == null) { return null; }
Line[] itacLine = new Line[asmLine.Length];
for (int i = 0; i < asmLine.Length; i++)
{
itacLine[i] = LineMapper.get(asmLine[i]);
}
return itacLine;
}
}
}

View File

@@ -0,0 +1,114 @@
/*
* 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 26.11.2018 14:30:03
// skip property ListProxy`1, property in exclude list
// skip property ListProxy`1, property in exclude list
// skip property ListProxy`1, property in exclude list
// skip property ListProxy`1, property in exclude list
// skip property ListProxy`1, property in exclude list
using System;
using System.Collections.Generic;
namespace com.itac.oib.siplacepro.contracts.data
{
// source: assembly 5.3.0.60
// source: assembly ASM.AS.OIB.SIPLACEPro.Proxy
public class LocationMapper
{
// used for itac->asm: True
// used for asm->itac: True
// maps iTAC namespace conform type to ASM namespace type
public static void mapItac2Asm(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Location asmLocation, Location itacLocation)
{
// skip property ListProxy`1, property in exclude list
// skip readonly property MCLocationID
// skip property ListProxy`1, property in exclude list
// skip property ListProxy`1, property in exclude list
// skip property ListProxy`1, property in exclude list
// skip readonly property SubID
// skip readonly property LocationType
// skip property ListProxy`1, property in exclude list
// skip readonly property SupportsTableDeconfiguration
}
// maps iTAC namespace conform array to ASM namespace array
public static Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Location[] get(Location[] itacLocation)
{
if (itacLocation == null) { return null; }
Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Location[] asmLocation = new Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Location[itacLocation.Length];
for (int i = 0; i < itacLocation.Length; i++)
{
// to itac array
// asmLocation[i] = LocationMapper.get(itacLocation[i]);
}
return asmLocation;
}
// maps iTAC namespace conform array to ASM namespace list
public static List<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Location> getList(Location[] asmLocation)
{
if (asmLocation == null) { return null; }
List<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Location> itacLocation = new List<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Location>();
for (int i = 0; i < asmLocation.Length; i++)
{
// itacLocation.Add(LocationMapper.get(asmLocation[i]));
}
return itacLocation;
}
// map type from ASM namespace to iTAC namespace
public static Location get(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Location asmLocation)
{
if (asmLocation == null) { return null; }
Location itacLocation = new Location();
mapAsm2Itac(asmLocation, itacLocation);
return itacLocation;
}
public static void mapAsm2Itac(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Location asmLocation, Location itacLocation)
{
// skip property ListProxy`1, property in exclude list
itacLocation.MCLocationID = asmLocation.MCLocationID;
// skip property ListProxy`1, property in exclude list
// skip property ListProxy`1, property in exclude list
// skip property ListProxy`1, property in exclude list
itacLocation.SubID = asmLocation.SubID;
itacLocation.LocationType = com.itac.oib.siplacepro.contracts.types.LocationMapper.get(asmLocation.LocationType);
// complex asm property LocationType
// skip property ListProxy`1, property in exclude list
itacLocation.SupportsTableDeconfiguration = asmLocation.SupportsTableDeconfiguration;
}
// maps ASM namespace conform list to iTAC namespace array
public static Location[] getArray(IList<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Location> asmLocation)
{
if (asmLocation == null) { return null; }
Location[] itacLocation = new Location[asmLocation.Count];
for (int i = 0; i < asmLocation.Count; i++)
{
itacLocation[i] = LocationMapper.get(asmLocation[i]);
}
return itacLocation;
}
// maps ASM namespace conform array to iTAC namespace array
public static Location[] getArray(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Location[] asmLocation)
{
if (asmLocation == null) { return null; }
Location[] itacLocation = new Location[asmLocation.Length];
for (int i = 0; i < asmLocation.Length; i++)
{
itacLocation[i] = LocationMapper.get(asmLocation[i]);
}
return itacLocation;
}
}
}

View File

@@ -0,0 +1,209 @@
/*
* 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 05.11.2018 14:52:23
// skip property Double, property in exclude list
// skip property BoardSide, property in exclude list
// skip property String, property in exclude list
// skip property FiducialPlacement, declared in Panel
// skip property Boolean, property in exclude list
// skip property Color, declared in Panel
// skip property CoordSys, declared in Panel
// skip property FiducialList, property in exclude list
// skip property ListProxy`1, property in exclude list
// skip property Boolean, property in exclude list
// skip property Int32, property in exclude list
// skip property PositionCorrectionMethod, property in exclude list
// skip property FiducialList, property in exclude list
// skip property Double, property in exclude list
// skip property Double, property in exclude list
// skip property Double, property in exclude list
// skip property PolygonPoint, declared in Panel
// skip property ArrayList, property in exclude list
// skip property FiducialPlacement, declared in Panel
// skip property Boolean, property in exclude list
using System;
using System.Collections.Generic;
namespace com.itac.oib.siplacepro.contracts.data
{
// source: assembly 5.1.0.84
// source: assembly ASM.AS.OIB.SIPLACEPro.Proxy
public class PanelMapper
{
// 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.Proxy.Business.Objects.Panel get(Panel itacPanel)
{
if (itacPanel == null) { return null; }
Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Panel asmPanel = new Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Panel();
mapItac2Asm(asmPanel, itacPanel);
return asmPanel;
}
public static void mapItac2Asm(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Panel asmPanel, Panel itacPanel)
{
// skip property Double, property in exclude list
// skip property BoardSide, property in exclude list
asmPanel.IsHidden = itacPanel.IsHidden;
// skip readonly property PanelOwner
// skip readonly property FullHeirarchyName
asmPanel.MatrixRow = itacPanel.MatrixRow;
asmPanel.MatrixColumn = itacPanel.MatrixColumn;
// skip readonly property MatrixRowDisplay
// skip readonly property MatrixColumnDisplay
asmPanel.Name = itacPanel.Name;
asmPanel.Omit = itacPanel.Omit;
// skip property String, property in exclude list
// skip property FiducialPlacement, declared in Panel
// skip property Boolean, property in exclude list
// skip readonly property ChildPanels
// skip property Color, declared in Panel
// skip property CoordSys, declared in Panel
asmPanel.OffsetZeroPointX = itacPanel.OffsetZeroPointX;
asmPanel.OffsetZeroPointY = itacPanel.OffsetZeroPointY;
// skip property FiducialList, property in exclude list
// skip property ListProxy`1, property in exclude list
asmPanel.Height = itacPanel.Height;
// skip property Boolean, property in exclude list
// skip property Int32, property in exclude list
// skip property PositionCorrectionMethod, property in exclude list
asmPanel.CountAsAssembledPCB = itacPanel.CountAsAssembledPCB;
// skip property FiducialList, property in exclude list
// skip property Double, property in exclude list
// skip property Double, property in exclude list
// skip property Double, property in exclude list
asmPanel.SizeX = itacPanel.SizeX;
asmPanel.SizeY = itacPanel.SizeY;
// skip property PolygonPoint, declared in Panel
asmPanel.Mirrored = itacPanel.Mirrored;
// skip property ArrayList, property in exclude list
// skip property FiducialPlacement, declared in Panel
// skip property Boolean, property in exclude list
// complex property PlacementList, isArray:False, isGeneric:False
itacPanel.PlacementList = com.itac.oib.siplacepro.contracts.data.PlacementListMapper.get( asmPanel.PlacementList);
}
// maps iTAC namespace conform array to ASM namespace array
public static Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Panel[] get(Panel[] itacPanel)
{
if (itacPanel == null) { return null; }
Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Panel[] asmPanel = new Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Panel[itacPanel.Length];
for (int i = 0; i < itacPanel.Length; i++)
{
// to itac array
asmPanel[i] = PanelMapper.get(itacPanel[i]);
}
return asmPanel;
}
// maps iTAC namespace conform array to ASM namespace list
public static List<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Panel> getList(Panel[] asmPanel)
{
if (asmPanel == null) { return null; }
List<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Panel> itacPanel = new List<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Panel>();
for (int i = 0; i < asmPanel.Length; i++)
{
itacPanel.Add(PanelMapper.get(asmPanel[i]));
}
return itacPanel;
}
// map type from ASM namespace to iTAC namespace
public static Panel get(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Panel asmPanel)
{
if (asmPanel == null) { return null; }
Panel itacPanel = new Panel();
mapAsm2Itac(asmPanel, itacPanel);
return itacPanel;
}
public static void mapAsm2Itac(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Panel asmPanel, Panel itacPanel)
{
// skip property Double, property in exclude list
// skip property BoardSide, property in exclude list
itacPanel.IsHidden = asmPanel.IsHidden;
itacPanel.PanelOwner = com.itac.oib.siplacepro.contracts.data.PanelMapper.get(asmPanel.PanelOwner);
// complex asm property PanelOwner
itacPanel.FullHeirarchyName = asmPanel.FullHeirarchyName;
itacPanel.MatrixRow = asmPanel.MatrixRow;
itacPanel.MatrixColumn = asmPanel.MatrixColumn;
itacPanel.MatrixRowDisplay = asmPanel.MatrixRowDisplay;
itacPanel.MatrixColumnDisplay = asmPanel.MatrixColumnDisplay;
itacPanel.Name = asmPanel.Name;
itacPanel.Omit = asmPanel.Omit;
// skip property String, property in exclude list
// skip property FiducialPlacement, declared in Panel
// skip property Boolean, property in exclude list
// assign Dictionary(): maps ASM Dictionary 2 iTAC dictionary
itacPanel.ChildPanels = getChildPanelsDictionary( asmPanel.ChildPanels);
// skip property Color, declared in Panel
// skip property CoordSys, declared in Panel
itacPanel.OffsetZeroPointX = asmPanel.OffsetZeroPointX;
itacPanel.OffsetZeroPointY = asmPanel.OffsetZeroPointY;
// skip property FiducialList, property in exclude list
// skip property ListProxy`1, property in exclude list
itacPanel.Height = asmPanel.Height;
// skip property Boolean, property in exclude list
// skip property Int32, property in exclude list
// skip property PositionCorrectionMethod, property in exclude list
itacPanel.CountAsAssembledPCB = asmPanel.CountAsAssembledPCB;
// skip property FiducialList, property in exclude list
// skip property Double, property in exclude list
// skip property Double, property in exclude list
// skip property Double, property in exclude list
itacPanel.SizeX = asmPanel.SizeX;
itacPanel.SizeY = asmPanel.SizeY;
// skip property PolygonPoint, declared in Panel
itacPanel.Mirrored = asmPanel.Mirrored;
// skip property ArrayList, property in exclude list
// skip property FiducialPlacement, declared in Panel
// skip property Boolean, property in exclude list
itacPanel.PlacementList = com.itac.oib.siplacepro.contracts.data.PlacementListMapper.get(asmPanel.PlacementList);
// complex asm property PlacementList
}
// maps ASM namespace conform list to iTAC namespace array
public static Panel[] getArray(IList<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Panel> asmPanel)
{
if (asmPanel == null) { return null; }
Panel[] itacPanel = new Panel[asmPanel.Count];
for (int i = 0; i < asmPanel.Count; i++)
{
itacPanel[i] = PanelMapper.get(asmPanel[i]);
}
return itacPanel;
}
// maps ASM namespace conform array to iTAC namespace array
public static Panel[] getArray(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Panel[] asmPanel)
{
if (asmPanel == null) { return null; }
Panel[] itacPanel = new Panel[asmPanel.Length];
for (int i = 0; i < asmPanel.Length; i++)
{
itacPanel[i] = PanelMapper.get(asmPanel[i]);
}
return itacPanel;
}
// original declaration: Asm.As.Oib.SiplacePro.Proxy.Architecture.Collections.DictionaryProxy`2[System.String,Asm.As.Oib.SiplacePro.Proxy.Business.Objects.PanelMatrix]
// generate key / value array for dictionary
// generated dictionary mapper
private static Dictionary<String, PanelMatrix> getChildPanelsDictionary(IDictionary<String, Asm.As.Oib.SiplacePro.Proxy.Business.Objects.PanelMatrix> childPanels)
{
Dictionary <String, PanelMatrix> result = new Dictionary<String, PanelMatrix>();
foreach (String key in childPanels.Keys)
{
result.Add(key, com.itac.oib.siplacepro.contracts.data.PanelMatrixMapper.get(childPanels[key]));
}
return result;
}
}
}

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 05.11.2018 14:52:23
// skip property DictionaryProxy`2, property in exclude list
// skip property DictionaryProxy`2, property in exclude list
// skip property DictionaryProxy`2, property in exclude list
// skip property Double, property in exclude list
// skip property Double, property in exclude list
using System;
using System.Collections.Generic;
namespace com.itac.oib.siplacepro.contracts.data
{
// source: assembly 5.1.0.84
// source: assembly ASM.AS.OIB.SIPLACEPro.Proxy
public class PanelMatrixMapper
{
// 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.Proxy.Business.Objects.PanelMatrix get(PanelMatrix itacPanelMatrix)
{
if (itacPanelMatrix == null) { return null; }
Asm.As.Oib.SiplacePro.Proxy.Business.Objects.PanelMatrix asmPanelMatrix = new Asm.As.Oib.SiplacePro.Proxy.Business.Objects.PanelMatrix();
mapItac2Asm(asmPanelMatrix, itacPanelMatrix);
return asmPanelMatrix;
}
public static void mapItac2Asm(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.PanelMatrix asmPanelMatrix, PanelMatrix itacPanelMatrix)
{
// skip readonly property Panel
asmPanelMatrix.Rows = itacPanelMatrix.Rows;
asmPanelMatrix.Columns = itacPanelMatrix.Columns;
asmPanelMatrix.OriginalPanelPosX = itacPanelMatrix.OriginalPanelPosX;
asmPanelMatrix.OriginalPanelPosY = itacPanelMatrix.OriginalPanelPosY;
// skip property DictionaryProxy`2, property in exclude list
// skip property DictionaryProxy`2, property in exclude list
// skip property DictionaryProxy`2, property in exclude list
asmPanelMatrix.DuplicateId = itacPanelMatrix.DuplicateId;
asmPanelMatrix.RowsWithNameUpdate = itacPanelMatrix.RowsWithNameUpdate;
asmPanelMatrix.ColumnsWithNameUpdate = itacPanelMatrix.ColumnsWithNameUpdate;
asmPanelMatrix.Name = itacPanelMatrix.Name;
// skip property Double, property in exclude list
// skip property Double, property in exclude list
}
// maps iTAC namespace conform array to ASM namespace array
public static Asm.As.Oib.SiplacePro.Proxy.Business.Objects.PanelMatrix[] get(PanelMatrix[] itacPanelMatrix)
{
if (itacPanelMatrix == null) { return null; }
Asm.As.Oib.SiplacePro.Proxy.Business.Objects.PanelMatrix[] asmPanelMatrix = new Asm.As.Oib.SiplacePro.Proxy.Business.Objects.PanelMatrix[itacPanelMatrix.Length];
for (int i = 0; i < itacPanelMatrix.Length; i++)
{
// to itac array
asmPanelMatrix[i] = PanelMatrixMapper.get(itacPanelMatrix[i]);
}
return asmPanelMatrix;
}
// maps iTAC namespace conform array to ASM namespace list
public static List<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.PanelMatrix> getList(PanelMatrix[] asmPanelMatrix)
{
if (asmPanelMatrix == null) { return null; }
List<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.PanelMatrix> itacPanelMatrix = new List<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.PanelMatrix>();
for (int i = 0; i < asmPanelMatrix.Length; i++)
{
itacPanelMatrix.Add(PanelMatrixMapper.get(asmPanelMatrix[i]));
}
return itacPanelMatrix;
}
// map type from ASM namespace to iTAC namespace
public static PanelMatrix get(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.PanelMatrix asmPanelMatrix)
{
if (asmPanelMatrix == null) { return null; }
PanelMatrix itacPanelMatrix = new PanelMatrix();
mapAsm2Itac(asmPanelMatrix, itacPanelMatrix);
return itacPanelMatrix;
}
public static void mapAsm2Itac(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.PanelMatrix asmPanelMatrix, PanelMatrix itacPanelMatrix)
{
itacPanelMatrix.Panel = com.itac.oib.siplacepro.contracts.data.PanelMapper.get(asmPanelMatrix.Panel);
// complex asm property Panel
itacPanelMatrix.Rows = asmPanelMatrix.Rows;
itacPanelMatrix.Columns = asmPanelMatrix.Columns;
itacPanelMatrix.OriginalPanelPosX = asmPanelMatrix.OriginalPanelPosX;
itacPanelMatrix.OriginalPanelPosY = asmPanelMatrix.OriginalPanelPosY;
// skip property DictionaryProxy`2, property in exclude list
// skip property DictionaryProxy`2, property in exclude list
// skip property DictionaryProxy`2, property in exclude list
itacPanelMatrix.DuplicateId = asmPanelMatrix.DuplicateId;
itacPanelMatrix.RowsWithNameUpdate = asmPanelMatrix.RowsWithNameUpdate;
itacPanelMatrix.ColumnsWithNameUpdate = asmPanelMatrix.ColumnsWithNameUpdate;
itacPanelMatrix.Name = asmPanelMatrix.Name;
// skip property Double, property in exclude list
// skip property Double, property in exclude list
}
// maps ASM namespace conform list to iTAC namespace array
public static PanelMatrix[] getArray(IList<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.PanelMatrix> asmPanelMatrix)
{
if (asmPanelMatrix == null) { return null; }
PanelMatrix[] itacPanelMatrix = new PanelMatrix[asmPanelMatrix.Count];
for (int i = 0; i < asmPanelMatrix.Count; i++)
{
itacPanelMatrix[i] = PanelMatrixMapper.get(asmPanelMatrix[i]);
}
return itacPanelMatrix;
}
// maps ASM namespace conform array to iTAC namespace array
public static PanelMatrix[] getArray(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.PanelMatrix[] asmPanelMatrix)
{
if (asmPanelMatrix == null) { return null; }
PanelMatrix[] itacPanelMatrix = new PanelMatrix[asmPanelMatrix.Length];
for (int i = 0; i < asmPanelMatrix.Length; i++)
{
itacPanelMatrix[i] = PanelMatrixMapper.get(asmPanelMatrix[i]);
}
return itacPanelMatrix;
}
}
}

View File

@@ -0,0 +1,136 @@
/*
* 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 17.12.2018 16:32:31
// skip property DictionaryProxy`2, property in exclude list
// skip (ignore generic type Precedence)
// skip property Blob, declared in PlacementList
// skip property ListProxy`1, property in exclude list
using System;
using System.Collections.Generic;
namespace com.itac.oib.siplacepro.contracts.data
{
// source: assembly 5.1.0.84
// source: assembly ASM.AS.OIB.SIPLACEPro.Proxy
public class PlacementListMapper
{
// 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.Proxy.Business.Objects.PlacementList get(PlacementList itacPlacementList)
{
if (itacPlacementList == null) { return null; }
Asm.As.Oib.SiplacePro.Proxy.Business.Objects.PlacementList asmPlacementList = new Asm.As.Oib.SiplacePro.Proxy.Business.Objects.PlacementList();
mapItac2Asm(asmPlacementList, itacPlacementList);
return asmPlacementList;
}
public static void mapItac2Asm(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.PlacementList asmPlacementList, PlacementList itacPlacementList)
{
asmPlacementList.Comment = itacPlacementList.Comment;
// skip readonly property ComponentPlacements
// skip property DictionaryProxy`2, property in exclude list
// skip (ignore generic type Precedence)
// skip property Blob, declared in PlacementList
// skip property ListProxy`1, property in exclude list
// skip readonly property NumberOfPlacements
// complex property CurrentBoardSideTemp, isArray:False, isGeneric:False
asmPlacementList.CurrentBoardSideTemp = com.itac.oib.siplacepro.contracts.data.BoardSideMapper.get( itacPlacementList.CurrentBoardSideTemp);
// skip readonly property Name
// skip readonly property FullPath
}
// maps iTAC namespace conform array to ASM namespace array
public static Asm.As.Oib.SiplacePro.Proxy.Business.Objects.PlacementList[] get(PlacementList[] itacPlacementList)
{
if (itacPlacementList == null) { return null; }
Asm.As.Oib.SiplacePro.Proxy.Business.Objects.PlacementList[] asmPlacementList = new Asm.As.Oib.SiplacePro.Proxy.Business.Objects.PlacementList[itacPlacementList.Length];
for (int i = 0; i < itacPlacementList.Length; i++)
{
// to itac array
asmPlacementList[i] = PlacementListMapper.get(itacPlacementList[i]);
}
return asmPlacementList;
}
// maps iTAC namespace conform array to ASM namespace list
public static List<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.PlacementList> getList(PlacementList[] asmPlacementList)
{
if (asmPlacementList == null) { return null; }
List<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.PlacementList> itacPlacementList = new List<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.PlacementList>();
for (int i = 0; i < asmPlacementList.Length; i++)
{
itacPlacementList.Add(PlacementListMapper.get(asmPlacementList[i]));
}
return itacPlacementList;
}
// map type from ASM namespace to iTAC namespace
public static PlacementList get(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.PlacementList asmPlacementList)
{
if (asmPlacementList == null) { return null; }
PlacementList itacPlacementList = new PlacementList();
mapAsm2Itac(asmPlacementList, itacPlacementList);
return itacPlacementList;
}
public static void mapAsm2Itac(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.PlacementList asmPlacementList, PlacementList itacPlacementList)
{
itacPlacementList.Comment = asmPlacementList.Comment;
// assign Dictionary(): maps ASM Dictionary 2 iTAC dictionary
itacPlacementList.ComponentPlacements = getComponentPlacementsDictionary( asmPlacementList.ComponentPlacements);
// skip property DictionaryProxy`2, property in exclude list
// skip (ignore generic type Precedence)
// skip property Blob, declared in PlacementList
// skip property ListProxy`1, property in exclude list
itacPlacementList.NumberOfPlacements = asmPlacementList.NumberOfPlacements;
itacPlacementList.CurrentBoardSideTemp = com.itac.oib.siplacepro.contracts.data.BoardSideMapper.get(asmPlacementList.CurrentBoardSideTemp);
// complex asm property CurrentBoardSideTemp
itacPlacementList.Name = asmPlacementList.Name;
itacPlacementList.FullPath = asmPlacementList.FullPath;
}
// maps ASM namespace conform list to iTAC namespace array
public static PlacementList[] getArray(IList<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.PlacementList> asmPlacementList)
{
if (asmPlacementList == null) { return null; }
PlacementList[] itacPlacementList = new PlacementList[asmPlacementList.Count];
for (int i = 0; i < asmPlacementList.Count; i++)
{
itacPlacementList[i] = PlacementListMapper.get(asmPlacementList[i]);
}
return itacPlacementList;
}
// maps ASM namespace conform array to iTAC namespace array
public static PlacementList[] getArray(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.PlacementList[] asmPlacementList)
{
if (asmPlacementList == null) { return null; }
PlacementList[] itacPlacementList = new PlacementList[asmPlacementList.Length];
for (int i = 0; i < asmPlacementList.Length; i++)
{
itacPlacementList[i] = PlacementListMapper.get(asmPlacementList[i]);
}
return itacPlacementList;
}
// original declaration: Asm.As.Oib.SiplacePro.Proxy.Architecture.Collections.DictionaryProxy`2[System.String,Asm.As.Oib.SiplacePro.Proxy.Business.Objects.ComponentPlacement]
// generate key / value array for dictionary
// generated dictionary mapper
private static Dictionary<String, ComponentPlacement> getComponentPlacementsDictionary(IDictionary<String, Asm.As.Oib.SiplacePro.Proxy.Business.Objects.ComponentPlacement> componentPlacements)
{
Dictionary <String, ComponentPlacement> result = new Dictionary<String, ComponentPlacement>();
foreach (String key in componentPlacements.Keys)
{
result.Add(key, com.itac.oib.siplacepro.contracts.data.ComponentPlacementMapper.get(componentPlacements[key]));
}
return result;
}
}
}

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 05.11.2018 14:52:23
// skip property ConveyorShuttleOption, property in exclude list
// skip property ConveyorShuttleOption, property in exclude list
using System;
using System.Collections.Generic;
using com.itac.oib.siplacepro.contracts.types;
namespace com.itac.oib.siplacepro.contracts.data
{
// source: assembly 5.1.0.84
// source: assembly ASM.AS.OIB.SIPLACEPro.Proxy
public class PrinterInLineMapper
{
// 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.Proxy.Business.Objects.PrinterInLine get(PrinterInLine itacPrinterInLine)
{
if (itacPrinterInLine == null) { return null; }
Asm.As.Oib.SiplacePro.Proxy.Business.Objects.PrinterInLine asmPrinterInLine = new Asm.As.Oib.SiplacePro.Proxy.Business.Objects.PrinterInLine();
mapItac2Asm(asmPrinterInLine, itacPrinterInLine);
return asmPrinterInLine;
}
public static void mapItac2Asm(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.PrinterInLine asmPrinterInLine, PrinterInLine itacPrinterInLine)
{
asmPrinterInLine.InvertedOrientationInLine = itacPrinterInLine.InvertedOrientationInLine;
// skip readonly property DeviceInLineSpecies
// skip property ConveyorShuttleOption, property in exclude list
// skip property ConveyorShuttleOption, property in exclude list
// complex property Printer, isArray:False, isGeneric:False
itacPrinterInLine.Printer = com.itac.oib.siplacepro.contracts.data.PrinterMapper.get( asmPrinterInLine.Printer);
// skip readonly property PrinterSoftwareVersion
// skip readonly property PrinterTypeName
// skip readonly property PrinterHostName
// skip readonly property PrinterIPAddress
asmPrinterInLine.ConveyorLaneCount = itacPrinterInLine.ConveyorLaneCount;
}
// maps iTAC namespace conform array to ASM namespace array
public static Asm.As.Oib.SiplacePro.Proxy.Business.Objects.PrinterInLine[] get(PrinterInLine[] itacPrinterInLine)
{
if (itacPrinterInLine == null) { return null; }
Asm.As.Oib.SiplacePro.Proxy.Business.Objects.PrinterInLine[] asmPrinterInLine = new Asm.As.Oib.SiplacePro.Proxy.Business.Objects.PrinterInLine[itacPrinterInLine.Length];
for (int i = 0; i < itacPrinterInLine.Length; i++)
{
// to itac array
asmPrinterInLine[i] = PrinterInLineMapper.get(itacPrinterInLine[i]);
}
return asmPrinterInLine;
}
// maps iTAC namespace conform array to ASM namespace list
public static List<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.PrinterInLine> getList(PrinterInLine[] asmPrinterInLine)
{
if (asmPrinterInLine == null) { return null; }
List<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.PrinterInLine> itacPrinterInLine = new List<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.PrinterInLine>();
for (int i = 0; i < asmPrinterInLine.Length; i++)
{
itacPrinterInLine.Add(PrinterInLineMapper.get(asmPrinterInLine[i]));
}
return itacPrinterInLine;
}
// map type from ASM namespace to iTAC namespace
public static PrinterInLine get(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.PrinterInLine asmPrinterInLine)
{
if (asmPrinterInLine == null) { return null; }
PrinterInLine itacPrinterInLine = new PrinterInLine();
mapAsm2Itac(asmPrinterInLine, itacPrinterInLine);
return itacPrinterInLine;
}
public static void mapAsm2Itac(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.PrinterInLine asmPrinterInLine, PrinterInLine itacPrinterInLine)
{
itacPrinterInLine.InvertedOrientationInLine = asmPrinterInLine.InvertedOrientationInLine;
itacPrinterInLine.DeviceInLineSpecies = com.itac.oib.siplacepro.contracts.types.DeviceInLineSpeciesMapper.get(asmPrinterInLine.DeviceInLineSpecies);
// complex asm property DeviceInLineSpecies
// skip property ConveyorShuttleOption, property in exclude list
// skip property ConveyorShuttleOption, property in exclude list
itacPrinterInLine.Printer = com.itac.oib.siplacepro.contracts.data.PrinterMapper.get(asmPrinterInLine.Printer);
// complex asm property Printer
itacPrinterInLine.PrinterSoftwareVersion = asmPrinterInLine.PrinterSoftwareVersion;
itacPrinterInLine.PrinterTypeName = asmPrinterInLine.PrinterTypeName;
itacPrinterInLine.PrinterHostName = asmPrinterInLine.PrinterHostName;
itacPrinterInLine.PrinterIPAddress = asmPrinterInLine.PrinterIPAddress;
itacPrinterInLine.ConveyorLaneCount = asmPrinterInLine.ConveyorLaneCount;
}
// maps ASM namespace conform list to iTAC namespace array
public static PrinterInLine[] getArray(IList<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.PrinterInLine> asmPrinterInLine)
{
if (asmPrinterInLine == null) { return null; }
PrinterInLine[] itacPrinterInLine = new PrinterInLine[asmPrinterInLine.Count];
for (int i = 0; i < asmPrinterInLine.Count; i++)
{
itacPrinterInLine[i] = PrinterInLineMapper.get(asmPrinterInLine[i]);
}
return itacPrinterInLine;
}
// maps ASM namespace conform array to iTAC namespace array
public static PrinterInLine[] getArray(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.PrinterInLine[] asmPrinterInLine)
{
if (asmPrinterInLine == null) { return null; }
PrinterInLine[] itacPrinterInLine = new PrinterInLine[asmPrinterInLine.Length];
for (int i = 0; i < asmPrinterInLine.Length; i++)
{
itacPrinterInLine[i] = PrinterInLineMapper.get(asmPrinterInLine[i]);
}
return itacPrinterInLine;
}
}
}

View File

@@ -0,0 +1,125 @@
/*
* 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 05.11.2018 14:52:23
// skip property DictionaryProxy`2, property in exclude list
// skip property ListProxy`1, property in exclude list
// skip property ArrayList, property in exclude list
using System;
using System.Collections.Generic;
namespace com.itac.oib.siplacepro.contracts.data
{
// source: assembly 5.1.0.84
// source: assembly ASM.AS.OIB.SIPLACEPro.Proxy
public class PrinterMapper
{
// 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.Proxy.Business.Objects.Printer get(Printer itacPrinter)
{
if (itacPrinter == null) { return null; }
Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Printer asmPrinter = new Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Printer(Asm.As.Oib.SiplacePro.Proxy.Business.Types.ResourceIDs.AttachableheadtypeCp_20);
mapItac2Asm(asmPrinter, itacPrinter);
return asmPrinter;
}
public static void mapItac2Asm(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Printer asmPrinter, Printer itacPrinter)
{
asmPrinter.IPName = itacPrinter.IPName;
asmPrinter.IPAddress = itacPrinter.IPAddress;
// skip property DictionaryProxy`2, property in exclude list
// skip property ListProxy`1, property in exclude list
asmPrinter.PrinterRecipeDownload = itacPrinter.PrinterRecipeDownload;
// skip readonly property RecipeDownload
asmPrinter.IPAddressString = itacPrinter.IPAddressString;
// skip property ArrayList, property in exclude list
asmPrinter.SoftwareVersion = itacPrinter.SoftwareVersion;
// complex property Type, isArray:False, isGeneric:False
itacPrinter.Type = com.itac.oib.siplacepro.contracts.data.PrinterTypeMapper.get( asmPrinter.Type);
// skip readonly property Name
// skip readonly property FullPath
}
// maps iTAC namespace conform array to ASM namespace array
public static Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Printer[] get(Printer[] itacPrinter)
{
if (itacPrinter == null) { return null; }
Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Printer[] asmPrinter = new Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Printer[itacPrinter.Length];
for (int i = 0; i < itacPrinter.Length; i++)
{
// to itac array
asmPrinter[i] = PrinterMapper.get(itacPrinter[i]);
}
return asmPrinter;
}
// maps iTAC namespace conform array to ASM namespace list
public static List<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Printer> getList(Printer[] asmPrinter)
{
if (asmPrinter == null) { return null; }
List<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Printer> itacPrinter = new List<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Printer>();
for (int i = 0; i < asmPrinter.Length; i++)
{
itacPrinter.Add(PrinterMapper.get(asmPrinter[i]));
}
return itacPrinter;
}
// map type from ASM namespace to iTAC namespace
public static Printer get(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Printer asmPrinter)
{
if (asmPrinter == null) { return null; }
Printer itacPrinter = new Printer();
mapAsm2Itac(asmPrinter, itacPrinter);
return itacPrinter;
}
public static void mapAsm2Itac(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Printer asmPrinter, Printer itacPrinter)
{
itacPrinter.IPName = asmPrinter.IPName;
itacPrinter.IPAddress = asmPrinter.IPAddress;
// skip property DictionaryProxy`2, property in exclude list
// skip property ListProxy`1, property in exclude list
itacPrinter.PrinterRecipeDownload = asmPrinter.PrinterRecipeDownload;
itacPrinter.RecipeDownload = asmPrinter.RecipeDownload;
itacPrinter.IPAddressString = asmPrinter.IPAddressString;
// skip property ArrayList, property in exclude list
itacPrinter.SoftwareVersion = asmPrinter.SoftwareVersion;
itacPrinter.Type = com.itac.oib.siplacepro.contracts.data.PrinterTypeMapper.get(asmPrinter.Type);
// complex asm property Type
itacPrinter.Name = asmPrinter.Name;
itacPrinter.FullPath = asmPrinter.FullPath;
}
// maps ASM namespace conform list to iTAC namespace array
public static Printer[] getArray(IList<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Printer> asmPrinter)
{
if (asmPrinter == null) { return null; }
Printer[] itacPrinter = new Printer[asmPrinter.Count];
for (int i = 0; i < asmPrinter.Count; i++)
{
itacPrinter[i] = PrinterMapper.get(asmPrinter[i]);
}
return itacPrinter;
}
// maps ASM namespace conform array to iTAC namespace array
public static Printer[] getArray(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Printer[] asmPrinter)
{
if (asmPrinter == null) { return null; }
Printer[] itacPrinter = new Printer[asmPrinter.Length];
for (int i = 0; i < asmPrinter.Length; i++)
{
itacPrinter[i] = PrinterMapper.get(asmPrinter[i]);
}
return itacPrinter;
}
}
}

View File

@@ -0,0 +1,109 @@
/*
* 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 05.11.2018 14:52:23
// skip property DictionaryProxy`2, property in exclude list
// skip property ListProxy`1, property in exclude list
using System;
using System.Collections.Generic;
namespace com.itac.oib.siplacepro.contracts.data
{
// source: assembly 5.1.0.84
// source: assembly ASM.AS.OIB.SIPLACEPro.Proxy
public class PrinterSetupMapper
{
// 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.Proxy.Business.Objects.PrinterSetup get(PrinterSetup itacPrinterSetup)
{
if (itacPrinterSetup == null) { return null; }
Asm.As.Oib.SiplacePro.Proxy.Business.Objects.PrinterSetup asmPrinterSetup = new Asm.As.Oib.SiplacePro.Proxy.Business.Objects.PrinterSetup();
mapItac2Asm(asmPrinterSetup, itacPrinterSetup);
return asmPrinterSetup;
}
public static void mapItac2Asm(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.PrinterSetup asmPrinterSetup, PrinterSetup itacPrinterSetup)
{
// skip readonly property Line
// skip property DictionaryProxy`2, property in exclude list
// skip property ListProxy`1, property in exclude list
// skip readonly property Name
// skip readonly property FullPath
}
// maps iTAC namespace conform array to ASM namespace array
public static Asm.As.Oib.SiplacePro.Proxy.Business.Objects.PrinterSetup[] get(PrinterSetup[] itacPrinterSetup)
{
if (itacPrinterSetup == null) { return null; }
Asm.As.Oib.SiplacePro.Proxy.Business.Objects.PrinterSetup[] asmPrinterSetup = new Asm.As.Oib.SiplacePro.Proxy.Business.Objects.PrinterSetup[itacPrinterSetup.Length];
for (int i = 0; i < itacPrinterSetup.Length; i++)
{
// to itac array
asmPrinterSetup[i] = PrinterSetupMapper.get(itacPrinterSetup[i]);
}
return asmPrinterSetup;
}
// maps iTAC namespace conform array to ASM namespace list
public static List<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.PrinterSetup> getList(PrinterSetup[] asmPrinterSetup)
{
if (asmPrinterSetup == null) { return null; }
List<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.PrinterSetup> itacPrinterSetup = new List<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.PrinterSetup>();
for (int i = 0; i < asmPrinterSetup.Length; i++)
{
itacPrinterSetup.Add(PrinterSetupMapper.get(asmPrinterSetup[i]));
}
return itacPrinterSetup;
}
// map type from ASM namespace to iTAC namespace
public static PrinterSetup get(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.PrinterSetup asmPrinterSetup)
{
if (asmPrinterSetup == null) { return null; }
PrinterSetup itacPrinterSetup = new PrinterSetup();
mapAsm2Itac(asmPrinterSetup, itacPrinterSetup);
return itacPrinterSetup;
}
public static void mapAsm2Itac(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.PrinterSetup asmPrinterSetup, PrinterSetup itacPrinterSetup)
{
itacPrinterSetup.Line = com.itac.oib.siplacepro.contracts.data.LineMapper.get(asmPrinterSetup.Line);
// complex asm property Line
// skip property DictionaryProxy`2, property in exclude list
// skip property ListProxy`1, property in exclude list
itacPrinterSetup.Name = asmPrinterSetup.Name;
itacPrinterSetup.FullPath = asmPrinterSetup.FullPath;
}
// maps ASM namespace conform list to iTAC namespace array
public static PrinterSetup[] getArray(IList<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.PrinterSetup> asmPrinterSetup)
{
if (asmPrinterSetup == null) { return null; }
PrinterSetup[] itacPrinterSetup = new PrinterSetup[asmPrinterSetup.Count];
for (int i = 0; i < asmPrinterSetup.Count; i++)
{
itacPrinterSetup[i] = PrinterSetupMapper.get(asmPrinterSetup[i]);
}
return itacPrinterSetup;
}
// maps ASM namespace conform array to iTAC namespace array
public static PrinterSetup[] getArray(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.PrinterSetup[] asmPrinterSetup)
{
if (asmPrinterSetup == null) { return null; }
PrinterSetup[] itacPrinterSetup = new PrinterSetup[asmPrinterSetup.Length];
for (int i = 0; i < asmPrinterSetup.Length; i++)
{
itacPrinterSetup[i] = PrinterSetupMapper.get(asmPrinterSetup[i]);
}
return itacPrinterSetup;
}
}
}

View File

@@ -0,0 +1,117 @@
/*
* 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 05.11.2018 14:52:23
// skip property DictionaryProxy`2, property in exclude list
using System;
using System.Collections.Generic;
namespace com.itac.oib.siplacepro.contracts.data
{
// source: assembly 5.1.0.84
// source: assembly ASM.AS.OIB.SIPLACEPro.Proxy
public class PrinterTypeMapper
{
// 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.Proxy.Business.Objects.PrinterType get(PrinterType itacPrinterType)
{
if (itacPrinterType == null) { return null; }
Asm.As.Oib.SiplacePro.Proxy.Business.Objects.PrinterType asmPrinterType = new Asm.As.Oib.SiplacePro.Proxy.Business.Objects.PrinterType();
mapItac2Asm(asmPrinterType, itacPrinterType);
return asmPrinterType;
}
public static void mapItac2Asm(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.PrinterType asmPrinterType, PrinterType itacPrinterType)
{
// skip readonly property SizeX
// skip readonly property SizeY
// skip readonly property SizeZ
// skip readonly property OffsetZeroPointX
// skip readonly property OffsetZeroPointY
// skip readonly property OffsetZeroPointZ
// skip property DictionaryProxy`2, property in exclude list
// skip readonly property DefaultSoftwareVersion
// skip readonly property Name
// skip readonly property FullPath
}
// maps iTAC namespace conform array to ASM namespace array
public static Asm.As.Oib.SiplacePro.Proxy.Business.Objects.PrinterType[] get(PrinterType[] itacPrinterType)
{
if (itacPrinterType == null) { return null; }
Asm.As.Oib.SiplacePro.Proxy.Business.Objects.PrinterType[] asmPrinterType = new Asm.As.Oib.SiplacePro.Proxy.Business.Objects.PrinterType[itacPrinterType.Length];
for (int i = 0; i < itacPrinterType.Length; i++)
{
// to itac array
asmPrinterType[i] = PrinterTypeMapper.get(itacPrinterType[i]);
}
return asmPrinterType;
}
// maps iTAC namespace conform array to ASM namespace list
public static List<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.PrinterType> getList(PrinterType[] asmPrinterType)
{
if (asmPrinterType == null) { return null; }
List<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.PrinterType> itacPrinterType = new List<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.PrinterType>();
for (int i = 0; i < asmPrinterType.Length; i++)
{
itacPrinterType.Add(PrinterTypeMapper.get(asmPrinterType[i]));
}
return itacPrinterType;
}
// map type from ASM namespace to iTAC namespace
public static PrinterType get(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.PrinterType asmPrinterType)
{
if (asmPrinterType == null) { return null; }
PrinterType itacPrinterType = new PrinterType();
mapAsm2Itac(asmPrinterType, itacPrinterType);
return itacPrinterType;
}
public static void mapAsm2Itac(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.PrinterType asmPrinterType, PrinterType itacPrinterType)
{
itacPrinterType.SizeX = asmPrinterType.SizeX;
itacPrinterType.SizeY = asmPrinterType.SizeY;
itacPrinterType.SizeZ = asmPrinterType.SizeZ;
itacPrinterType.OffsetZeroPointX = asmPrinterType.OffsetZeroPointX;
itacPrinterType.OffsetZeroPointY = asmPrinterType.OffsetZeroPointY;
itacPrinterType.OffsetZeroPointZ = asmPrinterType.OffsetZeroPointZ;
// skip property DictionaryProxy`2, property in exclude list
itacPrinterType.DefaultSoftwareVersion = asmPrinterType.DefaultSoftwareVersion;
itacPrinterType.Name = asmPrinterType.Name;
itacPrinterType.FullPath = asmPrinterType.FullPath;
}
// maps ASM namespace conform list to iTAC namespace array
public static PrinterType[] getArray(IList<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.PrinterType> asmPrinterType)
{
if (asmPrinterType == null) { return null; }
PrinterType[] itacPrinterType = new PrinterType[asmPrinterType.Count];
for (int i = 0; i < asmPrinterType.Count; i++)
{
itacPrinterType[i] = PrinterTypeMapper.get(asmPrinterType[i]);
}
return itacPrinterType;
}
// maps ASM namespace conform array to iTAC namespace array
public static PrinterType[] getArray(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.PrinterType[] asmPrinterType)
{
if (asmPrinterType == null) { return null; }
PrinterType[] itacPrinterType = new PrinterType[asmPrinterType.Length];
for (int i = 0; i < asmPrinterType.Length; i++)
{
itacPrinterType[i] = PrinterTypeMapper.get(asmPrinterType[i]);
}
return itacPrinterType;
}
}
}

View File

@@ -0,0 +1,133 @@
/*
* 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 05.11.2018 14:52:23
// skip property String, property in exclude list
using System;
using System.Collections.Generic;
using com.itac.oib.siplacepro.contracts.types;
namespace com.itac.oib.siplacepro.contracts.data
{
// source: assembly 5.1.0.84
// source: assembly ASM.AS.OIB.SIPLACEPro.Proxy
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.Proxy.Business.Objects.ProductionScheduleElement get(ProductionScheduleElement itacProductionScheduleElement)
{
if (itacProductionScheduleElement == null) { return null; }
Asm.As.Oib.SiplacePro.Proxy.Business.Objects.ProductionScheduleElement asmProductionScheduleElement = new Asm.As.Oib.SiplacePro.Proxy.Business.Objects.ProductionScheduleElement();
mapItac2Asm(asmProductionScheduleElement, itacProductionScheduleElement);
return asmProductionScheduleElement;
}
public static void mapItac2Asm(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.ProductionScheduleElement asmProductionScheduleElement, ProductionScheduleElement itacProductionScheduleElement)
{
// skip property String, property in exclude list
asmProductionScheduleElement.ScheduledLotSize = itacProductionScheduleElement.ScheduledLotSize;
// complex property Recipe, isArray:False, isGeneric:False
itacProductionScheduleElement.Recipe = com.itac.oib.siplacepro.contracts.data.RecipeMapper.get( asmProductionScheduleElement.Recipe);
// complex property PSConveyor, isArray:False, isGeneric:False
itacProductionScheduleElement.PSConveyor = com.itac.oib.siplacepro.contracts.types.ProductionScheduleConveyorMapper.get( asmProductionScheduleElement.PSConveyor);
asmProductionScheduleElement.OrderID = itacProductionScheduleElement.OrderID;
asmProductionScheduleElement.OrderID2 = itacProductionScheduleElement.OrderID2;
// complex property OptimizedTargetSetup, isArray:False, isGeneric:False
itacProductionScheduleElement.OptimizedTargetSetup = com.itac.oib.siplacepro.contracts.data.SetupMapper.get( asmProductionScheduleElement.OptimizedTargetSetup);
// skip readonly property LotSizeCountUnit
asmProductionScheduleElement.DownloadDateTime = itacProductionScheduleElement.DownloadDateTime;
asmProductionScheduleElement.MarkedForDelete = itacProductionScheduleElement.MarkedForDelete;
// complex property Mode, isArray:False, isGeneric:False
itacProductionScheduleElement.Mode = com.itac.oib.siplacepro.contracts.types.ProductionModeMapper.get( asmProductionScheduleElement.Mode);
asmProductionScheduleElement.ScheduledLotSizeBoards = itacProductionScheduleElement.ScheduledLotSizeBoards;
asmProductionScheduleElement.ScheduledLotSizeAssembledPCBs = itacProductionScheduleElement.ScheduledLotSizeAssembledPCBs;
}
// maps iTAC namespace conform array to ASM namespace array
public static Asm.As.Oib.SiplacePro.Proxy.Business.Objects.ProductionScheduleElement[] get(ProductionScheduleElement[] itacProductionScheduleElement)
{
if (itacProductionScheduleElement == null) { return null; }
Asm.As.Oib.SiplacePro.Proxy.Business.Objects.ProductionScheduleElement[] asmProductionScheduleElement = new Asm.As.Oib.SiplacePro.Proxy.Business.Objects.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.Proxy.Business.Objects.ProductionScheduleElement> getList(ProductionScheduleElement[] asmProductionScheduleElement)
{
if (asmProductionScheduleElement == null) { return null; }
List<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.ProductionScheduleElement> itacProductionScheduleElement = new List<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.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.Proxy.Business.Objects.ProductionScheduleElement asmProductionScheduleElement)
{
if (asmProductionScheduleElement == null) { return null; }
ProductionScheduleElement itacProductionScheduleElement = new ProductionScheduleElement();
mapAsm2Itac(asmProductionScheduleElement, itacProductionScheduleElement);
return itacProductionScheduleElement;
}
public static void mapAsm2Itac(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.ProductionScheduleElement asmProductionScheduleElement, ProductionScheduleElement itacProductionScheduleElement)
{
// skip property String, property in exclude list
itacProductionScheduleElement.ScheduledLotSize = asmProductionScheduleElement.ScheduledLotSize;
itacProductionScheduleElement.Recipe = com.itac.oib.siplacepro.contracts.data.RecipeMapper.get(asmProductionScheduleElement.Recipe);
// complex asm property Recipe
itacProductionScheduleElement.PSConveyor = com.itac.oib.siplacepro.contracts.types.ProductionScheduleConveyorMapper.get(asmProductionScheduleElement.PSConveyor);
// complex asm property PSConveyor
itacProductionScheduleElement.OrderID = asmProductionScheduleElement.OrderID;
itacProductionScheduleElement.OrderID2 = asmProductionScheduleElement.OrderID2;
itacProductionScheduleElement.OptimizedTargetSetup = com.itac.oib.siplacepro.contracts.data.SetupMapper.get(asmProductionScheduleElement.OptimizedTargetSetup);
// complex asm property OptimizedTargetSetup
itacProductionScheduleElement.LotSizeCountUnit = com.itac.oib.siplacepro.contracts.types.LotSizeCountUnitMapper.get(asmProductionScheduleElement.LotSizeCountUnit);
// complex asm property LotSizeCountUnit
itacProductionScheduleElement.DownloadDateTime = asmProductionScheduleElement.DownloadDateTime;
itacProductionScheduleElement.MarkedForDelete = asmProductionScheduleElement.MarkedForDelete;
itacProductionScheduleElement.Mode = com.itac.oib.siplacepro.contracts.types.ProductionModeMapper.get(asmProductionScheduleElement.Mode);
// complex asm property Mode
itacProductionScheduleElement.ScheduledLotSizeBoards = asmProductionScheduleElement.ScheduledLotSizeBoards;
itacProductionScheduleElement.ScheduledLotSizeAssembledPCBs = asmProductionScheduleElement.ScheduledLotSizeAssembledPCBs;
}
// maps ASM namespace conform list to iTAC namespace array
public static ProductionScheduleElement[] getArray(IList<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.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.Proxy.Business.Objects.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,177 @@
/*
* 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 05.11.2018 14:52:23
// skip property NamedObjectBase, declared in Recipe
// skip property DictionaryProxy`2, property in exclude list
// skip property AdditionalOperationInformation, declared in Recipe
// skip (ignore generic type WaferLevelPackageBoardElement)
// skip property ListProxy`1, property in exclude list
// skip property RecipeHandling, declared in Recipe
using System;
using System.Collections.Generic;
using com.itac.oib.siplacepro.contracts.types;
namespace com.itac.oib.siplacepro.contracts.data
{
// source: assembly 5.1.0.84
// source: assembly ASM.AS.OIB.SIPLACEPro.Proxy
public class RecipeMapper
{
// 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.Proxy.Business.Objects.Recipe get(Recipe itacRecipe)
{
if (itacRecipe == null) { return null; }
Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Recipe asmRecipe = new Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Recipe();
mapItac2Asm(asmRecipe, itacRecipe);
return asmRecipe;
}
public static void mapItac2Asm(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Recipe asmRecipe, Recipe itacRecipe)
{
// skip property NamedObjectBase, declared in Recipe
// skip readonly property LineName
// skip readonly property SetupName
asmRecipe.LotSize = itacRecipe.LotSize;
// complex property ConveyorLane, isArray:False, isGeneric:False
itacRecipe.ConveyorLane = com.itac.oib.siplacepro.contracts.types.ConveyorLaneTypeMapper.get( asmRecipe.ConveyorLane);
// complex property Setup, isArray:False, isGeneric:False
itacRecipe.Setup = com.itac.oib.siplacepro.contracts.data.SetupMapper.get( asmRecipe.Setup);
asmRecipe.RecipeCycleTime = itacRecipe.RecipeCycleTime;
// skip property DictionaryProxy`2, property in exclude list
asmRecipe.GenerateTraceInformation = itacRecipe.GenerateTraceInformation;
// skip readonly property BoardElements
// skip readonly property Board2Elements
asmRecipe.AverageUtilization = itacRecipe.AverageUtilization;
// skip property AdditionalOperationInformation, declared in Recipe
asmRecipe.EnableProxyMode = itacRecipe.EnableProxyMode;
// complex property SplitTableModeSetting, isArray:False, isGeneric:False
itacRecipe.SplitTableModeSetting = com.itac.oib.siplacepro.contracts.types.SplitTableModeMapper.get( asmRecipe.SplitTableModeSetting);
// skip readonly property LotSizeCountUnit
// skip (ignore generic type WaferLevelPackageBoardElement)
// skip property ListProxy`1, property in exclude list
// skip property RecipeHandling, declared in Recipe
asmRecipe.FractionNumber = itacRecipe.FractionNumber;
asmRecipe.FractionCount = itacRecipe.FractionCount;
// complex property PrinterSetup, isArray:False, isGeneric:False
itacRecipe.PrinterSetup = com.itac.oib.siplacepro.contracts.data.PrinterSetupMapper.get( asmRecipe.PrinterSetup);
asmRecipe.CheckIntegrityForAllConveyorLanes = itacRecipe.CheckIntegrityForAllConveyorLanes;
asmRecipe.QuantityUnlimited = itacRecipe.QuantityUnlimited;
// skip readonly property ConveyorLane2
asmRecipe.LotSizeBoards = itacRecipe.LotSizeBoards;
asmRecipe.LotSizeAssembledPCBs = itacRecipe.LotSizeAssembledPCBs;
// skip readonly property IsMatchingPanelCount
// skip readonly property IsAnyPanelCountZero
// skip readonly property Name
// skip readonly property FullPath
}
// maps iTAC namespace conform array to ASM namespace array
public static Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Recipe[] get(Recipe[] itacRecipe)
{
if (itacRecipe == null) { return null; }
Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Recipe[] asmRecipe = new Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Recipe[itacRecipe.Length];
for (int i = 0; i < itacRecipe.Length; i++)
{
// to itac array
asmRecipe[i] = RecipeMapper.get(itacRecipe[i]);
}
return asmRecipe;
}
// maps iTAC namespace conform array to ASM namespace list
public static List<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Recipe> getList(Recipe[] asmRecipe)
{
if (asmRecipe == null) { return null; }
List<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Recipe> itacRecipe = new List<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Recipe>();
for (int i = 0; i < asmRecipe.Length; i++)
{
itacRecipe.Add(RecipeMapper.get(asmRecipe[i]));
}
return itacRecipe;
}
// map type from ASM namespace to iTAC namespace
public static Recipe get(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Recipe asmRecipe)
{
if (asmRecipe == null) { return null; }
Recipe itacRecipe = new Recipe();
mapAsm2Itac(asmRecipe, itacRecipe);
return itacRecipe;
}
public static void mapAsm2Itac(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Recipe asmRecipe, Recipe itacRecipe)
{
// skip property NamedObjectBase, declared in Recipe
itacRecipe.LineName = asmRecipe.LineName;
itacRecipe.SetupName = asmRecipe.SetupName;
itacRecipe.LotSize = asmRecipe.LotSize;
itacRecipe.ConveyorLane = com.itac.oib.siplacepro.contracts.types.ConveyorLaneTypeMapper.get(asmRecipe.ConveyorLane);
// complex asm property ConveyorLane
itacRecipe.Setup = com.itac.oib.siplacepro.contracts.data.SetupMapper.get(asmRecipe.Setup);
// complex asm property Setup
itacRecipe.RecipeCycleTime = asmRecipe.RecipeCycleTime;
// skip property DictionaryProxy`2, property in exclude list
itacRecipe.GenerateTraceInformation = asmRecipe.GenerateTraceInformation;
// maps ASM list 2 iTAC array
itacRecipe.BoardElements = BoardElementMapper.getArray(asmRecipe.BoardElements);
// maps ASM list 2 iTAC array
itacRecipe.Board2Elements = BoardElementMapper.getArray(asmRecipe.Board2Elements);
itacRecipe.AverageUtilization = asmRecipe.AverageUtilization;
// skip property AdditionalOperationInformation, declared in Recipe
itacRecipe.EnableProxyMode = asmRecipe.EnableProxyMode;
itacRecipe.SplitTableModeSetting = com.itac.oib.siplacepro.contracts.types.SplitTableModeMapper.get(asmRecipe.SplitTableModeSetting);
// complex asm property SplitTableModeSetting
itacRecipe.LotSizeCountUnit = com.itac.oib.siplacepro.contracts.types.LotSizeCountUnitMapper.get(asmRecipe.LotSizeCountUnit);
// complex asm property LotSizeCountUnit
// skip (ignore generic type WaferLevelPackageBoardElement)
// skip property ListProxy`1, property in exclude list
// skip property RecipeHandling, declared in Recipe
itacRecipe.FractionNumber = asmRecipe.FractionNumber;
itacRecipe.FractionCount = asmRecipe.FractionCount;
itacRecipe.PrinterSetup = com.itac.oib.siplacepro.contracts.data.PrinterSetupMapper.get(asmRecipe.PrinterSetup);
// complex asm property PrinterSetup
itacRecipe.CheckIntegrityForAllConveyorLanes = asmRecipe.CheckIntegrityForAllConveyorLanes;
itacRecipe.QuantityUnlimited = asmRecipe.QuantityUnlimited;
itacRecipe.ConveyorLane2 = com.itac.oib.siplacepro.contracts.types.ConveyorLaneTypeMapper.get(asmRecipe.ConveyorLane2);
// complex asm property ConveyorLane2
itacRecipe.LotSizeBoards = asmRecipe.LotSizeBoards;
itacRecipe.LotSizeAssembledPCBs = asmRecipe.LotSizeAssembledPCBs;
itacRecipe.IsMatchingPanelCount = asmRecipe.IsMatchingPanelCount;
itacRecipe.IsAnyPanelCountZero = asmRecipe.IsAnyPanelCountZero;
itacRecipe.Name = asmRecipe.Name;
itacRecipe.FullPath = asmRecipe.FullPath;
}
// maps ASM namespace conform list to iTAC namespace array
public static Recipe[] getArray(IList<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Recipe> asmRecipe)
{
if (asmRecipe == null) { return null; }
Recipe[] itacRecipe = new Recipe[asmRecipe.Count];
for (int i = 0; i < asmRecipe.Count; i++)
{
itacRecipe[i] = RecipeMapper.get(asmRecipe[i]);
}
return itacRecipe;
}
// maps ASM namespace conform array to iTAC namespace array
public static Recipe[] getArray(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Recipe[] asmRecipe)
{
if (asmRecipe == null) { return null; }
Recipe[] itacRecipe = new Recipe[asmRecipe.Length];
for (int i = 0; i < asmRecipe.Length; i++)
{
itacRecipe[i] = RecipeMapper.get(asmRecipe[i]);
}
return itacRecipe;
}
}
}

View File

@@ -0,0 +1,175 @@
/*
* 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 05.11.2018 14:52:23
// skip property NamedObjectBase, declared in Setup
// skip property Dictionary`2, property in exclude list
// skip property TriState, declared in Setup
// skip property DictionaryProxy`2, property in exclude list
// skip property ListProxy`1, property in exclude list
// skip property ArrayList, property in exclude list
// skip property ArrayList, property in exclude list
using System;
using System.Collections.Generic;
using com.itac.oib.siplacepro.contracts.types;
namespace com.itac.oib.siplacepro.contracts.data
{
// source: assembly 5.1.0.84
// source: assembly ASM.AS.OIB.SIPLACEPro.Proxy
public class SetupMapper
{
// 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.Proxy.Business.Objects.Setup get(Setup itacSetup)
{
if (itacSetup == null) { return null; }
Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Setup asmSetup = new Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Setup();
mapItac2Asm(asmSetup, itacSetup);
return asmSetup;
}
public static void mapItac2Asm(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Setup asmSetup, Setup itacSetup)
{
// skip property NamedObjectBase, declared in Setup
// skip readonly property StationList
// skip property Dictionary`2, property in exclude list
// skip property TriState, declared in Setup
// skip readonly property Line
// skip readonly property StationSetups
asmSetup.FixAllNozzles = itacSetup.FixAllNozzles;
// skip property DictionaryProxy`2, property in exclude list
asmSetup.WhisperPCBBarcodes = itacSetup.WhisperPCBBarcodes;
// complex property WhisperDownTheLineModeBarcodes, isArray:False, isGeneric:False
itacSetup.WhisperDownTheLineModeBarcodes = com.itac.oib.siplacepro.contracts.types.WhisperDownTheLineModeBarcodesMapper.get( asmSetup.WhisperDownTheLineModeBarcodes);
asmSetup.ExternalVirtualInkspotHandling = itacSetup.ExternalVirtualInkspotHandling;
// skip property ListProxy`1, property in exclude list
// complex property ReuseConcept, isArray:False, isGeneric:False
itacSetup.ReuseConcept = com.itac.oib.siplacepro.contracts.types.SetupReuseConceptMapper.get( asmSetup.ReuseConcept);
// skip property ArrayList, property in exclude list
// skip property ArrayList, property in exclude list
// skip readonly property IsWDTLCapable
// skip readonly property IsMixed705
// skip readonly property TotalAvailablePlacingAreas
// skip readonly property IsPCBBarcodeWDTLCapable
// skip readonly property SupportsAlternativeComponents
// skip readonly property DoesAnyStationSupportSPS
// complex property WhisperDownTheLineMode, isArray:False, isGeneric:False
itacSetup.WhisperDownTheLineMode = com.itac.oib.siplacepro.contracts.types.WhisperDownTheLineModeMapper.get( asmSetup.WhisperDownTheLineMode);
// skip readonly property Name
// skip readonly property FullPath
}
// maps iTAC namespace conform array to ASM namespace array
public static Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Setup[] get(Setup[] itacSetup)
{
if (itacSetup == null) { return null; }
Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Setup[] asmSetup = new Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Setup[itacSetup.Length];
for (int i = 0; i < itacSetup.Length; i++)
{
// to itac array
asmSetup[i] = SetupMapper.get(itacSetup[i]);
}
return asmSetup;
}
// maps iTAC namespace conform array to ASM namespace list
public static List<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Setup> getList(Setup[] asmSetup)
{
if (asmSetup == null) { return null; }
List<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Setup> itacSetup = new List<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Setup>();
for (int i = 0; i < asmSetup.Length; i++)
{
itacSetup.Add(SetupMapper.get(asmSetup[i]));
}
return itacSetup;
}
// map type from ASM namespace to iTAC namespace
public static Setup get(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Setup asmSetup)
{
if (asmSetup == null) { return null; }
Setup itacSetup = new Setup();
mapAsm2Itac(asmSetup, itacSetup);
return itacSetup;
}
public static void mapAsm2Itac(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Setup asmSetup, Setup itacSetup)
{
// skip property NamedObjectBase, declared in Setup
// array mapping
itacSetup.StationList = StationMapper.getArray(asmSetup.StationList);
// complex asm property StationList
// skip property Dictionary`2, property in exclude list
// skip property TriState, declared in Setup
itacSetup.Line = com.itac.oib.siplacepro.contracts.data.LineMapper.get(asmSetup.Line);
// complex asm property Line
// assign Dictionary(): maps ASM Dictionary 2 iTAC dictionary
itacSetup.StationSetups = getStationSetupsDictionary( asmSetup.StationSetups);
itacSetup.FixAllNozzles = asmSetup.FixAllNozzles;
// skip property DictionaryProxy`2, property in exclude list
itacSetup.WhisperPCBBarcodes = asmSetup.WhisperPCBBarcodes;
itacSetup.WhisperDownTheLineModeBarcodes = com.itac.oib.siplacepro.contracts.types.WhisperDownTheLineModeBarcodesMapper.get(asmSetup.WhisperDownTheLineModeBarcodes);
// complex asm property WhisperDownTheLineModeBarcodes
itacSetup.ExternalVirtualInkspotHandling = asmSetup.ExternalVirtualInkspotHandling;
// skip property ListProxy`1, property in exclude list
itacSetup.ReuseConcept = com.itac.oib.siplacepro.contracts.types.SetupReuseConceptMapper.get(asmSetup.ReuseConcept);
// complex asm property ReuseConcept
// skip property ArrayList, property in exclude list
// skip property ArrayList, property in exclude list
itacSetup.IsWDTLCapable = asmSetup.IsWDTLCapable;
itacSetup.IsMixed705 = asmSetup.IsMixed705;
itacSetup.TotalAvailablePlacingAreas = asmSetup.TotalAvailablePlacingAreas;
itacSetup.IsPCBBarcodeWDTLCapable = asmSetup.IsPCBBarcodeWDTLCapable;
itacSetup.SupportsAlternativeComponents = asmSetup.SupportsAlternativeComponents;
itacSetup.DoesAnyStationSupportSPS = asmSetup.DoesAnyStationSupportSPS;
itacSetup.WhisperDownTheLineMode = com.itac.oib.siplacepro.contracts.types.WhisperDownTheLineModeMapper.get(asmSetup.WhisperDownTheLineMode);
// complex asm property WhisperDownTheLineMode
itacSetup.Name = asmSetup.Name;
itacSetup.FullPath = asmSetup.FullPath;
}
// maps ASM namespace conform list to iTAC namespace array
public static Setup[] getArray(IList<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Setup> asmSetup)
{
if (asmSetup == null) { return null; }
Setup[] itacSetup = new Setup[asmSetup.Count];
for (int i = 0; i < asmSetup.Count; i++)
{
itacSetup[i] = SetupMapper.get(asmSetup[i]);
}
return itacSetup;
}
// maps ASM namespace conform array to iTAC namespace array
public static Setup[] getArray(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Setup[] asmSetup)
{
if (asmSetup == null) { return null; }
Setup[] itacSetup = new Setup[asmSetup.Length];
for (int i = 0; i < asmSetup.Length; i++)
{
itacSetup[i] = SetupMapper.get(asmSetup[i]);
}
return itacSetup;
}
// original declaration: Asm.As.Oib.SiplacePro.Proxy.Architecture.Collections.DictionaryProxy`2[Asm.As.Oib.SiplacePro.Proxy.Business.Objects.StationInLine,Asm.As.Oib.SiplacePro.Proxy.Business.Objects.StationSetup]
// generate key / value array for dictionary
// generated dictionary mapper
private static Dictionary<StationInLine, StationSetup> getStationSetupsDictionary(IDictionary<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.StationInLine, Asm.As.Oib.SiplacePro.Proxy.Business.Objects.StationSetup> stationSetups)
{
Dictionary <StationInLine, StationSetup> result = new Dictionary<StationInLine, StationSetup>();
foreach (Asm.As.Oib.SiplacePro.Proxy.Business.Objects.StationInLine key in stationSetups.Keys)
{
result.Add(com.itac.oib.siplacepro.contracts.data.StationInLineMapper.get(key), com.itac.oib.siplacepro.contracts.data.StationSetupMapper.get(stationSetups[key]));
}
return result;
}
}
}

View File

@@ -0,0 +1,183 @@
/*
* 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 05.11.2018 14:52:23
// skip property ConveyorShuttleOption, property in exclude list
// skip property ConveyorShuttleOption, property in exclude list
// skip property StationConveyorSystem, property in exclude list
// skip property String[], property in exclude list
// skip property String[], property in exclude list
using System;
using System.Collections.Generic;
using com.itac.oib.siplacepro.contracts.types;
namespace com.itac.oib.siplacepro.contracts.data
{
// source: assembly 5.1.0.84
// source: assembly ASM.AS.OIB.SIPLACEPro.Proxy
public class StationInLineMapper
{
// 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.Proxy.Business.Objects.StationInLine get(StationInLine itacStationInLine)
{
if (itacStationInLine == null) { return null; }
Asm.As.Oib.SiplacePro.Proxy.Business.Objects.StationInLine asmStationInLine = new Asm.As.Oib.SiplacePro.Proxy.Business.Objects.StationInLine();
mapItac2Asm(asmStationInLine, itacStationInLine);
return asmStationInLine;
}
public static void mapItac2Asm(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.StationInLine asmStationInLine, StationInLine itacStationInLine)
{
// complex property Station, isArray:False, isGeneric:False
itacStationInLine.Station = com.itac.oib.siplacepro.contracts.data.StationMapper.get( asmStationInLine.Station);
asmStationInLine.IsInputConveyorConfigued = itacStationInLine.IsInputConveyorConfigued;
asmStationInLine.IsOutputConveyorConfigued = itacStationInLine.IsOutputConveyorConfigued;
asmStationInLine.Options = itacStationInLine.Options;
asmStationInLine.IsConveyorMode = itacStationInLine.IsConveyorMode;
// complex property LeftBarcodeReaderPosition, isArray:False, isGeneric:False
itacStationInLine.LeftBarcodeReaderPosition = com.itac.oib.siplacepro.contracts.types.BarcodeReaderPositionMapper.get( asmStationInLine.LeftBarcodeReaderPosition);
// skip property ConveyorShuttleOption, property in exclude list
// skip property ConveyorShuttleOption, property in exclude list
// complex property RightBarcodeReaderPosition, isArray:False, isGeneric:False
itacStationInLine.RightBarcodeReaderPosition = com.itac.oib.siplacepro.contracts.types.BarcodeReaderPositionMapper.get( asmStationInLine.RightBarcodeReaderPosition);
asmStationInLine.DisableManualPCBBarcodeInput = itacStationInLine.DisableManualPCBBarcodeInput;
// skip property StationConveyorSystem, property in exclude list
asmStationInLine.EndOfSMEMASynchronization = itacStationInLine.EndOfSMEMASynchronization;
asmStationInLine.InvertedOrientationInLine = itacStationInLine.InvertedOrientationInLine;
// skip readonly property DeviceInLineSpecies
asmStationInLine.SupportLongBoards = itacStationInLine.SupportLongBoards;
asmStationInLine.BarcodeMode = itacStationInLine.BarcodeMode;
// skip readonly property StationTypeName
// skip property String[], property in exclude list
// skip property String[], property in exclude list
// skip readonly property StationHostName
// skip readonly property StationIPAddress
// skip readonly property StationPathNameReadOnly
// skip readonly property PCBBarcodeEnabledAtStation
// skip readonly property StationSoftwareVersion
// complex property ConveyorWidenessValue, isArray:False, isGeneric:False
itacStationInLine.ConveyorWidenessValue = com.itac.oib.siplacepro.contracts.types.ConveyorWidenessMapper.get( asmStationInLine.ConveyorWidenessValue);
// skip readonly property IsUserDefinedConveyorWideness
// skip readonly property SupportsSMEMASynchronization
// skip readonly property SupportsInputConveyorExtension
// skip readonly property SupportsOutputConveyorExtension
asmStationInLine.IsOutputConveyorConfigured = itacStationInLine.IsOutputConveyorConfigured;
// skip readonly property SupportsInputConveyorShuttle
// skip readonly property SupportsOutputConveyorShuttle
asmStationInLine.IsInputConveyorShuttleConfigured = itacStationInLine.IsInputConveyorShuttleConfigured;
asmStationInLine.IsOutputConveyorShuttleConfigured = itacStationInLine.IsOutputConveyorShuttleConfigured;
// skip readonly property IsPredecessorSiplaceStation
// skip readonly property IsSuccessorSiplaceStation
}
// maps iTAC namespace conform array to ASM namespace array
public static Asm.As.Oib.SiplacePro.Proxy.Business.Objects.StationInLine[] get(StationInLine[] itacStationInLine)
{
if (itacStationInLine == null) { return null; }
Asm.As.Oib.SiplacePro.Proxy.Business.Objects.StationInLine[] asmStationInLine = new Asm.As.Oib.SiplacePro.Proxy.Business.Objects.StationInLine[itacStationInLine.Length];
for (int i = 0; i < itacStationInLine.Length; i++)
{
// to itac array
asmStationInLine[i] = StationInLineMapper.get(itacStationInLine[i]);
}
return asmStationInLine;
}
// maps iTAC namespace conform array to ASM namespace list
public static List<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.StationInLine> getList(StationInLine[] asmStationInLine)
{
if (asmStationInLine == null) { return null; }
List<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.StationInLine> itacStationInLine = new List<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.StationInLine>();
for (int i = 0; i < asmStationInLine.Length; i++)
{
itacStationInLine.Add(StationInLineMapper.get(asmStationInLine[i]));
}
return itacStationInLine;
}
// map type from ASM namespace to iTAC namespace
public static StationInLine get(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.StationInLine asmStationInLine)
{
if (asmStationInLine == null) { return null; }
StationInLine itacStationInLine = new StationInLine();
mapAsm2Itac(asmStationInLine, itacStationInLine);
return itacStationInLine;
}
public static void mapAsm2Itac(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.StationInLine asmStationInLine, StationInLine itacStationInLine)
{
itacStationInLine.Station = com.itac.oib.siplacepro.contracts.data.StationMapper.get(asmStationInLine.Station);
// complex asm property Station
itacStationInLine.IsInputConveyorConfigued = asmStationInLine.IsInputConveyorConfigued;
itacStationInLine.IsOutputConveyorConfigued = asmStationInLine.IsOutputConveyorConfigued;
itacStationInLine.Options = asmStationInLine.Options;
itacStationInLine.IsConveyorMode = asmStationInLine.IsConveyorMode;
itacStationInLine.LeftBarcodeReaderPosition = com.itac.oib.siplacepro.contracts.types.BarcodeReaderPositionMapper.get(asmStationInLine.LeftBarcodeReaderPosition);
// complex asm property LeftBarcodeReaderPosition
// skip property ConveyorShuttleOption, property in exclude list
// skip property ConveyorShuttleOption, property in exclude list
itacStationInLine.RightBarcodeReaderPosition = com.itac.oib.siplacepro.contracts.types.BarcodeReaderPositionMapper.get(asmStationInLine.RightBarcodeReaderPosition);
// complex asm property RightBarcodeReaderPosition
itacStationInLine.DisableManualPCBBarcodeInput = asmStationInLine.DisableManualPCBBarcodeInput;
// skip property StationConveyorSystem, property in exclude list
itacStationInLine.EndOfSMEMASynchronization = asmStationInLine.EndOfSMEMASynchronization;
itacStationInLine.InvertedOrientationInLine = asmStationInLine.InvertedOrientationInLine;
itacStationInLine.DeviceInLineSpecies = com.itac.oib.siplacepro.contracts.types.DeviceInLineSpeciesMapper.get(asmStationInLine.DeviceInLineSpecies);
// complex asm property DeviceInLineSpecies
itacStationInLine.SupportLongBoards = asmStationInLine.SupportLongBoards;
itacStationInLine.BarcodeMode = asmStationInLine.BarcodeMode;
itacStationInLine.StationTypeName = asmStationInLine.StationTypeName;
// skip property String[], property in exclude list
// skip property String[], property in exclude list
itacStationInLine.StationHostName = asmStationInLine.StationHostName;
itacStationInLine.StationIPAddress = asmStationInLine.StationIPAddress;
itacStationInLine.StationPathNameReadOnly = asmStationInLine.StationPathNameReadOnly;
itacStationInLine.PCBBarcodeEnabledAtStation = asmStationInLine.PCBBarcodeEnabledAtStation;
itacStationInLine.StationSoftwareVersion = asmStationInLine.StationSoftwareVersion;
itacStationInLine.ConveyorWidenessValue = com.itac.oib.siplacepro.contracts.types.ConveyorWidenessMapper.get(asmStationInLine.ConveyorWidenessValue);
// complex asm property ConveyorWidenessValue
itacStationInLine.IsUserDefinedConveyorWideness = asmStationInLine.IsUserDefinedConveyorWideness;
itacStationInLine.SupportsSMEMASynchronization = asmStationInLine.SupportsSMEMASynchronization;
itacStationInLine.SupportsInputConveyorExtension = asmStationInLine.SupportsInputConveyorExtension;
itacStationInLine.SupportsOutputConveyorExtension = asmStationInLine.SupportsOutputConveyorExtension;
itacStationInLine.IsOutputConveyorConfigured = asmStationInLine.IsOutputConveyorConfigured;
itacStationInLine.SupportsInputConveyorShuttle = asmStationInLine.SupportsInputConveyorShuttle;
itacStationInLine.SupportsOutputConveyorShuttle = asmStationInLine.SupportsOutputConveyorShuttle;
itacStationInLine.IsInputConveyorShuttleConfigured = asmStationInLine.IsInputConveyorShuttleConfigured;
itacStationInLine.IsOutputConveyorShuttleConfigured = asmStationInLine.IsOutputConveyorShuttleConfigured;
itacStationInLine.IsPredecessorSiplaceStation = asmStationInLine.IsPredecessorSiplaceStation;
itacStationInLine.IsSuccessorSiplaceStation = asmStationInLine.IsSuccessorSiplaceStation;
}
// maps ASM namespace conform list to iTAC namespace array
public static StationInLine[] getArray(IList<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.StationInLine> asmStationInLine)
{
if (asmStationInLine == null) { return null; }
StationInLine[] itacStationInLine = new StationInLine[asmStationInLine.Count];
for (int i = 0; i < asmStationInLine.Count; i++)
{
itacStationInLine[i] = StationInLineMapper.get(asmStationInLine[i]);
}
return itacStationInLine;
}
// maps ASM namespace conform array to iTAC namespace array
public static StationInLine[] getArray(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.StationInLine[] asmStationInLine)
{
if (asmStationInLine == null) { return null; }
StationInLine[] itacStationInLine = new StationInLine[asmStationInLine.Length];
for (int i = 0; i < asmStationInLine.Length; i++)
{
itacStationInLine[i] = StationInLineMapper.get(asmStationInLine[i]);
}
return itacStationInLine;
}
}
}

View File

@@ -0,0 +1,149 @@
/*
* 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 05.11.2018 14:52:23
// skip property Location, declared in StationLocation
// skip property StationType, declared in StationLocation
// skip property AttachableHead, declared in StationLocation
// skip property Camera, declared in StationLocation
// skip property Camera, declared in StationLocation
// skip property Camera, declared in StationLocation
// skip property Camera, declared in StationLocation
// skip property Camera, declared in StationLocation
// skip property DictionaryProxy`2, property in exclude list
// skip property Gantry, declared in StationLocation
using System;
using System.Collections.Generic;
namespace com.itac.oib.siplacepro.contracts.data
{
// source: assembly 5.1.0.84
// source: assembly ASM.AS.OIB.SIPLACEPro.Proxy
public class StationLocationMapper
{
// 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.Proxy.Business.Objects.StationLocation get(StationLocation itacStationLocation)
{
if (itacStationLocation == null) { return null; }
Asm.As.Oib.SiplacePro.Proxy.Business.Objects.StationLocation asmStationLocation = new Asm.As.Oib.SiplacePro.Proxy.Business.Objects.StationLocation();
mapItac2Asm(asmStationLocation, itacStationLocation);
return asmStationLocation;
}
public static void mapItac2Asm(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.StationLocation asmStationLocation, StationLocation itacStationLocation)
{
// skip property Location, declared in StationLocation
// skip readonly property StationSetup
// skip readonly property Station
// skip property StationType, declared in StationLocation
// skip property AttachableHead, declared in StationLocation
// skip property Camera, declared in StationLocation
// skip property Camera, declared in StationLocation
// skip property Camera, declared in StationLocation
// skip property Camera, declared in StationLocation
// skip property Camera, declared in StationLocation
// skip property DictionaryProxy`2, property in exclude list
// skip readonly property TableInsert
// skip readonly property Number
// skip property Gantry, declared in StationLocation
asmStationLocation.NozzlePerReceptacle = itacStationLocation.NozzlePerReceptacle;
asmStationLocation.NozzlePerReceptacle2 = itacStationLocation.NozzlePerReceptacle2;
// skip readonly property EnablePerPocketNozzleChanger
// complex property Table, isArray:False, isGeneric:False
itacStationLocation.Table = com.itac.oib.siplacepro.contracts.data.TableMapper.get( asmStationLocation.Table);
// skip readonly property SupportsTableDeconfiguration
}
// maps iTAC namespace conform array to ASM namespace array
public static Asm.As.Oib.SiplacePro.Proxy.Business.Objects.StationLocation[] get(StationLocation[] itacStationLocation)
{
if (itacStationLocation == null) { return null; }
Asm.As.Oib.SiplacePro.Proxy.Business.Objects.StationLocation[] asmStationLocation = new Asm.As.Oib.SiplacePro.Proxy.Business.Objects.StationLocation[itacStationLocation.Length];
for (int i = 0; i < itacStationLocation.Length; i++)
{
// to itac array
asmStationLocation[i] = StationLocationMapper.get(itacStationLocation[i]);
}
return asmStationLocation;
}
// maps iTAC namespace conform array to ASM namespace list
public static List<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.StationLocation> getList(StationLocation[] asmStationLocation)
{
if (asmStationLocation == null) { return null; }
List<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.StationLocation> itacStationLocation = new List<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.StationLocation>();
for (int i = 0; i < asmStationLocation.Length; i++)
{
itacStationLocation.Add(StationLocationMapper.get(asmStationLocation[i]));
}
return itacStationLocation;
}
// map type from ASM namespace to iTAC namespace
public static StationLocation get(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.StationLocation asmStationLocation)
{
if (asmStationLocation == null) { return null; }
StationLocation itacStationLocation = new StationLocation();
mapAsm2Itac(asmStationLocation, itacStationLocation);
return itacStationLocation;
}
public static void mapAsm2Itac(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.StationLocation asmStationLocation, StationLocation itacStationLocation)
{
// skip property Location, declared in StationLocation
itacStationLocation.StationSetup = com.itac.oib.siplacepro.contracts.data.StationSetupMapper.get(asmStationLocation.StationSetup);
// complex asm property StationSetup
itacStationLocation.Station = com.itac.oib.siplacepro.contracts.data.StationMapper.get(asmStationLocation.Station);
// complex asm property Station
// skip property StationType, declared in StationLocation
// skip property AttachableHead, declared in StationLocation
// skip property Camera, declared in StationLocation
// skip property Camera, declared in StationLocation
// skip property Camera, declared in StationLocation
// skip property Camera, declared in StationLocation
// skip property Camera, declared in StationLocation
// skip property DictionaryProxy`2, property in exclude list
itacStationLocation.TableInsert = com.itac.oib.siplacepro.contracts.data.TableInsertMapper.get(asmStationLocation.TableInsert);
// complex asm property TableInsert
itacStationLocation.Number = asmStationLocation.Number;
// skip property Gantry, declared in StationLocation
itacStationLocation.NozzlePerReceptacle = asmStationLocation.NozzlePerReceptacle;
itacStationLocation.NozzlePerReceptacle2 = asmStationLocation.NozzlePerReceptacle2;
itacStationLocation.EnablePerPocketNozzleChanger = asmStationLocation.EnablePerPocketNozzleChanger;
itacStationLocation.Table = com.itac.oib.siplacepro.contracts.data.TableMapper.get(asmStationLocation.Table);
// complex asm property Table
itacStationLocation.SupportsTableDeconfiguration = asmStationLocation.SupportsTableDeconfiguration;
}
// maps ASM namespace conform list to iTAC namespace array
public static StationLocation[] getArray(IList<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.StationLocation> asmStationLocation)
{
if (asmStationLocation == null) { return null; }
StationLocation[] itacStationLocation = new StationLocation[asmStationLocation.Count];
for (int i = 0; i < asmStationLocation.Count; i++)
{
itacStationLocation[i] = StationLocationMapper.get(asmStationLocation[i]);
}
return itacStationLocation;
}
// maps ASM namespace conform array to iTAC namespace array
public static StationLocation[] getArray(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.StationLocation[] asmStationLocation)
{
if (asmStationLocation == null) { return null; }
StationLocation[] itacStationLocation = new StationLocation[asmStationLocation.Length];
for (int i = 0; i < asmStationLocation.Length; i++)
{
itacStationLocation[i] = StationLocationMapper.get(asmStationLocation[i]);
}
return itacStationLocation;
}
}
}

View File

@@ -0,0 +1,204 @@
/*
* 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 05.11.2018 14:52:23
// skip property Dictionary`2, property in exclude list
// skip property StationTopologyConfiguration[], property in exclude list
// skip property Double, property in exclude list
// skip property Double, property in exclude list
// skip property DictionaryProxy`2, property in exclude list
// skip property HardwareConfiguration, declared in Station
// skip property ListProxy`1, property in exclude list
// skip property SWPlatform, declared in Station
// skip property ArrayList, property in exclude list
// skip property StationTopologyConfiguration, declared in Station
// skip property StationType, declared in Station
// skip property Int32, property in exclude list
// skip property StaticVisionSystem, declared in Station
// skip property VisionSystemType, declared in Station
// skip property ArrayList, property in exclude list
// skip property String, property in exclude list
// skip property ArrayList, property in exclude list
using System;
using System.Collections.Generic;
using com.itac.oib.siplacepro.contracts.types;
namespace com.itac.oib.siplacepro.contracts.data
{
// source: assembly 5.1.0.84
// source: assembly ASM.AS.OIB.SIPLACEPro.Proxy
public class StationMapper
{
// 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.Proxy.Business.Objects.Station get(Station itacStation)
{
if (itacStation == null) { return null; }
Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Station asmStation = new Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Station(Asm.As.Oib.SiplacePro.Proxy.Business.Types.ResourceIDs.AttachableheadtypeCp_20);
mapItac2Asm(asmStation, itacStation);
return asmStation;
}
public static void mapItac2Asm(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Station asmStation, Station itacStation)
{
// skip property Dictionary`2, property in exclude list
// skip property StationTopologyConfiguration[], property in exclude list
// skip readonly property RecipeDownload
asmStation.CanScanComponentBarcodes = itacStation.CanScanComponentBarcodes;
asmStation.HasPCBBarcodeReadingSystem = itacStation.HasPCBBarcodeReadingSystem;
// skip property Double, property in exclude list
// skip property Double, property in exclude list
asmStation.OffsetZ = itacStation.OffsetZ;
// complex property SkipPCB, isArray:False, isGeneric:False
itacStation.SkipPCB = com.itac.oib.siplacepro.contracts.types.SkipBoardWithUnknownBarcodeMapper.get( asmStation.SkipPCB);
asmStation.IPName = itacStation.IPName;
asmStation.IPAddress = itacStation.IPAddress;
asmStation.FixedConveyorRailDefaultDistanceOffset = itacStation.FixedConveyorRailDefaultDistanceOffset;
asmStation.Allow407TraceSOKO = itacStation.Allow407TraceSOKO;
// skip property DictionaryProxy`2, property in exclude list
asmStation.MaxNumberOfPlacementsPerGantry = itacStation.MaxNumberOfPlacementsPerGantry;
asmStation.TraceabilitySystem = itacStation.TraceabilitySystem;
// skip property HardwareConfiguration, declared in Station
asmStation.EnableAlternativeComponents = itacStation.EnableAlternativeComponents;
// skip property ListProxy`1, property in exclude list
asmStation.OddShapedComponentOption = itacStation.OddShapedComponentOption;
// skip property SWPlatform, declared in Station
asmStation.SoftwareVersion = itacStation.SoftwareVersion;
// skip property ArrayList, property in exclude list
// skip property StationTopologyConfiguration, declared in Station
asmStation.IPAddressString = itacStation.IPAddressString;
// skip readonly property IsOptionalRev12NozzleChangerPerPocket
// skip readonly property IsAlwaysRev12NozzleChangerPerPocket
// skip readonly property IsLongBoardOptionSupported
// skip readonly property IsAlternativeComponentsOptionSupported
asmStation.AllowPerPocketRev12NozzleChanger = itacStation.AllowPerPocketRev12NozzleChanger;
asmStation.WhisperDownTheLine = itacStation.WhisperDownTheLine;
// skip readonly property SupportsWisperingDownTheLine
// skip readonly property SupportsPCBBarcode
// skip property StationType, declared in Station
// skip property Int32, property in exclude list
// skip property StaticVisionSystem, declared in Station
// skip property VisionSystemType, declared in Station
// skip property ArrayList, property in exclude list
// skip property String, property in exclude list
// skip property ArrayList, property in exclude list
asmStation.HardwareVersion = itacStation.HardwareVersion;
// skip readonly property NumericalSoftwareVersion
// skip readonly property Name
// skip readonly property FullPath
}
// maps iTAC namespace conform array to ASM namespace array
public static Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Station[] get(Station[] itacStation)
{
if (itacStation == null) { return null; }
Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Station[] asmStation = new Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Station[itacStation.Length];
for (int i = 0; i < itacStation.Length; i++)
{
// to itac array
asmStation[i] = StationMapper.get(itacStation[i]);
}
return asmStation;
}
// maps iTAC namespace conform array to ASM namespace list
public static List<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Station> getList(Station[] asmStation)
{
if (asmStation == null) { return null; }
List<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Station> itacStation = new List<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Station>();
for (int i = 0; i < asmStation.Length; i++)
{
itacStation.Add(StationMapper.get(asmStation[i]));
}
return itacStation;
}
// map type from ASM namespace to iTAC namespace
public static Station get(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Station asmStation)
{
if (asmStation == null) { return null; }
Station itacStation = new Station();
mapAsm2Itac(asmStation, itacStation);
return itacStation;
}
public static void mapAsm2Itac(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Station asmStation, Station itacStation)
{
// skip property Dictionary`2, property in exclude list
// skip property StationTopologyConfiguration[], property in exclude list
itacStation.RecipeDownload = asmStation.RecipeDownload;
itacStation.CanScanComponentBarcodes = asmStation.CanScanComponentBarcodes;
itacStation.HasPCBBarcodeReadingSystem = asmStation.HasPCBBarcodeReadingSystem;
// skip property Double, property in exclude list
// skip property Double, property in exclude list
itacStation.OffsetZ = asmStation.OffsetZ;
itacStation.SkipPCB = com.itac.oib.siplacepro.contracts.types.SkipBoardWithUnknownBarcodeMapper.get(asmStation.SkipPCB);
// complex asm property SkipPCB
itacStation.IPName = asmStation.IPName;
itacStation.IPAddress = asmStation.IPAddress;
itacStation.FixedConveyorRailDefaultDistanceOffset = asmStation.FixedConveyorRailDefaultDistanceOffset;
itacStation.Allow407TraceSOKO = asmStation.Allow407TraceSOKO;
// skip property DictionaryProxy`2, property in exclude list
itacStation.MaxNumberOfPlacementsPerGantry = asmStation.MaxNumberOfPlacementsPerGantry;
itacStation.TraceabilitySystem = asmStation.TraceabilitySystem;
// skip property HardwareConfiguration, declared in Station
itacStation.EnableAlternativeComponents = asmStation.EnableAlternativeComponents;
// skip property ListProxy`1, property in exclude list
itacStation.OddShapedComponentOption = asmStation.OddShapedComponentOption;
// skip property SWPlatform, declared in Station
itacStation.SoftwareVersion = asmStation.SoftwareVersion;
// skip property ArrayList, property in exclude list
// skip property StationTopologyConfiguration, declared in Station
itacStation.IPAddressString = asmStation.IPAddressString;
itacStation.IsOptionalRev12NozzleChangerPerPocket = asmStation.IsOptionalRev12NozzleChangerPerPocket;
itacStation.IsAlwaysRev12NozzleChangerPerPocket = asmStation.IsAlwaysRev12NozzleChangerPerPocket;
itacStation.IsLongBoardOptionSupported = asmStation.IsLongBoardOptionSupported;
itacStation.IsAlternativeComponentsOptionSupported = asmStation.IsAlternativeComponentsOptionSupported;
itacStation.AllowPerPocketRev12NozzleChanger = asmStation.AllowPerPocketRev12NozzleChanger;
itacStation.WhisperDownTheLine = asmStation.WhisperDownTheLine;
itacStation.SupportsWisperingDownTheLine = asmStation.SupportsWisperingDownTheLine;
itacStation.SupportsPCBBarcode = asmStation.SupportsPCBBarcode;
// skip property StationType, declared in Station
// skip property Int32, property in exclude list
// skip property StaticVisionSystem, declared in Station
// skip property VisionSystemType, declared in Station
// skip property ArrayList, property in exclude list
// skip property String, property in exclude list
// skip property ArrayList, property in exclude list
itacStation.HardwareVersion = asmStation.HardwareVersion;
itacStation.NumericalSoftwareVersion = asmStation.NumericalSoftwareVersion;
itacStation.Name = asmStation.Name;
itacStation.FullPath = asmStation.FullPath;
}
// maps ASM namespace conform list to iTAC namespace array
public static Station[] getArray(IList<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Station> asmStation)
{
if (asmStation == null) { return null; }
Station[] itacStation = new Station[asmStation.Count];
for (int i = 0; i < asmStation.Count; i++)
{
itacStation[i] = StationMapper.get(asmStation[i]);
}
return itacStation;
}
// maps ASM namespace conform array to iTAC namespace array
public static Station[] getArray(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Station[] asmStation)
{
if (asmStation == null) { return null; }
Station[] itacStation = new Station[asmStation.Length];
for (int i = 0; i < asmStation.Length; i++)
{
itacStation[i] = StationMapper.get(asmStation[i]);
}
return itacStation;
}
}
}

View File

@@ -0,0 +1,272 @@
/*
* 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 05.11.2018 14:52:23
// skip property StationTopologyConfiguration, declared in StationSetup
// skip property ArrayList, property in exclude list
// skip property String, property in exclude list
// skip property StationTopologyConfiguration[], property in exclude list
// skip property DictionaryProxy`2, property in exclude list
// skip property VisionSystem, declared in StationSetup
// skip property CameraType, declared in StationSetup
// skip property Scanner, declared in StationSetup
// skip property DictionaryProxy`2, property in exclude list
// skip property StationConveyorSystemSetup, property in exclude list
// skip property ComponentPlacementDistributionMode, declared in StationSetup
// skip property StationPrePickMode, declared in StationSetup
// skip property StationType, declared in StationSetup
// skip property ArrayList, property in exclude list
// skip property ArrayList, property in exclude list
// skip property ArrayList, property in exclude list
// skip property ArrayList, property in exclude list
// skip property Int32, property in exclude list
// skip property SupportPinModuleType[], property in exclude list
// skip property SupportPinModuleType, declared in StationSetup
using System;
using System.Collections.Generic;
using com.itac.oib.siplacepro.contracts.types;
namespace com.itac.oib.siplacepro.contracts.data
{
// source: assembly 5.1.0.84
// source: assembly ASM.AS.OIB.SIPLACEPro.Proxy
public class StationSetupMapper
{
// 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.Proxy.Business.Objects.StationSetup get(StationSetup itacStationSetup)
{
if (itacStationSetup == null) { return null; }
Asm.As.Oib.SiplacePro.Proxy.Business.Objects.StationSetup asmStationSetup = new Asm.As.Oib.SiplacePro.Proxy.Business.Objects.StationSetup();
mapItac2Asm(asmStationSetup, itacStationSetup);
return asmStationSetup;
}
public static void mapItac2Asm(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.StationSetup asmStationSetup, StationSetup itacStationSetup)
{
// skip readonly property Station
// skip property StationTopologyConfiguration, declared in StationSetup
// skip property ArrayList, property in exclude list
asmStationSetup.VisionSystemTypeName = itacStationSetup.VisionSystemTypeName;
// skip property String, property in exclude list
// skip property StationTopologyConfiguration[], property in exclude list
// skip property DictionaryProxy`2, property in exclude list
// skip property VisionSystem, declared in StationSetup
// skip property CameraType, declared in StationSetup
asmStationSetup.EndOfCluster = itacStationSetup.EndOfCluster;
// skip property Scanner, declared in StationSetup
// skip property DictionaryProxy`2, property in exclude list
asmStationSetup.WhisperDownTheMachine = itacStationSetup.WhisperDownTheMachine;
asmStationSetup.SlowConveyorMode = itacStationSetup.SlowConveyorMode;
// skip property StationConveyorSystemSetup, property in exclude list
asmStationSetup.OmitStation = itacStationSetup.OmitStation;
asmStationSetup.HeavyBoardConveyorMode = itacStationSetup.HeavyBoardConveyorMode;
asmStationSetup.SoftwareVersion = itacStationSetup.SoftwareVersion;
// complex property ArbitrarySetupMode, isArray:False, isGeneric:False
itacStationSetup.ArbitrarySetupMode = com.itac.oib.siplacepro.contracts.types.ArbitrarySetupModeMapper.get( asmStationSetup.ArbitrarySetupMode);
asmStationSetup.IsSupportPinModuleActive = itacStationSetup.IsSupportPinModuleActive;
// skip property ComponentPlacementDistributionMode, declared in StationSetup
// skip property StationPrePickMode, declared in StationSetup
asmStationSetup.ActivatePeriodicFiducialMeasurement = itacStationSetup.ActivatePeriodicFiducialMeasurement;
// skip property StationType, declared in StationSetup
// skip property ArrayList, property in exclude list
asmStationSetup.PCBCameraTypeName = itacStationSetup.PCBCameraTypeName;
// skip property ArrayList, property in exclude list
asmStationSetup.BarcodeSystemTypeName = itacStationSetup.BarcodeSystemTypeName;
// skip property ArrayList, property in exclude list
asmStationSetup.PCBTransport = itacStationSetup.PCBTransport;
asmStationSetup.LongBoardStopperOffsetFront = itacStationSetup.LongBoardStopperOffsetFront;
asmStationSetup.LongBoardStopperOffsetRear = itacStationSetup.LongBoardStopperOffsetRear;
asmStationSetup.LBOPosition11 = itacStationSetup.LBOPosition11;
asmStationSetup.LBOPosition12 = itacStationSetup.LBOPosition12;
asmStationSetup.LBOPosition21 = itacStationSetup.LBOPosition21;
asmStationSetup.LBOPosition22 = itacStationSetup.LBOPosition22;
asmStationSetup.LBOPositionReverseArea1 = itacStationSetup.LBOPositionReverseArea1;
asmStationSetup.LBOPositionReverseArea2 = itacStationSetup.LBOPositionReverseArea2;
asmStationSetup.LBOUseOpt11 = itacStationSetup.LBOUseOpt11;
asmStationSetup.LBOUseOpt12 = itacStationSetup.LBOUseOpt12;
asmStationSetup.LBOUseOpt21 = itacStationSetup.LBOUseOpt21;
asmStationSetup.LBOUseOpt22 = itacStationSetup.LBOUseOpt22;
asmStationSetup.LBOUseOptReverseArea1 = itacStationSetup.LBOUseOptReverseArea1;
asmStationSetup.LBOUseOptReverseArea2 = itacStationSetup.LBOUseOptReverseArea2;
asmStationSetup.StopperInfo12 = itacStationSetup.StopperInfo12;
asmStationSetup.StopperInfo22 = itacStationSetup.StopperInfo22;
asmStationSetup.StopperInfoArea1Reverse = itacStationSetup.StopperInfoArea1Reverse;
asmStationSetup.StopperInfoArea2Reverse = itacStationSetup.StopperInfoArea2Reverse;
// skip property ArrayList, property in exclude list
// skip readonly property FixedConveyorRailDistance
asmStationSetup.FixedRailPositionRightConveyorLane = itacStationSetup.FixedRailPositionRightConveyorLane;
// skip readonly property DefaultFixedRailPositionRightConveyorLane
// skip readonly property FixedRailPositionRightConveyorLaneEnabled
// skip readonly property DefaultMaxBoardWidthRightConveyorLane
// skip readonly property MaxBoardWidthRightConveyorLane
asmStationSetup.FixedRailPositionLeftConveyorLane = itacStationSetup.FixedRailPositionLeftConveyorLane;
// skip readonly property DefaultFixedRailPositionLeftConveyorLane
// skip readonly property FixedRailPositionLeftConveyorLaneEnabled
// skip readonly property DefaultMaxBoardWidthLeftConveyorLane
// skip readonly property MaxBoardWidthLeftConveyorLane
// complex property PlacementModeAreaFront, isArray:False, isGeneric:False
itacStationSetup.PlacementModeAreaFront = com.itac.oib.siplacepro.contracts.types.PlacementAreaPlacementModeMapper.get( asmStationSetup.PlacementModeAreaFront);
// complex property PlacementModeAreaRear, isArray:False, isGeneric:False
itacStationSetup.PlacementModeAreaRear = com.itac.oib.siplacepro.contracts.types.PlacementAreaPlacementModeMapper.get( asmStationSetup.PlacementModeAreaRear);
// skip readonly property APlacementIsAllowed
// skip readonly property IPlacementIsAllowed
// skip readonly property ViPlacementIsAllowed
// skip readonly property SupportsPrePickConfiguration
// skip readonly property SupportsOmit
// skip readonly property SupportsPeriodicFiducialMeasurement
// skip property Int32, property in exclude list
// skip readonly property SupportsArbitraySetup
// skip readonly property SupportsArbitraySetupOfTrayFeeders
// skip property SupportPinModuleType[], property in exclude list
// skip property SupportPinModuleType, declared in StationSetup
asmStationSetup.IsCustomPlacementRangeEnabled = itacStationSetup.IsCustomPlacementRangeEnabled;
}
// maps iTAC namespace conform array to ASM namespace array
public static Asm.As.Oib.SiplacePro.Proxy.Business.Objects.StationSetup[] get(StationSetup[] itacStationSetup)
{
if (itacStationSetup == null) { return null; }
Asm.As.Oib.SiplacePro.Proxy.Business.Objects.StationSetup[] asmStationSetup = new Asm.As.Oib.SiplacePro.Proxy.Business.Objects.StationSetup[itacStationSetup.Length];
for (int i = 0; i < itacStationSetup.Length; i++)
{
// to itac array
asmStationSetup[i] = StationSetupMapper.get(itacStationSetup[i]);
}
return asmStationSetup;
}
// maps iTAC namespace conform array to ASM namespace list
public static List<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.StationSetup> getList(StationSetup[] asmStationSetup)
{
if (asmStationSetup == null) { return null; }
List<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.StationSetup> itacStationSetup = new List<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.StationSetup>();
for (int i = 0; i < asmStationSetup.Length; i++)
{
itacStationSetup.Add(StationSetupMapper.get(asmStationSetup[i]));
}
return itacStationSetup;
}
// map type from ASM namespace to iTAC namespace
public static StationSetup get(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.StationSetup asmStationSetup)
{
if (asmStationSetup == null) { return null; }
StationSetup itacStationSetup = new StationSetup();
mapAsm2Itac(asmStationSetup, itacStationSetup);
return itacStationSetup;
}
public static void mapAsm2Itac(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.StationSetup asmStationSetup, StationSetup itacStationSetup)
{
itacStationSetup.Station = com.itac.oib.siplacepro.contracts.data.StationMapper.get(asmStationSetup.Station);
// complex asm property Station
// skip property StationTopologyConfiguration, declared in StationSetup
// skip property ArrayList, property in exclude list
itacStationSetup.VisionSystemTypeName = asmStationSetup.VisionSystemTypeName;
// skip property String, property in exclude list
// skip property StationTopologyConfiguration[], property in exclude list
// skip property DictionaryProxy`2, property in exclude list
// skip property VisionSystem, declared in StationSetup
// skip property CameraType, declared in StationSetup
itacStationSetup.EndOfCluster = asmStationSetup.EndOfCluster;
// skip property Scanner, declared in StationSetup
// skip property DictionaryProxy`2, property in exclude list
itacStationSetup.WhisperDownTheMachine = asmStationSetup.WhisperDownTheMachine;
itacStationSetup.SlowConveyorMode = asmStationSetup.SlowConveyorMode;
// skip property StationConveyorSystemSetup, property in exclude list
itacStationSetup.OmitStation = asmStationSetup.OmitStation;
itacStationSetup.HeavyBoardConveyorMode = asmStationSetup.HeavyBoardConveyorMode;
itacStationSetup.SoftwareVersion = asmStationSetup.SoftwareVersion;
itacStationSetup.ArbitrarySetupMode = com.itac.oib.siplacepro.contracts.types.ArbitrarySetupModeMapper.get(asmStationSetup.ArbitrarySetupMode);
// complex asm property ArbitrarySetupMode
itacStationSetup.IsSupportPinModuleActive = asmStationSetup.IsSupportPinModuleActive;
// skip property ComponentPlacementDistributionMode, declared in StationSetup
// skip property StationPrePickMode, declared in StationSetup
itacStationSetup.ActivatePeriodicFiducialMeasurement = asmStationSetup.ActivatePeriodicFiducialMeasurement;
// skip property StationType, declared in StationSetup
// skip property ArrayList, property in exclude list
itacStationSetup.PCBCameraTypeName = asmStationSetup.PCBCameraTypeName;
// skip property ArrayList, property in exclude list
itacStationSetup.BarcodeSystemTypeName = asmStationSetup.BarcodeSystemTypeName;
// skip property ArrayList, property in exclude list
itacStationSetup.PCBTransport = asmStationSetup.PCBTransport;
itacStationSetup.LongBoardStopperOffsetFront = asmStationSetup.LongBoardStopperOffsetFront;
itacStationSetup.LongBoardStopperOffsetRear = asmStationSetup.LongBoardStopperOffsetRear;
itacStationSetup.LBOPosition11 = asmStationSetup.LBOPosition11;
itacStationSetup.LBOPosition12 = asmStationSetup.LBOPosition12;
itacStationSetup.LBOPosition21 = asmStationSetup.LBOPosition21;
itacStationSetup.LBOPosition22 = asmStationSetup.LBOPosition22;
itacStationSetup.LBOPositionReverseArea1 = asmStationSetup.LBOPositionReverseArea1;
itacStationSetup.LBOPositionReverseArea2 = asmStationSetup.LBOPositionReverseArea2;
itacStationSetup.LBOUseOpt11 = asmStationSetup.LBOUseOpt11;
itacStationSetup.LBOUseOpt12 = asmStationSetup.LBOUseOpt12;
itacStationSetup.LBOUseOpt21 = asmStationSetup.LBOUseOpt21;
itacStationSetup.LBOUseOpt22 = asmStationSetup.LBOUseOpt22;
itacStationSetup.LBOUseOptReverseArea1 = asmStationSetup.LBOUseOptReverseArea1;
itacStationSetup.LBOUseOptReverseArea2 = asmStationSetup.LBOUseOptReverseArea2;
itacStationSetup.StopperInfo12 = asmStationSetup.StopperInfo12;
itacStationSetup.StopperInfo22 = asmStationSetup.StopperInfo22;
itacStationSetup.StopperInfoArea1Reverse = asmStationSetup.StopperInfoArea1Reverse;
itacStationSetup.StopperInfoArea2Reverse = asmStationSetup.StopperInfoArea2Reverse;
// skip property ArrayList, property in exclude list
itacStationSetup.FixedConveyorRailDistance = asmStationSetup.FixedConveyorRailDistance;
itacStationSetup.FixedRailPositionRightConveyorLane = asmStationSetup.FixedRailPositionRightConveyorLane;
itacStationSetup.DefaultFixedRailPositionRightConveyorLane = asmStationSetup.DefaultFixedRailPositionRightConveyorLane;
itacStationSetup.FixedRailPositionRightConveyorLaneEnabled = asmStationSetup.FixedRailPositionRightConveyorLaneEnabled;
itacStationSetup.DefaultMaxBoardWidthRightConveyorLane = asmStationSetup.DefaultMaxBoardWidthRightConveyorLane;
itacStationSetup.MaxBoardWidthRightConveyorLane = asmStationSetup.MaxBoardWidthRightConveyorLane;
itacStationSetup.FixedRailPositionLeftConveyorLane = asmStationSetup.FixedRailPositionLeftConveyorLane;
itacStationSetup.DefaultFixedRailPositionLeftConveyorLane = asmStationSetup.DefaultFixedRailPositionLeftConveyorLane;
itacStationSetup.FixedRailPositionLeftConveyorLaneEnabled = asmStationSetup.FixedRailPositionLeftConveyorLaneEnabled;
itacStationSetup.DefaultMaxBoardWidthLeftConveyorLane = asmStationSetup.DefaultMaxBoardWidthLeftConveyorLane;
itacStationSetup.MaxBoardWidthLeftConveyorLane = asmStationSetup.MaxBoardWidthLeftConveyorLane;
itacStationSetup.PlacementModeAreaFront = com.itac.oib.siplacepro.contracts.types.PlacementAreaPlacementModeMapper.get(asmStationSetup.PlacementModeAreaFront);
// complex asm property PlacementModeAreaFront
itacStationSetup.PlacementModeAreaRear = com.itac.oib.siplacepro.contracts.types.PlacementAreaPlacementModeMapper.get(asmStationSetup.PlacementModeAreaRear);
// complex asm property PlacementModeAreaRear
itacStationSetup.APlacementIsAllowed = asmStationSetup.APlacementIsAllowed;
itacStationSetup.IPlacementIsAllowed = asmStationSetup.IPlacementIsAllowed;
itacStationSetup.ViPlacementIsAllowed = asmStationSetup.ViPlacementIsAllowed;
itacStationSetup.SupportsPrePickConfiguration = asmStationSetup.SupportsPrePickConfiguration;
itacStationSetup.SupportsOmit = asmStationSetup.SupportsOmit;
itacStationSetup.SupportsPeriodicFiducialMeasurement = asmStationSetup.SupportsPeriodicFiducialMeasurement;
// skip property Int32, property in exclude list
itacStationSetup.SupportsArbitraySetup = asmStationSetup.SupportsArbitraySetup;
itacStationSetup.SupportsArbitraySetupOfTrayFeeders = asmStationSetup.SupportsArbitraySetupOfTrayFeeders;
// skip property SupportPinModuleType[], property in exclude list
// skip property SupportPinModuleType, declared in StationSetup
itacStationSetup.IsCustomPlacementRangeEnabled = asmStationSetup.IsCustomPlacementRangeEnabled;
}
// maps ASM namespace conform list to iTAC namespace array
public static StationSetup[] getArray(IList<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.StationSetup> asmStationSetup)
{
if (asmStationSetup == null) { return null; }
StationSetup[] itacStationSetup = new StationSetup[asmStationSetup.Count];
for (int i = 0; i < asmStationSetup.Count; i++)
{
itacStationSetup[i] = StationSetupMapper.get(asmStationSetup[i]);
}
return itacStationSetup;
}
// maps ASM namespace conform array to iTAC namespace array
public static StationSetup[] getArray(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.StationSetup[] asmStationSetup)
{
if (asmStationSetup == null) { return null; }
StationSetup[] itacStationSetup = new StationSetup[asmStationSetup.Length];
for (int i = 0; i < asmStationSetup.Length; i++)
{
itacStationSetup[i] = StationSetupMapper.get(asmStationSetup[i]);
}
return itacStationSetup;
}
}
}

View File

@@ -0,0 +1,105 @@
/*
* 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 05.11.2018 14:52:23
using System;
using System.Collections.Generic;
using com.itac.oib.siplacepro.contracts.types;
namespace com.itac.oib.siplacepro.contracts.data
{
// source: assembly 5.1.0.84
// source: assembly ASM.AS.OIB.SIPLACEPro.Proxy
public class TableInsertMapper
{
// 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.Proxy.Business.Objects.TableInsert get(TableInsert itacTableInsert)
{
if (itacTableInsert == null) { return null; }
Asm.As.Oib.SiplacePro.Proxy.Business.Objects.TableInsert asmTableInsert = new Asm.As.Oib.SiplacePro.Proxy.Business.Objects.TableInsert();
mapItac2Asm(asmTableInsert, itacTableInsert);
return asmTableInsert;
}
public static void mapItac2Asm(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.TableInsert asmTableInsert, TableInsert itacTableInsert)
{
// complex property TableInsertType, isArray:False, isGeneric:False
itacTableInsert.TableInsertType = com.itac.oib.siplacepro.contracts.types.TableInsertTypeIdMapper.get( asmTableInsert.TableInsertType);
// complex property Table, isArray:False, isGeneric:False
itacTableInsert.Table = com.itac.oib.siplacepro.contracts.data.TableMapper.get( asmTableInsert.Table);
}
// maps iTAC namespace conform array to ASM namespace array
public static Asm.As.Oib.SiplacePro.Proxy.Business.Objects.TableInsert[] get(TableInsert[] itacTableInsert)
{
if (itacTableInsert == null) { return null; }
Asm.As.Oib.SiplacePro.Proxy.Business.Objects.TableInsert[] asmTableInsert = new Asm.As.Oib.SiplacePro.Proxy.Business.Objects.TableInsert[itacTableInsert.Length];
for (int i = 0; i < itacTableInsert.Length; i++)
{
// to itac array
asmTableInsert[i] = TableInsertMapper.get(itacTableInsert[i]);
}
return asmTableInsert;
}
// maps iTAC namespace conform array to ASM namespace list
public static List<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.TableInsert> getList(TableInsert[] asmTableInsert)
{
if (asmTableInsert == null) { return null; }
List<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.TableInsert> itacTableInsert = new List<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.TableInsert>();
for (int i = 0; i < asmTableInsert.Length; i++)
{
itacTableInsert.Add(TableInsertMapper.get(asmTableInsert[i]));
}
return itacTableInsert;
}
// map type from ASM namespace to iTAC namespace
public static TableInsert get(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.TableInsert asmTableInsert)
{
if (asmTableInsert == null) { return null; }
TableInsert itacTableInsert = new TableInsert();
mapAsm2Itac(asmTableInsert, itacTableInsert);
return itacTableInsert;
}
public static void mapAsm2Itac(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.TableInsert asmTableInsert, TableInsert itacTableInsert)
{
itacTableInsert.TableInsertType = com.itac.oib.siplacepro.contracts.types.TableInsertTypeIdMapper.get(asmTableInsert.TableInsertType);
// complex asm property TableInsertType
itacTableInsert.Table = com.itac.oib.siplacepro.contracts.data.TableMapper.get(asmTableInsert.Table);
// complex asm property Table
}
// maps ASM namespace conform list to iTAC namespace array
public static TableInsert[] getArray(IList<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.TableInsert> asmTableInsert)
{
if (asmTableInsert == null) { return null; }
TableInsert[] itacTableInsert = new TableInsert[asmTableInsert.Count];
for (int i = 0; i < asmTableInsert.Count; i++)
{
itacTableInsert[i] = TableInsertMapper.get(asmTableInsert[i]);
}
return itacTableInsert;
}
// maps ASM namespace conform array to iTAC namespace array
public static TableInsert[] getArray(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.TableInsert[] asmTableInsert)
{
if (asmTableInsert == null) { return null; }
TableInsert[] itacTableInsert = new TableInsert[asmTableInsert.Length];
for (int i = 0; i < asmTableInsert.Length; i++)
{
itacTableInsert[i] = TableInsertMapper.get(asmTableInsert[i]);
}
return itacTableInsert;
}
}
}

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 05.11.2018 08:33:53
using System;
using System.Collections.Generic;
using com.itac.oib.siplacepro.contracts.types;
namespace com.itac.oib.siplacepro.contracts.data
{
// source: assembly 5.1.0.84
// source: assembly ASM.AS.OIB.SIPLACEPro.Proxy
public class TableLocationMapper
{
// used for itac->asm: True
// used for asm->itac: True
// maps iTAC namespace conform type to ASM namespace type
// maps iTAC namespace conform array to ASM namespace array
public static Asm.As.Oib.SiplacePro.Proxy.Business.Objects.TableLocation[] get(TableLocation[] asmTableLocation)
{
if (asmTableLocation == null) { return null; }
Asm.As.Oib.SiplacePro.Proxy.Business.Objects.TableLocation[] itacTableLocation = new Asm.As.Oib.SiplacePro.Proxy.Business.Objects.TableLocation[asmTableLocation.Length];
for (int i = 0; i < asmTableLocation.Length; i++)
{
// to itac array
itacTableLocation[i] = TableLocationMapper.get(asmTableLocation[i]);
}
return itacTableLocation;
}
// maps iTAC namespace conform array to ASM namespace list
public static List<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.TableLocation> getList(TableLocation[] asmTableLocation)
{
if (asmTableLocation == null) { return null; }
List<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.TableLocation> itacTableLocation = new List<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.TableLocation>();
for (int i = 0; i < asmTableLocation.Length; i++)
{
itacTableLocation.Add(TableLocationMapper.get(asmTableLocation[i]));
}
return itacTableLocation;
}
// map type from ASM namespace to iTAC namespace
public static TableLocation get(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.TableLocation asmTableLocation)
{
if (asmTableLocation == null) { return null; }
TableLocation itacTableLocation = new TableLocation();
mapAsm2Itac(asmTableLocation, itacTableLocation);
return itacTableLocation;
}
public static void mapAsm2Itac(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.TableLocation asmTableLocation, TableLocation itacTableLocation)
{
itacTableLocation.Number = com.itac.oib.siplacepro.contracts.types.TableLocationNumberMapper.get(asmTableLocation.Number);
// complex asm property Number
itacTableLocation.MCTableType = com.itac.oib.siplacepro.contracts.types.MCTableTypeMapper.get(asmTableLocation.MCTableType);
// complex asm property MCTableType
itacTableLocation.StartTrack = asmTableLocation.StartTrack;
itacTableLocation.EndTrack = asmTableLocation.EndTrack;
itacTableLocation.SubType = com.itac.oib.siplacepro.contracts.types.TableLocationSubTypeMapper.get(asmTableLocation.SubType);
// complex asm property SubType
itacTableLocation.FixedAssembled = asmTableLocation.FixedAssembled;
itacTableLocation.StationDeviceId = asmTableLocation.StationDeviceId;
}
// maps ASM namespace conform list to iTAC namespace array
public static TableLocation[] getArray(IList<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.TableLocation> asmTableLocation)
{
if (asmTableLocation == null) { return null; }
TableLocation[] itacTableLocation = new TableLocation[asmTableLocation.Count];
for (int i = 0; i < asmTableLocation.Count; i++)
{
itacTableLocation[i] = TableLocationMapper.get(asmTableLocation[i]);
}
return itacTableLocation;
}
// maps ASM namespace conform array to iTAC namespace array
public static TableLocation[] getArray(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.TableLocation[] asmTableLocation)
{
if (asmTableLocation == null) { return null; }
TableLocation[] itacTableLocation = new TableLocation[asmTableLocation.Length];
for (int i = 0; i < asmTableLocation.Length; i++)
{
itacTableLocation[i] = TableLocationMapper.get(asmTableLocation[i]);
}
return itacTableLocation;
}
}
}

View File

@@ -0,0 +1,155 @@
/*
* 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 05.11.2018 14:52:23
// skip property Dictionary`2, property in exclude list
// skip (ignore generic type TrackArea)
// skip property Double, property in exclude list
// skip property Double, property in exclude list
// skip property DictionaryProxy`2, property in exclude list
// skip (ignore generic type TrackInformation)
// skip property ListProxy`1, property in exclude list
using System;
using System.Collections.Generic;
namespace com.itac.oib.siplacepro.contracts.data
{
// source: assembly 5.1.0.84
// source: assembly ASM.AS.OIB.SIPLACEPro.Proxy
public class TableMapper
{
// 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.Proxy.Business.Objects.Table get(Table itacTable)
{
if (itacTable == null) { return null; }
Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Table asmTable = new Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Table(Asm.As.Oib.SiplacePro.Proxy.Business.Types.ResourceIDs.AttachableheadtypeCp_20);
mapItac2Asm(asmTable, itacTable);
return asmTable;
}
public static void mapItac2Asm(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Table asmTable, Table itacTable)
{
// skip property Dictionary`2, property in exclude list
asmTable.AllowRandomSetupDuringOnlinePreparation = itacTable.AllowRandomSetupDuringOnlinePreparation;
// complex property StationLocationContext, isArray:False, isGeneric:False
itacTable.StationLocationContext = com.itac.oib.siplacepro.contracts.data.StationLocationMapper.get( asmTable.StationLocationContext);
// skip (ignore generic type TrackArea)
// skip property Double, property in exclude list
// skip property Double, property in exclude list
asmTable.OffsetZ = itacTable.OffsetZ;
// skip property DictionaryProxy`2, property in exclude list
asmTable.Frozen = itacTable.Frozen;
// skip (ignore generic type TrackInformation)
// skip property ListProxy`1, property in exclude list
asmTable.SplitLevel = itacTable.SplitLevel;
asmTable.IsInSplitMode = itacTable.IsInSplitMode;
// skip readonly property IsConstant
// skip readonly property HasTrayFeeders
// complex property Type, isArray:False, isGeneric:False
itacTable.Type = com.itac.oib.siplacepro.contracts.data.TableTypeMapper.get( asmTable.Type);
// skip readonly property IsAnyFeederOnBlockedTrack
// skip readonly property CountOfFeedersOnTable
// skip readonly property IsAnyFeederFixed
// skip readonly property IsAnyFeederUnfixed
// skip readonly property IsAnyComponentFixed
// skip readonly property IsAnyComponentUnfixed
// skip readonly property Name
// skip readonly property FullPath
}
// maps iTAC namespace conform array to ASM namespace array
public static Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Table[] get(Table[] itacTable)
{
if (itacTable == null) { return null; }
Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Table[] asmTable = new Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Table[itacTable.Length];
for (int i = 0; i < itacTable.Length; i++)
{
// to itac array
asmTable[i] = TableMapper.get(itacTable[i]);
}
return asmTable;
}
// maps iTAC namespace conform array to ASM namespace list
public static List<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Table> getList(Table[] asmTable)
{
if (asmTable == null) { return null; }
List<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Table> itacTable = new List<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Table>();
for (int i = 0; i < asmTable.Length; i++)
{
itacTable.Add(TableMapper.get(asmTable[i]));
}
return itacTable;
}
// map type from ASM namespace to iTAC namespace
public static Table get(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Table asmTable)
{
if (asmTable == null) { return null; }
Table itacTable = new Table();
mapAsm2Itac(asmTable, itacTable);
return itacTable;
}
public static void mapAsm2Itac(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Table asmTable, Table itacTable)
{
// skip property Dictionary`2, property in exclude list
itacTable.AllowRandomSetupDuringOnlinePreparation = asmTable.AllowRandomSetupDuringOnlinePreparation;
itacTable.StationLocationContext = com.itac.oib.siplacepro.contracts.data.StationLocationMapper.get(asmTable.StationLocationContext);
// complex asm property StationLocationContext
// skip (ignore generic type TrackArea)
// skip property Double, property in exclude list
// skip property Double, property in exclude list
itacTable.OffsetZ = asmTable.OffsetZ;
// skip property DictionaryProxy`2, property in exclude list
itacTable.Frozen = asmTable.Frozen;
// skip (ignore generic type TrackInformation)
// skip property ListProxy`1, property in exclude list
itacTable.SplitLevel = asmTable.SplitLevel;
itacTable.IsInSplitMode = asmTable.IsInSplitMode;
itacTable.IsConstant = asmTable.IsConstant;
itacTable.HasTrayFeeders = asmTable.HasTrayFeeders;
itacTable.Type = com.itac.oib.siplacepro.contracts.data.TableTypeMapper.get(asmTable.Type);
// complex asm property Type
itacTable.IsAnyFeederOnBlockedTrack = asmTable.IsAnyFeederOnBlockedTrack;
itacTable.CountOfFeedersOnTable = asmTable.CountOfFeedersOnTable;
itacTable.IsAnyFeederFixed = asmTable.IsAnyFeederFixed;
itacTable.IsAnyFeederUnfixed = asmTable.IsAnyFeederUnfixed;
itacTable.IsAnyComponentFixed = asmTable.IsAnyComponentFixed;
itacTable.IsAnyComponentUnfixed = asmTable.IsAnyComponentUnfixed;
itacTable.Name = asmTable.Name;
itacTable.FullPath = asmTable.FullPath;
}
// maps ASM namespace conform list to iTAC namespace array
public static Table[] getArray(IList<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Table> asmTable)
{
if (asmTable == null) { return null; }
Table[] itacTable = new Table[asmTable.Count];
for (int i = 0; i < asmTable.Count; i++)
{
itacTable[i] = TableMapper.get(asmTable[i]);
}
return itacTable;
}
// maps ASM namespace conform array to iTAC namespace array
public static Table[] getArray(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Table[] asmTable)
{
if (asmTable == null) { return null; }
Table[] itacTable = new Table[asmTable.Length];
for (int i = 0; i < asmTable.Length; i++)
{
itacTable[i] = TableMapper.get(asmTable[i]);
}
return itacTable;
}
}
}

View File

@@ -0,0 +1,152 @@
/*
* 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 05.11.2018 14:52:23
// skip (ignore generic type TableLocation)
// skip property TableType, property in exclude list
// skip property DictionaryProxy`2, property in exclude list
// skip property DictionaryProxy`2, property in exclude list
// skip property FeederGeneration, declared in TableType
// skip property ResourceIDs, declared in TableType
using System;
using System.Collections.Generic;
namespace com.itac.oib.siplacepro.contracts.data
{
// source: assembly 5.1.0.84
// source: assembly ASM.AS.OIB.SIPLACEPro.Proxy
public class TableTypeMapper
{
// 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.Proxy.Business.Objects.TableType get(TableType itacTableType)
{
if (itacTableType == null) { return null; }
Asm.As.Oib.SiplacePro.Proxy.Business.Objects.TableType asmTableType = new Asm.As.Oib.SiplacePro.Proxy.Business.Objects.TableType();
mapItac2Asm(asmTableType, itacTableType);
return asmTableType;
}
public static void mapItac2Asm(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.TableType asmTableType, TableType itacTableType)
{
// skip (ignore generic type TableLocation)
// skip readonly property PinWidth
// skip readonly property DefaultFeederTracks
// skip readonly property TrackCount
// skip property TableType, property in exclude list
// skip readonly property SizeX
// skip readonly property SizeY
// skip readonly property SizeZ
// skip readonly property OffsetZeroPointX
// skip readonly property OffsetZeroPointY
// skip readonly property OffsetZeroPointZ
// skip property DictionaryProxy`2, property in exclude list
// skip property DictionaryProxy`2, property in exclude list
// skip readonly property OffsetPinOneX
// skip readonly property OffsetPinOneY
// skip property FeederGeneration, declared in TableType
// skip property ResourceIDs, declared in TableType
// skip readonly property StationDeviceId
// skip readonly property SupportsSplitTableMode
// skip readonly property MinimumFeederTrackStep
// skip readonly property TrackPinOffset
// skip readonly property OffsetPinToTrackEdge
// skip readonly property FixedAssembled
// skip readonly property Name
// skip readonly property FullPath
}
// maps iTAC namespace conform array to ASM namespace array
public static Asm.As.Oib.SiplacePro.Proxy.Business.Objects.TableType[] get(TableType[] itacTableType)
{
if (itacTableType == null) { return null; }
Asm.As.Oib.SiplacePro.Proxy.Business.Objects.TableType[] asmTableType = new Asm.As.Oib.SiplacePro.Proxy.Business.Objects.TableType[itacTableType.Length];
for (int i = 0; i < itacTableType.Length; i++)
{
// to itac array
asmTableType[i] = TableTypeMapper.get(itacTableType[i]);
}
return asmTableType;
}
// maps iTAC namespace conform array to ASM namespace list
public static List<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.TableType> getList(TableType[] asmTableType)
{
if (asmTableType == null) { return null; }
List<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.TableType> itacTableType = new List<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.TableType>();
for (int i = 0; i < asmTableType.Length; i++)
{
itacTableType.Add(TableTypeMapper.get(asmTableType[i]));
}
return itacTableType;
}
// map type from ASM namespace to iTAC namespace
public static TableType get(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.TableType asmTableType)
{
if (asmTableType == null) { return null; }
TableType itacTableType = new TableType();
mapAsm2Itac(asmTableType, itacTableType);
return itacTableType;
}
public static void mapAsm2Itac(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.TableType asmTableType, TableType itacTableType)
{
// skip (ignore generic type TableLocation)
itacTableType.PinWidth = asmTableType.PinWidth;
itacTableType.DefaultFeederTracks = asmTableType.DefaultFeederTracks;
itacTableType.TrackCount = asmTableType.TrackCount;
// skip property TableType, property in exclude list
itacTableType.SizeX = asmTableType.SizeX;
itacTableType.SizeY = asmTableType.SizeY;
itacTableType.SizeZ = asmTableType.SizeZ;
itacTableType.OffsetZeroPointX = asmTableType.OffsetZeroPointX;
itacTableType.OffsetZeroPointY = asmTableType.OffsetZeroPointY;
itacTableType.OffsetZeroPointZ = asmTableType.OffsetZeroPointZ;
// skip property DictionaryProxy`2, property in exclude list
// skip property DictionaryProxy`2, property in exclude list
itacTableType.OffsetPinOneX = asmTableType.OffsetPinOneX;
itacTableType.OffsetPinOneY = asmTableType.OffsetPinOneY;
// skip property FeederGeneration, declared in TableType
// skip property ResourceIDs, declared in TableType
itacTableType.StationDeviceId = asmTableType.StationDeviceId;
itacTableType.SupportsSplitTableMode = asmTableType.SupportsSplitTableMode;
itacTableType.MinimumFeederTrackStep = asmTableType.MinimumFeederTrackStep;
itacTableType.TrackPinOffset = asmTableType.TrackPinOffset;
itacTableType.OffsetPinToTrackEdge = asmTableType.OffsetPinToTrackEdge;
itacTableType.FixedAssembled = asmTableType.FixedAssembled;
itacTableType.Name = asmTableType.Name;
itacTableType.FullPath = asmTableType.FullPath;
}
// maps ASM namespace conform list to iTAC namespace array
public static TableType[] getArray(IList<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.TableType> asmTableType)
{
if (asmTableType == null) { return null; }
TableType[] itacTableType = new TableType[asmTableType.Count];
for (int i = 0; i < asmTableType.Count; i++)
{
itacTableType[i] = TableTypeMapper.get(asmTableType[i]);
}
return itacTableType;
}
// maps ASM namespace conform array to iTAC namespace array
public static TableType[] getArray(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.TableType[] asmTableType)
{
if (asmTableType == null) { return null; }
TableType[] itacTableType = new TableType[asmTableType.Length];
for (int i = 0; i < asmTableType.Length; i++)
{
itacTableType[i] = TableTypeMapper.get(asmTableType[i]);
}
return itacTableType;
}
}
}