initialize
This commit is contained in:
@@ -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 23.11.2018 08:08:14
|
||||
// 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 3.2.0.152
|
||||
// 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
|
||||
asmBoardElement.Board = com.itac.oib.siplacepro.contracts.data.BoardMapper.get( itacBoardElement.Board);
|
||||
// complex property BoardSideProduced, isArray:False, isGeneric:False
|
||||
asmBoardElement.BoardSideProduced = com.itac.oib.siplacepro.contracts.types.BoardSideMapper.get( itacBoardElement.BoardSideProduced);
|
||||
// complex property BoardOrientation, isArray:False, isGeneric:False
|
||||
asmBoardElement.BoardOrientation = com.itac.oib.siplacepro.contracts.types.BoardOrientationMapper.get( itacBoardElement.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
|
||||
asmBoardElement.BoardElementOffsetMode = com.itac.oib.siplacepro.contracts.types.BoardElementOffsetModeMapper.get( itacBoardElement.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
|
||||
asmBoardElement.SubLaneId = com.itac.oib.siplacepro.contracts.types.ConveyorSubLaneTypeMapper.get( itacBoardElement.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;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,137 @@
|
||||
/*
|
||||
* Copyright (c) 2018 iTAC Software AG, Germany. All Rights Reserved.
|
||||
*
|
||||
* This software is protected by copyright. Under no circumstances may any part of this file in any form be copied,
|
||||
* printed, edited or otherwise distributed, be stored in a retrieval system, or be translated into another language
|
||||
* without the written permission of iTAC Software AG.
|
||||
*/
|
||||
// created 23.11.2018 08:08:14
|
||||
// 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
|
||||
// skip property NamedObjectBase, declared in Board
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace com.itac.oib.siplacepro.contracts.data
|
||||
{
|
||||
// source: assembly 3.2.0.152
|
||||
// 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)
|
||||
{
|
||||
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 property NamedObjectBase, declared in Board
|
||||
// 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)
|
||||
{
|
||||
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
|
||||
// skip property NamedObjectBase, declared in Board
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,220 @@
|
||||
/*
|
||||
* Copyright (c) 2018 iTAC Software AG, Germany. All Rights Reserved.
|
||||
*
|
||||
* This software is protected by copyright. Under no circumstances may any part of this file in any form be copied,
|
||||
* printed, edited or otherwise distributed, be stored in a retrieval system, or be translated into another language
|
||||
* without the written permission of iTAC Software AG.
|
||||
*/
|
||||
// created 23.11.2018 08:08:14
|
||||
// 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 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 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 3.2.0.152
|
||||
// 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;
|
||||
// complex property PlacementList, isArray:False, isGeneric:False
|
||||
asmBoardSide.PlacementList = com.itac.oib.siplacepro.contracts.data.PlacementListMapper.get( itacBoardSide.PlacementList);
|
||||
// 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
|
||||
asmBoardSide.DefaultBoardOrientation = com.itac.oib.siplacepro.contracts.types.BoardOrientationMapper.get( itacBoardSide.DefaultBoardOrientation);
|
||||
// skip property String, property in exclude list
|
||||
// skip property Double, property in exclude list
|
||||
// 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.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
|
||||
}
|
||||
|
||||
// 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;
|
||||
itacBoardSide.PlacementList = com.itac.oib.siplacepro.contracts.data.PlacementListMapper.get(asmBoardSide.PlacementList);
|
||||
// complex asm property PlacementList
|
||||
// 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 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.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
|
||||
}
|
||||
|
||||
// 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,192 @@
|
||||
/*
|
||||
* Copyright (c) 2018 iTAC Software AG, Germany. All Rights Reserved.
|
||||
*
|
||||
* This software is protected by copyright. Under no circumstances may any part of this file in any form be copied,
|
||||
* printed, edited or otherwise distributed, be stored in a retrieval system, or be translated into another language
|
||||
* without the written permission of iTAC Software AG.
|
||||
*/
|
||||
// created 23.11.2018 08:08:14
|
||||
// skip property Boolean, property in exclude list
|
||||
// skip property IFeederType, declared in Component
|
||||
// skip property IReserveType, declared in Component
|
||||
// skip property ComponentShape, 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 IFeederType, 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 ArrayList, property in exclude list
|
||||
// skip property String, 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 3.2.0.152
|
||||
// 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
|
||||
asmComponent.ActionProperties = itacComponent.ActionProperties;
|
||||
// skip property ComponentShape, property in exclude list
|
||||
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 IFeederType, declared in Component
|
||||
// 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
|
||||
asmComponent.ComponentType = com.itac.oib.siplacepro.contracts.types.ComponentTypeMapper.get( itacComponent.ComponentType);
|
||||
asmComponent.ShortageTracking = itacComponent.ShortageTracking;
|
||||
asmComponent.OrientationCheckByOperator = itacComponent.OrientationCheckByOperator;
|
||||
asmComponent.MeasurePickupPositionPerPick = itacComponent.MeasurePickupPositionPerPick;
|
||||
// skip property ListProxy`1, property in exclude list
|
||||
// skip property ArrayList, property in exclude list
|
||||
// skip property String, 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
|
||||
itacComponent.ActionProperties = asmComponent.ActionProperties;
|
||||
// skip property ComponentShape, property in exclude list
|
||||
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 IFeederType, declared in Component
|
||||
// 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
|
||||
// skip property ArrayList, property in exclude list
|
||||
// skip property String, 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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 23.11.2018 08:08:14
|
||||
// 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 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 3.2.0.152
|
||||
// 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
|
||||
asmComponentPlacement.Component = com.itac.oib.siplacepro.contracts.data.ComponentMapper.get( itacComponentPlacement.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 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 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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 23.11.2018 08:08:14
|
||||
// this type should be skipped, check class BaseMapper, dictionary ignoreTypeNames
|
||||
@@ -0,0 +1,126 @@
|
||||
/*
|
||||
* Copyright (c) 2018 iTAC Software AG, Germany. All Rights Reserved.
|
||||
*
|
||||
* This software is protected by copyright. Under no circumstances may any part of this file in any form be copied,
|
||||
* printed, edited or otherwise distributed, be stored in a retrieval system, or be translated into another language
|
||||
* without the written permission of iTAC Software AG.
|
||||
*/
|
||||
// created 23.11.2018 08:08:14
|
||||
// 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
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using com.itac.oib.siplacepro.contracts.types;
|
||||
|
||||
namespace com.itac.oib.siplacepro.contracts.data
|
||||
{
|
||||
// source: assembly 3.2.0.152
|
||||
// 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
|
||||
asmLine.StationInLineOptions = com.itac.oib.siplacepro.contracts.types.StationInLineOptionsMapper.get( itacLine.StationInLineOptions);
|
||||
// complex property LineHandlingOptions, isArray:False, isGeneric:False
|
||||
asmLine.LineHandlingOptions = com.itac.oib.siplacepro.contracts.types.LineHandlingOptionsMapper.get( itacLine.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
|
||||
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
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,115 @@
|
||||
/*
|
||||
* Copyright (c) 2018 iTAC Software AG, Germany. All Rights Reserved.
|
||||
*
|
||||
* This software is protected by copyright. Under no circumstances may any part of this file in any form be copied,
|
||||
* printed, edited or otherwise distributed, be stored in a retrieval system, or be translated into another language
|
||||
* without the written permission of iTAC Software AG.
|
||||
*/
|
||||
// created 26.11.2018 13:24:17
|
||||
// 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;
|
||||
using com.itac.oib.siplacepro.contracts.types;
|
||||
|
||||
namespace com.itac.oib.siplacepro.contracts.data
|
||||
{
|
||||
// source: assembly 3.2.0.152
|
||||
// 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,206 @@
|
||||
/*
|
||||
* Copyright (c) 2018 iTAC Software AG, Germany. All Rights Reserved.
|
||||
*
|
||||
* This software is protected by copyright. Under no circumstances may any part of this file in any form be copied,
|
||||
* printed, edited or otherwise distributed, be stored in a retrieval system, or be translated into another language
|
||||
* without the written permission of iTAC Software AG.
|
||||
*/
|
||||
// created 23.11.2018 08:08:14
|
||||
// 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 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 3.2.0.152
|
||||
// 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 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
|
||||
asmPanel.PlacementList = com.itac.oib.siplacepro.contracts.data.PlacementListMapper.get( itacPanel.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 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,130 @@
|
||||
/*
|
||||
* Copyright (c) 2018 iTAC Software AG, Germany. All Rights Reserved.
|
||||
*
|
||||
* This software is protected by copyright. Under no circumstances may any part of this file in any form be copied,
|
||||
* printed, edited or otherwise distributed, be stored in a retrieval system, or be translated into another language
|
||||
* without the written permission of iTAC Software AG.
|
||||
*/
|
||||
// created 23.11.2018 08:08:14
|
||||
// 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 3.2.0.152
|
||||
// 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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 23.11.2018 08:08:14
|
||||
// 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 3.2.0.152
|
||||
// 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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 23.11.2018 08:08:14
|
||||
// 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 3.2.0.152
|
||||
// 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
|
||||
asmProductionScheduleElement.Recipe = com.itac.oib.siplacepro.contracts.data.RecipeMapper.get( itacProductionScheduleElement.Recipe);
|
||||
// complex property PSConveyor, isArray:False, isGeneric:False
|
||||
asmProductionScheduleElement.PSConveyor = com.itac.oib.siplacepro.contracts.types.ProductionScheduleConveyorMapper.get( itacProductionScheduleElement.PSConveyor);
|
||||
asmProductionScheduleElement.OrderID = itacProductionScheduleElement.OrderID;
|
||||
asmProductionScheduleElement.OrderID2 = itacProductionScheduleElement.OrderID2;
|
||||
// complex property OptimizedTargetSetup, isArray:False, isGeneric:False
|
||||
asmProductionScheduleElement.OptimizedTargetSetup = com.itac.oib.siplacepro.contracts.data.SetupMapper.get( itacProductionScheduleElement.OptimizedTargetSetup);
|
||||
// skip readonly property LotSizeCountUnit
|
||||
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.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;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,161 @@
|
||||
/*
|
||||
* Copyright (c) 2018 iTAC Software AG, Germany. All Rights Reserved.
|
||||
*
|
||||
* This software is protected by copyright. Under no circumstances may any part of this file in any form be copied,
|
||||
* printed, edited or otherwise distributed, be stored in a retrieval system, or be translated into another language
|
||||
* without the written permission of iTAC Software AG.
|
||||
*/
|
||||
// created 23.11.2018 08:08:14
|
||||
// skip property DictionaryProxy`2, property in exclude list
|
||||
// skip property AdditionalOperationInformation, declared in Recipe
|
||||
// skip property ListProxy`1, property in exclude list
|
||||
// skip property NamedObjectBase, 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 3.2.0.152
|
||||
// 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 readonly property LineName
|
||||
// skip readonly property SetupName
|
||||
asmRecipe.LotSize = itacRecipe.LotSize;
|
||||
// complex property ConveyorLane, isArray:False, isGeneric:False
|
||||
asmRecipe.ConveyorLane = com.itac.oib.siplacepro.contracts.types.ConveyorLaneTypeMapper.get( itacRecipe.ConveyorLane);
|
||||
// complex property Setup, isArray:False, isGeneric:False
|
||||
asmRecipe.Setup = com.itac.oib.siplacepro.contracts.data.SetupMapper.get( itacRecipe.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
|
||||
asmRecipe.SplitTableModeSetting = com.itac.oib.siplacepro.contracts.types.SplitTableModeMapper.get( itacRecipe.SplitTableModeSetting);
|
||||
// skip readonly property LotSizeCountUnit
|
||||
// skip property ListProxy`1, property in exclude list
|
||||
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 property NamedObjectBase, declared in Recipe
|
||||
// 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)
|
||||
{
|
||||
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 property ListProxy`1, property in exclude list
|
||||
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;
|
||||
// skip property NamedObjectBase, declared in Recipe
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,171 @@
|
||||
/*
|
||||
* Copyright (c) 2018 iTAC Software AG, Germany. All Rights Reserved.
|
||||
*
|
||||
* This software is protected by copyright. Under no circumstances may any part of this file in any form be copied,
|
||||
* printed, edited or otherwise distributed, be stored in a retrieval system, or be translated into another language
|
||||
* without the written permission of iTAC Software AG.
|
||||
*/
|
||||
// created 23.11.2018 08:08:14
|
||||
// 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
|
||||
// skip property NamedObjectBase, declared in Setup
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using com.itac.oib.siplacepro.contracts.types;
|
||||
|
||||
namespace com.itac.oib.siplacepro.contracts.data
|
||||
{
|
||||
// source: assembly 3.2.0.152
|
||||
// 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 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
|
||||
asmSetup.WhisperDownTheLineModeBarcodes = com.itac.oib.siplacepro.contracts.types.WhisperDownTheLineModeBarcodesMapper.get( itacSetup.WhisperDownTheLineModeBarcodes);
|
||||
asmSetup.ExternalVirtualInkspotHandling = itacSetup.ExternalVirtualInkspotHandling;
|
||||
// skip property ListProxy`1, property in exclude list
|
||||
// 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
|
||||
asmSetup.WhisperDownTheLineMode = com.itac.oib.siplacepro.contracts.types.WhisperDownTheLineModeMapper.get( itacSetup.WhisperDownTheLineMode);
|
||||
// skip property NamedObjectBase, declared in Setup
|
||||
// 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)
|
||||
{
|
||||
// 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
|
||||
// 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
|
||||
// skip property NamedObjectBase, declared in Setup
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,154 @@
|
||||
/*
|
||||
* Copyright (c) 2018 iTAC Software AG, Germany. All Rights Reserved.
|
||||
*
|
||||
* This software is protected by copyright. Under no circumstances may any part of this file in any form be copied,
|
||||
* printed, edited or otherwise distributed, be stored in a retrieval system, or be translated into another language
|
||||
* without the written permission of iTAC Software AG.
|
||||
*/
|
||||
// created 23.11.2018 08:08:14
|
||||
// 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 3.2.0.152
|
||||
// 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
|
||||
asmStationInLine.Station = com.itac.oib.siplacepro.contracts.data.StationMapper.get( itacStationInLine.Station);
|
||||
asmStationInLine.Options = itacStationInLine.Options;
|
||||
asmStationInLine.IsConveyorMode = itacStationInLine.IsConveyorMode;
|
||||
// complex property LeftBarcodeReaderPosition, isArray:False, isGeneric:False
|
||||
asmStationInLine.LeftBarcodeReaderPosition = com.itac.oib.siplacepro.contracts.types.BarcodeReaderPositionMapper.get( itacStationInLine.LeftBarcodeReaderPosition);
|
||||
// complex property RightBarcodeReaderPosition, isArray:False, isGeneric:False
|
||||
asmStationInLine.RightBarcodeReaderPosition = com.itac.oib.siplacepro.contracts.types.BarcodeReaderPositionMapper.get( itacStationInLine.RightBarcodeReaderPosition);
|
||||
asmStationInLine.DisableManualPCBBarcodeInput = itacStationInLine.DisableManualPCBBarcodeInput;
|
||||
// skip property StationConveyorSystem, property in exclude list
|
||||
asmStationInLine.EndOfSMEMASynchronization = itacStationInLine.EndOfSMEMASynchronization;
|
||||
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
|
||||
// skip readonly property IsUserDefinedConveyorWideness
|
||||
// skip readonly property SupportsSMEMASynchronization
|
||||
// skip readonly property SupportsInputConveyorExtension
|
||||
// skip readonly property SupportsOutputConveyorExtension
|
||||
asmStationInLine.IsInputConveyorConfigued = itacStationInLine.IsInputConveyorConfigued;
|
||||
asmStationInLine.IsOutputConveyorConfigued = itacStationInLine.IsOutputConveyorConfigued;
|
||||
}
|
||||
|
||||
// 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.Options = asmStationInLine.Options;
|
||||
itacStationInLine.IsConveyorMode = asmStationInLine.IsConveyorMode;
|
||||
itacStationInLine.LeftBarcodeReaderPosition = com.itac.oib.siplacepro.contracts.types.BarcodeReaderPositionMapper.get(asmStationInLine.LeftBarcodeReaderPosition);
|
||||
// complex asm property LeftBarcodeReaderPosition
|
||||
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.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.IsUserDefinedConveyorWideness = asmStationInLine.IsUserDefinedConveyorWideness;
|
||||
itacStationInLine.SupportsSMEMASynchronization = asmStationInLine.SupportsSMEMASynchronization;
|
||||
itacStationInLine.SupportsInputConveyorExtension = asmStationInLine.SupportsInputConveyorExtension;
|
||||
itacStationInLine.SupportsOutputConveyorExtension = asmStationInLine.SupportsOutputConveyorExtension;
|
||||
itacStationInLine.IsInputConveyorConfigued = asmStationInLine.IsInputConveyorConfigued;
|
||||
itacStationInLine.IsOutputConveyorConfigued = asmStationInLine.IsOutputConveyorConfigued;
|
||||
}
|
||||
|
||||
// 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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 23.11.2018 08:08:14
|
||||
// skip property Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Location by type 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 3.2.0.152
|
||||
// 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 Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Location by type 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
|
||||
asmStationLocation.Table = com.itac.oib.siplacepro.contracts.data.TableMapper.get( itacStationLocation.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 Asm.As.Oib.SiplacePro.Proxy.Business.Objects.Location by type 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,200 @@
|
||||
/*
|
||||
* Copyright (c) 2018 iTAC Software AG, Germany. All Rights Reserved.
|
||||
*
|
||||
* This software is protected by copyright. Under no circumstances may any part of this file in any form be copied,
|
||||
* printed, edited or otherwise distributed, be stored in a retrieval system, or be translated into another language
|
||||
* without the written permission of iTAC Software AG.
|
||||
*/
|
||||
// created 23.11.2018 08:08:14
|
||||
// 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 3.2.0.152
|
||||
// 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
|
||||
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
|
||||
asmStation.SkipPCB = com.itac.oib.siplacepro.contracts.types.SkipBoardWithUnknownBarcodeMapper.get( itacStation.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
|
||||
// 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.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
|
||||
// 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,261 @@
|
||||
/*
|
||||
* Copyright (c) 2018 iTAC Software AG, Germany. All Rights Reserved.
|
||||
*
|
||||
* This software is protected by copyright. Under no circumstances may any part of this file in any form be copied,
|
||||
* printed, edited or otherwise distributed, be stored in a retrieval system, or be translated into another language
|
||||
* without the written permission of iTAC Software AG.
|
||||
*/
|
||||
// created 23.11.2018 08:08:14
|
||||
// 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 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 3.2.0.152
|
||||
// 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
|
||||
asmStationSetup.ArbitrarySetupMode = com.itac.oib.siplacepro.contracts.types.ArbitrarySetupModeMapper.get( itacStationSetup.ArbitrarySetupMode);
|
||||
asmStationSetup.IsSupportPinModuleActive = itacStationSetup.IsSupportPinModuleActive;
|
||||
// skip property ComponentPlacementDistributionMode, declared in StationSetup
|
||||
// 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
|
||||
asmStationSetup.PlacementModeAreaFront = com.itac.oib.siplacepro.contracts.types.PlacementAreaPlacementModeMapper.get( itacStationSetup.PlacementModeAreaFront);
|
||||
// complex property PlacementModeAreaRear, isArray:False, isGeneric:False
|
||||
asmStationSetup.PlacementModeAreaRear = com.itac.oib.siplacepro.contracts.types.PlacementAreaPlacementModeMapper.get( itacStationSetup.PlacementModeAreaRear);
|
||||
// skip readonly property APlacementIsAllowed
|
||||
// skip readonly property IPlacementIsAllowed
|
||||
// skip readonly property ViPlacementIsAllowed
|
||||
// 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 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;
|
||||
// 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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 23.11.2018 08:08:14
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using com.itac.oib.siplacepro.contracts.types;
|
||||
|
||||
namespace com.itac.oib.siplacepro.contracts.data
|
||||
{
|
||||
// source: assembly 3.2.0.152
|
||||
// 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
|
||||
asmTableInsert.TableInsertType = com.itac.oib.siplacepro.contracts.types.TableInsertTypeIdMapper.get( itacTableInsert.TableInsertType);
|
||||
// complex property Table, isArray:False, isGeneric:False
|
||||
asmTableInsert.Table = com.itac.oib.siplacepro.contracts.data.TableMapper.get( itacTableInsert.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;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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 23.11.2018 08:08:14
|
||||
// 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 3.2.0.152
|
||||
// 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;
|
||||
// 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
|
||||
asmTable.Type = com.itac.oib.siplacepro.contracts.data.TableTypeMapper.get( itacTable.Type);
|
||||
// skip readonly property IsAnyFeederOnBlockedTrack
|
||||
// complex property StationLocationContext, isArray:False, isGeneric:False
|
||||
asmTable.StationLocationContext = com.itac.oib.siplacepro.contracts.data.StationLocationMapper.get( itacTable.StationLocationContext);
|
||||
// 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;
|
||||
// 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.StationLocationContext = com.itac.oib.siplacepro.contracts.data.StationLocationMapper.get(asmTable.StationLocationContext);
|
||||
// complex asm property StationLocationContext
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,150 @@
|
||||
/*
|
||||
* Copyright (c) 2018 iTAC Software AG, Germany. All Rights Reserved.
|
||||
*
|
||||
* This software is protected by copyright. Under no circumstances may any part of this file in any form be copied,
|
||||
* printed, edited or otherwise distributed, be stored in a retrieval system, or be translated into another language
|
||||
* without the written permission of iTAC Software AG.
|
||||
*/
|
||||
// created 23.11.2018 08:08:14
|
||||
// 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 3.2.0.152
|
||||
// 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 readonly property TableLocations
|
||||
// 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 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)
|
||||
{
|
||||
// maps ASM list 2 iTAC array
|
||||
// itacTableType.TableLocations = TableLocationMapper.getArray(asmTableType.TableLocations);
|
||||
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.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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user