Package br.com.visualmidia.business

Examples of br.com.visualmidia.business.Student


                        MergeSortAlgorithm sortAlgorithm = new MergeSortAlgorithm();
                        sortAlgorithm.sortRegistrationByDate(registrationList);
                    }
                   
                    for (Registration registration : registrationList) {
                        Student student = (Student) registration.getStudent().getPersonType("student");
                        GDDate registrationDate = new GDDate(registration.getRegistrationDate());
            if((student.getHowDoYouKnowVisualMidia().equals(howDoYouKnowVisualmidia)) &&  registration.isActive() && (ignoreDate ? true : (registrationDate.afterOrEqualsDay(startDate) && registrationDate.beforeOrEqualsDay(finishDate)))) {
                            if(i == 0) {
                              page.addElement(drawGrayRectangle(posX, posY, 535, 20, 3));
                                page.addElement(insertTitle(boldStyle, howDoYouKnowVisualmidia, posX+5, posY+5));
                               
                                posY += 25;
View Full Code Here


      fillCellPhone(person.getCellPhone());
      fillMessagePhone(person.getMessagePhone());
      fillContact(person.getContact());

      if (person.isPersonType("student")) {
        Student student = ((Student) person.getPersonType("student"));

        fillSchoolLevel(student.getSchoolLevel());
        fillSchool(student.getSchool());
        fillCompany(student.getCompany());
        fillCompanyPhone(student.getCompanyPhone());
        fillResponsableName(student.getResponsableName());
        fillResponsablePhone(student.getResponsablePhone());
        fillResponsableRelation(student.getResponsableRelation());
        fillResponsableCPF(student.getResponsableCPF());
        fillResponsableRG(student.getResponsableRG());
        fillHowDoYouKnowVisualMidia(student
            .getHowDoYouKnowVisualMidia());
        fillReasonToDoTheClass(student.getReasonToDoTheCurse());
        fillAttendanceResponsable(student.getAttendanceResponsable());
        fillAttendanceDate(student.getAttendanceDate());
        fillAttendanceObservation(student.getAttendanceObservation());
        fillAttendanceRegisterName(student.getAttendanceRegister()
            .getName());
        fillOccurrenceTable(student.getOcorrences());
      }
    } catch (Exception e) {
      // e.printStackTrace();
    }
  }
View Full Code Here

        String school = (k != system.getStudentsSchools().size())?system.getStudentsSchools().get(k):"";
    String schoolLevel = (j != system.getSchoolLevel().size())?system.getSchoolLevel().get(j):"";
    String howDoYouKnowVM = (i != system.getHowDoYouKnowVisualmidia().size())?system.getHowDoYouKnowVisualmidia().get(i):"";
   
    if(person.getPersonType("student") != null){
      Student student = (Student) person.getPersonType("student");
      student.setSchool(school);
      student.setSchoolLevel(schoolLevel);
      student.setHowDoYouKnowVisualMidia(howDoYouKnowVisualMidia);
      student.setReasonToDoTheCurse(reasonToDoTheCurse);
      student.setCompany(company);
      student.setCompanyPhone(companyPhone);
      student.setResponsableName(responsableName);
      student.setResponsableRelation(responsableRelation);
      student.setResponsableCPF(responsableCPF);
      student.setResponsableRG(responsableRG);
      student.setResponsablePhone(responsablePhone);
      student.setAttendanceResponsable(attendanceResponsable);
      student.setAttendanceDate(attendanceDate);
      student.setAttendanceObservation(attendanceObservation);
      student.setAttendanceRegister( system.getPeople().get(attendanceRegisterId));
    }else{
      person.setPersonType("student", new Student(school, schoolLevel,howDoYouKnowVM,reasonToDoTheCurse,
          company, companyPhone, responsableName, responsableRelation, responsableCPF,
          responsableRG, responsablePhone, attendanceResponsable, attendanceDate,
          attendanceObservation, system.getPeople().get(attendanceRegisterId)));
    }
 
View Full Code Here

        this.occurrenceDescription = occurrenceDescription;
    }

    @Override
    protected void execute(PrevalentSystem system) throws BusinessException {
        Student student = (Student) system.getPeople().get(studentId).getPersonType("student");
        if(student != null)
          student.addOccurrence(new Occurrence(system.getPeople().get(attendenceId), date, occurrenceDescription));
    }
View Full Code Here

    protected Object executeQuery(PrevalentSystem system) {
        if ((token != null) && (token.length() > 0) && (!token.equals(""))) {
            List <Person> studentsFound = new ArrayList <Person> ();
            for (Person person : system.people.values()) {
                if (person.isPersonType("student")) {
                    Student student = (Student) person.getPersonType("student");
                    if (student.getAttendanceObservation().toUpperCase().contains(token.toUpperCase())) {
                        studentsFound.add(person);
                    }
                }
            }
            return studentsFound;
View Full Code Here

TOP

Related Classes of br.com.visualmidia.business.Student

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.