Package ar.com.fdvs.dj.domain.builders

Examples of ar.com.fdvs.dj.domain.builders.FastReportBuilder.addColumn()


    @Override
    public InputStream generateGridReport(String docType, GridDTO data) {
        try {
            FastReportBuilder reportBuilder = new FastReportBuilder();
            reportBuilder.setTitle("IWebMvc - Sample Grid Report").setSubtitle("Generated at " + new Date()).setUseFullPageWidth(true);
            for (String column : data.getColumns()) reportBuilder.addColumn(column, column, String.class.getName(), 1);
            JRDataSource ds = new JRBeanCollectionDataSource(data.getData(), false);
            JasperPrint jp = DynamicJasperHelper.generateJasperPrint(reportBuilder.build(), new ClassicLayoutManager(), ds);
            return "EXCEL".equals(docType) ? exportToExcel(jp) : exportToPDF(jp);
        } catch (Exception e) {
            throw new IWebMvcException("Error building grid report", e);
View Full Code Here


    subtitleStyle.setFont(Font.VERDANA_MEDIUM_BOLD);

    // Localized column headers
    String description = Labels.getLabel("common.Description");

    drb.addColumn(description, "braBezeichnung", String.class.getName(), 20, columnStyleText, columnStyleTextBold);

    // Sets the Report Columns, header, Title, Groups, Etc Formats
    // DynamicJasper documentation
    drb.setTitle(this.zksample2title);
    drb.setSubtitle("List of branches: " + ZksampleDateFormat.getDateFormater().format(new Date()));
View Full Code Here

    // Localized column headers
    String rolShortdescription = Labels.getLabel("listheader_SecRoleList_rolShortdescription.label");
    String rolLongdescription = Labels.getLabel("listheader_SecRoleList_rolLongdescription.label");

    drb.addColumn(rolShortdescription, "rolShortdescription", String.class.getName(), 40, columnStyleText, columnStyleTextBold);
    drb.addColumn(rolLongdescription, "rolLongdescription", String.class.getName(), 100, columnStyleText, columnStyleTextBold);

    // Sets the Report Columns, header, Title, Groups, Etc Formats
    // DynamicJasper documentation
    drb.setTitle(this.zksample2title);
View Full Code Here

    // Localized column headers
    String rolShortdescription = Labels.getLabel("listheader_SecRoleList_rolShortdescription.label");
    String rolLongdescription = Labels.getLabel("listheader_SecRoleList_rolLongdescription.label");

    drb.addColumn(rolShortdescription, "rolShortdescription", String.class.getName(), 40, columnStyleText, columnStyleTextBold);
    drb.addColumn(rolLongdescription, "rolLongdescription", String.class.getName(), 100, columnStyleText, columnStyleTextBold);

    // Sets the Report Columns, header, Title, Groups, Etc Formats
    // DynamicJasper documentation
    drb.setTitle(this.zksample2title);
    drb.setSubtitle("List of security roles: " + ZksampleDateFormat.getDateFormater().format(new Date()));
View Full Code Here

    String filBezeichnung = Labels.getLabel("common.Description.Short");
    String filName1 = Labels.getLabel("common.Name1");
    String filName2 = Labels.getLabel("common.Name2");
    String filOrt = Labels.getLabel("common.City");

    drb.addColumn(filNr, "filNr", String.class.getName(), 20, columnStyleText, columnStyleTextBold);
    drb.addColumn(filBezeichnung, "filBezeichnung", String.class.getName(), 50, columnStyleText, columnStyleTextBold);
    drb.addColumn(filName1, "filName1", String.class.getName(), 50, columnStyleText, columnStyleTextBold);
    drb.addColumn(filName2, "filName2", String.class.getName(), 50, columnStyleText, columnStyleTextBold);
    drb.addColumn(filOrt, "filOrt", String.class.getName(), 50, columnStyleText, columnStyleTextBold);
View Full Code Here

    String filName1 = Labels.getLabel("common.Name1");
    String filName2 = Labels.getLabel("common.Name2");
    String filOrt = Labels.getLabel("common.City");

    drb.addColumn(filNr, "filNr", String.class.getName(), 20, columnStyleText, columnStyleTextBold);
    drb.addColumn(filBezeichnung, "filBezeichnung", String.class.getName(), 50, columnStyleText, columnStyleTextBold);
    drb.addColumn(filName1, "filName1", String.class.getName(), 50, columnStyleText, columnStyleTextBold);
    drb.addColumn(filName2, "filName2", String.class.getName(), 50, columnStyleText, columnStyleTextBold);
    drb.addColumn(filOrt, "filOrt", String.class.getName(), 50, columnStyleText, columnStyleTextBold);

    // Sets the Report Columns, header, Title, Groups, Etc Formats
View Full Code Here

    String filName2 = Labels.getLabel("common.Name2");
    String filOrt = Labels.getLabel("common.City");

    drb.addColumn(filNr, "filNr", String.class.getName(), 20, columnStyleText, columnStyleTextBold);
    drb.addColumn(filBezeichnung, "filBezeichnung", String.class.getName(), 50, columnStyleText, columnStyleTextBold);
    drb.addColumn(filName1, "filName1", String.class.getName(), 50, columnStyleText, columnStyleTextBold);
    drb.addColumn(filName2, "filName2", String.class.getName(), 50, columnStyleText, columnStyleTextBold);
    drb.addColumn(filOrt, "filOrt", String.class.getName(), 50, columnStyleText, columnStyleTextBold);

    // Sets the Report Columns, header, Title, Groups, Etc Formats
    // DynamicJasper documentation
View Full Code Here

    String filOrt = Labels.getLabel("common.City");

    drb.addColumn(filNr, "filNr", String.class.getName(), 20, columnStyleText, columnStyleTextBold);
    drb.addColumn(filBezeichnung, "filBezeichnung", String.class.getName(), 50, columnStyleText, columnStyleTextBold);
    drb.addColumn(filName1, "filName1", String.class.getName(), 50, columnStyleText, columnStyleTextBold);
    drb.addColumn(filName2, "filName2", String.class.getName(), 50, columnStyleText, columnStyleTextBold);
    drb.addColumn(filOrt, "filOrt", String.class.getName(), 50, columnStyleText, columnStyleTextBold);

    // Sets the Report Columns, header, Title, Groups, Etc Formats
    // DynamicJasper documentation
    drb.setTitle(this.zksample2title);
View Full Code Here

    drb.addColumn(filNr, "filNr", String.class.getName(), 20, columnStyleText, columnStyleTextBold);
    drb.addColumn(filBezeichnung, "filBezeichnung", String.class.getName(), 50, columnStyleText, columnStyleTextBold);
    drb.addColumn(filName1, "filName1", String.class.getName(), 50, columnStyleText, columnStyleTextBold);
    drb.addColumn(filName2, "filName2", String.class.getName(), 50, columnStyleText, columnStyleTextBold);
    drb.addColumn(filOrt, "filOrt", String.class.getName(), 50, columnStyleText, columnStyleTextBold);

    // Sets the Report Columns, header, Title, Groups, Etc Formats
    // DynamicJasper documentation
    drb.setTitle(this.zksample2title);
    drb.setSubtitle("List of Offices: " + ZksampleDateFormat.getDateTimeFormater().format(new Date()));
View Full Code Here

    // Localized column headers
    String grpShortdescription = Labels.getLabel("listheader_SecGroupList_grpShortdescription.label");
    String grpLongdescription = Labels.getLabel("listheader_SecGroupList_grpLongdescription.label");

    drb.addColumn(grpShortdescription, "grpShortdescription", String.class.getName(), 40, columnStyleText, columnStyleTextBold);
    drb.addColumn(grpLongdescription, "grpLongdescription", String.class.getName(), 100, columnStyleText, columnStyleTextBold);

    // Sets the Report Columns, header, Title, Groups, Etc Formats
    // DynamicJasper documentation
    drb.setTitle(this.zksample2title);
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.