Package br.com.visualmidia.business

Examples of br.com.visualmidia.business.Registration


                if (paymentTable.getSelectionIndex() >= 0) {
                    setMessage(MESSAGE, IMessageProvider.INFORMATION);
                    try {
                        TableItem[] item = paymentTable.getSelection();
                        String[] idRegistration = item[0].getText(0).split("/");
                        Registration registration = (Registration) system.query(new GetRegistration(idRegistration[0]));
                        List<Parcel> list = registration.getParcels();
                        if(list.size() > 0){
                      MergeSortAlgorithm sort = new MergeSortAlgorithm();
                      sort.sortParcelByDate(list);
                      int counter = Integer.valueOf(idRegistration[1])-1;
                          Parcel parcel = list.get(counter);
View Full Code Here


        _coursesName = coursesName;
    }
   
    @Override
    protected void execute(PrevalentSystem system) {
        Registration registration = system.getRegistrations().get(_idRegistration);
        for (String courseName : _coursesName) {
          for (Course course : system.getCourses().values()) {
        if(courseName.equals(course.getDescription())) {
          RegistrationItem registrationItem = new RegistrationItem(course, course.getValue());
          registration.getRegistrationItems().add(registrationItem);
        }
      }
    }
    }
View Full Code Here

           paymentType = system.getPaymentDOC();
        } else if (paymentType.getType().equals("Saque cart�o")) {
           paymentType = system.getPaymentGetMoney();
        }
          }else{
                  Registration registration = system.getRegistrations ().get(idRegistration);
                  if(registration == null || registration.getParcel(parcelId) == null){
                    paymentType = system.getPaymentMoney();
                  }else{
            Parcel parcel = registration.getParcel(parcelId);
            paymentType = parcel.getPayment();
                  }
          }

            if (this.discount != 0) {
View Full Code Here

    this.registrationId = registration.getIdRegistration();
  }
 
  @Override
  protected void execute(PrevalentSystem system) throws BusinessException {
    Registration systemRegistration = system.getRegistrations().get(registrationId);
    systemRegistration.removeAllAppointments();
  }
View Full Code Here

    protected void execute(PrevalentSystem system) throws BusinessException {
      float valueAfterDateExpiration = new Money(_value).getFloatValue();
      float discount = new Money(_discount).getFloatValue();
      float valueBeforeDateExpiration = valueAfterDateExpiration - discount;
     
      Registration registration = system.getRegistrations().get(_idRegistration);
      if(registration != null){
        for (int i = 0; i < Integer.parseInt(_numberOfParcels); i++) {
          Parcel parcel = new Parcel(_date.getFormatedDate(), valueAfterDateExpiration, valueBeforeDateExpiration, Float.parseFloat("0"), Float.parseFloat("0"), Float.parseFloat("0"), Float.parseFloat("0"));
          registration.getParcels().add(parcel);
          _date.addMonth(1);
        }
      }
  }
View Full Code Here

    protected void buttonPressed(int event) {
        if(event == OK) {
            try {
                if(registrationTable.getSelectionCount() != 0) {
                    TableItem[] item = registrationTable.getSelection();
                    Registration registration = (Registration) system.query(new GetRegistration(item[0].getText()));
                   
                    if(!registrationMap.isPersonHasAppointmentsOrReplacementsOnThatDate(date, registration.getStudent())) {
                      registrationMap.addAppointment(date, registration);
                        close();
                    } else {
                        setErrorMessage("O aluno j� possui matr�cula neste hor�rio");
                    }
View Full Code Here

    this.date = presenceDate;
  }

  @Override
  protected Object executeQuery(PrevalentSystem system) {
    Registration systemRegistration = system.getRegistrations().get(registration.getIdRegistration());

    return getAppointment(systemRegistration.getRegistrationAppointment());
  }
View Full Code Here

TOP

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

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.