示例#1
0
 public LivStatusType ToLivStatusType()
 {
     return(new LivStatusType()
     {
         LivStatusKode = Converters.ToLivStatusKodeType(this.CitizenStatusCode, Converters.ToDateTime(this.Birthdate, this.BirthdateUncertainty).HasValue),
         TilstandVirkning = TilstandVirkningType.Create(Converters.ToDateTime(this.CitizenStatusTimestamp, this.CitizenStatusTimestampUncertainty))
     });
 }
示例#2
0
 public virtual VirkningType ToEgenskabTypeVirkning()
 {
     return(VirkningType.Create(
                Converters.GetMaxDate(
                    this.ToBirthdate(),
                    Converters.ToDateTime(this.AddressingNameDate, this.AddressingNameDateUncertainty)
                    ),
                null
                ));
 }
示例#3
0
 public virtual TidspunktType ToTidspunktType()
 {
     return(TidspunktType.Create(
                Converters.GetMaxDate(
                    Converters.ToDateTime(this.BirthRegistrationDate, this.BirthRegistrationDateUncertainty),
                    Converters.ToDateTime(this.CprChurchTimestamp),
                    Converters.ToDateTime(this.CprPersonTimestamp),
                    Converters.ToDateTime(this.PNRMarkingDate, this.PNRMarkingDateUncertainty),
                    Converters.ToDateTime(this.MunicipalityArrivalDate, MunicipalityArrivalDateUncertainty)
                    )
                ));
 }
        public virtual DateTime ToBirthdate()
        {
            var birthdate = Converters.ToDateTime(this.Birthdate, this.BirthdateUncertainty);

            if (birthdate.HasValue)
            {
                return(birthdate.Value);
            }
            else
            {
                return(PartInterface.Strings.PersonNumberToDate(Converters.ToCprNumber(this.PNR)).Value);
            }
        }
示例#5
0
 public VirkningType ToCprBorgerTypeVirkning()
 {
     return(VirkningType.Create(
                Converters.GetMaxDate(
                    Converters.ToDateTime(this.ChurchMarkerDate, this.ChurchMarkerDateUncertainty),
                    Converters.ToDateTime(this.MunicipalityArrivalDate, this.MunicipalityArrivalDateUncertainty),
                    Converters.ToDateTime(this.AddressEndTS, this.DepartureTimestampUncertainty),
                    Converters.ToDateTime(this.AddtessStartTS, this.RelocationTimestampUncertainty),
                    Converters.ToDateTime(this.DirectoryProtectionDate, this.DirectoryProtectionDateUncertainty),
                    Converters.ToDateTime(this.DirectoryProtectionEndDate, this.DirectoryProtectionEndDateUncertainty),
                    Converters.ToDateTime(this.AddressProtectionDate, this.AddressProtectionDateUncertainty),
                    Converters.ToDateTime(this.AddressProtectionEndDate, this.AddressProtectionEndDateUncertainty),
                    Converters.ToDateTime(this.NationalityChangeTimestamp, this.NationalityChangeTimestampUncertainty),
                    Converters.ToDateTime(this.NationalityTerminationTimestamp, this.NationalityTerminationTimestampUncertainty),
                    Converters.ToDateTime(this.PNRCreationDate, this.PNRCreationdateUncertainty)
                    ),
                null
                ));
 }
 public DateTime?ToDirectoryProtectionEndDate()
 {
     return(Converters.ToDateTime(this.DirectoryProtectionEndDate, this.DirectoryProtectionEndDateUncertainty));
 }
 public DateTime?ToMaritalStatusDate()
 {
     return(Converters.ToDateTime(this.MaritalStatusTimestamp, this.MaritalStatusTimestampUncertainty));
 }
 public DateTime?ToAddressProtectionEndDate()
 {
     return(Converters.ToDateTime(this.AddressProtectionEndDate, this.AddressProtectionEndDateUncertainty));
 }