Package no.ugland.utransprod.gui.handlers

Examples of no.ugland.utransprod.gui.handlers.ReportDataTransport


        Integer postShipmentId;
        Boolean isPostShipment;
        Integer currentOrderId = 0;
        Integer currentPostShipmentId = 0;

        ReportDataTransport reportDataTransport = null;
        ReportDataTransport.clearCostHeading();
        List<ReportDataTransport> reportDataTransportList = new ArrayList<ReportDataTransport>();
        Map<String, BigDecimal> costs = null;

        for (Object[] object : list) {
View Full Code Here


        }
    }

    private ReportDataTransport createNewReportDataTransport(
            final Boolean isPostShipment, final Object[] object) {
        ReportDataTransport reportDataTransport;
        reportDataTransport = new ReportDataTransport();

        reportDataTransport.setIsPostShipment(isPostShipment);
        reportDataTransport.setOrderId((Integer) object[0]);
        reportDataTransport.setOrderNr((String) object[1]);
        reportDataTransport.setCustomerNr((Integer) object[2]);
        reportDataTransport.setCustomerName((String) object[3]);
        reportDataTransport.setDeliveryAddress((String) object[4]);
        reportDataTransport.setPostalCode((String) object[5]);
        reportDataTransport.setTransportName((String) object[6]);
        reportDataTransport.setYear((Integer) object[7]);
        reportDataTransport.setWeek((Integer) object[8]);

        return reportDataTransport;
    }
View Full Code Here

        Integer currentWeek = 0;
        Integer year = 0;
        Integer week = 0;
        String yearString;

        ReportDataTransport reportDataTransport = null;
        ReportDataTransport.clearCostHeading();
        List<ReportDataTransport> reportDataTransportList = new ArrayList<ReportDataTransport>();
        Map<String, BigDecimal> costs = null;
        Integer numberOf;

        if (list != null && list.size() != 0) {
          List<Object[]> beregnetTid=takstolInfoVManager.summerArbeidsinnsats(fromString, toString, transportConstraintEnum, productArea.getProductArea());
          list.addAll(beregnetTid);
          Collections.sort(list, aarUke());
            for (Object[] object : list) {
                year = (Integer) object[1];
                week = (Integer) object[2];

                yearString = String.format("%1$d%2$02d", year, week);
                numberOf = numberOfOrders.get(yearString);

                if (!year.equals(currentYear) || !week.equals(currentWeek)) {
                    addReportDataTransportToList(reportDataTransport, reportDataTransportList, costs);
                    reportDataTransport = new ReportDataTransport();
                    reportDataTransport.setYear(year);
                    reportDataTransport.setWeek(week);
                    reportDataTransport.setNumberOf(numberOf);
                    currentYear = year;
                    currentWeek = week;
                    costs = new Hashtable<String, BigDecimal>();

                }
View Full Code Here

TOP

Related Classes of no.ugland.utransprod.gui.handlers.ReportDataTransport

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.