From 68332317054b9207d347ac849a4abf5e0eac47b5 Mon Sep 17 00:00:00 2001 From: Manuel Rego Casasnovas Date: Fri, 25 Feb 2011 18:05:57 +0100 Subject: [PATCH] [doc] Adapted guide to last changes on reports. * Added changes to follow last changes related with fonts on reports. * Renamed Java classes to make it purpose clearer adding "report" on name. --- ...howto-create-a-new-report-in-navalplan.rst | 119 +++++++++--------- ...resources-list-report-example-data-pdf.png | Bin 0 -> 40432 bytes 2 files changed, 62 insertions(+), 57 deletions(-) create mode 100644 doc/src/technical/resources-list-report-example-data-pdf.png diff --git a/doc/src/technical/howto-create-a-new-report-in-navalplan.rst b/doc/src/technical/howto-create-a-new-report-in-navalplan.rst index 82a06634e..7f19f8856 100644 --- a/doc/src/technical/howto-create-a-new-report-in-navalplan.rst +++ b/doc/src/technical/howto-create-a-new-report-in-navalplan.rst @@ -108,7 +108,7 @@ Steps: @@ -150,7 +150,7 @@ Steps: This will create a basic interface for report with a combo to select the desired output format for it and a button to generate the report. As we can see it uses -``ResourcesListController`` that will be created in the next point. +``ResourcesListReportController`` that will be created in the next point. Create a controller for new report @@ -166,7 +166,7 @@ new reports are going to extend this class and re-implement some methods. Steps: -* Create a new file ``ResourcesListController.java`` in +* Create a new file ``ResourcesListReportController.java`` in ``navalplanner-webapp/src/main/java/org/navalplanner/web/reports/`` with the following content: @@ -203,7 +203,7 @@ Steps: * * @author Manuel Rego Casasnovas */ - public class ResourcesListController extends NavalplannerReportController { + public class ResourcesListReportController extends NavalplannerReportController { private static final String REPORT_NAME = "resourcesListReport"; @@ -243,7 +243,7 @@ name. Steps: -* Create a new file ``ResourcesListDTO.java`` in +* Create a new file ``ResourcesListReportDTO.java`` in ``navalplanner-business/src/main/java/org/navalplanner/business/reports/dtos/`` with the following content: @@ -275,13 +275,13 @@ Steps: * * @author Manuel Rego Casasnovas */ - public class ResourcesListDTO { + public class ResourcesListReportDTO { private String code; private String name; - public ResourcesListDTO(String code, String name) { + public ResourcesListReportDTO(String code, String name) { this.code = code; this.name = name; } @@ -361,6 +361,8 @@ Steps: * ``$R{note1}`` * Label: ``*`` +* Set ``Band height`` in *Title* band to ``80``. + * Remove group *Worker group Group Header 1*. * Remove group *Date group Group Header 1*. @@ -391,13 +393,7 @@ something similar to the following content: pageWidth="595" pageHeight="842" columnWidth="535" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" resourceBundle="resourcesList"> -