Package net.sf.jasperreports.engine.data

Examples of net.sf.jasperreports.engine.data.JRBeanCollectionDataSource


        List<TimeLineRequiredMaterialDTO> result = filterConsult(startingDate,
                endingDate, status, orders, categories, materials);


         if (result != null && !result.isEmpty()) {
            return new JRBeanCollectionDataSource(result);
        } else {
            return new JREmptyDataSource();
        }
    }
View Full Code Here


        for (TaskElement task: tasks) {
                completedEstimatedHoursPerTaskList.add(
                        new CompletedEstimatedHoursPerTaskDTO((Task)task, deadlineLocalDate));
        }
        if (!completedEstimatedHoursPerTaskList.isEmpty()) {
            return new JRBeanCollectionDataSource(completedEstimatedHoursPerTaskList);
        } else {
            return new JREmptyDataSource();
        }
    }
View Full Code Here

                        criterions, startingDate, endingDate);

        if (workingHoursPerWorkerList != null && !workingHoursPerWorkerList.isEmpty()) {
            Collections.sort(workingHoursPerWorkerList);
            setShowReportMessage(false);
            return new JRBeanCollectionDataSource(workingHoursPerWorkerList);
        } else {
            setShowReportMessage(true);
            return new JREmptyDataSource();
        }
    }
View Full Code Here

                                deadLineOrder, task, taskStatus,
                                showDependencies));
            }
        }
        if (!workingArrangementPerOrderList.isEmpty()) {
            return new JRBeanCollectionDataSource(
                    workingArrangementPerOrderList);
        } else {
            return new JREmptyDataSource();
        }
View Full Code Here

        for (Task task : sortTasks) {
            workingHoursPerWorkerList.add(new WorkingProgressPerTaskDTO(task,
                    referenceLocalDate));
        }
        if (!workingHoursPerWorkerList.isEmpty()) {
            return new JRBeanCollectionDataSource(workingHoursPerWorkerList);
        } else {
            return new JREmptyDataSource();
        }
    }
View Full Code Here

                .getWorkingHoursPerWorker(year, month);

        if (workingHoursPerWorkerList != null
                && !workingHoursPerWorkerList.isEmpty()) {
            setShowReportMessage(false);
            return new JRBeanCollectionDataSource(workingHoursPerWorkerList);
        } else {
            setShowReportMessage(true);
            return new JREmptyDataSource();
        }
    }
View Full Code Here

        if (dtos.isEmpty()) {
            return new JREmptyDataSource();
        }

        return new JRBeanCollectionDataSource(dtos);
    }
View Full Code Here

                            advanceType, referenceDate));
        }
        if (schedulingProgressPerOrderList.isEmpty()) {
            return new JREmptyDataSource();
        }
        return new JRBeanCollectionDataSource(schedulingProgressPerOrderList);

    }
View Full Code Here

  public static JasperPrint generateJasperPrint(DynamicReport dr, LayoutManager layoutManager, JRDataSource ds) throws JRException {
        return generateJasperPrint(dr, layoutManager, ds, new HashMap());
    }

  public static JasperPrint generateJasperPrint(DynamicReport dr, LayoutManager layoutManager, Collection collection) throws JRException {
    JRDataSource ds = new JRBeanCollectionDataSource(collection);
    return generateJasperPrint(dr, layoutManager, ds, new HashMap());
  }
View Full Code Here

    for (ReportDecorator decorator : decorators) {
      decorator.decorate(report);
    }

    JasperReport jr = loader.load(report);
    JRBeanCollectionDataSource data = new JRBeanCollectionDataSource(report.getData(), false);

    Map<String, Object> parameters = report.getParameters();

    if (parameters == null) {
      parameters = Maps.newHashMap();
View Full Code Here

TOP

Related Classes of net.sf.jasperreports.engine.data.JRBeanCollectionDataSource

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.