Blame | Last modification | View Log | Download | RSS feed
<?xml version="1.0" encoding="UTF-8"?>
<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">
<parameter name="differenceTypeAsString" class="java.lang.String"/>
<field name="numero" class="java.lang.String"/>
<field name="area" class="java.lang.Double"/>
<field name="dataAggiornamento" class="java.util.Date"/>
<field name="dataFine" class="java.util.Date"/>
<variable name="record_COUNT" class="java.lang.Integer" calculation="Count">
<variableExpression><![CDATA[$F{numero}]]></variableExpression>
<initialValueExpression><![CDATA[new java.lang.Integer(0)]]></initialValueExpression>
</variable>
<background>
<band splitType="Stretch"/>
</background>
<title>
<band height="20" splitType="Stretch">
<rectangle>
<reportElement x="0" y="0" width="555" height="20" forecolor="#FFB100" backcolor="#FFB100"/>
</rectangle>
<textField>
<reportElement x="0" y="0" width="474" height="20"/>
<textElement verticalAlignment="Middle">
<font size="12" isBold="true" pdfFontName="Helvetica-Bold" isPdfEmbedded="false"/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA["Elenco particelle " + ($P{differenceTypeAsString}.equals("rimosso") ? "rimosse": $P{differenceTypeAsString}.equals("aggiunto") ? "aggiunte" : "modificate")]]></textFieldExpression>
</textField>
</band>
</title>
<pageHeader>
<band height="20" splitType="Stretch">
<textField>
<reportElement x="0" y="0" width="248" height="20">
<printWhenExpression><![CDATA[Boolean.valueOf($V{PAGE_NUMBER}.intValue() > 1)]]></printWhenExpression>
</reportElement>
<textElement verticalAlignment="Middle">
<font size="12" isBold="true" pdfFontName="Helvetica-Bold" isPdfEmbedded="false"/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA["...continua particelle " + ($P{differenceTypeAsString}.equals("rimosso") ? "rimosse": $P{differenceTypeAsString}.equals("aggiunto") ? "aggiunte" : "modificate")]]></textFieldExpression>
</textField>
</band>
</pageHeader>
<columnHeader>
<band height="20" splitType="Stretch">
<staticText>
<reportElement x="0" y="0" width="100" height="20"/>
<textElement textAlignment="Left" verticalAlignment="Middle">
<font size="12" isBold="true" pdfFontName="Helvetica-Bold"/>
</textElement>
<text><![CDATA[Numero]]></text>
</staticText>
<staticText>
<reportElement x="200" y="0" width="135" height="20"/>
<textElement textAlignment="Left" verticalAlignment="Middle">
<font size="12" isBold="true" pdfFontName="Helvetica-Bold"/>
</textElement>
<text><![CDATA[Data aggiornamento]]></text>
</staticText>
<staticText>
<reportElement x="335" y="0" width="116" height="20"/>
<textElement textAlignment="Left" verticalAlignment="Middle">
<font size="12" isBold="true" pdfFontName="Helvetica-Bold"/>
</textElement>
<text><![CDATA[Data fine validità]]></text>
</staticText>
<staticText>
<reportElement x="100" y="0" width="100" height="20"/>
<textElement textAlignment="Left" verticalAlignment="Middle">
<font size="12" isBold="true" pdfFontName="Helvetica-Bold"/>
</textElement>
<text><![CDATA[Area]]></text>
</staticText>
</band>
</columnHeader>
<detail>
<band height="20" splitType="Stretch">
<textField>
<reportElement x="0" y="0" width="100" height="20"/>
<textElement/>
<textFieldExpression class="java.lang.String"><![CDATA[$F{numero}]]></textFieldExpression>
</textField>
<textField pattern="###0">
<reportElement x="100" y="0" width="100" height="20"/>
<textElement/>
<textFieldExpression class="java.lang.Double"><![CDATA[$F{area}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="200" y="0" width="100" height="20"/>
<textElement/>
<textFieldExpression class="java.lang.String"><![CDATA[new java.text.SimpleDateFormat("dd/MM/yyyy").format($F{dataAggiornamento})]]></textFieldExpression>
</textField>
<textField>
<reportElement x="335" y="0" width="100" height="20"/>
<textElement/>
<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>
</textField>
</band>
</detail>
<columnFooter>
<band splitType="Stretch"/>
</columnFooter>
<pageFooter>
<band splitType="Stretch"/>
</pageFooter>
<summary>
<band height="20" splitType="Stretch">
<rectangle>
<reportElement x="0" y="0" width="555" height="20" forecolor="#FFB100" backcolor="#FFB100"/>
</rectangle>
<textField>
<reportElement x="200" y="0" width="100" height="20"/>
<textElement verticalAlignment="Middle">
<font isBold="true" pdfFontName="Helvetica-Bold"/>
</textElement>
<textFieldExpression class="java.lang.Integer"><![CDATA[$V{record_COUNT}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="0" y="0" width="200" height="20"/>
<textElement verticalAlignment="Middle">
<font isBold="true" pdfFontName="Helvetica-Bold"/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA["Totale particelle " + ($P{differenceTypeAsString}.equals("rimosso") ? "rimosse": $P{differenceTypeAsString}.equals("aggiunto") ? "aggiunte" : "modificate") + ": "]]></textFieldExpression>
</textField>
</band>
</summary>
</jasperReport>