Package br.com.visualmidia.persistence

Examples of br.com.visualmidia.persistence.GetStudent


        User personType = (User) person.getPersonType("user");
        System.out.println("Usuario: "+personType.getUserName());
        System.out.println("Senha: "+personType.getPassword());
     
      }
      Map<String, Person> persons = (Map<String, Person>)system.query(new GetStudent());

           System.out.println("**************** Lista de Usu�rios ******************");
         
          
          
View Full Code Here


  /**
   * @uml.property  name="student"
   */
  private void getStudent() {
    try {
      student = (Person) system.query(new GetStudent(idStudent));
    } catch (Exception e) {
      logger.error("GetStudent Exception",e);
    }
  }
View Full Code Here

        page.addElement(printImage("corporateLogo.jpg", posX+456, posY, 77, 45));
       
        posY += 50;
       
        try {
                Person student = (Person) system.query(new GetStudent(idStudent));
                page.addElement(drawGrayRectangle(posX, posY, 535, 20, 3));
                page.addElement(insertTitle(boldStyle, "Aluno: " + student.getName(), posX+5, posY+5));
               
                posY += 25;
               
View Full Code Here

                try {
                    boolean printResponsable = false;
                    boolean printCodeBar = false;
                    if(viewStudentRadio.getSelection()){
                        personList.clear();
                        Map<String, Person> personMap = (Map<String, Person>) system.query(new GetStudent());
                        for (Person person : personMap.values()) {
                            personList.add(person);
                        }
                        orderPersonList();
                        printResponsable = false;
                        printCodeBar = false;
                    } else if(viewStudentRegisteredRadio.getSelection()){
                      boolean isNotAdd = true;
                      personList.clear();
                      Map<String, Person> personMap = (Map<String, Person>) system.query(new GetStudent());
                        for (Person person : personMap.values()) {
                          try {
                            isNotAdd = true;
                            List<Registration> registrationMap = (List<Registration>) (system.query(new GetRegistrationByPerson(person.getId())));
                            for (Registration registration : registrationMap) {
                              if(registration.isActive() && isNotAdd) {
                                personList.add(person);
                                isNotAdd = false;
                              }
                            }
              } catch (RegistrationDoesNotExistsInPersistenceException e) {
              }
                        }                
                      orderPersonList();
                      printResponsable = false;
                      printCodeBar = false;
                    } else if(viewStudentWithoutRegistrationRadio.getSelection()){
                      personList.clear();
                      boolean canBeAdd = false;
                      Map<String, Person> personMap = (Map<String, Person>) system.query(new GetStudent());
                        for (Person person : personMap.values()) {
                          try {
                            canBeAdd = false;
                            List<Registration> registrationMap = (List<Registration>) system.query(new GetRegistrationByPerson(person.getId()));
                            for (Registration registration : registrationMap) {
                  if(!registration.isActive()) {
                    canBeAdd = true;
                  } else {
                    canBeAdd = false;
                    break;
                  }
                }
                            if(canBeAdd) {
                              personList.add(person);
                            }
                          } catch (RegistrationDoesNotExistsInPersistenceException e) {
              }
                        }              
                      orderPersonList();
                      printResponsable = false;
                      printCodeBar = false;
                    } else if(viewCodeBarStudentsRadio.getSelection()){
                        personList.clear();
                        Map<String, Person> personMap = (Map<String, Person>) system.query(new GetStudent());
                        for (Person person : personMap.values()) {
                            personList.add(person);
                        }
                        orderPersonList();
                        printResponsable = false;
View Full Code Here

        try {
          Map<String, Person> persons = new HashMap<String, Person>();
            if(type.equals("Funcion�rios")){
                persons = (Map<String, Person>)system.query(new GetEmployee());
            }else{
                persons = (Map<String, Person>)system.query(new GetStudent());
            }
           
            for (Person person : persons.values()) {
              GDDate birthDate = new GDDate(person.getBirthDate());
                if(month == birthDate.getMonth()-1){
View Full Code Here

              listOfDeactivated.add("Problemas internos");
              listOfDeactivated.add("Mudou-se");
              listOfDeactivated.add("Faleceu");
              listOfDeactivated.add("Falta de contato");

              Map<String, Person> personMap = (Map<String, Person>) system.query(new GetStudent());
              GDDate initialDate = new GDDate(startDate.getTimeInMillis());
              initialDate.setDayOfMonth(1);
              GDDate initialDateEndDayOfTheMonth = new GDDate(startDate.getTimeInMillis());
              finishDate.setLastDayOfMonth();
              startDate.setDayOfMonth(1);
View Full Code Here

TOP

Related Classes of br.com.visualmidia.persistence.GetStudent

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.