228 lines
12 KiB
XML
Executable File
228 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/>.
|
|
-->
|
|
|
|
<!-- Created with Jaspersoft Studio -->
|
|
<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="AllAccounts" pageWidth="595" pageHeight="842" whenNoDataType="AllSectionsNoDetail" columnWidth="515" leftMargin="40" rightMargin="40" topMargin="50" bottomMargin="50" isSummaryWithPageHeaderAndFooter="true">
|
|
<!-- fixmejive
|
|
<property name="net.sf.jasperreports.export.pdf.tagged" value="true"/>
|
|
-->
|
|
<property name="net.sf.jasperreports.export.pdf.tag.language" value="EN-US"/>
|
|
<style name="Sans_Normal" isDefault="true" fontName="DejaVu Sans" fontSize="12"/>
|
|
<style name="Sans_Bold" fontName="DejaVu Sans" fontSize="12" isBold="true"/>
|
|
<style name="Sans_Italic" fontName="DejaVu Sans" fontSize="12" isItalic="true"/>
|
|
<style name="PageHeader" style="Sans_Bold" forecolor="#FFFFFF" backcolor="#333333"/>
|
|
<style name="detail" fontName="DejaVu Sans" fontSize="12">
|
|
<conditionalStyle>
|
|
<conditionExpression><![CDATA[new Boolean($V{CityGroup_COUNT}.intValue() % 2 == 0)]]></conditionExpression>
|
|
<style mode="Opaque" backcolor="#E0E0E0"/>
|
|
</conditionalStyle>
|
|
</style>
|
|
<subDataset name="Table Dataset 1">
|
|
<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"/>
|
|
<sortField name="billing_address_country"/>
|
|
<sortField name="billing_address_city"/>
|
|
<variable name="CityyNumber" class="java.lang.Integer" incrementType="Group" incrementGroup="CityGroup" calculation="Count">
|
|
<variableExpression><![CDATA[Boolean.TRUE]]></variableExpression>
|
|
<initialValueExpression><![CDATA[new Integer(0)]]></initialValueExpression>
|
|
</variable>
|
|
<group name="CityGroup">
|
|
<groupExpression><![CDATA[$F{billing_address_city}]]></groupExpression>
|
|
</group>
|
|
</subDataset>
|
|
<title>
|
|
<band height="75" splitType="Stretch">
|
|
<image scaleImage="Clip" hAlign="Right" onErrorType="Icon">
|
|
<reportElement x="365" y="0" width="150" height="26"/>
|
|
<imageExpression><![CDATA["repo:/images/JRLogo"]]></imageExpression>
|
|
<hyperlinkTooltipExpression><![CDATA["JasperReports Logo"]]></hyperlinkTooltipExpression>
|
|
</image>
|
|
<line>
|
|
<reportElement x="0" y="27" width="515" height="1" forecolor="#000000"/>
|
|
</line>
|
|
<textField isBlankWhenNull="true">
|
|
<reportElement style="Sans_Normal" x="0" y="35" width="515" height="30"/>
|
|
<textElement textAlignment="Center">
|
|
<font size="22"/>
|
|
</textElement>
|
|
<textFieldExpression><![CDATA["Accounts"]]></textFieldExpression>
|
|
</textField>
|
|
</band>
|
|
</title>
|
|
<pageFooter>
|
|
<band height="40">
|
|
<line>
|
|
<reportElement x="0" y="10" width="515" height="1">
|
|
<property name="net.sf.jasperreports.export.pdf.tag.table" value="end"/>
|
|
</reportElement>
|
|
</line>
|
|
<textField isStretchWithOverflow="true">
|
|
<reportElement x="200" y="20" width="80" height="16"/>
|
|
<textElement textAlignment="Right"/>
|
|
<textFieldExpression><![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 textAlignment="Left"/>
|
|
<textFieldExpression><![CDATA[" " + String.valueOf($V{PAGE_NUMBER})]]></textFieldExpression>
|
|
</textField>
|
|
</band>
|
|
</pageFooter>
|
|
<summary>
|
|
<band height="149" splitType="Stretch">
|
|
<image scaleImage="Clip" hAlign="Right" vAlign="Middle" onErrorType="Icon">
|
|
<reportElement positionType="Float" x="0" y="71" width="250" height="70"/>
|
|
<imageExpression><![CDATA["repo:LogoLink"]]></imageExpression>
|
|
<hyperlinkTooltipExpression><![CDATA["JasperReports Logo"]]></hyperlinkTooltipExpression>
|
|
</image>
|
|
<image scaleImage="Clip" hAlign="Right" vAlign="Middle" onErrorType="Icon">
|
|
<reportElement positionType="Float" x="265" y="71" width="250" height="70"/>
|
|
<imageExpression><![CDATA["repo:AllAccounts_Res2"]]></imageExpression>
|
|
<hyperlinkTooltipExpression><![CDATA["Jaspersoft Logo"]]></hyperlinkTooltipExpression>
|
|
</image>
|
|
<componentElement>
|
|
<reportElement key="table" x="0" y="0" width="515" height="70"/>
|
|
<jr:table xmlns:jr="http://jasperreports.sourceforge.net/jasperreports/components" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports/components http://jasperreports.sourceforge.net/xsd/components.xsd" whenNoDataType="AllSectionsNoDetail">
|
|
<datasetRun subDataset="Table Dataset 1">
|
|
<connectionExpression><![CDATA[$P{REPORT_CONNECTION}]]></connectionExpression>
|
|
</datasetRun>
|
|
<jr:columnGroup width="515">
|
|
<jr:groupHeader groupName="CityGroup">
|
|
<jr:cell height="30" rowSpan="1">
|
|
<textField isStretchWithOverflow="true">
|
|
<reportElement style="Sans_Bold" positionType="Float" stretchType="NoStretch" mode="Opaque" x="0" y="14" width="515" height="16" isPrintWhenDetailOverflows="true" backcolor="#C0C0C0"/>
|
|
<box leftPadding="0" bottomPadding="0" rightPadding="0">
|
|
<bottomPen lineWidth="1.0" lineStyle="Solid"/>
|
|
</box>
|
|
<textElement textAlignment="Left"/>
|
|
<textFieldExpression><![CDATA[" " + String.valueOf($V{CityyNumber}.intValue() + 1) + ". " + $F{billing_address_city}+ ", " + $F{billing_address_country}]]></textFieldExpression>
|
|
<anchorNameExpression><![CDATA[String.valueOf($F{billing_address_city})]]></anchorNameExpression>
|
|
</textField>
|
|
</jr:cell>
|
|
</jr:groupHeader>
|
|
<jr:column width="30">
|
|
<jr:columnHeader height="20" rowSpan="1">
|
|
<textField isStretchWithOverflow="true">
|
|
<reportElement style="PageHeader" positionType="Float" stretchType="RelativeToBandHeight" mode="Opaque" x="0" y="4" width="30" height="16" isPrintWhenDetailOverflows="true">
|
|
<property name="net.sf.jasperreports.export.pdf.tag.th" value="full"/>
|
|
<property name="net.sf.jasperreports.export.pdf.tag.colspan" value="1"/>
|
|
</reportElement>
|
|
<textElement/>
|
|
<textFieldExpression><![CDATA[" "]]></textFieldExpression>
|
|
</textField>
|
|
</jr:columnHeader>
|
|
<jr:detailCell height="20" rowSpan="1">
|
|
<textField>
|
|
<reportElement style="detail" positionType="Float" stretchType="RelativeToBandHeight" x="0" y="0" width="30" height="20" isPrintWhenDetailOverflows="true">
|
|
<property name="net.sf.jasperreports.export.pdf.tag.td" value="full"/>
|
|
</reportElement>
|
|
<box topPadding="4" leftPadding="0" bottomPadding="0" rightPadding="10">
|
|
<bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#808080"/>
|
|
</box>
|
|
<textElement textAlignment="Right"/>
|
|
<textFieldExpression><![CDATA[$V{CityGroup_COUNT}+"."]]></textFieldExpression>
|
|
</textField>
|
|
</jr:detailCell>
|
|
</jr:column>
|
|
<jr:column width="240">
|
|
<jr:columnHeader height="20" rowSpan="1">
|
|
<textField isStretchWithOverflow="true">
|
|
<reportElement style="PageHeader" positionType="Float" stretchType="RelativeToBandHeight" mode="Opaque" x="0" y="4" width="240" height="16" isPrintWhenDetailOverflows="true">
|
|
<property name="net.sf.jasperreports.export.pdf.tag.th" value="full"/>
|
|
<property name="net.sf.jasperreports.export.pdf.tag.colspan" value="2"/>
|
|
</reportElement>
|
|
<box leftPadding="0" bottomPadding="0" rightPadding="0"/>
|
|
<textElement/>
|
|
<textFieldExpression><![CDATA["Name"]]></textFieldExpression>
|
|
</textField>
|
|
</jr:columnHeader>
|
|
<jr:detailCell style="detail" height="20" rowSpan="1">
|
|
<textField isStretchWithOverflow="true">
|
|
<reportElement style="detail" positionType="Float" stretchType="RelativeToBandHeight" x="0" y="0" width="240" height="20" isPrintWhenDetailOverflows="true">
|
|
<property name="net.sf.jasperreports.export.pdf.tag.td" value="full"/>
|
|
</reportElement>
|
|
<box topPadding="4" leftPadding="0" bottomPadding="0" rightPadding="5">
|
|
<bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#808080"/>
|
|
</box>
|
|
<textElement/>
|
|
<textFieldExpression><![CDATA[$F{name}]]></textFieldExpression>
|
|
</textField>
|
|
</jr:detailCell>
|
|
</jr:column>
|
|
<jr:column width="100">
|
|
<jr:columnHeader height="20" rowSpan="1">
|
|
<textField isStretchWithOverflow="true">
|
|
<reportElement style="PageHeader" positionType="Float" stretchType="RelativeToBandHeight" mode="Opaque" x="0" y="4" width="100" height="16" isPrintWhenDetailOverflows="true">
|
|
<property name="net.sf.jasperreports.export.pdf.tag.th" value="full"/>
|
|
</reportElement>
|
|
<box leftPadding="10" bottomPadding="0" rightPadding="0"/>
|
|
<textElement/>
|
|
<textFieldExpression><![CDATA["Phone"]]></textFieldExpression>
|
|
</textField>
|
|
</jr:columnHeader>
|
|
<jr:detailCell height="20" rowSpan="1">
|
|
<textField isStretchWithOverflow="true">
|
|
<reportElement style="detail" positionType="Float" stretchType="RelativeToBandHeight" x="0" y="0" width="100" height="20" isPrintWhenDetailOverflows="true">
|
|
<property name="net.sf.jasperreports.export.pdf.tag.td" value="full"/>
|
|
</reportElement>
|
|
<box topPadding="4" leftPadding="0" bottomPadding="0" rightPadding="5">
|
|
<bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#808080"/>
|
|
</box>
|
|
<textElement/>
|
|
<textFieldExpression><![CDATA[$F{phone_office}]]></textFieldExpression>
|
|
</textField>
|
|
</jr:detailCell>
|
|
</jr:column>
|
|
<jr:column width="145">
|
|
<jr:columnHeader height="20" rowSpan="1">
|
|
<textField isStretchWithOverflow="true">
|
|
<reportElement style="PageHeader" positionType="Float" stretchType="RelativeToBandHeight" mode="Opaque" x="0" y="4" width="145" height="16" isPrintWhenDetailOverflows="true">
|
|
<property name="net.sf.jasperreports.export.pdf.tag.th" value="full"/>
|
|
</reportElement>
|
|
<box leftPadding="0" bottomPadding="0" rightPadding="0"/>
|
|
<textElement/>
|
|
<textFieldExpression><![CDATA["Address"]]></textFieldExpression>
|
|
</textField>
|
|
</jr:columnHeader>
|
|
<jr:detailCell height="20" rowSpan="1">
|
|
<textField isStretchWithOverflow="true">
|
|
<reportElement style="detail" positionType="Float" stretchType="RelativeToBandHeight" x="0" y="0" width="145" height="20" isPrintWhenDetailOverflows="true">
|
|
<property name="net.sf.jasperreports.export.pdf.tag.td" value="full"/>
|
|
</reportElement>
|
|
<box topPadding="4" leftPadding="0" bottomPadding="0" rightPadding="0">
|
|
<bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#808080"/>
|
|
</box>
|
|
<textElement/>
|
|
<textFieldExpression><![CDATA[$F{billing_address_street}]]></textFieldExpression>
|
|
</textField>
|
|
</jr:detailCell>
|
|
</jr:column>
|
|
</jr:columnGroup>
|
|
</jr:table>
|
|
</componentElement>
|
|
</band>
|
|
</summary>
|
|
</jasperReport>
|