97 lines
5.3 KiB
C#
97 lines
5.3 KiB
C#
/*
|
|
* 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 06.11.2018 11:07:38
|
|
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace com.itac.oib.siplacesetupcenter.contracts.data
|
|
{
|
|
// source: assembly 5.1.0.84
|
|
// source: assembly ASM.AS.OIB.SIPLACESetupCenter.Contracts
|
|
public class PackagingUnitDeletedReportMapper
|
|
{
|
|
// used for itac->asm: True
|
|
// used for asm->itac: True
|
|
|
|
// maps iTAC namespace conform type to ASM namespace type
|
|
public static Asm.As.Oib.SiplaceSetupCenter.Contracts.Data.PackagingUnitDeletedReport get(PackagingUnitDeletedReport itacPackagingUnitDeletedReport)
|
|
{
|
|
if (itacPackagingUnitDeletedReport == null) { return null; }
|
|
Asm.As.Oib.SiplaceSetupCenter.Contracts.Data.PackagingUnitDeletedReport asmPackagingUnitDeletedReport = new Asm.As.Oib.SiplaceSetupCenter.Contracts.Data.PackagingUnitDeletedReport();
|
|
mapItac2Asm(asmPackagingUnitDeletedReport, itacPackagingUnitDeletedReport);
|
|
return asmPackagingUnitDeletedReport;
|
|
}
|
|
|
|
public static void mapItac2Asm(Asm.As.Oib.SiplaceSetupCenter.Contracts.Data.PackagingUnitDeletedReport asmPackagingUnitDeletedReport, PackagingUnitDeletedReport itacPackagingUnitDeletedReport)
|
|
{
|
|
}
|
|
|
|
// maps iTAC namespace conform array to ASM namespace array
|
|
public static Asm.As.Oib.SiplaceSetupCenter.Contracts.Data.PackagingUnitDeletedReport[] get(PackagingUnitDeletedReport[] itacPackagingUnitDeletedReport)
|
|
{
|
|
if (itacPackagingUnitDeletedReport == null) { return null; }
|
|
Asm.As.Oib.SiplaceSetupCenter.Contracts.Data.PackagingUnitDeletedReport[] asmPackagingUnitDeletedReport = new Asm.As.Oib.SiplaceSetupCenter.Contracts.Data.PackagingUnitDeletedReport[itacPackagingUnitDeletedReport.Length];
|
|
for (int i = 0; i < itacPackagingUnitDeletedReport.Length; i++)
|
|
{
|
|
// to itac array
|
|
asmPackagingUnitDeletedReport[i] = PackagingUnitDeletedReportMapper.get(itacPackagingUnitDeletedReport[i]);
|
|
}
|
|
return asmPackagingUnitDeletedReport;
|
|
}
|
|
|
|
// maps iTAC namespace conform array to ASM namespace list
|
|
public static List<Asm.As.Oib.SiplaceSetupCenter.Contracts.Data.PackagingUnitDeletedReport> getList(PackagingUnitDeletedReport[] asmPackagingUnitDeletedReport)
|
|
{
|
|
if (asmPackagingUnitDeletedReport == null) { return null; }
|
|
List<Asm.As.Oib.SiplaceSetupCenter.Contracts.Data.PackagingUnitDeletedReport> itacPackagingUnitDeletedReport = new List<Asm.As.Oib.SiplaceSetupCenter.Contracts.Data.PackagingUnitDeletedReport>();
|
|
for (int i = 0; i < asmPackagingUnitDeletedReport.Length; i++)
|
|
{
|
|
itacPackagingUnitDeletedReport.Add(PackagingUnitDeletedReportMapper.get(asmPackagingUnitDeletedReport[i]));
|
|
}
|
|
return itacPackagingUnitDeletedReport;
|
|
}
|
|
|
|
// map type from ASM namespace to iTAC namespace
|
|
public static PackagingUnitDeletedReport get(Asm.As.Oib.SiplaceSetupCenter.Contracts.Data.PackagingUnitDeletedReport asmPackagingUnitDeletedReport)
|
|
{
|
|
if (asmPackagingUnitDeletedReport == null) { return null; }
|
|
PackagingUnitDeletedReport itacPackagingUnitDeletedReport = new PackagingUnitDeletedReport();
|
|
mapAsm2Itac(asmPackagingUnitDeletedReport, itacPackagingUnitDeletedReport);
|
|
return itacPackagingUnitDeletedReport;
|
|
}
|
|
|
|
public static void mapAsm2Itac(Asm.As.Oib.SiplaceSetupCenter.Contracts.Data.PackagingUnitDeletedReport asmPackagingUnitDeletedReport, PackagingUnitDeletedReport itacPackagingUnitDeletedReport)
|
|
{
|
|
}
|
|
|
|
// maps ASM namespace conform list to iTAC namespace array
|
|
public static PackagingUnitDeletedReport[] getArray(IList<Asm.As.Oib.SiplaceSetupCenter.Contracts.Data.PackagingUnitDeletedReport> asmPackagingUnitDeletedReport)
|
|
{
|
|
if (asmPackagingUnitDeletedReport == null) { return null; }
|
|
PackagingUnitDeletedReport[] itacPackagingUnitDeletedReport = new PackagingUnitDeletedReport[asmPackagingUnitDeletedReport.Count];
|
|
for (int i = 0; i < asmPackagingUnitDeletedReport.Count; i++)
|
|
{
|
|
itacPackagingUnitDeletedReport[i] = PackagingUnitDeletedReportMapper.get(asmPackagingUnitDeletedReport[i]);
|
|
}
|
|
return itacPackagingUnitDeletedReport;
|
|
}
|
|
|
|
// maps ASM namespace conform array to iTAC namespace array
|
|
public static PackagingUnitDeletedReport[] getArray(Asm.As.Oib.SiplaceSetupCenter.Contracts.Data.PackagingUnitDeletedReport[] asmPackagingUnitDeletedReport)
|
|
{
|
|
if (asmPackagingUnitDeletedReport == null) { return null; }
|
|
PackagingUnitDeletedReport[] itacPackagingUnitDeletedReport = new PackagingUnitDeletedReport[asmPackagingUnitDeletedReport.Length];
|
|
for (int i = 0; i < asmPackagingUnitDeletedReport.Length; i++)
|
|
{
|
|
itacPackagingUnitDeletedReport[i] = PackagingUnitDeletedReportMapper.get(asmPackagingUnitDeletedReport[i]);
|
|
}
|
|
return itacPackagingUnitDeletedReport;
|
|
}
|
|
}
|
|
}
|