obrientimothya-jasper-rails 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gitignore +7 -0
- data/Gemfile +5 -0
- data/LICENSE.txt +21 -0
- data/README.md +136 -0
- data/Rakefile +1 -0
- data/config.ru +7 -0
- data/lib/jasper-rails.rb +172 -0
- data/lib/jasper-rails/version.rb +4 -0
- data/lib/java/commons-beanutils-1.8.2.jar +0 -0
- data/lib/java/commons-collections-3.2.1.jar +0 -0
- data/lib/java/commons-digester-2.1.jar +0 -0
- data/lib/java/commons-logging-1.1.jar +0 -0
- data/lib/java/groovy-all-1.7.5.jar +0 -0
- data/lib/java/iText-2.1.7.jar +0 -0
- data/lib/java/jasperreports-5.0.0.jar +0 -0
- data/lib/java/jcommon-1.0.15.jar +0 -0
- data/lib/java/jfreechart-1.0.12.jar +0 -0
- data/lib/java/mysql-connector-java-5.1.25-bin.jar +0 -0
- data/lib/java/sqlite-jdbc-3.7.2.jar +0 -0
- data/lib/java/xalan.jar +0 -0
- data/obrientimothya-jasper-rails.gemspec +23 -0
- data/spec/controllers/people_controller_spec.rb +89 -0
- data/spec/internal/app/controllers/people_controller.rb +33 -0
- data/spec/internal/app/models/person.rb +16 -0
- data/spec/internal/app/views/people/compile_time_error_report.jrxml +118 -0
- data/spec/internal/app/views/people/index.jrxml +118 -0
- data/spec/internal/app/views/people/java_parameter.jrxml +118 -0
- data/spec/internal/app/views/people/nil_datasource.jrxml +118 -0
- data/spec/internal/app/views/people/runtime_error_report.jrxml +90 -0
- data/spec/internal/app/views/people/wood.jpg +0 -0
- data/spec/internal/config/routes.rb +10 -0
- data/spec/internal/log/.gitignore +1 -0
- data/spec/spec_helper.rb +11 -0
- metadata +148 -0
@@ -0,0 +1,33 @@
|
|
1
|
+
class PeopleController < ActionController::Base
|
2
|
+
respond_to :xml, :pdf
|
3
|
+
|
4
|
+
def index
|
5
|
+
@people = Person.all
|
6
|
+
|
7
|
+
@parameter_defined_in_the_controller = "I'm a parameter. I was defined in the controller"
|
8
|
+
|
9
|
+
respond_with @people
|
10
|
+
end
|
11
|
+
|
12
|
+
def compile_time_error_report
|
13
|
+
respond_with []
|
14
|
+
end
|
15
|
+
|
16
|
+
def runtime_error_report
|
17
|
+
respond_with []
|
18
|
+
end
|
19
|
+
|
20
|
+
def nil_datasource
|
21
|
+
@parameter_defined_in_the_controller = "I'm a parameter. I was defined in the controller"
|
22
|
+
respond_with nil
|
23
|
+
end
|
24
|
+
|
25
|
+
def java_parameter
|
26
|
+
title = (Rjb::import 'java.lang.String').new("The Beatles")
|
27
|
+
@parameter_that_is_a_java_class = (Rjb::import 'java.util.HashMap').new
|
28
|
+
@parameter_that_is_a_java_class.put("title", title)
|
29
|
+
|
30
|
+
respond_with nil
|
31
|
+
end
|
32
|
+
|
33
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
class Person
|
2
|
+
extend ActiveModel::Naming
|
3
|
+
include ActiveModel::Serializers::Xml
|
4
|
+
|
5
|
+
attr_accessor :name, :email
|
6
|
+
|
7
|
+
def initialize(hash)
|
8
|
+
hash.each do |key, value|
|
9
|
+
instance_variable_set("@#{key}", value)
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
def attributes
|
14
|
+
instance_values
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,118 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="index" language="groovy" pageWidth="595" pageHeight="842" columnWidth="535" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="311ea5a2-cc66-43bf-9af3-b2e0a552b1de">
|
3
|
+
<property name="ireport.zoom" value="1.0"/>
|
4
|
+
<property name="ireport.x" value="0"/>
|
5
|
+
<property name="ireport.y" value="0"/>
|
6
|
+
<style name="Title" forecolor="#FFFFFF" fontName="Arial" fontSize="26" isBold="true" pdfFontName="Helvetica-Bold"/>
|
7
|
+
<style name="SubTitle" forecolor="#666666" fontName="Arial" fontSize="18"/>
|
8
|
+
<style name="Column header" forecolor="#666666" fontName="Arial" fontSize="12" isBold="true"/>
|
9
|
+
<style name="Detail" fontName="Arial" fontSize="12"/>
|
10
|
+
<parameter name="parameter_defined_in_the_controller" class="java.lang.String"/>
|
11
|
+
<queryString language="xPath">
|
12
|
+
<![CDATA[/people/person]]>
|
13
|
+
</queryString>
|
14
|
+
<field name="name" class="java.lang.String">
|
15
|
+
<fieldDescription><![CDATA[name]]></fieldDescription>
|
16
|
+
</field>
|
17
|
+
<field name="email" class="java.lang.String">
|
18
|
+
<fieldDescription><![CDATA[email]]></fieldDescription>
|
19
|
+
</field>
|
20
|
+
<background>
|
21
|
+
<band splitType="Stretch"/>
|
22
|
+
</background>
|
23
|
+
<title>
|
24
|
+
<band height="70" splitType="Stretch">
|
25
|
+
<image>
|
26
|
+
<reportElement uuid="0b15b501-e65d-4f8b-b890-759a6d279efe" x="-20" y="0" width="595" height="64"/>
|
27
|
+
<imageExpression><![CDATA["wood.jpg"]]></imageExpression>
|
28
|
+
</image>
|
29
|
+
<staticText>
|
30
|
+
<reportElement uuid="dfeee47e-d32e-4525-a708-7cc3d6ec3f91" style="Title" x="0" y="5" width="263" height="33"/>
|
31
|
+
<textElement verticalAlignment="Middle"/>
|
32
|
+
<text><![CDATA[jasper-rails]]></text>
|
33
|
+
</staticText>
|
34
|
+
<textField>
|
35
|
+
<reportElement uuid="91699025-171b-40b4-ae45-eb9cdca69b2b" x="97" y="38" width="358" height="20" forecolor="#FFFFFF"/>
|
36
|
+
<textElement>
|
37
|
+
<font size="15"/>
|
38
|
+
</textElement>
|
39
|
+
<textFieldExpression><![CDATA[$P{undefined_parameter}]]></textFieldExpression>
|
40
|
+
</textField>
|
41
|
+
</band>
|
42
|
+
</title>
|
43
|
+
<pageHeader>
|
44
|
+
<band splitType="Stretch"/>
|
45
|
+
</pageHeader>
|
46
|
+
<columnHeader>
|
47
|
+
<band height="36" splitType="Stretch">
|
48
|
+
<line>
|
49
|
+
<reportElement uuid="6a63817d-d338-4966-9432-96e7baffc7f8" positionType="FixRelativeToBottom" x="0" y="35" width="555" height="1"/>
|
50
|
+
<graphicElement>
|
51
|
+
<pen lineWidth="0.5" lineColor="#999999"/>
|
52
|
+
</graphicElement>
|
53
|
+
</line>
|
54
|
+
<staticText>
|
55
|
+
<reportElement uuid="89d037e3-230c-4845-b0aa-a43920c60dc2" x="48" y="15" width="100" height="20"/>
|
56
|
+
<textElement/>
|
57
|
+
<text><![CDATA[name]]></text>
|
58
|
+
</staticText>
|
59
|
+
<staticText>
|
60
|
+
<reportElement uuid="6920786b-3719-4243-bee2-9e4073274cb1" x="245" y="15" width="100" height="20"/>
|
61
|
+
<textElement/>
|
62
|
+
<text><![CDATA[email]]></text>
|
63
|
+
</staticText>
|
64
|
+
</band>
|
65
|
+
</columnHeader>
|
66
|
+
<detail>
|
67
|
+
<band height="21" splitType="Stretch">
|
68
|
+
<textField>
|
69
|
+
<reportElement uuid="63d9b6a9-caa5-40d8-8bb0-41822dd43364" x="48" y="0" width="185" height="20"/>
|
70
|
+
<textElement/>
|
71
|
+
<textFieldExpression><![CDATA[$F{name}]]></textFieldExpression>
|
72
|
+
</textField>
|
73
|
+
<textField>
|
74
|
+
<reportElement uuid="83b41533-c6ed-4de6-8c48-5545c9c78e43" x="245" y="0" width="290" height="20"/>
|
75
|
+
<textElement/>
|
76
|
+
<textFieldExpression><![CDATA[$F{email}]]></textFieldExpression>
|
77
|
+
</textField>
|
78
|
+
</band>
|
79
|
+
</detail>
|
80
|
+
<columnFooter>
|
81
|
+
<band height="45" splitType="Stretch">
|
82
|
+
<line>
|
83
|
+
<reportElement uuid="9642b713-530f-4d6e-a4dd-b6e7b4d07e2b" positionType="FixRelativeToBottom" x="0" y="3" width="555" height="1"/>
|
84
|
+
<graphicElement>
|
85
|
+
<pen lineWidth="0.5" lineColor="#999999"/>
|
86
|
+
</graphicElement>
|
87
|
+
</line>
|
88
|
+
</band>
|
89
|
+
</columnFooter>
|
90
|
+
<pageFooter>
|
91
|
+
<band height="20" splitType="Stretch">
|
92
|
+
<textField>
|
93
|
+
<reportElement uuid="06b23f1b-7ac0-4c70-bb2e-2aeb039f67a3" style="Column header" x="433" y="0" width="80" height="20"/>
|
94
|
+
<textElement textAlignment="Right">
|
95
|
+
<font size="10" isBold="false"/>
|
96
|
+
</textElement>
|
97
|
+
<textFieldExpression><![CDATA["Page "+$V{PAGE_NUMBER}+" of"]]></textFieldExpression>
|
98
|
+
</textField>
|
99
|
+
<textField evaluationTime="Report">
|
100
|
+
<reportElement uuid="b8b7868e-fe9c-4e1b-8a24-75b97450ef73" style="Column header" x="513" y="0" width="40" height="20"/>
|
101
|
+
<textElement>
|
102
|
+
<font size="10" isBold="false"/>
|
103
|
+
</textElement>
|
104
|
+
<textFieldExpression><![CDATA[" " + $V{PAGE_NUMBER}]]></textFieldExpression>
|
105
|
+
</textField>
|
106
|
+
<textField pattern="EEEEE dd MMMMM yyyy">
|
107
|
+
<reportElement uuid="f924a532-c0df-4366-baad-4126ffb1462f" style="Column header" x="0" y="0" width="197" height="20"/>
|
108
|
+
<textElement>
|
109
|
+
<font size="10" isBold="false"/>
|
110
|
+
</textElement>
|
111
|
+
<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
|
112
|
+
</textField>
|
113
|
+
</band>
|
114
|
+
</pageFooter>
|
115
|
+
<summary>
|
116
|
+
<band splitType="Stretch"/>
|
117
|
+
</summary>
|
118
|
+
</jasperReport>
|
@@ -0,0 +1,118 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="index" language="groovy" pageWidth="595" pageHeight="842" columnWidth="535" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="311ea5a2-cc66-43bf-9af3-b2e0a552b1de">
|
3
|
+
<property name="ireport.zoom" value="1.0"/>
|
4
|
+
<property name="ireport.x" value="0"/>
|
5
|
+
<property name="ireport.y" value="0"/>
|
6
|
+
<style name="Title" forecolor="#FFFFFF" fontName="Arial" fontSize="26" isBold="true" pdfFontName="Helvetica-Bold"/>
|
7
|
+
<style name="SubTitle" forecolor="#666666" fontName="Arial" fontSize="18"/>
|
8
|
+
<style name="Column header" forecolor="#666666" fontName="Arial" fontSize="12" isBold="true"/>
|
9
|
+
<style name="Detail" fontName="Arial" fontSize="12"/>
|
10
|
+
<parameter name="parameter_defined_in_the_controller" class="java.lang.String"/>
|
11
|
+
<queryString language="xPath">
|
12
|
+
<![CDATA[/people/person]]>
|
13
|
+
</queryString>
|
14
|
+
<field name="name" class="java.lang.String">
|
15
|
+
<fieldDescription><![CDATA[name]]></fieldDescription>
|
16
|
+
</field>
|
17
|
+
<field name="email" class="java.lang.String">
|
18
|
+
<fieldDescription><![CDATA[email]]></fieldDescription>
|
19
|
+
</field>
|
20
|
+
<background>
|
21
|
+
<band splitType="Stretch"/>
|
22
|
+
</background>
|
23
|
+
<title>
|
24
|
+
<band height="70" splitType="Stretch">
|
25
|
+
<image>
|
26
|
+
<reportElement uuid="0b15b501-e65d-4f8b-b890-759a6d279efe" x="-20" y="0" width="595" height="64"/>
|
27
|
+
<imageExpression><![CDATA["wood.jpg"]]></imageExpression>
|
28
|
+
</image>
|
29
|
+
<staticText>
|
30
|
+
<reportElement uuid="dfeee47e-d32e-4525-a708-7cc3d6ec3f91" style="Title" x="0" y="5" width="263" height="33"/>
|
31
|
+
<textElement verticalAlignment="Middle"/>
|
32
|
+
<text><![CDATA[jasper-rails]]></text>
|
33
|
+
</staticText>
|
34
|
+
<textField>
|
35
|
+
<reportElement uuid="91699025-171b-40b4-ae45-eb9cdca69b2b" x="97" y="38" width="358" height="20" forecolor="#FFFFFF"/>
|
36
|
+
<textElement>
|
37
|
+
<font size="15"/>
|
38
|
+
</textElement>
|
39
|
+
<textFieldExpression><![CDATA[$P{parameter_defined_in_the_controller}]]></textFieldExpression>
|
40
|
+
</textField>
|
41
|
+
</band>
|
42
|
+
</title>
|
43
|
+
<pageHeader>
|
44
|
+
<band splitType="Stretch"/>
|
45
|
+
</pageHeader>
|
46
|
+
<columnHeader>
|
47
|
+
<band height="36" splitType="Stretch">
|
48
|
+
<line>
|
49
|
+
<reportElement uuid="6a63817d-d338-4966-9432-96e7baffc7f8" positionType="FixRelativeToBottom" x="0" y="35" width="555" height="1"/>
|
50
|
+
<graphicElement>
|
51
|
+
<pen lineWidth="0.5" lineColor="#999999"/>
|
52
|
+
</graphicElement>
|
53
|
+
</line>
|
54
|
+
<staticText>
|
55
|
+
<reportElement uuid="89d037e3-230c-4845-b0aa-a43920c60dc2" x="48" y="15" width="100" height="20"/>
|
56
|
+
<textElement/>
|
57
|
+
<text><![CDATA[name]]></text>
|
58
|
+
</staticText>
|
59
|
+
<staticText>
|
60
|
+
<reportElement uuid="6920786b-3719-4243-bee2-9e4073274cb1" x="245" y="15" width="100" height="20"/>
|
61
|
+
<textElement/>
|
62
|
+
<text><![CDATA[email]]></text>
|
63
|
+
</staticText>
|
64
|
+
</band>
|
65
|
+
</columnHeader>
|
66
|
+
<detail>
|
67
|
+
<band height="21" splitType="Stretch">
|
68
|
+
<textField>
|
69
|
+
<reportElement uuid="63d9b6a9-caa5-40d8-8bb0-41822dd43364" x="48" y="0" width="185" height="20"/>
|
70
|
+
<textElement/>
|
71
|
+
<textFieldExpression><![CDATA[$F{name}]]></textFieldExpression>
|
72
|
+
</textField>
|
73
|
+
<textField>
|
74
|
+
<reportElement uuid="83b41533-c6ed-4de6-8c48-5545c9c78e43" x="245" y="0" width="290" height="20"/>
|
75
|
+
<textElement/>
|
76
|
+
<textFieldExpression><![CDATA[$F{email}]]></textFieldExpression>
|
77
|
+
</textField>
|
78
|
+
</band>
|
79
|
+
</detail>
|
80
|
+
<columnFooter>
|
81
|
+
<band height="45" splitType="Stretch">
|
82
|
+
<line>
|
83
|
+
<reportElement uuid="9642b713-530f-4d6e-a4dd-b6e7b4d07e2b" positionType="FixRelativeToBottom" x="0" y="3" width="555" height="1"/>
|
84
|
+
<graphicElement>
|
85
|
+
<pen lineWidth="0.5" lineColor="#999999"/>
|
86
|
+
</graphicElement>
|
87
|
+
</line>
|
88
|
+
</band>
|
89
|
+
</columnFooter>
|
90
|
+
<pageFooter>
|
91
|
+
<band height="20" splitType="Stretch">
|
92
|
+
<textField>
|
93
|
+
<reportElement uuid="06b23f1b-7ac0-4c70-bb2e-2aeb039f67a3" style="Column header" x="433" y="0" width="80" height="20"/>
|
94
|
+
<textElement textAlignment="Right">
|
95
|
+
<font size="10" isBold="false"/>
|
96
|
+
</textElement>
|
97
|
+
<textFieldExpression><![CDATA["Page "+$V{PAGE_NUMBER}+" of"]]></textFieldExpression>
|
98
|
+
</textField>
|
99
|
+
<textField evaluationTime="Report">
|
100
|
+
<reportElement uuid="b8b7868e-fe9c-4e1b-8a24-75b97450ef73" style="Column header" x="513" y="0" width="40" height="20"/>
|
101
|
+
<textElement>
|
102
|
+
<font size="10" isBold="false"/>
|
103
|
+
</textElement>
|
104
|
+
<textFieldExpression><![CDATA[" " + $V{PAGE_NUMBER}]]></textFieldExpression>
|
105
|
+
</textField>
|
106
|
+
<textField pattern="EEEEE dd MMMMM yyyy">
|
107
|
+
<reportElement uuid="f924a532-c0df-4366-baad-4126ffb1462f" style="Column header" x="0" y="0" width="197" height="20"/>
|
108
|
+
<textElement>
|
109
|
+
<font size="10" isBold="false"/>
|
110
|
+
</textElement>
|
111
|
+
<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
|
112
|
+
</textField>
|
113
|
+
</band>
|
114
|
+
</pageFooter>
|
115
|
+
<summary>
|
116
|
+
<band splitType="Stretch"/>
|
117
|
+
</summary>
|
118
|
+
</jasperReport>
|
@@ -0,0 +1,118 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="index" language="groovy" pageWidth="595" pageHeight="842" columnWidth="535" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="311ea5a2-cc66-43bf-9af3-b2e0a552b1de">
|
3
|
+
<property name="ireport.zoom" value="1.0"/>
|
4
|
+
<property name="ireport.x" value="0"/>
|
5
|
+
<property name="ireport.y" value="0"/>
|
6
|
+
<style name="Title" forecolor="#FFFFFF" fontName="Arial" fontSize="26" isBold="true" pdfFontName="Helvetica-Bold"/>
|
7
|
+
<style name="SubTitle" forecolor="#666666" fontName="Arial" fontSize="18"/>
|
8
|
+
<style name="Column header" forecolor="#666666" fontName="Arial" fontSize="12" isBold="true"/>
|
9
|
+
<style name="Detail" fontName="Arial" fontSize="12"/>
|
10
|
+
<parameter name="parameter_that_is_a_java_class" class="java.util.Map"/>
|
11
|
+
<queryString language="xPath">
|
12
|
+
<![CDATA[/people/person]]>
|
13
|
+
</queryString>
|
14
|
+
<field name="name" class="java.lang.String">
|
15
|
+
<fieldDescription><![CDATA[name]]></fieldDescription>
|
16
|
+
</field>
|
17
|
+
<field name="email" class="java.lang.String">
|
18
|
+
<fieldDescription><![CDATA[email]]></fieldDescription>
|
19
|
+
</field>
|
20
|
+
<background>
|
21
|
+
<band splitType="Stretch"/>
|
22
|
+
</background>
|
23
|
+
<title>
|
24
|
+
<band height="70" splitType="Stretch">
|
25
|
+
<image>
|
26
|
+
<reportElement uuid="0b15b501-e65d-4f8b-b890-759a6d279efe" x="-20" y="0" width="595" height="64"/>
|
27
|
+
<imageExpression><![CDATA["wood.jpg"]]></imageExpression>
|
28
|
+
</image>
|
29
|
+
<staticText>
|
30
|
+
<reportElement uuid="dfeee47e-d32e-4525-a708-7cc3d6ec3f91" style="Title" x="0" y="5" width="263" height="33"/>
|
31
|
+
<textElement verticalAlignment="Middle"/>
|
32
|
+
<text><![CDATA[jasper-rails]]></text>
|
33
|
+
</staticText>
|
34
|
+
<textField>
|
35
|
+
<reportElement uuid="91699025-171b-40b4-ae45-eb9cdca69b2b" x="97" y="38" width="358" height="20" forecolor="#FFFFFF"/>
|
36
|
+
<textElement>
|
37
|
+
<font size="15"/>
|
38
|
+
</textElement>
|
39
|
+
<textFieldExpression><![CDATA[$P{parameter_that_is_a_java_class}.get("title")]]></textFieldExpression>
|
40
|
+
</textField>
|
41
|
+
</band>
|
42
|
+
</title>
|
43
|
+
<pageHeader>
|
44
|
+
<band splitType="Stretch"/>
|
45
|
+
</pageHeader>
|
46
|
+
<columnHeader>
|
47
|
+
<band height="36" splitType="Stretch">
|
48
|
+
<line>
|
49
|
+
<reportElement uuid="6a63817d-d338-4966-9432-96e7baffc7f8" positionType="FixRelativeToBottom" x="0" y="35" width="555" height="1"/>
|
50
|
+
<graphicElement>
|
51
|
+
<pen lineWidth="0.5" lineColor="#999999"/>
|
52
|
+
</graphicElement>
|
53
|
+
</line>
|
54
|
+
<staticText>
|
55
|
+
<reportElement uuid="89d037e3-230c-4845-b0aa-a43920c60dc2" x="48" y="15" width="100" height="20"/>
|
56
|
+
<textElement/>
|
57
|
+
<text><![CDATA[name]]></text>
|
58
|
+
</staticText>
|
59
|
+
<staticText>
|
60
|
+
<reportElement uuid="6920786b-3719-4243-bee2-9e4073274cb1" x="245" y="15" width="100" height="20"/>
|
61
|
+
<textElement/>
|
62
|
+
<text><![CDATA[email]]></text>
|
63
|
+
</staticText>
|
64
|
+
</band>
|
65
|
+
</columnHeader>
|
66
|
+
<detail>
|
67
|
+
<band height="21" splitType="Stretch">
|
68
|
+
<textField>
|
69
|
+
<reportElement uuid="63d9b6a9-caa5-40d8-8bb0-41822dd43364" x="48" y="0" width="185" height="20"/>
|
70
|
+
<textElement/>
|
71
|
+
<textFieldExpression><![CDATA[$F{name}]]></textFieldExpression>
|
72
|
+
</textField>
|
73
|
+
<textField>
|
74
|
+
<reportElement uuid="83b41533-c6ed-4de6-8c48-5545c9c78e43" x="245" y="0" width="290" height="20"/>
|
75
|
+
<textElement/>
|
76
|
+
<textFieldExpression><![CDATA[$F{email}]]></textFieldExpression>
|
77
|
+
</textField>
|
78
|
+
</band>
|
79
|
+
</detail>
|
80
|
+
<columnFooter>
|
81
|
+
<band height="45" splitType="Stretch">
|
82
|
+
<line>
|
83
|
+
<reportElement uuid="9642b713-530f-4d6e-a4dd-b6e7b4d07e2b" positionType="FixRelativeToBottom" x="0" y="3" width="555" height="1"/>
|
84
|
+
<graphicElement>
|
85
|
+
<pen lineWidth="0.5" lineColor="#999999"/>
|
86
|
+
</graphicElement>
|
87
|
+
</line>
|
88
|
+
</band>
|
89
|
+
</columnFooter>
|
90
|
+
<pageFooter>
|
91
|
+
<band height="20" splitType="Stretch">
|
92
|
+
<textField>
|
93
|
+
<reportElement uuid="06b23f1b-7ac0-4c70-bb2e-2aeb039f67a3" style="Column header" x="433" y="0" width="80" height="20"/>
|
94
|
+
<textElement textAlignment="Right">
|
95
|
+
<font size="10" isBold="false"/>
|
96
|
+
</textElement>
|
97
|
+
<textFieldExpression><![CDATA["Page "+$V{PAGE_NUMBER}+" of"]]></textFieldExpression>
|
98
|
+
</textField>
|
99
|
+
<textField evaluationTime="Report">
|
100
|
+
<reportElement uuid="b8b7868e-fe9c-4e1b-8a24-75b97450ef73" style="Column header" x="513" y="0" width="40" height="20"/>
|
101
|
+
<textElement>
|
102
|
+
<font size="10" isBold="false"/>
|
103
|
+
</textElement>
|
104
|
+
<textFieldExpression><![CDATA[" " + $V{PAGE_NUMBER}]]></textFieldExpression>
|
105
|
+
</textField>
|
106
|
+
<textField pattern="EEEEE dd MMMMM yyyy">
|
107
|
+
<reportElement uuid="f924a532-c0df-4366-baad-4126ffb1462f" style="Column header" x="0" y="0" width="197" height="20"/>
|
108
|
+
<textElement>
|
109
|
+
<font size="10" isBold="false"/>
|
110
|
+
</textElement>
|
111
|
+
<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
|
112
|
+
</textField>
|
113
|
+
</band>
|
114
|
+
</pageFooter>
|
115
|
+
<summary>
|
116
|
+
<band splitType="Stretch"/>
|
117
|
+
</summary>
|
118
|
+
</jasperReport>
|
@@ -0,0 +1,118 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="index" language="groovy" pageWidth="595" pageHeight="842" columnWidth="535" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="311ea5a2-cc66-43bf-9af3-b2e0a552b1de">
|
3
|
+
<property name="ireport.zoom" value="1.0"/>
|
4
|
+
<property name="ireport.x" value="0"/>
|
5
|
+
<property name="ireport.y" value="0"/>
|
6
|
+
<style name="Title" forecolor="#FFFFFF" fontName="Arial" fontSize="26" isBold="true" pdfFontName="Helvetica-Bold"/>
|
7
|
+
<style name="SubTitle" forecolor="#666666" fontName="Arial" fontSize="18"/>
|
8
|
+
<style name="Column header" forecolor="#666666" fontName="Arial" fontSize="12" isBold="true"/>
|
9
|
+
<style name="Detail" fontName="Arial" fontSize="12"/>
|
10
|
+
<parameter name="parameter_defined_in_the_controller" class="java.lang.String"/>
|
11
|
+
<queryString language="xPath">
|
12
|
+
<![CDATA[/people/person]]>
|
13
|
+
</queryString>
|
14
|
+
<field name="name" class="java.lang.String">
|
15
|
+
<fieldDescription><![CDATA[name]]></fieldDescription>
|
16
|
+
</field>
|
17
|
+
<field name="email" class="java.lang.String">
|
18
|
+
<fieldDescription><![CDATA[email]]></fieldDescription>
|
19
|
+
</field>
|
20
|
+
<background>
|
21
|
+
<band splitType="Stretch"/>
|
22
|
+
</background>
|
23
|
+
<title>
|
24
|
+
<band height="70" splitType="Stretch">
|
25
|
+
<image>
|
26
|
+
<reportElement uuid="0b15b501-e65d-4f8b-b890-759a6d279efe" x="-20" y="0" width="595" height="64"/>
|
27
|
+
<imageExpression><![CDATA["wood.jpg"]]></imageExpression>
|
28
|
+
</image>
|
29
|
+
<staticText>
|
30
|
+
<reportElement uuid="dfeee47e-d32e-4525-a708-7cc3d6ec3f91" style="Title" x="0" y="5" width="263" height="33"/>
|
31
|
+
<textElement verticalAlignment="Middle"/>
|
32
|
+
<text><![CDATA[jasper-rails]]></text>
|
33
|
+
</staticText>
|
34
|
+
<textField>
|
35
|
+
<reportElement uuid="91699025-171b-40b4-ae45-eb9cdca69b2b" x="97" y="38" width="358" height="20" forecolor="#FFFFFF"/>
|
36
|
+
<textElement>
|
37
|
+
<font size="15"/>
|
38
|
+
</textElement>
|
39
|
+
<textFieldExpression><![CDATA[$P{parameter_defined_in_the_controller}]]></textFieldExpression>
|
40
|
+
</textField>
|
41
|
+
</band>
|
42
|
+
</title>
|
43
|
+
<pageHeader>
|
44
|
+
<band splitType="Stretch"/>
|
45
|
+
</pageHeader>
|
46
|
+
<columnHeader>
|
47
|
+
<band height="36" splitType="Stretch">
|
48
|
+
<line>
|
49
|
+
<reportElement uuid="6a63817d-d338-4966-9432-96e7baffc7f8" positionType="FixRelativeToBottom" x="0" y="35" width="555" height="1"/>
|
50
|
+
<graphicElement>
|
51
|
+
<pen lineWidth="0.5" lineColor="#999999"/>
|
52
|
+
</graphicElement>
|
53
|
+
</line>
|
54
|
+
<staticText>
|
55
|
+
<reportElement uuid="89d037e3-230c-4845-b0aa-a43920c60dc2" x="48" y="15" width="100" height="20"/>
|
56
|
+
<textElement/>
|
57
|
+
<text><![CDATA[name]]></text>
|
58
|
+
</staticText>
|
59
|
+
<staticText>
|
60
|
+
<reportElement uuid="6920786b-3719-4243-bee2-9e4073274cb1" x="245" y="15" width="100" height="20"/>
|
61
|
+
<textElement/>
|
62
|
+
<text><![CDATA[email]]></text>
|
63
|
+
</staticText>
|
64
|
+
</band>
|
65
|
+
</columnHeader>
|
66
|
+
<detail>
|
67
|
+
<band height="21" splitType="Stretch">
|
68
|
+
<textField>
|
69
|
+
<reportElement uuid="63d9b6a9-caa5-40d8-8bb0-41822dd43364" x="48" y="0" width="185" height="20"/>
|
70
|
+
<textElement/>
|
71
|
+
<textFieldExpression><![CDATA[$F{name}]]></textFieldExpression>
|
72
|
+
</textField>
|
73
|
+
<textField>
|
74
|
+
<reportElement uuid="83b41533-c6ed-4de6-8c48-5545c9c78e43" x="245" y="0" width="290" height="20"/>
|
75
|
+
<textElement/>
|
76
|
+
<textFieldExpression><![CDATA[$F{email}]]></textFieldExpression>
|
77
|
+
</textField>
|
78
|
+
</band>
|
79
|
+
</detail>
|
80
|
+
<columnFooter>
|
81
|
+
<band height="45" splitType="Stretch">
|
82
|
+
<line>
|
83
|
+
<reportElement uuid="9642b713-530f-4d6e-a4dd-b6e7b4d07e2b" positionType="FixRelativeToBottom" x="0" y="3" width="555" height="1"/>
|
84
|
+
<graphicElement>
|
85
|
+
<pen lineWidth="0.5" lineColor="#999999"/>
|
86
|
+
</graphicElement>
|
87
|
+
</line>
|
88
|
+
</band>
|
89
|
+
</columnFooter>
|
90
|
+
<pageFooter>
|
91
|
+
<band height="20" splitType="Stretch">
|
92
|
+
<textField>
|
93
|
+
<reportElement uuid="06b23f1b-7ac0-4c70-bb2e-2aeb039f67a3" style="Column header" x="433" y="0" width="80" height="20"/>
|
94
|
+
<textElement textAlignment="Right">
|
95
|
+
<font size="10" isBold="false"/>
|
96
|
+
</textElement>
|
97
|
+
<textFieldExpression><![CDATA["Page "+$V{PAGE_NUMBER}+" of"]]></textFieldExpression>
|
98
|
+
</textField>
|
99
|
+
<textField evaluationTime="Report">
|
100
|
+
<reportElement uuid="b8b7868e-fe9c-4e1b-8a24-75b97450ef73" style="Column header" x="513" y="0" width="40" height="20"/>
|
101
|
+
<textElement>
|
102
|
+
<font size="10" isBold="false"/>
|
103
|
+
</textElement>
|
104
|
+
<textFieldExpression><![CDATA[" " + $V{PAGE_NUMBER}]]></textFieldExpression>
|
105
|
+
</textField>
|
106
|
+
<textField pattern="EEEEE dd MMMMM yyyy">
|
107
|
+
<reportElement uuid="f924a532-c0df-4366-baad-4126ffb1462f" style="Column header" x="0" y="0" width="197" height="20"/>
|
108
|
+
<textElement>
|
109
|
+
<font size="10" isBold="false"/>
|
110
|
+
</textElement>
|
111
|
+
<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
|
112
|
+
</textField>
|
113
|
+
</band>
|
114
|
+
</pageFooter>
|
115
|
+
<summary>
|
116
|
+
<band splitType="Stretch"/>
|
117
|
+
</summary>
|
118
|
+
</jasperReport>
|