Package br.com.visualmidia.tools

Examples of br.com.visualmidia.tools.MergeSortAlgorithm.sortParcelByDate()


//          }
      }
     
      List<Parcel> registrationParcelList = registration.getParcels();
      MergeSortAlgorithm sort = new MergeSortAlgorithm();
      sort.sortParcelByDate(registrationParcelList);
     
      for (int i = 0; i < registrationParcelList.size(); i++) {
        Parcel parcel = registrationParcelList.get(i);
       
              GDDate date = new GDDate(parcel.getDate());
View Full Code Here


    parcelTable.setLayoutData(data);
  }

  public void updateParcelTable(List<Parcel> parcels) {
    MergeSortAlgorithm sort = new MergeSortAlgorithm();
    sort.sortParcelByDate(parcels);
    parcelTable.removeAll();

    float payTotal = 0;
    for (int i = 0; i < parcels.size(); i++) {
      Parcel parcel = (Parcel) parcels.get(i);
View Full Code Here

      parent.setText(7, (registration.getEndEmployee() == null ? "" : registration.getEndEmployee().getName()));

      List<Parcel> parcels = registration.getParcels();
      MergeSortAlgorithm sort = new MergeSortAlgorithm();
      sort.sortParcelByDate(parcels);

      int numberOfNotPayedParcels = 0;
      for (Parcel parcel : parcels) {
        GDDate todayPlusOneWeek = new GDDate();
        todayPlusOneWeek.addDays(7);
View Full Code Here

    try {
      registration = (Registration) system.query(new GetRegistration(idRegistration[0]));

      List<Parcel> list = registration.getParcels();
      MergeSortAlgorithm sort = new MergeSortAlgorithm();
      sort.sortParcelByDate(list);
     
      Parcel parcel = list.get(Integer.parseInt(idRegistration[1]) - 1);
     
      if (!parcel.isPayed() && !isParcelOpen(list, parcel)) {new ParcelPaymentDialog(getShell(), registration, Integer.parseInt(idRegistration[1]) - 1, true).open();
        getRegistration();
View Full Code Here

    String idReg = "";
   
    for (Registration registration : registrations) {
      List<Parcel> parcels = registration.getParcels();
      MergeSortAlgorithm sort = new MergeSortAlgorithm();
      sort.sortParcelByDate(parcels);
     
      TableItem item = new TableItem(parcelTable, SWT.NONE, parcelTable.getItemCount());
      if (!registration.getParcels().isEmpty()){
        item.setBackground(new Color(null,255,255,255));
        item.setText(0, "Matr�cula: " + registration.getIdRegistration());
View Full Code Here

              }
             
              MergeSortAlgorithm sortAlgorithm= new MergeSortAlgorithm();

              if(parcelDataList.size() > 1){
                  sortAlgorithm.sortParcelByDate(parcelDataList);
              }
              if (registrationWithoutParcels.size() > 1){
                sortAlgorithm.sortRegistrationByDate(registrationWithoutParcels);
              }
              int totalOfStudents = 0;
View Full Code Here

                  }
              }
           
              MergeSortAlgorithm mergeSortAlgorithm = new MergeSortAlgorithm();
              if (parcelDataList.size() > 0)
                mergeSortAlgorithm.sortParcelByDate(parcelDataList);
             
            float totalValue = 0;
            float totalDiscount = 0;
           
            float localValue = 0;
View Full Code Here

                }
            }
           
            MergeSortAlgorithm sortAlgorithm= new MergeSortAlgorithm();
            if(parcelDataListRegistrated.size() > 1){
                sortAlgorithm.sortParcelByDate(parcelDataListRegistrated);
            }

            if(parcelDataListFinalization.size() > 1){
                sortAlgorithm.sortParcelByDate(parcelDataListFinalization);
            }
View Full Code Here

            if(parcelDataListRegistrated.size() > 1){
                sortAlgorithm.sortParcelByDate(parcelDataListRegistrated);
            }

            if(parcelDataListFinalization.size() > 1){
                sortAlgorithm.sortParcelByDate(parcelDataListFinalization);
            }
           
            int allTotalOfParcels = 0;
            int allValueTotalOfParcels = 0;
            int totalOfParcels = 0;
View Full Code Here

    }

    private void updateParcelTable(List<Parcel> parcels) {
        parcelTable.removeAll();
        MergeSortAlgorithm sort = new MergeSortAlgorithm();
    sort.sortParcelByDate(parcels);

        Image printerImage = new Image(getDisplay(), "img/printer.png");
        for (int i = 0; i < parcels.size(); i++) {
            Parcel parcel = (Parcel) parcels.get(i);
            if(!parcel.isPayed()) {
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.