105 lines
5.7 KiB
C#
105 lines
5.7 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 NewRecipeActiveReportMapper
|
|
{
|
|
// 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.NewRecipeActiveReport get(NewRecipeActiveReport itacNewRecipeActiveReport)
|
|
{
|
|
if (itacNewRecipeActiveReport == null) { return null; }
|
|
Asm.As.Oib.SiplaceSetupCenter.Contracts.Data.NewRecipeActiveReport asmNewRecipeActiveReport = new Asm.As.Oib.SiplaceSetupCenter.Contracts.Data.NewRecipeActiveReport();
|
|
mapItac2Asm(asmNewRecipeActiveReport, itacNewRecipeActiveReport);
|
|
return asmNewRecipeActiveReport;
|
|
}
|
|
|
|
public static void mapItac2Asm(Asm.As.Oib.SiplaceSetupCenter.Contracts.Data.NewRecipeActiveReport asmNewRecipeActiveReport, NewRecipeActiveReport itacNewRecipeActiveReport)
|
|
{
|
|
// complex property ActiveSetup, isArray:False, isGeneric:False
|
|
asmNewRecipeActiveReport.ActiveSetup = com.itac.oib.siplacesetupcenter.contracts.data.ActiveSetupMapper.get( itacNewRecipeActiveReport.ActiveSetup);
|
|
// complex property ActiveRecipe, isArray:False, isGeneric:False
|
|
asmNewRecipeActiveReport.ActiveRecipe = com.itac.oib.siplacesetupcenter.contracts.data.ActiveRecipeMapper.get( itacNewRecipeActiveReport.ActiveRecipe);
|
|
}
|
|
|
|
// maps iTAC namespace conform array to ASM namespace array
|
|
public static Asm.As.Oib.SiplaceSetupCenter.Contracts.Data.NewRecipeActiveReport[] get(NewRecipeActiveReport[] itacNewRecipeActiveReport)
|
|
{
|
|
if (itacNewRecipeActiveReport == null) { return null; }
|
|
Asm.As.Oib.SiplaceSetupCenter.Contracts.Data.NewRecipeActiveReport[] asmNewRecipeActiveReport = new Asm.As.Oib.SiplaceSetupCenter.Contracts.Data.NewRecipeActiveReport[itacNewRecipeActiveReport.Length];
|
|
for (int i = 0; i < itacNewRecipeActiveReport.Length; i++)
|
|
{
|
|
// to itac array
|
|
asmNewRecipeActiveReport[i] = NewRecipeActiveReportMapper.get(itacNewRecipeActiveReport[i]);
|
|
}
|
|
return asmNewRecipeActiveReport;
|
|
}
|
|
|
|
// maps iTAC namespace conform array to ASM namespace list
|
|
public static List<Asm.As.Oib.SiplaceSetupCenter.Contracts.Data.NewRecipeActiveReport> getList(NewRecipeActiveReport[] asmNewRecipeActiveReport)
|
|
{
|
|
if (asmNewRecipeActiveReport == null) { return null; }
|
|
List<Asm.As.Oib.SiplaceSetupCenter.Contracts.Data.NewRecipeActiveReport> itacNewRecipeActiveReport = new List<Asm.As.Oib.SiplaceSetupCenter.Contracts.Data.NewRecipeActiveReport>();
|
|
for (int i = 0; i < asmNewRecipeActiveReport.Length; i++)
|
|
{
|
|
itacNewRecipeActiveReport.Add(NewRecipeActiveReportMapper.get(asmNewRecipeActiveReport[i]));
|
|
}
|
|
return itacNewRecipeActiveReport;
|
|
}
|
|
|
|
// map type from ASM namespace to iTAC namespace
|
|
public static NewRecipeActiveReport get(Asm.As.Oib.SiplaceSetupCenter.Contracts.Data.NewRecipeActiveReport asmNewRecipeActiveReport)
|
|
{
|
|
if (asmNewRecipeActiveReport == null) { return null; }
|
|
NewRecipeActiveReport itacNewRecipeActiveReport = new NewRecipeActiveReport();
|
|
mapAsm2Itac(asmNewRecipeActiveReport, itacNewRecipeActiveReport);
|
|
return itacNewRecipeActiveReport;
|
|
}
|
|
|
|
public static void mapAsm2Itac(Asm.As.Oib.SiplaceSetupCenter.Contracts.Data.NewRecipeActiveReport asmNewRecipeActiveReport, NewRecipeActiveReport itacNewRecipeActiveReport)
|
|
{
|
|
itacNewRecipeActiveReport.ActiveSetup = com.itac.oib.siplacesetupcenter.contracts.data.ActiveSetupMapper.get(asmNewRecipeActiveReport.ActiveSetup);
|
|
// complex asm property ActiveSetup
|
|
itacNewRecipeActiveReport.ActiveRecipe = com.itac.oib.siplacesetupcenter.contracts.data.ActiveRecipeMapper.get(asmNewRecipeActiveReport.ActiveRecipe);
|
|
// complex asm property ActiveRecipe
|
|
}
|
|
|
|
// maps ASM namespace conform list to iTAC namespace array
|
|
public static NewRecipeActiveReport[] getArray(IList<Asm.As.Oib.SiplaceSetupCenter.Contracts.Data.NewRecipeActiveReport> asmNewRecipeActiveReport)
|
|
{
|
|
if (asmNewRecipeActiveReport == null) { return null; }
|
|
NewRecipeActiveReport[] itacNewRecipeActiveReport = new NewRecipeActiveReport[asmNewRecipeActiveReport.Count];
|
|
for (int i = 0; i < asmNewRecipeActiveReport.Count; i++)
|
|
{
|
|
itacNewRecipeActiveReport[i] = NewRecipeActiveReportMapper.get(asmNewRecipeActiveReport[i]);
|
|
}
|
|
return itacNewRecipeActiveReport;
|
|
}
|
|
|
|
// maps ASM namespace conform array to iTAC namespace array
|
|
public static NewRecipeActiveReport[] getArray(Asm.As.Oib.SiplaceSetupCenter.Contracts.Data.NewRecipeActiveReport[] asmNewRecipeActiveReport)
|
|
{
|
|
if (asmNewRecipeActiveReport == null) { return null; }
|
|
NewRecipeActiveReport[] itacNewRecipeActiveReport = new NewRecipeActiveReport[asmNewRecipeActiveReport.Length];
|
|
for (int i = 0; i < asmNewRecipeActiveReport.Length; i++)
|
|
{
|
|
itacNewRecipeActiveReport[i] = NewRecipeActiveReportMapper.get(asmNewRecipeActiveReport[i]);
|
|
}
|
|
return itacNewRecipeActiveReport;
|
|
}
|
|
}
|
|
}
|