Exemplo n.º 1
0
 public static string GeAddressingName(NavnStrukturType oio)
 {
     if (oio != null)
     {
         return(oio.PersonNameForAddressingName);
     }
     return(null);
 }
Exemplo n.º 2
0
 public static string GetNameNoteText(NavnStrukturType oio)
 {
     if (oio != null)
     {
         return(oio.NoteTekst);
     }
     return(null);
 }
Exemplo n.º 3
0
 public static string GetNickName(NavnStrukturType oio)
 {
     if (oio != null)
     {
         return(oio.KaldenavnTekst);
     }
     return(null);
 }
Exemplo n.º 4
0
 public static PersonName FromXmlType(NavnStrukturType oio)
 {
     if (oio != null)
     {
         return(FromXmlType(oio.PersonNameStructure));
     }
     return(null);
 }
Exemplo n.º 5
0
        public virtual NavnStrukturType ToNavnStrukturType()
        {
            var addressingName = Converters.ToNeutralString(this.AddressingName);
            var ret            = NavnStrukturType.Create(addressingName);

            ret.PersonNameForAddressingName = addressingName;
            return(ret);
        }
Exemplo n.º 6
0
 public NavnStrukturType ToNavnStrukturType()
 {
     return(NavnStrukturType.Create(
                new string[] {
         this.ToFirstName(),
         this.ToMiddleName(),
         this.ToLastName()
     }));
 }
Exemplo n.º 7
0
        public NavnStrukturType ToNavnStrukturType(String firstname, String middlename, String lastname)
        {
            // Set the name search criteria
            PersonNameStructureType nameStructure = new PersonNameStructureType();

            nameStructure.PersonGivenName   = firstname;
            nameStructure.PersonMiddleName  = middlename;
            nameStructure.PersonSurnameName = lastname;

            // Playing the matryoshka doll game
            NavnStrukturType navnStrukturType = new NavnStrukturType();

            navnStrukturType.PersonNameStructure = nameStructure;
            return(navnStrukturType);
        }
Exemplo n.º 8
0
        public SoegInputType1 ToSoegObject()
        {
            var parser  = new Parsers.DawaAddressParser();
            var address = parser.ToAddressType(this.Address);

            if (address != null)
            {
                return(new CprBroker.Schemas.Part.SoegInputType1()
                {
                    SoegObjekt = new SoegObjektType()
                    {
                        SoegAttributListe = new SoegAttributListeType()
                        {
                            SoegRegisterOplysning = new RegisterOplysningType[]
                            {
                                new RegisterOplysningType()
                                {
                                    Item = new CprBorgerType()
                                    {
                                        FolkeregisterAdresse = address
                                    }
                                }
                            },
                            SoegEgenskab = new SoegEgenskabType[]
                            {
                                new SoegEgenskabType()
                                {
                                    NavnStruktur = NavnStrukturType.Create(this.Name)
                                }
                            }
                        }
                    }
                });
            }
            else
            {
                return(null);
            }
        }
Exemplo n.º 9
0
 public NavnStrukturType ToNavnStrukturType()
 {
     return(NavnStrukturType.Create(new string[] { this.FirstName, this.LastName }, this.AddressingName));
 }