Files
BeWoPlaner/AICore/Context/EntryMapper/Navigation/CustomerNavigationContextEntryMapper.cs

24 lines
875 B
C#

using System;
using System.Linq;
using AICore.Context.Entry.Navigation;
using BS.Shared.DataContracts.Compact;
using BS.Shared.Extensions;
namespace AICore.Context.EntryMapper.Navigation
{
public class CustomerNavigationContextEntryMapper : BaseContextEntryMapper<CompactCustomerDC, CustomerNavigationContextEntry>
{
public override void MergeWithObject(CompactCustomerDC pObject, CustomerNavigationContextEntry pContext)
{
pContext.AddressString = pObject.GetSingleAddressLine() ?? "null";
pContext.CustomerAlias = pObject.CustomerAlias;
pContext.CustomerOid = pObject.Oid.Value;
pContext.DateOfBirth = pObject.DateOfBirth;
pContext.FullName = pObject.GetLastNameFirstName();
pContext.Teams = pObject.Teams;
pContext.Bezugspersonen = pObject.MainAttendant;
pContext.CostBearerReferenceNumbers = pObject.CostBearerReferenceNumbers;
}
}
}