Examples of StudentDetails


Examples of net.sf.esims.model.valueobject.StudentDetails

                  .getContextPath(),
                  "No details were found for the given Form #, please recheck"));
      return new StreamingResolution("text/html", new StringReader(
          details.toString()));
    } else {
      StudentDetails studentDetails = EsimsUtils
          .createStudentDetailsFromApplicationForm(applicationForms
              .get(0));
      details
          .append("Please cross-verify the following details before admitting,<br><strong>");

      details.append(studentDetails.getFirstName().toUpperCase());
      details.append(EsimsConstants._SPACE);
      details.append(studentDetails.getLastName().toUpperCase());
      details.append("<br>");
      details.append("Born on ");
      details.append(studentDetails.getDateOfBirth());
      details.append("<br>");
      details.append("Son/Daughter of ");
      details.append(studentDetails.getFatherFirstName().toUpperCase());
      details.append(EsimsConstants._SPACE);
      details.append(studentDetails.getFatherLastName().toUpperCase());
      details.append("</strong>");
      return new StreamingResolution("text/html", new StringReader(
          EsimsUtils.createImportantMessage(this.getContext()
              .getContextPath(), details.toString())));
View Full Code Here

Examples of net.sf.esims.model.valueobject.StudentDetails

   * Creates valid instance of StudentDetails
   *
   */
 
  public static StudentDetails createStudentDetailsForTest(){
    StudentDetails details = new StudentDetails();
   
    ReceivedApplicationFormEssence essence = createRAEssence();
   
    details.setAcademicAchievements("1st in first standard");
   
    details.setBelowPovertyLine(essence.getBelowPovertyLine());
    details.setCaste(essence.getCaste());
    details.setDateOfBirth(essence.getDateOfBirth());
    details.setFatherFirstName(essence.getFatherFirstName());
    details.setFatherMiddleName(essence.getFatherMiddleName());
    details.setFatherLastName(essence.getFatherLastName());
    details.setFirstName(essence.getFirstName());
    details.setFormNumber(essence.getFormNumber());
    details.setGender(essence.getGender());
    details.setGrossHouseHoldIncome(essence.getGrossHouseHoldIncome());
    details.setLastName(essence.getLastName());
    details.setLocalGuardianFirstName("localfn");
    details.setLocalGuardianLastName("localGuardianLastName");
    details.setLocalGuardianMiddleName("localGuardianMiddleName");
    details.setMiddleName(essence.getMiddleName());
    details.setMotherFirstName(essence.getMotherFirstName());
    details.setMotherLastName(essence.getMotherLastName());
    details.setMotherMiddleName(essence.getMotherMiddleName());
    details.setMotherTounge(essence.getMotherTounge());
    details.setNationality(essence.getNationality());
    details.setNonAcademicAchievements("Ran fastest in 1st stnadard");
    details.setOtherBackwardCaste(Boolean.FALSE);
    details.setPermanentHouseNameOrNumber(essence.getPermanentHouseNameOrNumber());
    details.setPermanentPhoneNumber(essence.getPermanentPhoneNumber());
    details.setPermanentPinCode(essence.getPermanentPinCode());
    details.setPermanentState(essence.getPermanentState());
    details.setPermanentStreet(essence.getPermanentStreet());
    details.setPermanentVillageOrTownOrCity(essence.getPermanentVillageOrTownOrCity());
    details.setPlaceOfBirth(essence.getPlaceOfBirth());
    details.setPresentHouseNameOrNumber("presentHouseNameOrNumber");
    details.setPresentPhoneNumber("1231231231");
    details.setPresentPinCode("688594");
    details.setPresentState("presentState");
    details.setPresentStreet("presentStreet");
    details.setPresentVillageOrTownOrCity("presentVillageOrTownOrCity");
    details.setReligion(essence.getReligion());
    details.setScheduledCasteOrTribe(essence.getScheduledCasteOrTribe());
    details.setSubcaste(essence.getSubcaste());
    return details;
  }
View Full Code Here

Examples of net.sf.esims.model.valueobject.StudentDetails

          .createWarnMessage(this.getContext().getContextPath(),
              "No details were found for the given Form #, please recheck");
      return new StreamingResolution("text/html", new StringReader(
          message.toString()));
    } else {
      StudentDetails studentDetails = EsimsUtils
          .createStudentDetailsFromApplicationForm(applicationForms
              .get(0));

      Date dateOfAdmission = new Date();
View Full Code Here

Examples of net.sf.esims.model.valueobject.StudentDetails

public class StudentUnitTest extends TestCase {

  public void testCreation() {

    Standard std = UtilsForTestCases.createValidStandardWithId();
    StudentDetails studentDetails = UtilsForTestCases
        .createStudentDetailsForTest();
   
    Date dateOfAdmission = new Date();

    // Instantiate a valid instance of Student
View Full Code Here

Examples of net.sf.esims.model.valueobject.StudentDetails

  //helper method that does the updation of the student with the newly supplied values.
  private Student updateStudentsDetails() {
    Student student = (Student) this.getContext().getAttributeFromSession(
        "student");
    StudentDetails studentDetails = student.getStudentDetails();

    Standard standard = this.standardService.getById(this.standardId);
    Division division = this.divisionService
        .getDivisionById(this.divisionId);
    student.setStandard(standard);
    student.setDivision(division);

    studentDetails.setAcademicAchievements(this.academicAchievements);
    studentDetails.setBelowPovertyLine(this.belowPovertyLine);
    studentDetails.setCaste(this.caste);
    studentDetails.setDateOfBirth(this.dateOfBirth);
    studentDetails.setFatherFirstName(this.fatherFirstName);
    studentDetails.setFatherLastName(this.fatherLastName);
    studentDetails.setFatherMiddleName(this.fatherMiddleName);
    studentDetails.setFirstName(this.firstName);
    studentDetails.setGrossHouseHoldIncome(this.grossHouseHoldIncome);
    studentDetails.setLastName(this.lastName);
    studentDetails.setLocalGuardianFirstName(this.localGuardianFirstName);
    studentDetails.setLocalGuardianLastName(this.localGuardianLastName);
    studentDetails.setLocalGuardianMiddleName(this.localGuardianMiddleName);
    studentDetails.setMiddleName(this.middleName);
    studentDetails.setMotherFirstName(this.motherFirstName);
    studentDetails.setMotherLastName(this.motherLastName);
    studentDetails.setMotherMiddleName(this.motherMiddleName);
    studentDetails.setMotherTounge(this.motherTounge);
    studentDetails.setNationality(this.nationality);
    studentDetails.setNonAcademicAchievements(this.nonAcademicAchievements);
    studentDetails.setOtherBackwardCaste(this.otherBackwardCaste);
    studentDetails
        .setPermanentHouseNameOrNumber(this.permanentHouseNameOrNumber);
    studentDetails.setPermanentPhoneNumber(this.permanentPhoneNumber);
    studentDetails.setPermanentPinCode(this.permanentPinCode);
    studentDetails.setPermanentState(this.permanentState);
    studentDetails.setPermanentStreet(this.permanentStreet);
    studentDetails
        .setPermanentVillageOrTownOrCity(this.permanentVillageOrTownOrCity);
    studentDetails.setPlaceOfBirth(this.placeOfBirth);
    studentDetails
        .setPresentHouseNameOrNumber(this.presentHouseNameOrNumber);
    studentDetails.setPresentPhoneNumber(this.presentPhoneNumber);
    studentDetails.setPresentPinCode(this.presentPinCode);
    studentDetails.setPresentState(this.presentState);
    studentDetails.setPresentStreet(this.presentStreet);
    studentDetails
        .setPresentVillageOrTownOrCity(this.presentVillageOrTownOrCity);
    studentDetails.setReligion(this.religion);
    studentDetails.setScheduledCasteOrTribe(this.scheduledCasteOrTribe);
    studentDetails.setSubcaste(this.subcaste);

    student.setStudentDetails(studentDetails);

    return student;
  }
View Full Code Here

Examples of net.sf.esims.model.valueobject.StudentDetails

    this.standardService.save(standard);
   
    Division division = new Division("A",standard,"paplubhai",new Integer(50),new Integer(20),new Date());
    this.divisionService.save(division);
   
    StudentDetails studentDetails = UtilsForTestCases.createStudentDetailsForTest();
    Date dateOfAdmission = new Date();
    Student student = new Student("123","345",standard,dateOfAdmission,studentDetails);
    this.studentService.save(student);
   
    assertNotNull(this.studentService.getByFormNumber("345"));
View Full Code Here

Examples of net.sf.esims.model.valueobject.StudentDetails

    this.standardService.save(standard);
   
    Division division = new Division("A",standard,"paplubhai",new Integer(50),new Integer(20),new Date());
    this.divisionService.save(division);
   
    StudentDetails studentDetails = UtilsForTestCases.createStudentDetailsForTest();
    Date dateOfAdmission = new Date();
    Student student = new Student("123","345",standard,dateOfAdmission,studentDetails);
    this.studentService.save(student);
   
    assertNotNull(this.studentService.getByAdmissionNumber("123"));
View Full Code Here

Examples of net.sf.esims.model.valueobject.StudentDetails

    this.standardService.save(standard);
   
    Division division = new Division("A",standard,"paplubhai",new Integer(50),new Integer(20),new Date());
    this.divisionService.save(division);
   
    StudentDetails studentDetails = UtilsForTestCases.createStudentDetailsForTest();
    Date dateOfAdmission = new Date();
    Student student = new Student("123","345",standard,dateOfAdmission,studentDetails);
    this.studentService.save(student);
   
    assertNotNull(this.studentService.getByStandard(standard));
View Full Code Here

Examples of net.sf.esims.model.valueobject.StudentDetails

    this.standardService.save(standard);
   
    Division division = new Division("A",standard,"paplubhai",new Integer(50),new Integer(20),new Date());
    this.divisionService.save(division);
   
    StudentDetails studentDetails = UtilsForTestCases.createStudentDetailsForTest();
    Date dateOfAdmission = new Date();
    Student student = new Student("123","345",standard,dateOfAdmission,studentDetails);
    this.studentService.save(student);
   
    assertNotNull(this.studentService.getByStandardAndDivision(standard, division));
View Full Code Here

Examples of net.sf.esims.model.valueobject.StudentDetails

    this.standardService.save(standard);
   
    Division division = new Division("A",standard,"paplubhai",new Integer(50),new Integer(20),new Date());
    this.divisionService.save(division);
   
    StudentDetails studentDetails = UtilsForTestCases.createStudentDetailsForTest();
    Date dateOfAdmission = new Date();
    Student student = new Student("123","345",standard,dateOfAdmission,studentDetails);
    this.studentService.save(student);
   
    assertNotNull(this.studentService.getById(student.getStudentId()));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.