Ejemplo n.º 1
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="type">Code that defines the location of the address.  Note:  A subset of specific valid values for each instance in a data object may be listed in that object.</param>
 ///<param name="street">The street part of the address</param>
 ///<param name="city">The city part of the address.</param>
 ///<param name="stateProvince">The state or province code.</param>
 ///<param name="country">The country code.</param>
 ///<param name="postalCode">The ZIP/postal code.</param>
 ///
 public Address(AddressType type, Street street, string city, StatePrCode stateProvince, CountryCode country, string postalCode) : base(CommonDTD.ADDRESS)
 {
     this.SetType(type);
     this.Street = street;
     this.City   = city;
     this.SetStateProvince(stateProvince);
     this.SetCountry(country);
     this.PostalCode = postalCode;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="type">Code that defines the location of the address.  Note:  A subset of specific valid values for each instance in a data object may be listed in that object.</param>
 ///<param name="street">The street part of the address</param>
 ///<param name="city">The city part of the address.</param>
 ///<param name="stateProvince">The state or province code.</param>
 ///<param name="country">The country code.</param>
 ///<param name="postalCode">The ZIP/postal code.</param>
 ///
 public Address( AddressType type, Street street, string city, StatePrCode stateProvince, CountryCode country, string postalCode )
     : base(CommonDTD.ADDRESS)
 {
     this.SetType( type );
     this.Street = street;
     this.City = city;
     this.SetStateProvince( stateProvince );
     this.SetCountry( country );
     this.PostalCode = postalCode;
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="employeePersonalRefId">This is the GUID that points to the employee represented in the EmployeePersonal object.</param>
 ///<param name="w4Date">Date W4 was completed.</param>
 ///<param name="maritalStatusRate">This denotes the current martial status of the employee</param>
 ///<param name="federalAllowancesNumber">Number of federal allowances.</param>
 ///<param name="stateProvince">State of residence.</param>
 ///<param name="exempt">Is this employee exempt from federal and state exemptions?</param>
 ///
 public W4( string employeePersonalRefId, DateTime? w4Date, MaritalStatusRate maritalStatusRate, int? federalAllowancesNumber, StatePrCode stateProvince, bool? exempt )
     : base(Adk.SifVersion, HrfinDTD.W4)
 {
     this.EmployeePersonalRefId = employeePersonalRefId;
     this.W4Date = w4Date;
     this.SetMaritalStatusRate( maritalStatusRate );
     this.FederalAllowancesNumber = federalAllowancesNumber;
     this.SetStateProvince( stateProvince );
     this.Exempt = exempt;
 }
 ///<summary>Sets the value of the <c>&lt;Address&gt;</c> element.</summary>
 /// <param name="Type">Code that defines the location of the address.  Note:  A subset of specific valid values for each instance in a data object may be listed in that object.</param>
 /// <param name="Street">The street part of the address</param>
 /// <param name="City">The city part of the address.</param>
 /// <param name="StateProvince">The state or province code.</param>
 /// <param name="Country">The country code.</param>
 /// <param name="PostalCode">The ZIP/postal code.</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, Street Street, string City, StatePrCode StateProvince, CountryCode Country, string PostalCode )
 {
     RemoveChild( AssessmentDTD.ASSESSMENTADMINISTRATION_ADDRESS);
     AddChild( AssessmentDTD.ASSESSMENTADMINISTRATION_ADDRESS, new Address( Type, Street, City, StateProvince, Country, PostalCode ) );
 }
Ejemplo n.º 5
0
 ///<summary>Sets the value of the <c>&lt;Address&gt;</c> element.</summary>
 /// <param name="Type">Code that defines the location of the address.  Note:  A subset of specific valid values for each instance in a data object may be listed in that object.</param>
 /// <param name="Street">The street part of the address</param>
 /// <param name="City">The city part of the address.</param>
 /// <param name="StateProvince">The state or province code.</param>
 /// <param name="Country">The country code.</param>
 /// <param name="PostalCode">The ZIP/postal code.</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: 1.5r1</para>
 /// </remarks>
 public void SetAddress(AddressType Type, Street Street, string City, StatePrCode StateProvince, CountryCode Country, string PostalCode)
 {
     RemoveChild(CommonDTD.LRCONTACT_ADDRESS);
     AddChild(CommonDTD.LRCONTACT_ADDRESS, new Address(Type, Street, City, StateProvince, Country, PostalCode));
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Sets the value of the <c>&lt;StateOfBirth&gt;</c> element.
 /// </summary>
 /// <param name="val">A StatePrCode object</param>
 /// <remarks>
 /// <para>The SIF specification defines the meaning of this element as: "The person's state of birth."</para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 1.1</para>
 /// </remarks>
 public void SetStateOfBirth(StatePrCode val)
 {
     SetField(CommonDTD.DEMOGRAPHICS_STATEOFBIRTH, val);
 }
Ejemplo n.º 7
0
 /// <summary>
 /// Sets the value of the <c>&lt;StateProvince&gt;</c> element.
 /// </summary>
 /// <param name="val">A StatePrCode object</param>
 /// <remarks>
 /// <para>The SIF specification defines the meaning of this element as: "The state or province code."</para>
 /// <para>This element is known by more than one tag name depending on the version of SIF in use. 
 /// The ADK will use the tag names shown below when parsing and rendering elements of this kind.</para>
 /// <list type="table"><listheader><term>Version</term><description>Tag</description></listheader>;
 /// <item><term>2.0 (and greater)</term><description>&lt;StateProvince&gt;</description></item>
 /// </list>
 /// <para>Version: 2.5</para>
 /// <para>Since: 1.1</para>
 /// </remarks>
 public void SetStateProvince( StatePrCode val )
 {
     SetField( CommonDTD.ADDRESS_STATEPROVINCE, val );
 }
Ejemplo n.º 8
0
 ///<summary>Sets the value of the <c>&lt;Address&gt;</c> element.</summary>
 /// <param name="Type">Code that defines the location of the address.  Note:  A subset of specific valid values for each instance in a data object may be listed in that object.</param>
 /// <param name="Street">The street part of the address</param>
 /// <param name="City">The city part of the address.</param>
 /// <param name="StateProvince">The state or province code.</param>
 /// <param name="Country">The country code.</param>
 /// <param name="PostalCode">The ZIP/postal code.</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: 1.5r1</para>
 /// </remarks>
 public void SetAddress( AddressType Type, Street Street, string City, StatePrCode StateProvince, CountryCode Country, string PostalCode )
 {
     RemoveChild( InstrDTD.SOURCEAUTHOR_ADDRESS);
     AddChild( InstrDTD.SOURCEAUTHOR_ADDRESS, new Address( Type, Street, City, StateProvince, Country, PostalCode ) );
 }
        private static StudentPersonal CreateStudent(
          String id,
          String lastName,
            String firstName,
            String street,
            String city,
            StatePrCode state,
            CountryCode country,
            String post,
            String phone,
            Gender gender,
            GradeLevelCode grade,
            RaceType race,
            String birthDateyyyyMMdd)
        {
            StudentPersonal student = new StudentPersonal();
             ;
             student.RefId = Adk.MakeGuid();
             student.LocalId = id;

             // Set the Name
             Name name = new Name(NameType.LEGAL, firstName, lastName);
             student.Name = name;

             Address addr = new Address();
             addr.SetType(AddressType.C0369_PERMANENT);
             addr.SetStreet(street);
             addr.City = city;
             addr.SetStateProvince(state);
             addr.PostalCode = post;
             addr.SetCountry(country);

             student.AddressList = new StudentAddressList(PickupOrDropoff.NA, "NA", addr);
             student.PhoneNumberList =
             new PhoneNumberList(new PhoneNumber(PhoneNumberType.PRIMARY, phone));

             Demographics dem = new Demographics();
             dem.RaceList = new RaceList(new Race("", race));
             dem.SetGender(gender);
             dem.BirthDate =
             DateTime.ParseExact
                 (birthDateyyyyMMdd, "yyyyMMdd", CultureInfo.InvariantCulture.DateTimeFormat);

             student.Demographics = dem;

             return student;
        }
Ejemplo n.º 10
0
 ///<summary>Sets the value of the <c>&lt;Address&gt;</c> element.</summary>
 /// <param name="Type">Code that defines the location of the address.  Note:  A subset of specific valid values for each instance in a data object may be listed in that object.</param>
 /// <param name="Street">The street part of the address</param>
 /// <param name="City">The city part of the address.</param>
 /// <param name="StateProvince">The state or province code.</param>
 /// <param name="Country">The country code.</param>
 /// <param name="PostalCode">The ZIP/postal code.</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: 1.5r1</para>
 /// </remarks>
 public void SetAddress( AddressType Type, Street Street, string City, StatePrCode StateProvince, CountryCode Country, string PostalCode )
 {
     RemoveChild( ProfdevDTD.ACTIVITYPROVIDER_ADDRESS);
     AddChild( ProfdevDTD.ACTIVITYPROVIDER_ADDRESS, new Address( Type, Street, City, StateProvince, Country, PostalCode ) );
 }
Ejemplo n.º 11
0
 /// <summary>
 /// Sets the value of the <c>&lt;StateProvince&gt;</c> element.
 /// </summary>
 /// <param name="val">A StatePrCode object</param>
 /// <remarks>
 /// <para>The SIF specification defines the meaning of this element as: "The state or province code."</para>
 /// <para>This element is known by more than one tag name depending on the version of SIF in use.
 /// The ADK will use the tag names shown below when parsing and rendering elements of this kind.</para>
 /// <list type="table"><listheader><term>Version</term><description>Tag</description></listheader>;
 /// <item><term>2.0 (and greater)</term><description>&lt;StateProvince&gt;</description></item>
 /// </list>
 /// <para>Version: 2.6</para>
 /// <para>Since: 1.1</para>
 /// </remarks>
 public void SetStateProvince(StatePrCode val)
 {
     SetField(CommonDTD.ADDRESS_STATEPROVINCE, val);
 }
Ejemplo n.º 12
0
 ///<summary>Adds the value of the <c>&lt;Address&gt;</c> element.</summary>
 /// <param name="Type">Code that defines the location of the address.  Note:  A subset of specific valid values for each instance in a data object may be listed in that object.</param>
 /// <param name="Street">The street part of the address</param>
 /// <param name="City">The city part of the address.</param>
 /// <param name="StateProvince">The state or province code.</param>
 /// <param name="Country">The country code.</param>
 /// <param name="PostalCode">The ZIP/postal code.</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: 1.1</para>
 /// </remarks>
 public void AddAddress(AddressType Type, Street Street, string City, StatePrCode StateProvince, CountryCode Country, string PostalCode)
 {
     AddChild(CommonDTD.ADDRESSLIST_ADDRESS, new Address(Type, Street, City, StateProvince, Country, PostalCode));
 }
Ejemplo n.º 13
0
 /// <summary>
 /// Sets the value of the <c>&lt;StateProvince&gt;</c> element.
 /// </summary>
 /// <param name="val">A StatePrCode object</param>
 /// <remarks>
 /// <para>The SIF specification defines the meaning of this element as: "The state or province of the standard setting body. "</para>
 /// <para>Version: 2.5</para>
 /// <para>Since: 2.2</para>
 /// </remarks>
 public void SetStateProvince( StatePrCode val )
 {
     SetField( InstrDTD.STANDARDSETTINGBODY_STATEPROVINCE, val );
 }
Ejemplo n.º 14
0
 ///<summary>Sets the value of the <c>&lt;Address&gt;</c> element.</summary>
 /// <param name="Type">Code that defines the location of the address.  Note:  A subset of specific valid values for each instance in a data object may be listed in that object.</param>
 /// <param name="Street">The street part of the address</param>
 /// <param name="City">The city part of the address.</param>
 /// <param name="StateProvince">The state or province code.</param>
 /// <param name="Country">The country code.</param>
 /// <param name="PostalCode">The ZIP/postal code.</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, Street Street, string City, StatePrCode StateProvince, CountryCode Country, string PostalCode )
 {
     RemoveChild( CommonDTD.CONTACTINFO_ADDRESS);
     AddChild( CommonDTD.CONTACTINFO_ADDRESS, new Address( Type, Street, City, StateProvince, Country, PostalCode ) );
 }
Ejemplo n.º 15
0
 ///<summary>Sets the value of the <c>&lt;Address&gt;</c> element.</summary>
 /// <param name="Type">Code that defines the location of the address.  Note:  A subset of specific valid values for each instance in a data object may be listed in that object.</param>
 /// <param name="Street">The street part of the address</param>
 /// <param name="City">The city part of the address.</param>
 /// <param name="StateProvince">The state or province code.</param>
 /// <param name="Country">The country code.</param>
 /// <param name="PostalCode">The ZIP/postal code.</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: 1.5r1</para>
 /// </remarks>
 public void SetAddress( AddressType Type, Street Street, string City, StatePrCode StateProvince, CountryCode Country, string PostalCode )
 {
     RemoveChild( ReportingDTD.REPORTSUBMITTERINFO_ADDRESS);
     AddChild( ReportingDTD.REPORTSUBMITTERINFO_ADDRESS, new Address( Type, Street, City, StateProvince, Country, PostalCode ) );
 }
Ejemplo n.º 16
0
 ///<summary>Adds the value of the <c>&lt;Address&gt;</c> element.</summary>
 /// <param name="Type">Code that defines the location of the address.  Note:  A subset of specific valid values for each instance in a data object may be listed in that object.</param>
 /// <param name="Street">The street part of the address</param>
 /// <param name="City">The city part of the address.</param>
 /// <param name="StateProvince">The state or province code.</param>
 /// <param name="Country">The country code.</param>
 /// <param name="PostalCode">The ZIP/postal code.</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.5</para>
 /// <para>Since: 1.5r1</para>
 /// </remarks>
 public void AddAddress( AddressType Type, Street Street, string City, StatePrCode StateProvince, CountryCode Country, string PostalCode )
 {
     AddChild( ReportingDTD.STUDENTLOCATOR_ADDRESS, new Address( Type, Street, City, StateProvince, Country, PostalCode ) );
 }
Ejemplo n.º 17
0
 /// <summary>
 /// Sets the value of the <c>&lt;StateOfBirth&gt;</c> element.
 /// </summary>
 /// <param name="val">A StatePrCode object</param>
 /// <remarks>
 /// <para>The SIF specification defines the meaning of this element as: "The person's state of birth."</para>
 /// <para>Version: 2.5</para>
 /// <para>Since: 1.1</para>
 /// </remarks>
 public void SetStateOfBirth( StatePrCode val )
 {
     SetField( CommonDTD.DEMOGRAPHICS_STATEOFBIRTH, val );
 }
Ejemplo n.º 18
0
 ///<summary>Sets the value of the <c>&lt;Address&gt;</c> element.</summary>
 /// <param name="Type">Code that defines the location of the address.  Note:  A subset of specific valid values for each instance in a data object may be listed in that object.</param>
 /// <param name="Street">The street part of the address</param>
 /// <param name="City">The city part of the address.</param>
 /// <param name="StateProvince">The state or province code.</param>
 /// <param name="Country">The country code.</param>
 /// <param name="PostalCode">The ZIP/postal code.</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: 1.5r1</para>
 /// </remarks>
 public void SetAddress( AddressType Type, Street Street, string City, StatePrCode StateProvince, CountryCode Country, string PostalCode )
 {
     RemoveChild( StudentDTD.STUDENTSNAPSHOT_ADDRESS);
     AddChild( StudentDTD.STUDENTSNAPSHOT_ADDRESS, new Address( Type, Street, City, StateProvince, Country, PostalCode ) );
 }
Ejemplo n.º 19
0
 /// <summary>
 /// Sets the value of the <c>&lt;StateProvince&gt;</c> element.
 /// </summary>
 /// <param name="val">A StatePrCode object</param>
 /// <remarks>
 /// <para>The SIF specification defines the meaning of this element as: "State of residence."</para>
 /// <para>This element is known by more than one tag name depending on the version of SIF in use. 
 /// The ADK will use the tag names shown below when parsing and rendering elements of this kind.</para>
 /// <list type="table"><listheader><term>Version</term><description>Tag</description></listheader>;
 /// <item><term>2.0 (and greater)</term><description>&lt;StateProvince&gt;</description></item>
 /// </list>
 /// <para>Version: 2.5</para>
 /// <para>Since: 1.5r1</para>
 /// </remarks>
 public void SetStateProvince( StatePrCode val )
 {
     SetField( HrfinDTD.W4_STATEPROVINCE, val );
 }