Package net.sf.esims.model.entity

Examples of net.sf.esims.model.entity.Standard


  }

  @HandlesEvent("showDivisionsOfStd")
  public Resolution showDivisionsOfStd() {
    Standard standard = this.standardService.getById(this.standardId);
    List<Division> divisions = this.divisionService
        .getDivisionsForStandard(standard);
    this.getContext().setAttributeToRequest("listOfDivisions", divisions);
    this.getContext().setAttributeToRequest("standardName",
        standard.getName());
    return new ForwardResolution("/WEB-INF/pages/divisionListForStd.jsp");
  }
View Full Code Here


    return new ForwardResolution("/WEB-INF/pages/divisionListForStd.jsp");
  }

  @HandlesEvent("showSubjectsOfStd")
  public Resolution showSubjectsOfStd() {
    Standard standard = this.standardService.getById(this.standardId);
    List<Subject> subjects = this.subjectService
        .getSubjectsTaughtInStd(standard);
    this.getContext().setAttributeToRequest("listOfSubjects", subjects);
    this.getContext().setAttributeToRequest("standardName",
        standard.getName());
    return new ForwardResolution("/WEB-INF/pages/subjectListForStd.jsp");
  }
View Full Code Here

    schoolDAO.save(school);
    AcademicYear academicYear = new AcademicYear("2005-2006", school,
        startDate, endDate, "active");
    academicYearDAO.save(academicYear);

    Standard standard = new Standard("1st standard", academicYear);
    standardDAO.save(standard);
    StudentDetails  details = UtilsForTestCases.createStudentDetailsForTest();
    Date dateOfAdmission = new Date();
    Student student = new Student("123123","345345",standard,dateOfAdmission,details);
    this.studentDAO.save(student);
View Full Code Here

    schoolDAO.save(school);
    AcademicYear academicYear = new AcademicYear("2005-2006", school,
        startDate, endDate, "active");
    academicYearDAO.save(academicYear);

    Standard standard = new Standard("1st standard", academicYear);
    standardDAO.save(standard);
    StudentDetails  details = UtilsForTestCases.createStudentDetailsForTest();
    Date dateOfAdmission = new Date();
    Student student = new Student("123123","345345",standard,dateOfAdmission,details);
    this.studentDAO.save(student);
View Full Code Here

    schoolDAO.save(school);
    AcademicYear academicYear = new AcademicYear("2005-2006", school,
        startDate, endDate, "active");
    academicYearDAO.save(academicYear);

    Standard standard = new Standard("1st standard", academicYear);
    standardDAO.save(standard);
   
    StudentDetails  details = UtilsForTestCases.createStudentDetailsForTest();
   
    Division division = new Division("A", standard,"paplubhai",new Integer(50),new Integer(20),new Date());
View Full Code Here

    schoolDAO.save(school);
    AcademicYear academicYear = new AcademicYear("2005-2006", school,
        startDate, endDate, "active");
    academicYearDAO.save(academicYear);

    Standard standard = new Standard("1st standard", academicYear);
    standardDAO.save(standard);
    StudentDetails  details = UtilsForTestCases.createStudentDetailsForTest();
    Date dateOfAdmission = new Date();
    Student student = new Student("123123","345345",standard,dateOfAdmission,details);
    this.studentDAO.save(student);
View Full Code Here

    AcademicYear academicYear = new AcademicYear("2007-2008",school,startDate1,endDate1,"active");
    academicYearDAO.save(academicYear);
    List<IndividualExam> listOfIndExams = new ArrayList<IndividualExam>();
    listOfIndExams.add(UtilsForTestCases.createValidIndExam());
   
    Standard standard = new Standard("5th standard",academicYear);
    standardDAO.save(standard);
    Exam exam = new Exam(academicYear,standard,"Test exam",startDate1,endDate1,listOfIndExams);
    examDAO.save(exam)
   
    List<Exam> listOfExams= examDAO.getAll();
View Full Code Here

    School school = essence.createSchool();
    this.schoolDAO.save(school);
   
    AcademicYear academicYear = new AcademicYear("2007-2008",school,startDate1,endDate1,"active");
    academicYearDAO.save(academicYear);   
    Standard standard = new Standard("5th standard",academicYear);
    standardDAO.save(standard);
   
    List<IndividualExam> listOfIndExams = new ArrayList<IndividualExam>();
    listOfIndExams.add(UtilsForTestCases.createValidIndExam());
    Exam exam = new Exam(academicYear,standard,"Test exam",startDate1,endDate1,listOfIndExams);
View Full Code Here

    School school = essence.createSchool();
    this.schoolDAO.save(school);
   
    AcademicYear academicYear = new AcademicYear("2007-2008",school,startDate1,endDate1,"active");
    academicYearDAO.save(academicYear);
    Standard standard = new Standard("5th standard",academicYear);
    standardDAO.save(standard);
    List<IndividualExam> listOfIndExams = new ArrayList<IndividualExam>();
    listOfIndExams.add(UtilsForTestCases.createValidIndExam());
    Exam exam = new Exam(academicYear,standard,"Test exam",startDate1,endDate1,listOfIndExams);
    examDAO.save(exam)
View Full Code Here

    schoolDAO.save(school);
    AcademicYear academicYear = new AcademicYear("2005-2006", school,
        startDate, endDate, "active");
    academicYearDAO.save(academicYear);

    Standard standard = new Standard("1st standard", academicYear);
    standardDAO.save(standard);

    List<Standard> listOfStds = standardDAO
        .getByStandardName("1st standard");
    assertEquals(1, listOfStds.size());
View Full Code Here

TOP

Related Classes of net.sf.esims.model.entity.Standard

Copyright © 2018 www.massapicom. 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.