///<summary>Sets the value of the <c><Address></c> element.</summary> /// <param name="Type">Code that defines the address type. CBDS: 100102, 100173</param> /// <param name="Paon">An element defining the Primary Addressable Object Name (PAON), typically a building number or house name.</param> ///<remarks> /// <para>This form of <c>setAddress</c> is provided as a convenience method /// that is functionally equivalent to the <c>Address</c></para> /// <para>Version: 2.5</para> /// <para>Since: 2.0</para> /// </remarks> public void SetAddress( AddressType Type, AddressableObjectName Paon ) { RemoveChild( CommonDTD.PERSONALINFORMATION_ADDRESS); AddChild( CommonDTD.PERSONALINFORMATION_ADDRESS, new Address( Type, Paon ) ); }
///<summary>Sets the value of the <c><Address></c> element.</summary> /// <param name="Type">Code that defines the address type. CBDS: 100102, 100173</param> /// <param name="Paon">An element defining the Primary Addressable Object Name (PAON), typically a building number or house name.</param> ///<remarks> /// <para>This form of <c>setAddress</c> is provided as a convenience method /// that is functionally equivalent to the <c>Address</c></para> /// <para>Version: 2.6</para> /// <para>Since: 2.0</para> /// </remarks> public void SetAddress(AddressType Type, AddressableObjectName Paon) { RemoveChild(CommonDTD.PERSONALINFORMATION_ADDRESS); AddChild(CommonDTD.PERSONALINFORMATION_ADDRESS, new Address(Type, Paon)); }
///<summary>Sets the value of the <c><SchoolAddress></c> element.</summary> /// <param name="Type">Code that defines the address type. CBDS: 100102, 100173</param> /// <param name="Paon">An element defining the Primary Addressable Object Name (PAON), typically a building number or house name.</param> ///<remarks> /// <para>This form of <c>setSchoolAddress</c> is provided as a convenience method /// that is functionally equivalent to the <c>SchoolAddress</c></para> /// <para>Version: 2.6</para> /// <para>Since: 2.0</para> /// </remarks> public void SetSchoolAddress( AddressType Type, AddressableObjectName Paon ) { RemoveChild( SchoolDTD.SCHOOLINFO_SCHOOLADDRESS); AddChild( SchoolDTD.SCHOOLINFO_SCHOOLADDRESS, new Address( Type, Paon ) ); }
private SifDataObject createPerson(string id, string lastName, string firstName, string number, string street, string locality, string town, string post, string phone, string gender, string grade, EthnicityCodes ethnicity, string birthDateyyyyMMdd) { SifDataObject person = createPersonObject(id); person.SetElementOrAttribute("@RefId", Adk.MakeGuid()); Name name = new Name(NameType.CURRENT_LEGAL, firstName, lastName); PersonalInformation personal = new PersonalInformation(name); person.AddChild(CommonDTD.PERSONALINFORMATION, personal); AddressableObjectName aon = new AddressableObjectName(); aon.StartNumber = number; Address address = new Address(AddressType.CURRENT, aon); address.Street = street; address.Locality = locality; address.Town = town; address.PostCode = post; address.SetCountry(CountryCode.GBR); personal.Address = address; personal.PhoneNumber = new PhoneNumber(PhoneType.HOME, phone); Demographics dem = new Demographics(); dem.SetEthnicityList(new Ethnicity(ethnicity)); dem.SetGender(Gender.Wrap(gender)); try { dem.BirthDate = SifDate.ParseSifDateString(birthDateyyyyMMdd, SifVersion.SIF15r1); } catch (Exception pex) { Console.WriteLine(pex); } personal.Demographics = dem; return person; }
/// <summary> /// Constructor that accepts values for all mandatory fields /// </summary> ///<param name="type">Code that defines the address type. CBDS: 100102, 100173</param> ///<param name="paon">An element defining the Primary Addressable Object Name (PAON), typically a building number or house name.</param> /// public Address( AddressType type, AddressableObjectName paon ) : base(CommonDTD.ADDRESS) { this.SetType( type ); this.PAON = paon; }
///<summary>Adds the value of the <c><Address></c> element.</summary> /// <param name="Type">Code that defines the address type. CBDS: 100102, 100173</param> /// <param name="Paon">An element defining the Primary Addressable Object Name (PAON), typically a building number or house name.</param> ///<remarks> /// <para>This form of <c>setAddress</c> is provided as a convenience method /// that is functionally equivalent to the method <c>AddAddress</c></para> /// <para>Version: 2.6</para> /// <para>Since: 2.0</para> /// </remarks> public void AddAddress(AddressType Type, AddressableObjectName Paon) { AddChild(CommonDTD.ADDRESSLIST_ADDRESS, new Address(Type, Paon)); }
///<summary>Sets the value of the <c><Address></c> element.</summary> /// <param name="Type">Code that defines the address type. CBDS: 100102, 100173</param> /// <param name="Paon">An element defining the Primary Addressable Object Name (PAON), typically a building number or house name.</param> ///<remarks> /// <para>This form of <c>setAddress</c> is provided as a convenience method /// that is functionally equivalent to the <c>Address</c></para> /// <para>Version: 2.5</para> /// <para>Since: 2.0</para> /// </remarks> public void SetAddress( AddressType Type, AddressableObjectName Paon ) { RemoveChild( CommonDTD.CONTACTINFO_ADDRESS); AddChild( CommonDTD.CONTACTINFO_ADDRESS, new Address( Type, Paon ) ); }
/// <summary> /// Constructor that accepts values for all mandatory fields /// </summary> ///<param name="type">Code that defines the address type. CBDS: 100102, 100173</param> ///<param name="paon">An element defining the Primary Addressable Object Name (PAON), typically a building number or house name.</param> /// public Address(AddressType type, AddressableObjectName paon) : base(CommonDTD.ADDRESS) { this.SetType(type); this.PAON = paon; }
///<summary>Sets the value of the <c><LAAddress></c> element.</summary> /// <param name="Type">Code that defines the address type. CBDS: 100102, 100173</param> /// <param name="Paon">An element defining the Primary Addressable Object Name (PAON), typically a building number or house name.</param> ///<remarks> /// <para>This form of <c>setLAAddress</c> is provided as a convenience method /// that is functionally equivalent to the <c>LAAddress</c></para> /// <para>Version: 2.6</para> /// <para>Since: 2.0</para> /// </remarks> public void SetLAAddress( AddressType Type, AddressableObjectName Paon ) { RemoveChild( SchoolDTD.LAINFO_LAADDRESS); AddChild( SchoolDTD.LAINFO_LAADDRESS, new Address( Type, Paon ) ); }
///<summary>Sets the value of the <c><Address></c> element.</summary> /// <param name="Type">Code that defines the address type. CBDS: 100102, 100173</param> /// <param name="Paon">An element defining the Primary Addressable Object Name (PAON), typically a building number or house name.</param> ///<remarks> /// <para>This form of <c>setAddress</c> is provided as a convenience method /// that is functionally equivalent to the <c>Address</c></para> /// <para>Version: 2.6</para> /// <para>Since: 2.0</para> /// </remarks> public void SetAddress(AddressType Type, AddressableObjectName Paon) { RemoveChild(CommonDTD.CONTACTINFO_ADDRESS); AddChild(CommonDTD.CONTACTINFO_ADDRESS, new Address(Type, Paon)); }