Package net.sf.esims.model.entity

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


    String message = EsimsConstants._BLANK_STRING;
    long days = 0;
    AcademicYear academicYear = null;
    // clear from session
    this.getContext().removeAttributeFromSession("academicYear");
    School school = this.academicYearService
        .getSchoolByItsId(this.schoolId);
   
    try {
      // this method was used since India doesnt use DST :-)
      days = (endDate.getTime() - startDate.getTime()) / 1000 / 60 / 60
View Full Code Here


  public Resolution updateAcademicYear() {
    long days = 0;
    String message = EsimsConstants._BLANK_STRING;
    AcademicYear academicYear = (AcademicYear) this.getContext()
        .getAttributeFromSession("academicYear");
    School school = this.academicYearService
        .getSchoolByItsId(this.schoolId);
    academicYear.setDescription(this.description);
    academicYear.setSchool(school);
    academicYear.setStartDate(this.startDate);
    academicYear.setEndDate(this.endDate);
View Full Code Here

  public void testGetByFormNumber(){
    Date d1 = EsimsUtils.createDate(12, Calendar.MARCH, 2006);
    Date d2 = EsimsUtils.createDate(13, Calendar.MARCH, 2007);
    SchoolEssence schoolEssence = UtilsForTestCases
        .createValidSchoolEssence();
    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);
View Full Code Here

  public void  getByAdmissionNumber(){
    Date d1 = EsimsUtils.createDate(12, Calendar.MARCH, 2006);
    Date d2 = EsimsUtils.createDate(13, Calendar.MARCH, 2007);
    SchoolEssence schoolEssence = UtilsForTestCases
        .createValidSchoolEssence();
    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);
View Full Code Here

  public void  testGetByStandard(){
    Date d1 = EsimsUtils.createDate(12, Calendar.MARCH, 2006);
    Date d2 = EsimsUtils.createDate(13, Calendar.MARCH, 2007);
    SchoolEssence schoolEssence = UtilsForTestCases
        .createValidSchoolEssence();
    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);
View Full Code Here

  public void testGetByStandardAndDivision(){
    Date d1 = EsimsUtils.createDate(12, Calendar.MARCH, 2006);
    Date d2 = EsimsUtils.createDate(13, Calendar.MARCH, 2007);
    SchoolEssence schoolEssence = UtilsForTestCases
        .createValidSchoolEssence();
    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);
View Full Code Here

  public void testGetById(){
    Date d1 = EsimsUtils.createDate(12, Calendar.MARCH, 2006);
    Date d2 = EsimsUtils.createDate(13, Calendar.MARCH, 2007);
    SchoolEssence schoolEssence = UtilsForTestCases
        .createValidSchoolEssence();
    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);
View Full Code Here

  public void testSave(){
    Date d1 = EsimsUtils.createDate(12, Calendar.MARCH, 2006);
    Date d2 = EsimsUtils.createDate(13, Calendar.MARCH, 2007);
    SchoolEssence schoolEssence = UtilsForTestCases
        .createValidSchoolEssence();
    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);
View Full Code Here

  public void testDelete(){
    Date d1 = EsimsUtils.createDate(12, Calendar.MARCH, 2006);
    Date d2 = EsimsUtils.createDate(13, Calendar.MARCH, 2007);
    SchoolEssence schoolEssence = UtilsForTestCases
        .createValidSchoolEssence();
    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);
View Full Code Here

   
    Date d1 = EsimsUtils.createDate(12, Calendar.MARCH, 2006);
    Date d2 = EsimsUtils.createDate(13, Calendar.MARCH, 2007);
    SchoolEssence schoolEssence = UtilsForTestCases
        .createValidSchoolEssence();
    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);
View Full Code Here

TOP

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

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.