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_nfce" pageWidth="215" pageHeight="300" columnWidth="195" leftMargin="10" rightMargin="10" topMargin="10" bottomMargin="10" isIgnorePagination="true" uuid="c6447326-3eb7-45a9-af8e-852ae2ec5c1b">
        <property name="ireport.zoom" value="3.221020000000004"/>
        <property name="ireport.x" value="21"/>
        <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">
                        <line>
                                <reportElement key="line" positionType="Float" x="0" y="49" width="195" height="1" uuid="45815a89-efc7-4031-866f-8a1001126cba"/>
                                <graphicElement>
                                        <pen lineWidth="1.0" lineStyle="Dotted"/>
                                </graphicElement>
                        </line>
                        <subreport>
                                <reportElement x="5" y="0" width="185" 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>
                                <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[DOCUMENTO AUXILIAR DA NOTA FISCAL DE CONSUMIDOR ELETRÔNICA]]></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="23" 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="40" y="0" width="51" 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="91" 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="113" y="0" width="17" 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="129" 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="164" 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="5" y="0" width="18" height="10" uuid="6423b892-6a8f-4bac-9f06-2dc94d036b43"/>
                                <textElement verticalAlignment="Middle">
                                        <font fontName="SansSerif" size="6" isBold="true"/>
                                </textElement>
                                <text><![CDATA[ITEM]]></text>
                        </staticText>
                </band>
        </columnHeader>
        <detail>
                <band height="20" splitType="Stretch">
                        <subreport>
                                <reportElement positionType="Float" x="5" y="0" width="185" 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="5" 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="5" 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="5" 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="116" 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="116" 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="116" 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="5" y="10" width="185" 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="5" 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="116" 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="203">
                        <image scaleImage="RetainShape" isUsingCache="true" onErrorType="Blank">
                                <reportElement x="23" y="53" width="150" height="150" uuid="794dd48f-2daf-43ae-a55c-02cb5b478934"/>
                                <imageExpression><![CDATA[com.google.zxing.client.j2se.MatrixToImageWriter.toBufferedImage(
    new com.google.zxing.qrcode.QRCodeWriter().encode(
        $F{notaFiscal}.getCaminhoQrCode(),
    com.google.zxing.BarcodeFormat.QR_CODE, 300, 300))]]></imageExpression>
                        </image>
                        <staticText>
                                <reportElement x="0" y="13" width="195" height="10" uuid="b4d67b56-c1ce-49cb-91df-d131f4fe3fc3"/>
                                <textElement textAlignment="Center" verticalAlignment="Middle">
                                        <font fontName="SansSerif" size="6" isBold="false"/>
                                </textElement>
                                <text><![CDATA[Consulte pela Chave de Acesso em www.sefaz.al.gov.br/nfce]]></text>
                        </staticText>
                        <textField>
                                <reportElement x="0" y="3" width="195" height="10" uuid="b4a670a0-38fe-4fe8-bdc1-891ed7ff05f1"/>
                                <textElement textAlignment="Center" verticalAlignment="Middle">
                                        <font fontName="SansSerif" size="6" isBold="false"/>
                                </textElement>
                                <textFieldExpression><![CDATA["Número: " + $F{notaFiscal}.getNumero() +
" Série: " + $F{notaFiscal}.getSerie() +
" Emissão: " + $F{notaFiscal}.getDataHoraEmissao()]]></textFieldExpression>
                        </textField>
                        <textField>
                                <reportElement x="0" y="23" width="195" height="10" uuid="b4a670a0-38fe-4fe8-bdc1-891ed7ff05f1"/>
                                <textElement textAlignment="Center" verticalAlignment="Middle">
                                        <font fontName="SansSerif" size="6" isBold="false"/>
                                </textElement>
                                <textFieldExpression><![CDATA[$F{notaFiscal}.getChave()]]></textFieldExpression>
                        </textField>
                        <textField>
                                <reportElement x="0" y="33" width="195" height="10" uuid="b4a670a0-38fe-4fe8-bdc1-891ed7ff05f1"/>
                                <textElement textAlignment="Center" verticalAlignment="Middle">
                                        <font fontName="SansSerif" size="6" isBold="false"/>
                                </textElement>
                                <textFieldExpression><![CDATA["Protocolo de Autorização: " + $F{notaFiscal}.getProtocoloAutorizacao()]]></textFieldExpression>
                        </textField>
                        <textField>
                                <reportElement x="0" y="43" width="195" height="10" uuid="b4a670a0-38fe-4fe8-bdc1-891ed7ff05f1"/>
                                <textElement textAlignment="Center" verticalAlignment="Middle">
                                        <font fontName="SansSerif" size="6" isBold="false"/>
                                </textElement>
                                <textFieldExpression><![CDATA["Consumidor: " + $F{notaFiscal}.getCpfCnpjConsumidorFormatado()]]></textFieldExpression>
                        </textField>
                </band>
        </detail>
        <pageFooter>
                <band height="30" splitType="Stretch">
                        <subreport>
                                <reportElement x="5" y="0" width="185" 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>