/// <summary> /// Constructor that accepts values for all mandatory fields /// </summary> ///<param name="refId">The GUID that uniquely identifies this employee.</param> ///<param name="name">Name of employee.</param> ///<param name="ssn">Social security number of employee.</param> /// public EmployeePersonal( string refId, Name name, string ssn ) : base(Adk.SifVersion, HrfinDTD.EMPLOYEEPERSONAL) { this.RefId = refId; this.Name = name; this.Ssn = ssn; }
/// <summary> /// Constructor that accepts values for all mandatory fields /// </summary> ///<param name="refId">The GUID of this contact.</param> ///<param name="studentPersonalRefId">The GUID of the student whose contact this is.</param> ///<param name="type">Type of student contact</param> ///<param name="name">The name of the contact. Note: Always use Type attribute value of 04.</param> /// public StudentContact( string refId, string studentPersonalRefId, string type, Name name ) : base(Adk.SifVersion, StudentDTD.STUDENTCONTACT) { this.RefId = refId; this.StudentPersonalRefId = studentPersonalRefId; this.Type = type; this.Name = name; }
public static StudentPersonal makeStudentPersonal( String localId, NameType nameType, String firstName, String lastName ) { StudentPersonal s = new StudentPersonal(); s.RefId = Adk.MakeGuid(); s.LocalId = localId; Name name = new Name( nameType, lastName, firstName ); s.Name = name; return s; }
/// <summary> /// Constructor that accepts values for all mandatory fields /// </summary> ///<param name="ssn">Employee Social Security Number. This element or StateProvinceId, or both, must be included.</param> ///<param name="stateProvinceId">The state-assigned identifier for this staff member. This element or SSN, or both, must be included.</param> ///<param name="name">Name of employee.</param> ///<param name="activityName">Name of the course or activity</param> ///<param name="activityType">Type of course or activity</param> ///<param name="activityHours">Total activity hours/total clock hours</param> ///<param name="earned">Hours attended or credits earned by the employee</param> ///<param name="dateFrom">Start date of the course or activity</param> ///<param name="dateTo">Source: 0613 Employment Status</param> /// public EmployeeRecertification( string ssn, string stateProvinceId, Name name, string activityName, ActivityType activityType, decimal? activityHours, Earned earned, DateTime? dateFrom, DateTime? dateTo ) : base(Adk.SifVersion, ProfdevDTD.EMPLOYEERECERTIFICATION) { this.SSN = ssn; this.StateProvinceId = stateProvinceId; this.Name = name; this.ActivityName = activityName; this.SetActivityType( activityType ); this.ActivityHours = activityHours; this.Earned = earned; this.DateFrom = dateFrom; this.DateTo = dateTo; }
/// <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 ); }
public void TestWriteXSINill() { StudentPersonal sp = new StudentPersonal(); sp.RefId = Adk.MakeGuid(); sp.StateProvinceId = "\u06DE55889"; sp.LocalId = "987987987987987"; Name name = new Name(NameType.LEGAL, "Johnson", "Steve"); sp.Name = name; name.SetField( CommonDTD.NAME_TYPE, new SifString( null ) ); name.SetField(CommonDTD.NAME_MIDDLENAME, new SifString(null)); SIF_ExtendedElement see = new SIF_ExtendedElement("FOO", null ); see.SetField(GlobalDTD.SIF_EXTENDEDELEMENT, new SifString(null)); see.XsiType = "Integer"; sp.SIFExtendedElementsContainer.Add(see); sp.SetField( StudentDTD.STUDENTPERSONAL_LOCALID, new SifString( null ) ); Console.WriteLine(sp.ToXml()); StudentPersonal copy = (StudentPersonal)AdkObjectParseHelper.WriteParseAndReturn(sp, SifVersion.LATEST, null, true); Console.WriteLine(copy.ToXml()); name = copy.Name; Assert.IsNull(name.Type); Assert.IsNull(name.MiddleName); Assert.IsNotNull(name.FirstName); Assert.IsNotNull(name.LastName); // Attributes cannot be represented using xs nil SimpleField field = name.GetField(CommonDTD.NAME_TYPE); Assert.IsNull(field); field = name.GetField(CommonDTD.NAME_MIDDLENAME); Assert.IsNotNull(field); Assert.IsNull(field.Value); see = copy.GetSIFExtendedElement("FOO"); field = see.GetField(GlobalDTD.SIF_EXTENDEDELEMENT); Assert.IsNotNull(field); Assert.IsNull(field.Value); field = copy.GetField(StudentDTD.STUDENTPERSONAL_LOCALID); Assert.IsNotNull(field); Assert.IsNull(field.Value); }
/// <summary>Adds a new <c><Name></c> child element.</summary> /// <param name="val">A Name object</param> /// <remarks> /// <para>The SIF specification defines the meaning of this element as: "The name(s) of the contact."</para> /// <para>Version: 2.6</para> /// <para>Since: 1.5r1</para> /// </remarks> public void AddName( Name val ) { AddChild( ReportingDTD.SLCONTACT_NAME, val ); }
/// <summary> /// Sets all Name object instances. All existing /// <c>Name</c> instances /// are removed and replaced with this list. Calling this method with the /// parameter value set to null removes all <c>Names</c>. /// </summary> /// <remarks> /// <para>Version: 2.6</para> /// <para>Since: 1.5r1</para> /// </remarks> public void SetNames( Name[] items) { SetChildren( ReportingDTD.SLCONTACT_NAME, items ); }
///<summary>Sets the value of the <c><ContactInfo></c> element.</summary> /// <param name="Name">The name of the contact person.</param> ///<remarks> /// <para>This form of <c>setContactInfo</c> is provided as a convenience method /// that is functionally equivalent to the <c>ContactInfo</c></para> /// <para>Version: 2.6</para> /// <para>Since: 1.5r1</para> /// </remarks> public void SetContactInfo( Name Name ) { RemoveChild( StudentDTD.LEACONTACT_CONTACTINFO); AddChild( StudentDTD.LEACONTACT_CONTACTINFO, new ContactInfo( Name ) ); }
/// <summary> /// Constructor that accepts values for all mandatory fields /// </summary> ///<param name="name">The name of the person. Note: Type attribute value of 04 must be used here.</param> /// public PersonInfo( Name name ) : base(CommonDTD.PERSONINFO) { this.Name = name; }
/// <summary>Adds a new <c><Name></c> child element.</summary> /// <param name="val">A Name object</param> /// <remarks> /// <para>The SIF specification defines the meaning of this element as: "The name(s) of the student."</para> /// <para>Version: 2.5</para> /// <para>Since: 1.5r1</para> /// </remarks> public void AddName( Name val ) { AddChild( ReportingDTD.STUDENTLOCATOR_NAME, val ); }
///<summary>Sets the value of the <c><CSSOContact></c> element.</summary> /// <param name="Name">The name of the contact person.</param> ///<remarks> /// <para>This form of <c>setCSSOContact</c> is provided as a convenience method /// that is functionally equivalent to the <c>CSSOContact</c></para> /// <para>Version: 2.6</para> /// <para>Since: 2.3</para> /// </remarks> public void SetCSSOContact( Name Name ) { RemoveChild( DatamodelDTD.SEAINFO_CSSOCONTACT); AddChild( DatamodelDTD.SEAINFO_CSSOCONTACT, new ContactInfo( Name ) ); }
/// <summary> /// Constructor that accepts values for all mandatory fields /// </summary> ///<param name="refId">The GUID of the staff member.</param> ///<param name="name">Name of the staff member. Note: Always use Type value of 04.</param> /// public StaffPersonal( string refId, Name name ) : base(Adk.SifVersion, StudentDTD.STAFFPERSONAL) { this.RefId = refId; this.Name = name; }
///<summary>Sets the value of the <c><ContactInfo></c> element.</summary> /// <param name="Name">The name of the contact person.</param> ///<remarks> /// <para>This form of <c>setContactInfo</c> is provided as a convenience method /// that is functionally equivalent to the <c>ContactInfo</c></para> /// <para>Version: 2.5</para> /// <para>Since: 1.5r1</para> /// </remarks> public void SetContactInfo( Name Name ) { RemoveChild( CommonDTD.SCHOOLCONTACT_CONTACTINFO); AddChild( CommonDTD.SCHOOLCONTACT_CONTACTINFO, new ContactInfo( Name ) ); }
///<summary>Sets the value of the <c><ContactInfo></c> element.</summary> /// <param name="Name">The name of the contact person.</param> ///<remarks> /// <para>This form of <c>setContactInfo</c> is provided as a convenience method /// that is functionally equivalent to the <c>ContactInfo</c></para> /// <para>Version: 2.5</para> /// <para>Since: 2.3</para> /// </remarks> public void SetContactInfo( Name Name ) { RemoveChild( DatamodelDTD.SEACONTACT_CONTACTINFO); AddChild( DatamodelDTD.SEACONTACT_CONTACTINFO, new ContactInfo( Name ) ); }
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; }
///<summary>Sets the value of the <c><ContactInfo></c> element.</summary> /// <param name="Name">The name of the contact person.</param> ///<remarks> /// <para>This form of <c>setContactInfo</c> is provided as a convenience method /// that is functionally equivalent to the <c>ContactInfo</c></para> /// <para>Version: 2.5</para> /// <para>Since: 2.0</para> /// </remarks> public void SetContactInfo( Name Name ) { RemoveChild( HrfinDTD.VENDORINFO_CONTACTINFO); AddChild( HrfinDTD.VENDORINFO_CONTACTINFO, new ContactInfo( Name ) ); }
///<summary>Sets the value of the <c><PersonInfo></c> element.</summary> /// <param name="Name">The name of the person. Note: Type attribute value of 04 must be used here.</param> ///<remarks> /// <para>This form of <c>setPersonInfo</c> is provided as a convenience method /// that is functionally equivalent to the <c>PersonInfo</c></para> /// <para>Version: 2.6</para> /// <para>Since: 2.4</para> /// </remarks> public void SetPersonInfo( Name Name ) { RemoveChild( StudentDTD.STUDENTCONTACTPERSONAL_PERSONINFO); AddChild( StudentDTD.STUDENTCONTACTPERSONAL_PERSONINFO, new PersonInfo( Name ) ); }
///<summary>Sets the value of the <c><ContactInfo></c> element.</summary> /// <param name="Name">The name of the contact person.</param> ///<remarks> /// <para>This form of <c>setContactInfo</c> is provided as a convenience method /// that is functionally equivalent to the <c>ContactInfo</c></para> /// <para>Version: 2.6</para> /// <para>Since: 1.5r1</para> /// </remarks> public void SetContactInfo( Name Name ) { RemoveChild( ReportingDTD.REPORTSUBMITTERINFO_CONTACTINFO); AddChild( ReportingDTD.REPORTSUBMITTERINFO_CONTACTINFO, new ContactInfo( Name ) ); }
/// <summary> /// Constructor that accepts values for all mandatory fields /// </summary> ///<param name="name">The name of the contact person.</param> /// public ContactInfo( Name name ) : base(CommonDTD.CONTACTINFO) { this.Name = name; }
/// <summary>Adds a new <c><Name></c> child element.</summary> /// <param name="val">A Name object</param> /// <remarks> /// <para>The SIF specification defines the meaning of this element as: "Name of contact person. Use the generic element Name."</para> /// <para>Version: 2.5</para> /// <para>Since: 1.5r1</para> /// </remarks> public void AddName( Name val ) { AddChild( CommonDTD.LRCONTACT_NAME, val ); }
/// <summary> /// Sets all Name object instances. All existing /// <c>Name</c> instances /// are removed and replaced with this list. Calling this method with the /// parameter value set to null removes all <c>Names</c>. /// </summary> /// <remarks> /// <para>Version: 2.5</para> /// <para>Since: 1.5r1</para> /// </remarks> public void SetNames( Name[] items) { SetChildren( ReportingDTD.STUDENTLOCATOR_NAME, items ); }
/// <summary> /// Sets all Name object instances. All existing /// <c>Name</c> instances /// are removed and replaced with this list. Calling this method with the /// parameter value set to null removes all <c>Names</c>. /// </summary> /// <remarks> /// <para>Version: 2.5</para> /// <para>Since: 1.5r1</para> /// </remarks> public void SetNames( Name[] items) { SetChildren( CommonDTD.LRCONTACT_NAME, items ); }