Beispiel #1
0
 public static GroenlandAdresseType ToXmlType(GreenlandicAddress db)
 {
     if (db != null && db.DenmarkAddress != null && db.DenmarkAddress.Address != null)
     {
         return(new GroenlandAdresseType()
         {
             AddressCompleteGreenland = new AddressCompleteGreenlandType()
             {
                 CountryIdentificationCode = CountryRef.ToXmlType(db.DenmarkAddress.CountryRef),
                 DistrictName = db.DenmarkAddress.DistrictName,
                 DistrictSubdivisionIdentifier = db.DenmarkAddress.DistrictSubdivisionIdentifier,
                 FloorIdentifier = db.DenmarkAddress.FloorIdentifier,
                 GreenlandBuildingIdentifier = db.GreenlandBuildingIdentifierField,
                 MailDeliverySublocationIdentifier = db.DenmarkAddress.MailDeliverySublocation,
                 MunicipalityCode = db.DenmarkAddress.MunicipalityCode,
                 PostCodeIdentifier = db.DenmarkAddress.PostCodeIdentifier,
                 StreetBuildingIdentifier = db.DenmarkAddress.StreetBuildingIdentifier,
                 StreetCode = db.DenmarkAddress.StreetCode,
                 StreetName = db.DenmarkAddress.StreetName,
                 StreetNameForAddressingName = db.DenmarkAddress.StreetNameForAddressing,
                 SuiteIdentifier = db.DenmarkAddress.SuiteIdentifier,
             },
             SpecielVejkodeIndikator = db.DenmarkAddress.SpecialRoadCode.HasValue ? db.DenmarkAddress.SpecialRoadCode.Value : false,
             SpecielVejkodeIndikatorSpecified = db.DenmarkAddress.SpecialRoadCode.HasValue,
             NoteTekst = db.DenmarkAddress.Address.Note,
             UkendtAdresseIndikator = db.DenmarkAddress.Address.IsUnknown,
         });
     }
     return(null);
 }
 public static CountryIdentificationCodeType ToXmlType(ForeignCitizenCountry db)
 {
     if (db != null)
     {
         return(CountryRef.ToXmlType(db.CountryRef));
     }
     return(null);
 }
Beispiel #3
0
 /// <summary>
 /// Represents the ForeignCitizenData table
 /// </summary>
 public static UdenlandskBorgerType ToXmlType(ForeignCitizenData db)
 {
     if (db != null)
     {
         return(new UdenlandskBorgerType()
         {
             FoedselslandKode = CountryRef.ToXmlType(db.BirthCountryRef),
             PersonCivilRegistrationReplacementIdentifier = db.CivilRegistrationReplacementIdentifier,
             PersonIdentifikator = db.PersonIdentifier,
             SprogKode = ForeignCitizenCountry.ToXmlType(db.ForeignCitizenCountries, false),
             PersonNationalityCode = ForeignCitizenCountry.ToXmlType(db.ForeignCitizenCountries, true),
         });
     }
     return(null);
 }
Beispiel #4
0
 public static CprBorgerType ToXmlType(CprData db)
 {
     if (db != null)
     {
         return(new CprBorgerType()
         {
             AdresseNoteTekst = db.AddressNote,
             FolkekirkeMedlemIndikator = db.ChurchMember,
             FolkeregisterAdresse = Address.ToXmlType(db.Address),
             ForskerBeskyttelseIndikator = db.ResearchProtection,
             NavneAdresseBeskyttelseIndikator = db.NameAndAddressProtectionIndicator,
             PersonCivilRegistrationIdentifier = db.CprNumber,
             PersonNummerGyldighedStatusIndikator = db.CprNumberValidity,
             PersonNationalityCode = CountryRef.ToXmlType(db.NationalityCountryRef),
             TelefonNummerBeskyttelseIndikator = db.TelephoneNumberProtection,
         });
     }
     return(null);
 }
Beispiel #5
0
 public static VerdenAdresseType ToXmlType(ForeignAddress db)
 {
     if (db != null)
     {
         var ret = new VerdenAdresseType()
         {
             ForeignAddressStructure = new ForeignAddressStructureType()
             {
                 CountryIdentificationCode   = CountryRef.ToXmlType(db.CountryRef),
                 LocationDescriptionText     = db.LocationDescription,
                 PostalAddressFirstLineText  = db.FirstLine,
                 PostalAddressSecondLineText = db.SecondLine,
                 PostalAddressThirdLineText  = db.ThirdLine,
                 PostalAddressFourthLineText = db.FourthLine,
                 PostalAddressFifthLineText  = db.FifthLine
             }
         };
         return(ret);
     }
     return(null);
 }