/// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="reportDate">Date that report snapshot was generated</param>
 ///<param name="schoolYear">School year for which the information is applicable, expressed as the four-digit year in which the school year ends (e.g., "2004" for the 2003-04 school year).</param>
 ///<param name="stateProvinceId">State assigned reporting unit number</param>
 ///<param name="ssn">Employee social security number</param>
 ///<param name="name">Name of employee.</param>
 ///<param name="race">Primary employee's race</param>
 ///<param name="certifications">Employee certification area information</param>
 ///<param name="salary">Employee's salary</param>
 ///<param name="status">A Status</param>
 ///<param name="leave">Is this employee on leave this year?</param>
 ///<param name="totalYears">Total number of years employee has been in a professional position</param>
 ///<param name="unitYears">Total number of years at current LEA</param>
 ///<param name="education">Highest level of education attained by employee.</param>
 ///
 public EmployeeCredential( DateTime? reportDate, int? schoolYear, string stateProvinceId, string ssn, Name name, RaceType race, Certifications certifications, MonetaryAmount salary, EmploymentStatus status, YesNo leave, decimal? totalYears, decimal? unitYears, TeachingCredentialBasis education )
     : base(Adk.SifVersion, ProfdevDTD.EMPLOYEECREDENTIAL)
 {
     this.ReportDate = reportDate;
     this.SchoolYear = schoolYear;
     this.StateProvinceId = stateProvinceId;
     this.SSN = ssn;
     this.Name = name;
     this.SetRace( race );
     this.Certifications = certifications;
     this.Salary = salary;
     this.SetStatus( status );
     this.SetLeave( leave );
     this.TotalYears = totalYears;
     this.UnitYears = unitYears;
     this.SetEducation( education );
 }
Example #2
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="type">A code that specifies the coding structure used. The default is "NA".</param>
 ///<param name="code">The general racial category which reflects the individual's recognition of his or her community or with which the individual most identifies.</param>
 ///
 public Race( string type, RaceType code )
     : base(CommonDTD.RACE)
 {
     this.Type = type;
     this.SetCode( code );
 }
Example #3
0
 /// <summary>
 /// Sets the value of the <c>Code</c> attribute.
 /// </summary>
 /// <param name="val">A RaceType object</param>
 /// <remarks>
 /// <para>The SIF specification defines the meaning of this attribute as: "The general racial category which reflects the individual's recognition of his or her community or with which the individual most identifies."</para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 1.1</para>
 /// </remarks>
 public void SetCode( RaceType val )
 {
     SetField( CommonDTD.RACE_CODE, val );
 }
 /// <summary>
 /// Sets the value of the <c>&lt;Race&gt;</c> element.
 /// </summary>
 /// <param name="val">A RaceType object</param>
 /// <remarks>
 /// <para>The SIF specification defines the meaning of this element as: "Primary employee's race"</para>
 /// <para>Version: 2.5</para>
 /// <para>Since: 1.5r1</para>
 /// </remarks>
 public void SetRace( RaceType val )
 {
     SetField( ProfdevDTD.EMPLOYEECREDENTIAL_RACE, val );
 }
Example #5
0
 ///<summary>Adds the value of the <c>&lt;Race&gt;</c> element.</summary>
 /// <param name="Type">A code that specifies the coding structure used. The default is "NA".</param>
 /// <param name="Code">The general racial category which reflects the individual's recognition of his or her community or with which the individual most identifies.</param>
 ///<remarks>
 /// <para>This form of <c>setRace</c> is provided as a convenience method
 /// that is functionally equivalent to the method <c>AddRace</c></para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 1.1</para>
 /// </remarks>
 public void AddRace(string Type, RaceType Code)
 {
     AddChild(CommonDTD.RACELIST_RACE, new Race(Type, Code));
 }
Example #6
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="type">A code that specifies the coding structure used. The default is "NA".</param>
 ///<param name="code">The general racial category which reflects the individual's recognition of his or her community or with which the individual most identifies.</param>
 ///
 public Race(string type, RaceType code) : base(CommonDTD.RACE)
 {
     this.Type = type;
     this.SetCode(code);
 }
Example #7
0
 /// <summary>
 /// Sets the value of the <c>Code</c> attribute.
 /// </summary>
 /// <param name="val">A RaceType object</param>
 /// <remarks>
 /// <para>The SIF specification defines the meaning of this attribute as: "The general racial category which reflects the individual's recognition of his or her community or with which the individual most identifies."</para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 1.1</para>
 /// </remarks>
 public void SetCode(RaceType val)
 {
     SetField(CommonDTD.RACE_CODE, val);
 }
        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;
        }