Beispiel #1
0
 private Map<String, Object> checkClassroomAudit(Student student) {
   Map<String, Object> hm = null;
   if (student.getClassroomCompletionDate() != null) {
     if (student.getClassroomCompletionSchoolNumber() != null) {
       hm = new HashMap<String, Object>();
       hm.put("studentFk", student.getStudentPk());
       hm.put("schoolNumber", student.getClassroomCompletionSchoolNumber());
       hm.put("completionDate", student.getClassroomCompletionDate());
       hm.put("completionType", Constants.CompletionType_ClassroomTraining);
     }
   }
   return hm;
 }
Beispiel #2
0
 private Student setAllSchoolNumbers(Student student) throws DaoException {
   if (student.getSchoolFk() != null) {
     String number = getSchoolNumber(student.getSchoolFk());
     Integer schoolNumber = Integer.valueOf(number);
     log.debug("allSchoolNumbers schoolNumber is " + schoolNumber);
     if (student.getBtwCompletionSchoolNumber() == null) {
       student.setBtwCompletionSchoolNumber(schoolNumber);
     }
     if (student.getClassroomCompletionSchoolNumber() == null) {
       student.setClassroomCompletionSchoolNumber(schoolNumber);
     }
     if (student.getObservationCompletionSchoolNumber() == null) {
       student.setObservationCompletionSchoolNumber(schoolNumber);
     }
     if (student.getRoadCompletionSchoolNumber() == null) {
       student.setRoadCompletionSchoolNumber(schoolNumber);
     }
     if (student.getWrittenCompletionSchoolNumber() == null) {
       student.setWrittenCompletionSchoolNumber(schoolNumber);
     }
   }
   return student;
 }