Files
agent_jrxml/data/sample_templates/sales_order.jrxml
T

70 lines
3.1 KiB
XML
Raw Normal View History

<?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="SalesOrder" pageWidth="595" pageHeight="842" columnWidth="555"
leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20">
<queryString>
<![CDATA[SELECT order_id, customer_name, amount, order_date FROM sales_orders ORDER BY order_date DESC]]>
</queryString>
<field name="order_id" class="java.lang.String"/>
<field name="customer_name" class="java.lang.String"/>
<field name="amount" class="java.math.BigDecimal"/>
<field name="order_date" class="java.sql.Date"/>
<title>
<band height="50">
<staticText>
<reportElement x="0" y="10" width="555" height="30"/>
<textElement textAlignment="Center">
<font size="16" isBold="true"/>
</textElement>
<text><![CDATA[Sales Orders Report]]></text>
</staticText>
</band>
</title>
<columnHeader>
<band height="25">
<staticText>
<reportElement x="0" y="0" width="120" height="20"/>
<textElement><font isBold="true"/></textElement>
<text><![CDATA[Order ID]]></text>
</staticText>
<staticText>
<reportElement x="130" y="0" width="180" height="20"/>
<textElement><font isBold="true"/></textElement>
<text><![CDATA[Customer]]></text>
</staticText>
<staticText>
<reportElement x="320" y="0" width="120" height="20"/>
<textElement><font isBold="true"/></textElement>
<text><![CDATA[Amount]]></text>
</staticText>
<staticText>
<reportElement x="450" y="0" width="105" height="20"/>
<textElement><font isBold="true"/></textElement>
<text><![CDATA[Order Date]]></text>
</staticText>
</band>
</columnHeader>
<detail>
<band height="20">
<textField>
<reportElement x="0" y="0" width="120" height="20"/>
<textFieldExpression><![CDATA[$F{order_id}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="130" y="0" width="180" height="20"/>
<textFieldExpression><![CDATA[$F{customer_name}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="320" y="0" width="120" height="20"/>
<textFieldExpression><![CDATA[$F{amount}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="450" y="0" width="105" height="20"/>
<textFieldExpression><![CDATA[$F{order_date}]]></textFieldExpression>
</textField>
</band>
</detail>
</jasperReport>