Examples of MergeSortAlgorithm


Examples of br.com.visualmidia.tools.MergeSortAlgorithm

                            }
                        }
                    }
                }
                if(presences.size() > 0) {
                    MergeSortAlgorithm sortAlgorithm = new MergeSortAlgorithm();
                    sortAlgorithm.sortPresencesByDate(presences);
                }
                int numberOfPresences = 0;
                int numberOfMisses = 0;
               
                String statusText = "";
View Full Code Here

Examples of br.com.visualmidia.tools.MergeSortAlgorithm

    int total = 0;
    List<Registration> registrationList = new ArrayList<Registration>();
    Map<String, Registration> registrationMap;
    try {
      registrationMap = (Map<String, Registration>) system.query(new GetRegistration());
      MergeSortAlgorithm sortAlgorithm = new MergeSortAlgorithm();
      for (Registration registration : registrationMap.values()) {
        if (registration.getEndDate() != null){
          if (ignoreDate){
            registrationList.add(registration);
          }
          else
          {
            if ( (registration.getEndDate().afterOrEqualsDay(beginDate)) && (registration.getEndDate().beforeOrEqualsDay(endDate))) 
              registrationList.add(registration);
          }
        }
      }

      if (registrationList.size() > 0){
        if (type==0){
          sortAlgorithm.sortRegistrationByName(registrationList);
        }
        else if (type==1){
          sortAlgorithm.sortRegistrationById(registrationList);
        }
        else if (type==2){
          sortAlgorithm.sortRegistrationByEndDate(registrationList);
        }
      }


       
View Full Code Here

Examples of br.com.visualmidia.tools.MergeSortAlgorithm

           
            ArrayList <Registration> registrationList = new ArrayList<Registration>();
            for (Registration registration : registrationMap.values()) {
              registrationList.add(registration);
            }
            new MergeSortAlgorithm().sortRegistrationByName(registrationList);
           
            for (Registration registration : registrationList) {
               
              GDDate dateRegistration = new GDDate(registration.getRegistrationDate());
               
View Full Code Here

Examples of br.com.visualmidia.tools.MergeSortAlgorithm

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

Examples of br.com.visualmidia.tools.MergeSortAlgorithm

//                    }
                    numberOfParcel++;
                }
            }
           
            MergeSortAlgorithm sortAlgorithm= new MergeSortAlgorithm();
            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

Examples of br.com.visualmidia.tools.MergeSortAlgorithm

        miniStyle.setPdfEmbedded(false);
        jasperPrint.addStyle(miniStyle);
       
        try {
            if(billets.size()>0){
                MergeSortAlgorithm sortAlgorithm = new MergeSortAlgorithm();
                sortAlgorithm.sortBankBilletByDateAndName(billets);
            }
           
            for(Billet billet : billets){
                    posX = convert(10);
                    posY = convert(10);
View Full Code Here

Examples of br.com.visualmidia.tools.MergeSortAlgorithm

                        orderPersonList();
                        printResponsable = false;
                        printCodeBar = false;
                    } else if(viewOtherRadio.getSelection()) {
                        personList.clear();
                        MergeSortAlgorithm sortAlgorithm = new MergeSortAlgorithm();
                        if(source.contains("de boletos")) {
                            if(billets.size() > 1) {
                                sortAlgorithm.sortBankBilletByDateAndName(billets);
                            }
                            for (Billet billet : billets) {
                                personList.add(billet.getPerson());
                            }
                            printResponsable = true;
                            printCodeBar = false;
                        } else if(source.equals("de cartas de cobran�a")) {
                            for (Person person : personMap.values()) {
                                personList.add(person);
                            }
                            orderPersonList();
                            printResponsable = false;
                            printCodeBar = false;
                        } else if(source.contains("com c�digo de barras")) {
                            for (Person person : personMap.values()) {
                                personList.add(person);
                            }
                            orderPersonList();
                            printResponsable = false;
                            printCodeBar = true;
                        } else if(source.equals("de cartas de aniversariantes")) {
                            for (Person person : personMap.values()) {
                                personList.add(person);
                            }
                            if(personList.size() > 1) {
                                sortAlgorithm.sortBirthDateByPerson(personList);
                            }
                            printResponsable = false;
                            printCodeBar = false;
                        }
                    }
View Full Code Here

Examples of br.com.visualmidia.tools.MergeSortAlgorithm

            posY += 14;
           
            List<List<String>> flowBankAccountDataList = new ArrayList<List<String>>();
            flowBankAccountDataList.addAll(flowBankAccountData.values());
            if(flowBankAccountDataList.size() > 0) {
              MergeSortAlgorithm algorithm = new MergeSortAlgorithm();
              algorithm.sortFlowBankAccountDataPerDate(flowBankAccountDataList);
            }
           
            for(List<String> input: flowBankAccountDataList){
                page.addElement(drawRectangle(posX, posY, 535, 15, 0));
                page.addElement(insertNormalText(input.get(1), posX+5, posY+2, 55));
View Full Code Here

Examples of br.com.visualmidia.tools.MergeSortAlgorithm

      }
    }

    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

Examples of br.com.visualmidia.tools.MergeSortAlgorithm

            int parcelId = 1;
            String text = "";
            Billet billet = null;
      if(oneStudents.getSelection()){
        List<Parcel> parcels = selectedRegistration.getParcels();
        MergeSortAlgorithm sort = new MergeSortAlgorithm();
        sort.sortParcelByDate(parcels);
       
        for (Parcel parcel : parcels) {
                    if(parcelIsSelected(parcelId, getSelectedParcels())) {
                        billet = new Billet(String.valueOf(parcelId), parcel, selectedRegistration, selectedRegistration.getStudent(), getNamePrint(selectedRegistration));
                        billets.add(billet);
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.