Пример #1
0
 public RegisterOplysningType ToRegisterOplysningType()
 {
     return(new RegisterOplysningType()
     {
         Item = PersonTotal.ToCprBorgerType(Nationality, Address, Departure),
         Virkning = PersonTotal.ToCprBorgerTypeVirkning(Nationality, Address, Departure)
     });
 }
Пример #2
0
        public AdresseType ToAdresseType(PersonTotal personTotal)
        {
            string postDistrict = personTotal.PostDistrictName;

            var greenlandicAddress = this.MunicipalityCode >= AddressConstants.GreenlandMunicipalCodeStart;

            return(new AdresseType()
            {
                Item = greenlandicAddress ? (AdresseBaseType)ToGroenlandAdresseType(postDistrict) : ToDanskAdresseType(postDistrict)
            });
        }
Пример #3
0
 public TilstandListeType ToTilstandListeType()
 {
     return(new TilstandListeType()
     {
         // TODO: Is it OK to get the full history here?
         // TODO: Use CivilStatusWrapper
         CivilStatus = new CivilStatusType()
         {
             CivilStatusKode = PersonTotal.ToCivilStatusCodeType(this.Separation),
             // TODO: Shall we use birthdate is status is Single ('U')?
             TilstandVirkning = TilstandVirkningType.Create(Utilities.DateFromDecimal(PersonTotal.MaritalStatusDate))
         },
         LivStatus = new LivStatusType()
         {
             LivStatusKode = PersonTotal.ToLivStatusKodeType(),
             // TODO: Shall we use other dates? StatusDate is sometimes null
             TilstandVirkning = TilstandVirkningType.Create(Utilities.DateFromFirstDecimal(PersonTotal.StatusDate)),
         },
         // No extensions now
         LokalUdvidelse = null
     });
 }