Beispiel #1
0
 public static AttributListeType ToAttributListeType(SoegAttributListeType attr)
 {
     if (attr != null)
     {
         return(new AttributListeType()
         {
             // Simply copy the attributes
             RegisterOplysning = attr.SoegRegisterOplysning,
             LokalUdvidelse = attr.LokalUdvidelse,
             SundhedOplysning = attr.SoegSundhedOplysning,
             // Call the method
             Egenskab = SoegEgenskabType.ToEgenskabTypeArray(attr.SoegEgenskab)
         });
     }
     else
     {
         return(null);
     }
 }
Beispiel #2
0
        public RegistreringType1 ToRegistreringType1()
        {
            return(new RegistreringType1()
            {
                // Always use Rettet to make things easy
                LivscyklusKode = LivscyklusKodeType.Rettet,

                // Attributes
                AttributListe = SoegAttributListeType.ToAttributListeType(this.SoegAttributListe),

                // Unsupported search fields
                RelationListe = null,
                AktoerRef = null,
                CommentText = null,
                SourceObjectsXml = null,
                Tidspunkt = null,
                TilstandListe = null,
                Virkning = null
            });
        }