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="relatorio_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.897434200000006"/>
        <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>
        <queryString>
                <![CDATA[]]>
        </queryString>
        <field name="notaFiscal" class="br.com.ec.domain.dto.nfce.NotaFiscalDTO">
                <fieldDescription><![CDATA[notaFiscal]]></fieldDescription>
        </field>
        <background>
                <band splitType="Stretch"/>
        </background>
        <title>
                <band height="50" splitType="Stretch">
                        <subreport>
                                <reportElement x="0" y="0" width="195" height="40" uuid="b6db748c-379b-4157-8672-20b46c75530e"/>
                                <subreportParameter name="pCnpj">
                                        <subreportParameterExpression><![CDATA[$F{notaFiscal}.getCnpjDaLoja()]]></subreportParameterExpression>
                                </subreportParameter>
                                <subreportParameter name="pLogotipo">
                                        <subreportParameterExpression><![CDATA[$F{notaFiscal}.getCnpjMatrizDaLojaSemAcentos()]]></subreportParameterExpression>
                                </subreportParameter>
                                <subreportParameter name="pEndereco">
                                        <subreportParameterExpression><![CDATA[$F{notaFiscal}.getEnderecoDoEmitente()]]></subreportParameterExpression>
                                </subreportParameter>
                                <subreportParameter name="pRazaoSocial">
                                        <subreportParameterExpression><![CDATA[$F{notaFiscal}.getRazaoSocialDaLoja()]]></subreportParameterExpression>
                                </subreportParameter>
                                <connectionExpression><![CDATA[$P{REPORT_CONNECTION}]]></connectionExpression>
                                <subreportExpression><![CDATA[$P{SUBREPORT_DIR} + "nfce_cabecalho.jasper"]]></subreportExpression>
                        </subreport>
                        <staticText>
                                <reportElement x="0" y="40" width="195" height="10" uuid="8cb4c6d2-d253-42d4-9839-59e04e746346"/>
                                <textElement textAlignment="Center" verticalAlignment="Middle">
                                        <font fontName="SansSerif" size="5" isBold="true"/>
                                </textElement>
                                <text><![CDATA[CUPOM NÃO FISCAL]]></text>
                        </staticText>
                        <line>
                                <reportElement key="line" positionType="Float" x="0" y="40" width="195" height="1" uuid="45815a89-efc7-4031-866f-8a1001126cba"/>
                                <graphicElement>
                                        <pen lineWidth="1.0" lineStyle="Dotted"/>
                                </graphicElement>
                        </line>
                </band>
        </title>
        <columnHeader>
                <band height="10">
                        <staticText>
                                <reportElement x="17" y="0" width="17" height="10" uuid="6423b892-6a8f-4bac-9f06-2dc94d036b43"/>
                                <textElement verticalAlignment="Middle">
                                        <font fontName="SansSerif" size="6" isBold="true"/>
                                </textElement>
                                <text><![CDATA[COD]]></text>
                        </staticText>
                        <staticText>
                                <reportElement x="34" y="0" width="56" height="10" uuid="6423b892-6a8f-4bac-9f06-2dc94d036b43"/>
                                <textElement verticalAlignment="Middle">
                                        <font fontName="SansSerif" size="6" isBold="true"/>
                                </textElement>
                                <text><![CDATA[DESCRIÇÃO]]></text>
                        </staticText>
                        <staticText>
                                <reportElement x="90" y="0" width="22" height="10" uuid="6423b892-6a8f-4bac-9f06-2dc94d036b43"/>
                                <textElement textAlignment="Center" verticalAlignment="Middle">
                                        <font fontName="SansSerif" size="6" isBold="true"/>
                                </textElement>
                                <text><![CDATA[QTD]]></text>
                        </staticText>
                        <staticText>
                                <reportElement x="112" y="0" width="22" height="10" uuid="6423b892-6a8f-4bac-9f06-2dc94d036b43"/>
                                <textElement textAlignment="Center" verticalAlignment="Middle">
                                        <font fontName="SansSerif" size="6" isBold="true"/>
                                </textElement>
                                <text><![CDATA[UN]]></text>
                        </staticText>
                        <staticText>
                                <reportElement x="134" y="0" width="35" height="10" uuid="6423b892-6a8f-4bac-9f06-2dc94d036b43"/>
                                <textElement textAlignment="Center" verticalAlignment="Middle">
                                        <font fontName="SansSerif" size="6" isBold="true"/>
                                </textElement>
                                <text><![CDATA[VL. UNIT]]></text>
                        </staticText>
                        <staticText>
                                <reportElement x="169" y="0" width="26" height="10" uuid="6423b892-6a8f-4bac-9f06-2dc94d036b43"/>
                                <textElement textAlignment="Right" verticalAlignment="Middle">
                                        <font fontName="SansSerif" size="6" isBold="true"/>
                                </textElement>
                                <text><![CDATA[TOTAL ITEM]]></text>
                        </staticText>
                        <staticText>
                                <reportElement x="0" y="0" width="17" height="10" uuid="6423b892-6a8f-4bac-9f06-2dc94d036b43"/>
                                <textElement verticalAlignment="Middle">
                                        <font fontName="SansSerif" size="6" isBold="true"/>
                                </textElement>
                                <text><![CDATA[ITEM]]></text>
                        </staticText>
                        <line>
                                <reportElement key="line" positionType="Float" x="0" y="-1" width="195" height="1" uuid="45815a89-efc7-4031-866f-8a1001126cba"/>
                                <graphicElement>
                                        <pen lineWidth="1.0" lineStyle="Dotted"/>
                                </graphicElement>
                        </line>
                </band>
        </columnHeader>
        <detail>
                <band height="20" splitType="Stretch">
                        <subreport>
                                <reportElement positionType="Float" x="0" y="0" width="195" height="20" uuid="1027a0ad-c78a-4f6d-95ed-05989641e369"/>
                                <dataSourceExpression><![CDATA[new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($F{notaFiscal}.getItens())]]></dataSourceExpression>
                                <subreportExpression><![CDATA[$P{SUBREPORT_DIR} + "nfce_itens.jasper"]]></subreportExpression>
                        </subreport>
                </band>
                <band height="34">
                        <staticText>
                                <reportElement x="0" y="4" width="99" height="10" uuid="b4d67b56-c1ce-49cb-91df-d131f4fe3fc3"/>
                                <textElement>
                                        <font size="6" isBold="true"/>
                                </textElement>
                                <text><![CDATA[QTD. TOTAL DE ITENS]]></text>
                        </staticText>
                        <staticText>
                                <reportElement x="0" y="14" width="99" height="10" uuid="b4d67b56-c1ce-49cb-91df-d131f4fe3fc3"/>
                                <textElement>
                                        <font size="6" isBold="true"/>
                                </textElement>
                                <text><![CDATA[VALOR TOTAL R$]]></text>
                        </staticText>
                        <staticText>
                                <reportElement x="0" y="24" width="99" height="10" uuid="b4d67b56-c1ce-49cb-91df-d131f4fe3fc3"/>
                                <textElement>
                                        <font size="6" isBold="true"/>
                                </textElement>
                                <text><![CDATA[VALOR A PAGAR R$]]></text>
                        </staticText>
                        <textField>
                                <reportElement x="121" y="4" width="74" height="10" uuid="b4a670a0-38fe-4fe8-bdc1-891ed7ff05f1"/>
                                <textElement textAlignment="Right" verticalAlignment="Middle">
                                        <font fontName="SansSerif" size="6" isBold="true"/>
                                </textElement>
                                <textFieldExpression><![CDATA[$F{notaFiscal}.getItens().size()]]></textFieldExpression>
                        </textField>
                        <textField>
                                <reportElement x="121" y="14" width="74" height="10" uuid="b4a670a0-38fe-4fe8-bdc1-891ed7ff05f1"/>
                                <textElement textAlignment="Right" verticalAlignment="Middle">
                                        <font fontName="SansSerif" size="6" isBold="true"/>
                                </textElement>
                                <textFieldExpression><![CDATA[$F{notaFiscal}.getValorTotal()]]></textFieldExpression>
                        </textField>
                        <textField>
                                <reportElement x="121" y="24" width="74" height="10" uuid="b4a670a0-38fe-4fe8-bdc1-891ed7ff05f1"/>
                                <textElement textAlignment="Right" verticalAlignment="Middle">
                                        <font fontName="SansSerif" size="6" isBold="true"/>
                                </textElement>
                                <textFieldExpression><![CDATA[$F{notaFiscal}.getValorTotal()]]></textFieldExpression>
                        </textField>
                </band>
                <band height="25">
                        <subreport>
                                <reportElement positionType="Float" x="0" y="10" width="195" height="15" uuid="1027a0ad-c78a-4f6d-95ed-05989641e369"/>
                                <dataSourceExpression><![CDATA[new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($F{notaFiscal}.getPagamentos())]]></dataSourceExpression>
                                <subreportExpression><![CDATA[$P{SUBREPORT_DIR} + "nfce_pagamentos.jasper"]]></subreportExpression>
                        </subreport>
                        <staticText>
                                <reportElement x="0" y="0" width="99" height="10" uuid="b4d67b56-c1ce-49cb-91df-d131f4fe3fc3"/>
                                <textElement>
                                        <font size="6" isBold="true"/>
                                </textElement>
                                <text><![CDATA[FORMA DE PAGAMENTO]]></text>
                        </staticText>
                        <staticText>
                                <reportElement x="121" y="0" width="74" height="10" uuid="b4d67b56-c1ce-49cb-91df-d131f4fe3fc3"/>
                                <textElement textAlignment="Right">
                                        <font size="6" isBold="true"/>
                                </textElement>
                                <text><![CDATA[VALOR PAGO R$]]></text>
                        </staticText>
                </band>
                <band height="13">
                        <textField>
                                <reportElement x="0" y="0" width="195" height="10" uuid="b4a670a0-38fe-4fe8-bdc1-891ed7ff05f1"/>
                                <textElement textAlignment="Center" verticalAlignment="Middle">
                                        <font fontName="SansSerif" size="6" isBold="true"/>
                                </textElement>
                                <textFieldExpression><![CDATA["CONSUMIDOR: " + $F{notaFiscal}.getCpfCnpjConsumidorFormatado()]]></textFieldExpression>
                        </textField>
                </band>
        </detail>
        <pageFooter>
                <band height="30" splitType="Stretch">
                        <subreport>
                                <reportElement x="0" y="0" width="195" height="25" uuid="ae8d065c-9cac-41c0-b26e-489b91e02902"/>
                                <connectionExpression><![CDATA[$P{REPORT_CONNECTION}]]></connectionExpression>
                                <subreportExpression><![CDATA[$P{SUBREPORT_DIR} + "nfce_rodape.jasper"]]></subreportExpression>
                        </subreport>
                </band>
        </pageFooter>
</jasperReport>