~openerp-commiter/openobject-addons/extra-6.0

« back to all changes in this revision

Viewing changes to account_jasper_report/report/report_header.jrxml

  • Committer: Albert Cervera i Areny
  • Date: 2011-07-08 00:25:21 UTC
  • Revision ID: albert@nan-tic.com-20110708002521-lbq7213zodri4fnn
[ADD] account_jasper_report: Module with jasper-based accounting reports: Intends to replace the ones in standard 'account' module and 'account_financial_report'.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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="report name" language="groovy" pageWidth="595" pageHeight="842" whenNoDataType="AllSectionsNoDetail" columnWidth="535" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20">
 
3
        <parameter name="TITLE" class="java.lang.String"/>
 
4
        <parameter name="SUBTITLE" class="java.lang.String"/>
 
5
        <parameter name="COMMENT" class="java.lang.String"/>
 
6
        <parameter name="SUBREPORT_DIR" class="java.lang.String"/>
 
7
        <parameter name="STANDARD_DIR" class="java.lang.String"/>
 
8
        <parameter name="FIRST_PAGE" class="java.lang.Long">
 
9
                <parameterDescription><![CDATA[Indicates the number of the first page.]]></parameterDescription>
 
10
                <defaultValueExpression><![CDATA[1]]></defaultValueExpression>
 
11
        </parameter>
 
12
        <variable name="PAGE" class="java.lang.Long" incrementType="Page" calculation="Sum">
 
13
                <variableExpression><![CDATA[1]]></variableExpression>
 
14
                <initialValueExpression><![CDATA[$P{FIRST_PAGE}]]></initialValueExpression>
 
15
        </variable>
 
16
        <background>
 
17
                <band/>
 
18
        </background>
 
19
        <title>
 
20
                <band height="70">
 
21
                        <textField isBlankWhenNull="true">
 
22
                                <reportElement x="102" y="1" width="365" height="24"/>
 
23
                                <textElement textAlignment="Center" verticalAlignment="Middle">
 
24
                                        <font size="16" isBold="true"/>
 
25
                                </textElement>
 
26
                                <textFieldExpression class="java.lang.String"><![CDATA[$P{TITLE}]]></textFieldExpression>
 
27
                        </textField>
 
28
                        <textField isStretchWithOverflow="true" isBlankWhenNull="true">
 
29
                                <reportElement x="102" y="25" width="365" height="24"/>
 
30
                                <textElement textAlignment="Center" verticalAlignment="Middle">
 
31
                                        <font size="12" isBold="false"/>
 
32
                                </textElement>
 
33
                                <textFieldExpression class="java.lang.String"><![CDATA[$P{SUBTITLE}]]></textFieldExpression>
 
34
                        </textField>
 
35
                        <textField isStretchWithOverflow="true" isBlankWhenNull="true">
 
36
                                <reportElement x="0" y="49" width="555" height="17"/>
 
37
                                <textElement textAlignment="Center" verticalAlignment="Middle">
 
38
                                        <font size="10" isBold="false"/>
 
39
                                </textElement>
 
40
                                <textFieldExpression class="java.lang.String"><![CDATA[$P{COMMENT}]]></textFieldExpression>
 
41
                        </textField>
 
42
                        <textField>
 
43
                                <reportElement x="467" y="0" width="88" height="20"/>
 
44
                                <textElement verticalAlignment="Middle"/>
 
45
                                <textFieldExpression class="java.util.Date"><![CDATA[new Date()]]></textFieldExpression>
 
46
                        </textField>
 
47
                        <image onErrorType="Blank">
 
48
                                <reportElement x="0" y="-1" width="102" height="50"/>
 
49
                                <imageExpression class="java.lang.String"><![CDATA[$P{STANDARD_DIR}  + "logo.jpg"]]></imageExpression>
 
50
                        </image>
 
51
                        <textField>
 
52
                                <reportElement x="467" y="20" width="88" height="20"/>
 
53
                                <textElement verticalAlignment="Middle"/>
 
54
                                <textFieldExpression class="java.lang.String"><![CDATA["Página: " + $V{PAGE}.toString()]]></textFieldExpression>
 
55
                        </textField>
 
56
                </band>
 
57
        </title>
 
58
        <pageHeader>
 
59
                <band/>
 
60
        </pageHeader>
 
61
        <columnHeader>
 
62
                <band/>
 
63
        </columnHeader>
 
64
        <detail>
 
65
                <band/>
 
66
        </detail>
 
67
        <columnFooter>
 
68
                <band/>
 
69
        </columnFooter>
 
70
        <pageFooter>
 
71
                <band/>
 
72
        </pageFooter>
 
73
        <summary>
 
74
                <band/>
 
75
        </summary>
 
76
</jasperReport>