242 lines
12 KiB
XML
Executable File
242 lines
12 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="SimpleReport" pageWidth="595" pageHeight="842" whenNoDataType="AllSectionsNoDetail" columnWidth="515" leftMargin="40" rightMargin="40" topMargin="50" bottomMargin="50">
|
|
<property name="ireport.scriptlethandling" value="0"/>
|
|
<property name="ireport.encoding" value="UTF-8"/>
|
|
<import value="net.sf.jasperreports.engine.*"/>
|
|
<import value="java.util.*"/>
|
|
<import value="net.sf.jasperreports.engine.data.*"/>
|
|
<style name="Sans_Normal" isDefault="true" fontName="SansSerif" fontSize="12" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
|
<style name="Sans_Bold" isDefault="false" fontName="SansSerif" fontSize="12" isBold="true" pdfFontName="Helvetica-Bold" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
|
<style name="Sans_Italic" isDefault="false" fontName="SansSerif" fontSize="12" isItalic="true" pdfFontName="Helvetica-Oblique" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
|
<style name="PageHeader" isDefault="false" style="Sans_Bold" forecolor="#FFFFFF"/>
|
|
<style name="detail" isDefault="false">
|
|
<conditionalStyle>
|
|
<conditionExpression><![CDATA[new Boolean($V{CityGroup_COUNT}.intValue() % 2 == 0)]]></conditionExpression>
|
|
<style isDefault="false" style="detail" mode="Opaque" backcolor="#E0E0E0"/>
|
|
</conditionalStyle>
|
|
</style>
|
|
<queryString>
|
|
<![CDATA[SELECT name, phone_office, billing_address_city, billing_address_street, billing_address_country FROM accounts ORDER BY billing_address_country, billing_address_city]]>
|
|
</queryString>
|
|
<field name="name" class="java.lang.String"/>
|
|
<field name="phone_office" class="java.lang.String"/>
|
|
<field name="billing_address_city" class="java.lang.String"/>
|
|
<field name="billing_address_street" class="java.lang.String"/>
|
|
<field name="billing_address_country" class="java.lang.String"/>
|
|
<variable name="CityyNumber" class="java.lang.Integer" resetType="Group" resetGroup="CityGroup" calculation="System">
|
|
<initialValueExpression><![CDATA[($V{CityyNumber} != null)?(new Integer($V{CityyNumber}.intValue() + 1)):(new Integer(1))]]></initialValueExpression>
|
|
</variable>
|
|
<group name="CityGroup" minHeightToStartNewPage="60">
|
|
<groupExpression><![CDATA[$F{billing_address_city}]]></groupExpression>
|
|
<groupHeader>
|
|
<band height="30" splitType="Stretch">
|
|
<frame>
|
|
<reportElement key="frame" mode="Opaque" x="0" y="14" width="515" height="15" backcolor="#C0C0C0"/>
|
|
<box>
|
|
<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
|
|
<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
|
|
<bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
|
|
<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
|
|
</box>
|
|
<textField isStretchWithOverflow="true" isBlankWhenNull="false">
|
|
<reportElement key="textField" style="Sans_Bold" x="0" y="0" width="515" height="15"/>
|
|
<box>
|
|
<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
|
|
<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
|
|
<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
|
|
<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
|
|
</box>
|
|
<textElement textAlignment="Left"/>
|
|
<textFieldExpression class="java.lang.String"><![CDATA[" " + String.valueOf($V{CityyNumber}) + ". " + $F{billing_address_city}+ ", " + $F{billing_address_country}]]></textFieldExpression>
|
|
</textField>
|
|
</frame>
|
|
</band>
|
|
</groupHeader>
|
|
<groupFooter>
|
|
<band splitType="Stretch"/>
|
|
</groupFooter>
|
|
</group>
|
|
<background>
|
|
<band splitType="Stretch"/>
|
|
</background>
|
|
<title>
|
|
<band height="75" splitType="Stretch">
|
|
<line>
|
|
<reportElement key="line" x="0" y="26" width="515" height="1" forecolor="#000000"/>
|
|
</line>
|
|
<textField isBlankWhenNull="true">
|
|
<reportElement key="textField" style="Sans_Normal" x="0" y="35" width="515" height="30"/>
|
|
<box>
|
|
<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
|
|
<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
|
|
<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
|
|
<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
|
|
</box>
|
|
<textElement textAlignment="Center" lineSpacing="Single">
|
|
<font size="22"/>
|
|
</textElement>
|
|
<textFieldExpression class="java.lang.String"><![CDATA["Accounts"]]></textFieldExpression>
|
|
</textField>
|
|
</band>
|
|
</title>
|
|
<pageHeader>
|
|
<band height="20" splitType="Stretch">
|
|
<frame>
|
|
<reportElement key="frame" mode="Opaque" x="0" y="4" width="515" height="16" backcolor="#333333"/>
|
|
<box>
|
|
<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
|
|
<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
|
|
<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
|
|
<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
|
|
</box>
|
|
<staticText>
|
|
<reportElement key="staticText" style="PageHeader" x="30" y="0" width="240" height="16"/>
|
|
<box>
|
|
<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
|
|
<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
|
|
<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
|
|
<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
|
|
</box>
|
|
<textElement/>
|
|
<text><![CDATA[Name]]></text>
|
|
</staticText>
|
|
<staticText>
|
|
<reportElement key="staticText" style="PageHeader" x="280" y="0" width="80" height="16"/>
|
|
<box>
|
|
<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
|
|
<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
|
|
<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
|
|
<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
|
|
</box>
|
|
<textElement/>
|
|
<text><![CDATA[Phone]]></text>
|
|
</staticText>
|
|
<staticText>
|
|
<reportElement key="staticText" style="PageHeader" x="370" y="0" width="145" height="16"/>
|
|
<box>
|
|
<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
|
|
<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
|
|
<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
|
|
<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
|
|
</box>
|
|
<textElement/>
|
|
<text><![CDATA[Address]]></text>
|
|
</staticText>
|
|
</frame>
|
|
</band>
|
|
</pageHeader>
|
|
<columnHeader>
|
|
<band splitType="Stretch"/>
|
|
</columnHeader>
|
|
<detail>
|
|
<band height="20" splitType="Prevent">
|
|
<frame>
|
|
<reportElement key="frame" style="detail" x="0" y="0" width="515" height="20"/>
|
|
<box>
|
|
<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
|
|
<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
|
|
<bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#808080"/>
|
|
<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
|
|
</box>
|
|
<textField isStretchWithOverflow="true" isBlankWhenNull="false">
|
|
<reportElement key="textField" x="0" y="4" width="20" height="16"/>
|
|
<box>
|
|
<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
|
|
<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
|
|
<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
|
|
<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
|
|
</box>
|
|
<textElement textAlignment="Right"/>
|
|
<textFieldExpression class="java.lang.String"><![CDATA[$V{CityGroup_COUNT} + "."]]></textFieldExpression>
|
|
</textField>
|
|
<textField isStretchWithOverflow="true" isBlankWhenNull="false">
|
|
<reportElement key="textField" x="30" y="4" width="240" height="16"/>
|
|
<box>
|
|
<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
|
|
<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
|
|
<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
|
|
<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
|
|
</box>
|
|
<textElement/>
|
|
<textFieldExpression class="java.lang.String"><![CDATA[$F{name}]]></textFieldExpression>
|
|
</textField>
|
|
<textField isStretchWithOverflow="true" isBlankWhenNull="false">
|
|
<reportElement key="textField" x="280" y="4" width="80" height="16"/>
|
|
<box>
|
|
<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
|
|
<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
|
|
<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
|
|
<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
|
|
</box>
|
|
<textElement/>
|
|
<textFieldExpression class="java.lang.String"><![CDATA[$F{phone_office}]]></textFieldExpression>
|
|
</textField>
|
|
<textField isStretchWithOverflow="true" isBlankWhenNull="false">
|
|
<reportElement key="textField" x="370" y="4" width="145" height="16"/>
|
|
<box>
|
|
<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
|
|
<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
|
|
<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
|
|
<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
|
|
</box>
|
|
<textElement/>
|
|
<textFieldExpression class="java.lang.String"><![CDATA[$F{billing_address_street}]]></textFieldExpression>
|
|
</textField>
|
|
</frame>
|
|
</band>
|
|
</detail>
|
|
<columnFooter>
|
|
<band splitType="Stretch"/>
|
|
</columnFooter>
|
|
<pageFooter>
|
|
<band height="40" splitType="Stretch">
|
|
<line>
|
|
<reportElement key="line" x="0" y="10" width="515" height="1"/>
|
|
</line>
|
|
<textField isStretchWithOverflow="true" isBlankWhenNull="false">
|
|
<reportElement key="textField" x="200" y="20" width="80" height="16"/>
|
|
<box>
|
|
<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
|
|
<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
|
|
<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
|
|
<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
|
|
</box>
|
|
<textElement textAlignment="Right"/>
|
|
<textFieldExpression class="java.lang.String"><![CDATA["Page " + String.valueOf($V{PAGE_NUMBER}) + " of"]]></textFieldExpression>
|
|
</textField>
|
|
<textField isStretchWithOverflow="true" evaluationTime="Report" isBlankWhenNull="false">
|
|
<reportElement key="textField" x="280" y="20" width="75" height="16"/>
|
|
<box>
|
|
<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
|
|
<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
|
|
<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
|
|
<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
|
|
</box>
|
|
<textElement textAlignment="Left"/>
|
|
<textFieldExpression class="java.lang.String"><![CDATA[" " + String.valueOf($V{PAGE_NUMBER})]]></textFieldExpression>
|
|
</textField>
|
|
</band>
|
|
</pageFooter>
|
|
<summary>
|
|
<band height="70" splitType="Stretch"/>
|
|
</summary>
|
|
</jasperReport>
|