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="angolo" class="java.lang.Double"/>
<field name="dataAggiornamento" class="java.util.Date"/>
<field name="dataFine" class="java.util.Date"/>
<field name="dimensione" class="java.lang.Integer"/>
<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 testi particelle " + ($P{differenceTypeAsString}.equals("rimosso") ? "rimossi": $P{differenceTypeAsString}.equals("aggiunto") ? "aggiunti" : "modificati")]]></textFieldExpression>
</textField>
</band>
</title>
<pageHeader>
<band height="20" splitType="Stretch">
<textField>
<reportElement x="0" y="0" width="335" 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 testi particelle " + ($P{differenceTypeAsString}.equals("rimosso") ? "rimossi": $P{differenceTypeAsString}.equals("aggiunto") ? "aggiunti" : "modificati")]]></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="300" 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="435" 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[Angolo]]></text>
</staticText>
<staticText>
<reportElement x="200" y="0" width="100" height="20"/>
<textElement textAlignment="Left" verticalAlignment="Middle">
<font size="12" isBold="true" pdfFontName="Helvetica-Bold"/>
</textElement>
<text><![CDATA[Dimensione]]></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{angolo}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="300" 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="435" 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>
<textField pattern="" isBlankWhenNull="false">
<reportElement x="200" y="0" width="100" height="20"/>
<textElement/>
<textFieldExpression class="java.lang.Integer"><![CDATA[$F{dimensione}]]></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 testi particelle " + ($P{differenceTypeAsString}.equals("rimosso") ? "rimossi": $P{differenceTypeAsString}.equals("aggiunto") ? "aggiunti" : "modificati") + ": "]]></textFieldExpression>
</textField>
</band>
</summary>
</jasperReport>