Subversion Repositories Sigmater

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
6 Andrea 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="SubreportParticelleRimosse" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="30" bottomMargin="30">
3
	<parameter name="differenceTypeAsString" class="java.lang.String"/>
4
	<field name="numero" class="java.lang.String"/>
5
	<field name="angolo" class="java.lang.Double"/>
6
	<field name="dataAggiornamento" class="java.util.Date"/>
7
	<field name="dataFine" class="java.util.Date"/>
8
	<field name="dimensione" class="java.lang.Integer"/>
9
	<variable name="record_COUNT" class="java.lang.Integer" calculation="Count">
10
		<variableExpression><![CDATA[$F{numero}]]></variableExpression>
11
		<initialValueExpression><![CDATA[new java.lang.Integer(0)]]></initialValueExpression>
12
	</variable>
13
	<background>
14
		<band splitType="Stretch"/>
15
	</background>
16
	<title>
17
		<band height="20" splitType="Stretch">
18
			<rectangle>
19
				<reportElement x="0" y="0" width="555" height="20" forecolor="#FFB100" backcolor="#FFB100"/>
20
			</rectangle>
21
			<textField>
22
				<reportElement x="0" y="0" width="474" height="20"/>
23
				<textElement verticalAlignment="Middle">
24
					<font size="12" isBold="true" pdfFontName="Helvetica-Bold" isPdfEmbedded="false"/>
25
				</textElement>
26
				<textFieldExpression class="java.lang.String"><![CDATA["Elenco testi particelle " + ($P{differenceTypeAsString}.equals("rimosso") ? "rimossi": $P{differenceTypeAsString}.equals("aggiunto") ? "aggiunti" : "modificati")]]></textFieldExpression>
27
			</textField>
28
		</band>
29
	</title>
30
	<pageHeader>
31
		<band height="20" splitType="Stretch">
32
			<textField>
33
				<reportElement x="0" y="0" width="335" height="20">
34
					<printWhenExpression><![CDATA[Boolean.valueOf($V{PAGE_NUMBER}.intValue() > 1)]]></printWhenExpression>
35
				</reportElement>
36
				<textElement verticalAlignment="Middle">
37
					<font size="12" isBold="true" pdfFontName="Helvetica-Bold" isPdfEmbedded="false"/>
38
				</textElement>
39
				<textFieldExpression class="java.lang.String"><![CDATA["...continua testi particelle " + ($P{differenceTypeAsString}.equals("rimosso") ? "rimossi": $P{differenceTypeAsString}.equals("aggiunto") ? "aggiunti" : "modificati")]]></textFieldExpression>
40
			</textField>
41
		</band>
42
	</pageHeader>
43
	<columnHeader>
44
		<band height="20" splitType="Stretch">
45
			<staticText>
46
				<reportElement x="0" y="0" width="100" height="20"/>
47
				<textElement textAlignment="Left" verticalAlignment="Middle">
48
					<font size="12" isBold="true" pdfFontName="Helvetica-Bold"/>
49
				</textElement>
50
				<text><![CDATA[Numero]]></text>
51
			</staticText>
52
			<staticText>
53
				<reportElement x="300" y="0" width="135" height="20"/>
54
				<textElement textAlignment="Left" verticalAlignment="Middle">
55
					<font size="12" isBold="true" pdfFontName="Helvetica-Bold"/>
56
				</textElement>
57
				<text><![CDATA[Data aggiornamento]]></text>
58
			</staticText>
59
			<staticText>
60
				<reportElement x="435" y="0" width="116" height="20"/>
61
				<textElement textAlignment="Left" verticalAlignment="Middle">
62
					<font size="12" isBold="true" pdfFontName="Helvetica-Bold"/>
63
				</textElement>
64
				<text><![CDATA[Data fine validità]]></text>
65
			</staticText>
66
			<staticText>
67
				<reportElement x="100" y="0" width="100" height="20"/>
68
				<textElement textAlignment="Left" verticalAlignment="Middle">
69
					<font size="12" isBold="true" pdfFontName="Helvetica-Bold"/>
70
				</textElement>
71
				<text><![CDATA[Angolo]]></text>
72
			</staticText>
73
			<staticText>
74
				<reportElement x="200" y="0" width="100" height="20"/>
75
				<textElement textAlignment="Left" verticalAlignment="Middle">
76
					<font size="12" isBold="true" pdfFontName="Helvetica-Bold"/>
77
				</textElement>
78
				<text><![CDATA[Dimensione]]></text>
79
			</staticText>
80
		</band>
81
	</columnHeader>
82
	<detail>
83
		<band height="20" splitType="Stretch">
84
			<textField>
85
				<reportElement x="0" y="0" width="100" height="20"/>
86
				<textElement/>
87
				<textFieldExpression class="java.lang.String"><![CDATA[$F{numero}]]></textFieldExpression>
88
			</textField>
89
			<textField pattern="###0">
90
				<reportElement x="100" y="0" width="100" height="20"/>
91
				<textElement/>
92
				<textFieldExpression class="java.lang.Double"><![CDATA[$F{angolo}]]></textFieldExpression>
93
			</textField>
94
			<textField>
95
				<reportElement x="300" y="0" width="100" height="20"/>
96
				<textElement/>
97
				<textFieldExpression class="java.lang.String"><![CDATA[new java.text.SimpleDateFormat("dd/MM/yyyy").format($F{dataAggiornamento})]]></textFieldExpression>
98
			</textField>
99
			<textField>
100
				<reportElement x="435" y="0" width="100" height="20"/>
101
				<textElement/>
102
				<textFieldExpression class="java.lang.String"><![CDATA[new java.text.SimpleDateFormat("yyyy").format($F{dataFine}).equals("9999") ? "-" : new java.text.SimpleDateFormat("dd/MM/yyyy").format($F{dataFine})]]></textFieldExpression>
103
			</textField>
104
			<textField pattern="" isBlankWhenNull="false">
105
				<reportElement x="200" y="0" width="100" height="20"/>
106
				<textElement/>
107
				<textFieldExpression class="java.lang.Integer"><![CDATA[$F{dimensione}]]></textFieldExpression>
108
			</textField>
109
		</band>
110
	</detail>
111
	<columnFooter>
112
		<band splitType="Stretch"/>
113
	</columnFooter>
114
	<pageFooter>
115
		<band splitType="Stretch"/>
116
	</pageFooter>
117
	<summary>
118
		<band height="20" splitType="Stretch">
119
			<rectangle>
120
				<reportElement x="0" y="0" width="555" height="20" forecolor="#FFB100" backcolor="#FFB100"/>
121
			</rectangle>
122
			<textField>
123
				<reportElement x="200" y="0" width="100" height="20"/>
124
				<textElement verticalAlignment="Middle">
125
					<font isBold="true" pdfFontName="Helvetica-Bold"/>
126
				</textElement>
127
				<textFieldExpression class="java.lang.Integer"><![CDATA[$V{record_COUNT}]]></textFieldExpression>
128
			</textField>
129
			<textField>
130
				<reportElement x="0" y="0" width="200" height="20"/>
131
				<textElement verticalAlignment="Middle">
132
					<font isBold="true" pdfFontName="Helvetica-Bold"/>
133
				</textElement>
134
				<textFieldExpression class="java.lang.String"><![CDATA["Totale testi particelle " + ($P{differenceTypeAsString}.equals("rimosso") ? "rimossi": $P{differenceTypeAsString}.equals("aggiunto") ? "aggiunti" : "modificati") + ": "]]></textFieldExpression>
135
			</textField>
136
		</band>
137
	</summary>
138
</jasperReport>