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="dataAggiornamento" class="java.util.Date"/> |
||
6 | <field name="dataFine" class="java.util.Date"/> |
||
7 | <variable name="record_COUNT" class="java.lang.Integer" calculation="Count"> |
||
8 | <variableExpression><![CDATA[$F{numero}]]></variableExpression> |
||
9 | <initialValueExpression><![CDATA[new java.lang.Integer(0)]]></initialValueExpression> |
||
10 | </variable> |
||
11 | <background> |
||
12 | <band splitType="Stretch"/> |
||
13 | </background> |
||
14 | <title> |
||
15 | <band height="20" splitType="Stretch"> |
||
16 | <rectangle> |
||
17 | <reportElement x="0" y="0" width="555" height="20" forecolor="#FFB100" backcolor="#FFB100"/> |
||
18 | </rectangle> |
||
19 | <textField> |
||
20 | <reportElement x="0" y="0" width="474" height="20"/> |
||
21 | <textElement verticalAlignment="Middle"> |
||
22 | <font size="12" isBold="true" pdfFontName="Helvetica-Bold" isPdfEmbedded="false"/> |
||
23 | </textElement> |
||
24 | <textFieldExpression class="java.lang.String"><![CDATA["Elenco centroidi " + ($P{differenceTypeAsString}.equals("rimosso") ? "rimossi": $P{differenceTypeAsString}.equals("aggiunto") ? "aggiunti" : "modificati")]]></textFieldExpression> |
||
25 | </textField> |
||
26 | </band> |
||
27 | </title> |
||
28 | <pageHeader> |
||
29 | <band height="20" splitType="Stretch"> |
||
30 | <textField> |
||
31 | <reportElement x="0" y="0" width="248" height="20"> |
||
32 | <printWhenExpression><![CDATA[Boolean.valueOf($V{PAGE_NUMBER}.intValue() > 1)]]></printWhenExpression> |
||
33 | </reportElement> |
||
34 | <textElement verticalAlignment="Middle"> |
||
35 | <font size="12" isBold="true" pdfFontName="Helvetica-Bold" isPdfEmbedded="false"/> |
||
36 | </textElement> |
||
37 | <textFieldExpression class="java.lang.String"><![CDATA["...continua centroidi " + ($P{differenceTypeAsString}.equals("rimosso") ? "rimossi": $P{differenceTypeAsString}.equals("aggiunto") ? "aggiunti" : "modificati")]]></textFieldExpression> |
||
38 | </textField> |
||
39 | </band> |
||
40 | </pageHeader> |
||
41 | <columnHeader> |
||
42 | <band height="20" splitType="Stretch"> |
||
43 | <staticText> |
||
44 | <reportElement x="0" y="0" width="100" height="20"/> |
||
45 | <textElement textAlignment="Left" verticalAlignment="Middle"> |
||
46 | <font size="12" isBold="true" pdfFontName="Helvetica-Bold"/> |
||
47 | </textElement> |
||
48 | <text><![CDATA[Numero]]></text> |
||
49 | </staticText> |
||
50 | <staticText> |
||
51 | <reportElement x="100" y="0" width="135" height="20"/> |
||
52 | <textElement textAlignment="Left" verticalAlignment="Middle"> |
||
53 | <font size="12" isBold="true" pdfFontName="Helvetica-Bold"/> |
||
54 | </textElement> |
||
55 | <text><![CDATA[Data aggiornamento]]></text> |
||
56 | </staticText> |
||
57 | <staticText> |
||
58 | <reportElement x="235" y="0" width="116" height="20"/> |
||
59 | <textElement textAlignment="Left" verticalAlignment="Middle"> |
||
60 | <font size="12" isBold="true" pdfFontName="Helvetica-Bold"/> |
||
61 | </textElement> |
||
62 | <text><![CDATA[Data fine validità]]></text> |
||
63 | </staticText> |
||
64 | </band> |
||
65 | </columnHeader> |
||
66 | <detail> |
||
67 | <band height="20" splitType="Stretch"> |
||
68 | <textField> |
||
69 | <reportElement x="0" y="0" width="100" height="20"/> |
||
70 | <textElement/> |
||
71 | <textFieldExpression class="java.lang.String"><![CDATA[$F{numero}]]></textFieldExpression> |
||
72 | </textField> |
||
73 | <textField> |
||
74 | <reportElement x="100" y="0" width="100" height="20"/> |
||
75 | <textElement/> |
||
76 | <textFieldExpression class="java.lang.String"><![CDATA[new java.text.SimpleDateFormat("dd/MM/yyyy").format($F{dataAggiornamento})]]></textFieldExpression> |
||
77 | </textField> |
||
78 | <textField> |
||
79 | <reportElement x="235" y="0" width="100" height="20"/> |
||
80 | <textElement/> |
||
81 | <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> |
||
82 | </textField> |
||
83 | </band> |
||
84 | </detail> |
||
85 | <columnFooter> |
||
86 | <band splitType="Stretch"/> |
||
87 | </columnFooter> |
||
88 | <pageFooter> |
||
89 | <band splitType="Stretch"/> |
||
90 | </pageFooter> |
||
91 | <summary> |
||
92 | <band height="20" splitType="Stretch"> |
||
93 | <rectangle> |
||
94 | <reportElement x="0" y="0" width="555" height="20" forecolor="#FFB100" backcolor="#FFB100"/> |
||
95 | </rectangle> |
||
96 | <textField> |
||
97 | <reportElement x="200" y="0" width="100" height="20"/> |
||
98 | <textElement verticalAlignment="Middle"> |
||
99 | <font isBold="true" pdfFontName="Helvetica-Bold"/> |
||
100 | </textElement> |
||
101 | <textFieldExpression class="java.lang.Integer"><![CDATA[$V{record_COUNT}]]></textFieldExpression> |
||
102 | </textField> |
||
103 | <textField> |
||
104 | <reportElement x="0" y="0" width="200" height="20"/> |
||
105 | <textElement verticalAlignment="Middle"> |
||
106 | <font isBold="true" pdfFontName="Helvetica-Bold"/> |
||
107 | </textElement> |
||
108 | <textFieldExpression class="java.lang.String"><![CDATA["Totale centroidi " + ($P{differenceTypeAsString}.equals("rimosso") ? "rimossi": $P{differenceTypeAsString}.equals("aggiunto") ? "aggiunti" : "modificati") + ": "]]></textFieldExpression> |
||
109 | </textField> |
||
110 | </band> |
||
111 | </summary> |
||
112 | </jasperReport> |