Subversion Repositories Integrator Subversion

Rev

Rev 182 | Blame | Compare with Previous | 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="comprovante_cupom" pageWidth="215" pageHeight="200" columnWidth="195" leftMargin="10" rightMargin="10" topMargin="10" bottomMargin="10" isIgnorePagination="true" uuid="c6447326-3eb7-45a9-af8e-852ae2ec5c1b">
        <property name="ireport.zoom" value="3.8974342000000077"/>
        <property name="ireport.x" value="0"/>
        <property name="ireport.y" value="0"/>
        <parameter name="SUBREPORT_DIR" class="java.lang.String" isForPrompting="false">
                <defaultValueExpression><![CDATA[""]]></defaultValueExpression>
        </parameter>
        <parameter name="IMAGE_DIR" class="java.lang.String" isForPrompting="false">
                <defaultValueExpression><![CDATA[""]]></defaultValueExpression>
        </parameter>
        <queryString>
                <![CDATA[]]>
        </queryString>
        <field name="cupom" class="br.com.ec.domain.model.Cupom">
                <fieldDescription><![CDATA[cupom]]></fieldDescription>
        </field>
        <background>
                <band splitType="Stretch"/>
        </background>
        <title>
                <band height="20" splitType="Stretch">
                        <line>
                                <reportElement key="line" positionType="Float" x="0" y="19" width="195" height="1" uuid="45815a89-efc7-4031-866f-8a1001126cba"/>
                                <graphicElement>
                                        <pen lineWidth="1.0" lineStyle="Dotted"/>
                                </graphicElement>
                        </line>
                        <image>
                                <reportElement mode="Transparent" x="0" y="0" width="36" height="20" uuid="4f8810e5-44d1-46e3-ac0c-6e0b2ac883e4"/>
                                <imageExpression><![CDATA[$P{IMAGE_DIR} + "logotipo.png"]]></imageExpression>
                        </image>
                        <staticText>
                                <reportElement x="36" y="0" width="159" height="19" uuid="8cb4c6d2-d253-42d4-9839-59e04e746346"/>
                                <textElement textAlignment="Center" verticalAlignment="Middle">
                                        <font fontName="SansSerif" size="11" isBold="true"/>
                                </textElement>
                                <text><![CDATA[CUPOM DE DESCONTO]]></text>
                        </staticText>
                </band>
        </title>
        <detail>
                <band height="64" splitType="Stretch">
                        <textField isBlankWhenNull="true">
                                <reportElement x="0" y="33" width="195" height="30" uuid="b4a670a0-38fe-4fe8-bdc1-891ed7ff05f1"/>
                                <textElement verticalAlignment="Top">
                                        <font fontName="SansSerif" size="8" isBold="true"/>
                                </textElement>
                                <textFieldExpression><![CDATA[$F{cupom}.getDescricao()]]></textFieldExpression>
                        </textField>
                        <textField isBlankWhenNull="true">
                                <reportElement x="0" y="22" width="195" height="12" uuid="b4a670a0-38fe-4fe8-bdc1-891ed7ff05f1">
                                        <printWhenExpression><![CDATA[$F{cupom}.getDataHoraValidade() != null]]></printWhenExpression>
                                </reportElement>
                                <textElement verticalAlignment="Middle">
                                        <font fontName="SansSerif" size="8" isBold="true"/>
                                </textElement>
                                <textFieldExpression><![CDATA["VÁLIDO ATÉ O DIA " + $F{cupom}.getDataHoraValidade()]]></textFieldExpression>
                        </textField>
                        <textField isBlankWhenNull="true">
                                <reportElement x="0" y="11" width="195" height="12" uuid="b4a670a0-38fe-4fe8-bdc1-891ed7ff05f1"/>
                                <textElement verticalAlignment="Middle">
                                        <font fontName="SansSerif" size="8" isBold="true"/>
                                </textElement>
                                <textFieldExpression><![CDATA["DESCONTO DE: " + $F{cupom}.getValorCupomFormatado()]]></textFieldExpression>
                        </textField>
                        <textField>
                                <reportElement x="0" y="0" width="195" height="12" uuid="b4a670a0-38fe-4fe8-bdc1-891ed7ff05f1"/>
                                <textElement verticalAlignment="Middle">
                                        <font fontName="SansSerif" size="8" isBold="true"/>
                                </textElement>
                                <textFieldExpression><![CDATA["UTILIZE O CÓDIGO: " + $F{cupom}.getCodigo()]]></textFieldExpression>
                        </textField>
                </band>
        </detail>
        <pageFooter>
                <band height="10" splitType="Stretch"/>
        </pageFooter>
</jasperReport>