Examples of GetAllAppointmentMap


Examples of br.com.visualmidia.persistence.query.GetAllAppointmentMap

                }
               jasperPrint.addPage(page);
               //relatorio de alunos que nao estao no registration appoitment map
            } else if (type == 6) {
              List<RegistrationAppointment> registrationAppointmentList = new ArrayList<RegistrationAppointment>();
              Map<String, List <RegistrationAppointment>> registrationAppoitmentMap = (Map<String, List <RegistrationAppointment>>system.query(new GetAllAppointmentMap());
              for (String idMap : registrationAppoitmentMap.keySet()) {
            for (RegistrationAppointment registrationAppointment : registrationAppoitmentMap.get(idMap)) {
                registrationAppointmentList.add(registrationAppointment);
            }
          }
View Full Code Here

Examples of br.com.visualmidia.persistence.query.GetAllAppointmentMap

  }
   
    @SuppressWarnings("unchecked")
  public boolean isRegistered(Registration registration, GDDate date) {
      try {
        List<RegistrationAppointment> registrationAppointmentsList = (List<RegistrationAppointment>) system.query(new GetAllAppointmentMap(date));
          for (RegistrationAppointment registrationAppointment : registrationAppointmentsList) {
            if (registrationAppointment.getRegistration().getIdRegistration().equals(registration.getIdRegistration())) {
                  return true;
            }
          }
View Full Code Here

Examples of br.com.visualmidia.persistence.query.GetAllAppointmentMap

  @SuppressWarnings("unchecked")
  public int getNumberOfReplacementOfTheDay(GDDate myGDDate) {
    int count = 0;
    try {
      List<RegistrationAppointment> registrationAppointmentsList = (List<RegistrationAppointment>) system.query(new GetAllAppointmentMap(myGDDate));
     
      for (int i = 0; i < registrationAppointmentsList.size(); i++) {
        RegistrationAppointment registrationAppointment = registrationAppointmentsList.get(i);
       
        if(registrationAppointment.isReplacement()
View Full Code Here

Examples of br.com.visualmidia.persistence.query.GetAllAppointmentMap

    }

  @SuppressWarnings("unchecked")
  public boolean isPersonHasAppointmentsOrReplacementsOnThatDate(GDDate myGDDate, Person person) {
    try {
      List<RegistrationAppointment> appointmentList = (List<RegistrationAppointment>) system.query(new GetAllAppointmentMap(myGDDate));
      for (RegistrationAppointment appointment : appointmentList) {
        if(appointment.getRegistration().getStudent().getId().equals(person.getId())) {
          if(appointment.isReplacement()) {
            if(appointment.getAppointmentDate().getDayOfMonth() == myGDDate.getDayOfMonth()
                && appointment.getAppointmentDate().getMonth() == myGDDate.getMonth()
View Full Code Here

Examples of br.com.visualmidia.persistence.query.GetAllAppointmentMap

  }
 
  @SuppressWarnings("unchecked")
  public boolean isPersonHasAppointmentsOnThatDate(GDDate myGDDate, Person person) {
    try {
      List<RegistrationAppointment> appointmentList = (List<RegistrationAppointment>) system.query(new GetAllAppointmentMap(myGDDate));
      for (RegistrationAppointment appointment : appointmentList) {
        if(!appointment.isReplacement() && appointment.getRegistration().getStudent().getId().equals(person.getId())) {
          return true;
        }
      }
View Full Code Here

Examples of br.com.visualmidia.persistence.query.GetAllAppointmentMap

  }
 
  @SuppressWarnings("unchecked")
  public boolean isPersonHasReplacementsOnThatDate(GDDate myCalendar, Person person) {
    try {
      List<RegistrationAppointment> appointmentList = (List<RegistrationAppointment>) system.query(new GetAllAppointmentMap(myCalendar));
      for (RegistrationAppointment appointment : appointmentList) {
        if(appointment.isReplacement()
          && appointment.getRegistration().getStudent().getId().equals(person.getId())
          && appointment.getAppointmentDate().getDayOfMonth() == myCalendar.getDayOfMonth()
          && appointment.getAppointmentDate().getMonth() == myCalendar.getMonth()
View Full Code Here

Examples of br.com.visualmidia.persistence.query.GetAllAppointmentMap

  @SuppressWarnings("unchecked")
  public int getNumberOfAppointmentsOnTheWeekFromRegistration(Registration registration) {
    int j = 0;
    try {
      Map<String, List<RegistrationAppointment>> registrationAppointmentMap = (Map<String, List<RegistrationAppointment>>) system.query(new GetAllAppointmentMap());
   
      for (List<RegistrationAppointment> registrationAppointmentsList : registrationAppointmentMap.values()) {
        for (int i = 0; i < registrationAppointmentsList.size(); i++) {
          RegistrationAppointment appointment = registrationAppointmentsList.get(i);
          if(appointment.getRegistration().getIdRegistration().equals(registration.getIdRegistration()) && appointment.isActive()) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.