Package net.sf.esims.model.entity

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


   
   
    String message = EsimsConstants._BLANK_STRING;
      AcademicYear academicYear = this.examService
          .getActiveAcademicYear();
      Standard standard = this.standardService.getById(this.standardId);
      Exam examToCreate = new Exam(academicYear, standard,
          this.description, this.startDate, this.endDate,
          this.individualExams);
      // Check if the exam already exists in the system
      if (this.examService.checkIfExamIsPresent(examToCreate)) {
View Full Code Here


  private Logger logger = Logger.getLogger(AttendanceMgmtAction.class);
 
 
  @HandlesEvent("getListOfDivisionsForStd")
  public Resolution getListOfDivisionsForStd(){
    Standard standard = standardService.getById(this.standardId);
    List<Division> listOfDivisions = this.divisionService.getDivisionsForStandard(standard);
    return new JavaScriptResolution(listOfDivisions, 
        net.sf.esims.model.entity.School.class,
        net.sf.esims.model.entity.Standard.class,
        net.sf.esims.model.entity.Exam.class,
View Full Code Here

  @HandlesEvent("createSubject")
  public Resolution createSubject() {
    String message = null;

    Standard standardToBeLinkedWith = this.subjectService
        .getStandardById(this.standardId);
    Subject subject = new Subject(this.name, standardToBeLinkedWith,
        this.isActive, this.syllabus);
    this.subjectService.save(subject);
    message = EsimsUtils.createInfoMessage(this.getContext()
View Full Code Here

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

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

  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);
View Full Code Here

  @HandlesEvent("updateSubject")
  public Resolution updateSubject() {
    String message = null;
    // retrieve the original entities
    Subject subject = (Subject)this.getContext().getAttributeFromSession("subject");
    Standard standard = this.subjectService
        .getStandardById(this.standardId);
    subject.setName(this.name);
    subject.setStandard(standard);
    subject.setIsActive(this.isActive);
    subject.setSyllabus(this.syllabus);
View Full Code Here

    }
    if (searchCriteria.equalsIgnoreCase("standardId")) {
      Long stdid = (Long) this.getContext().getAttributeFromSession(
          "_sess_search_param");
      Standard standard = this.standardService.getById(stdid);
      listOfSubjects = this.subjectService
          .getSubjectsTaughtInStd(standard);
      this.getContext().setAttributeToRequest("listOfSubjects",
          listOfSubjects);
      this.getContext().setAttributeToSession("searchCriteria",
          "standardId");
      this.getContext().setAttributeToSession("_sess_search_param",
          stdid);
      this.getContext().setAttributeToRequest("standardName",
          standard.getName());
    }
    return new ForwardResolution("/WEB-INF/pages/subjectList.jsp");
  }
View Full Code Here

    School school = schoolEssence.createSchool();
    this.schoolService.save(school);
    AcademicYear academicYear = new AcademicYear("2006-2007", school, d1,
        d2, "active");
    academicYearService.saveAcademicYear(academicYear);
    Standard standard = new Standard("5th standard", academicYear);
    this.standardService.save(standard);
   
    Division division = new Division("A",standard,"paplubhai",new Integer(50),new Integer(20),new Date());
    this.divisionService.save(division);
   
View Full Code Here

    School school = schoolEssence.createSchool();
    this.schoolService.save(school);
    AcademicYear academicYear = new AcademicYear("2006-2007", school, d1,
        d2, "active");
    academicYearService.saveAcademicYear(academicYear);
    Standard standard = new Standard("5th standard", academicYear);
    this.standardService.save(standard);
   
    Division division = new Division("A",standard,"paplubhai",new Integer(50),new Integer(20),new Date());
    this.divisionService.save(division);
   
View Full Code Here

    School school = schoolEssence.createSchool();
    this.schoolService.save(school);
    AcademicYear academicYear = new AcademicYear("2006-2007", school, d1,
        d2, "active");
    academicYearService.saveAcademicYear(academicYear);
    Standard standard = new Standard("5th standard", academicYear);
    this.standardService.save(standard);
   
    Division division = new Division("A",standard,"paplubhai",new Integer(50),new Integer(20),new Date());
    this.divisionService.save(division);
   
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.