183 lines
8.7 KiB
XML
Executable File
183 lines
8.7 KiB
XML
Executable File
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!--
|
|
~ Copyright © 2005 - 2018 TIBCO Software Inc.
|
|
~ http://www.jaspersoft.com.
|
|
~
|
|
~ This program is free software: you can redistribute it and/or modify
|
|
~ it under the terms of the GNU Affero General Public License as published by
|
|
~ the Free Software Foundation, either version 3 of the License, or
|
|
~ (at your option) any later version.
|
|
~
|
|
~ This program is distributed in the hope that it will be useful,
|
|
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
~ GNU Affero General Public License for more details.
|
|
~
|
|
~ You should have received a copy of the GNU Affero General Public License
|
|
~ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
-->
|
|
|
|
<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="DataSourceReport" pageWidth="595" pageHeight="842" columnWidth="515" leftMargin="40" rightMargin="40" topMargin="50" bottomMargin="50">
|
|
<style name="Sans_Normal" isDefault="true" fontName="SansSerif" fontSize="12" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
|
<style name="Sans_Bold" isDefault="false" fontName="SansSerif" fontSize="12" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="Helvetica-Bold" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
|
<style name="Sans_Italic" isDefault="false" fontName="SansSerif" fontSize="12" isBold="false" isItalic="true" isUnderline="false" isStrikeThrough="false" pdfFontName="Helvetica-Oblique" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
|
<parameter name="ReportTitle" class="java.lang.String"/>
|
|
<parameter name="DataFile" class="java.lang.String"/>
|
|
<field name="id" class="java.lang.Integer"/>
|
|
<field name="name" class="java.lang.String"/>
|
|
<field name="street" class="java.lang.String"/>
|
|
<field name="the_city" class="java.lang.String"/>
|
|
<variable name="CityNumber" class="java.lang.Integer" incrementType="Group" incrementGroup="CityGroup" calculation="Count">
|
|
<variableExpression><![CDATA[Boolean.TRUE]]></variableExpression>
|
|
</variable>
|
|
<group name="CityGroup" minHeightToStartNewPage="60">
|
|
<groupExpression><![CDATA[$F{the_city}]]></groupExpression>
|
|
<groupHeader>
|
|
<band height="20" splitType="Stretch">
|
|
<textField isStretchWithOverflow="true" evaluationTime="Group" evaluationGroup="CityGroup" bookmarkLevel="1">
|
|
<reportElement style="Sans_Bold" mode="Opaque" x="0" y="4" width="515" height="16" backcolor="#C0C0C0"/>
|
|
<box leftPadding="10">
|
|
<bottomPen lineWidth="1.0" lineStyle="Solid"/>
|
|
</box>
|
|
<textElement/>
|
|
<textFieldExpression class="java.lang.String"><![CDATA[" " + String.valueOf($V{CityNumber}) + ". " + String.valueOf($F{the_city})]]></textFieldExpression>
|
|
<anchorNameExpression><![CDATA[String.valueOf($F{the_city})]]></anchorNameExpression>
|
|
</textField>
|
|
</band>
|
|
</groupHeader>
|
|
<groupFooter>
|
|
<band height="20" splitType="Stretch">
|
|
<staticText>
|
|
<reportElement style="Sans_Bold" x="400" y="1" width="60" height="15"/>
|
|
<textElement textAlignment="Right"/>
|
|
<text><![CDATA[Count :]]></text>
|
|
</staticText>
|
|
<textField>
|
|
<reportElement style="Sans_Bold" x="460" y="1" width="30" height="15"/>
|
|
<textElement textAlignment="Right"/>
|
|
<textFieldExpression class="java.lang.Integer"><![CDATA[$V{CityGroup_COUNT}]]></textFieldExpression>
|
|
</textField>
|
|
</band>
|
|
</groupFooter>
|
|
</group>
|
|
<title>
|
|
<band height="70" splitType="Stretch">
|
|
<line>
|
|
<reportElement x="0" y="0" width="515" height="1"/>
|
|
</line>
|
|
<textField isBlankWhenNull="true" bookmarkLevel="1">
|
|
<reportElement style="Sans_Normal" x="0" y="10" width="515" height="30"/>
|
|
<textElement textAlignment="Center">
|
|
<font size="22"/>
|
|
</textElement>
|
|
<textFieldExpression class="java.lang.String"><![CDATA[$P{ReportTitle}]]></textFieldExpression>
|
|
<anchorNameExpression><![CDATA["Title"]]></anchorNameExpression>
|
|
</textField>
|
|
<textField isBlankWhenNull="true">
|
|
<reportElement style="Sans_Normal" x="0" y="40" width="515" height="20"/>
|
|
<textElement textAlignment="Center">
|
|
<font size="14"/>
|
|
</textElement>
|
|
<textFieldExpression class="java.lang.String"><![CDATA[$P{DataFile}]]></textFieldExpression>
|
|
</textField>
|
|
</band>
|
|
</title>
|
|
<pageHeader>
|
|
<band height="20" splitType="Stretch">
|
|
<rectangle>
|
|
<reportElement x="0" y="4" width="515" height="16" forecolor="#333333" backcolor="#333333"/>
|
|
</rectangle>
|
|
<staticText>
|
|
<reportElement style="Sans_Bold" mode="Opaque" x="0" y="4" width="55" height="16" forecolor="#FFFFFF" backcolor="#333333"/>
|
|
<textElement textAlignment="Center"/>
|
|
<text><![CDATA[ID]]></text>
|
|
</staticText>
|
|
<staticText>
|
|
<reportElement style="Sans_Bold" mode="Opaque" x="55" y="4" width="205" height="16" forecolor="#FFFFFF" backcolor="#333333"/>
|
|
<textElement/>
|
|
<text><![CDATA[Name]]></text>
|
|
</staticText>
|
|
<staticText>
|
|
<reportElement style="Sans_Bold" mode="Opaque" x="260" y="4" width="255" height="16" forecolor="#FFFFFF" backcolor="#333333"/>
|
|
<textElement/>
|
|
<text><![CDATA[Street]]></text>
|
|
</staticText>
|
|
</band>
|
|
</pageHeader>
|
|
<detail>
|
|
<band height="16" splitType="Stretch">
|
|
<textField isStretchWithOverflow="true" bookmarkLevel="2">
|
|
<reportElement x="0" y="0" width="50" height="16"/>
|
|
<box leftPadding="10" rightPadding="10">
|
|
<leftPen lineWidth="0.5" lineStyle="Solid"/>
|
|
<bottomPen lineWidth="0.5" lineStyle="Solid"/>
|
|
</box>
|
|
<textElement textAlignment="Right"/>
|
|
<textFieldExpression class="java.lang.Integer"><![CDATA[$F{id}]]></textFieldExpression>
|
|
<anchorNameExpression><![CDATA[$F{name} + " (" + $F{id} + ")"]]></anchorNameExpression>
|
|
</textField>
|
|
<textField isStretchWithOverflow="true">
|
|
<reportElement positionType="Float" x="50" y="0" width="200" height="16"/>
|
|
<box leftPadding="10" rightPadding="10">
|
|
<leftPen lineWidth="0.5" lineStyle="Solid"/>
|
|
<bottomPen lineWidth="0.5" lineStyle="Solid"/>
|
|
</box>
|
|
<textElement/>
|
|
<textFieldExpression class="java.lang.String"><![CDATA[$F{name}]]></textFieldExpression>
|
|
</textField>
|
|
<textField isStretchWithOverflow="true">
|
|
<reportElement positionType="Float" x="250" y="0" width="265" height="16"/>
|
|
<box leftPadding="10" rightPadding="10">
|
|
<leftPen lineWidth="0.5" lineStyle="Solid"/>
|
|
<bottomPen lineWidth="0.5" lineStyle="Solid"/>
|
|
<rightPen lineWidth="0.5" lineStyle="Solid"/>
|
|
</box>
|
|
<textElement/>
|
|
<textFieldExpression class="java.lang.String"><![CDATA[$F{street}]]></textFieldExpression>
|
|
</textField>
|
|
</band>
|
|
</detail>
|
|
<pageFooter>
|
|
<band height="40" splitType="Stretch">
|
|
<line>
|
|
<reportElement x="0" y="10" width="515" height="1"/>
|
|
</line>
|
|
<textField isStretchWithOverflow="true">
|
|
<reportElement x="200" y="20" width="80" height="16"/>
|
|
<textElement textAlignment="Right"/>
|
|
<textFieldExpression class="java.lang.String"><![CDATA["Page " + String.valueOf($V{PAGE_NUMBER}) + " of"]]></textFieldExpression>
|
|
</textField>
|
|
<textField isStretchWithOverflow="true" evaluationTime="Report">
|
|
<reportElement x="280" y="20" width="75" height="16"/>
|
|
<textElement/>
|
|
<textFieldExpression class="java.lang.String"><![CDATA[" " + String.valueOf($V{PAGE_NUMBER})]]></textFieldExpression>
|
|
</textField>
|
|
</band>
|
|
</pageFooter>
|
|
<lastPageFooter>
|
|
<band height="60" splitType="Stretch">
|
|
<textField bookmarkLevel="1">
|
|
<reportElement x="0" y="10" width="515" height="15"/>
|
|
<textElement textAlignment="Center"/>
|
|
<textFieldExpression class="java.lang.String"><![CDATA["There were " +
|
|
String.valueOf($V{REPORT_COUNT}) +
|
|
" address records on this report."]]></textFieldExpression>
|
|
<anchorNameExpression><![CDATA["Summary"]]></anchorNameExpression>
|
|
</textField>
|
|
<line>
|
|
<reportElement x="0" y="30" width="515" height="1"/>
|
|
</line>
|
|
<textField isStretchWithOverflow="true">
|
|
<reportElement x="200" y="40" width="80" height="16"/>
|
|
<textElement textAlignment="Right"/>
|
|
<textFieldExpression class="java.lang.String"><![CDATA["Page " + String.valueOf($V{PAGE_NUMBER}) + " of"]]></textFieldExpression>
|
|
</textField>
|
|
<textField isStretchWithOverflow="true" evaluationTime="Report">
|
|
<reportElement x="280" y="40" width="75" height="16"/>
|
|
<textElement/>
|
|
<textFieldExpression class="java.lang.String"><![CDATA[" " + String.valueOf($V{PAGE_NUMBER})]]></textFieldExpression>
|
|
</textField>
|
|
</band>
|
|
</lastPageFooter>
|
|
</jasperReport>
|