Subversion Repositories Integrator Subversion

Rev

Rev 133 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
106 espaco 1
<?xml version="1.0" encoding="UTF-8"?>
2
<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">
3
	<property name="ireport.zoom" value="3.8974342000000055"/>
4
	<property name="ireport.x" value="0"/>
5
	<property name="ireport.y" value="0"/>
6
	<parameter name="SUBREPORT_DIR" class="java.lang.String" isForPrompting="false">
7
		<defaultValueExpression><![CDATA[""]]></defaultValueExpression>
8
	</parameter>
9
	<queryString>
10
		<![CDATA[]]>
11
	</queryString>
12
	<field name="notaFiscal" class="br.com.ec.domain.dto.nfce.NotaFiscalDTO">
13
		<fieldDescription><![CDATA[notaFiscal]]></fieldDescription>
14
	</field>
15
	<background>
16
		<band splitType="Stretch"/>
17
	</background>
18
	<title>
19
		<band height="50" splitType="Stretch">
20
			<line>
21
				<reportElement key="line" positionType="Float" x="0" y="49" width="195" height="1" uuid="45815a89-efc7-4031-866f-8a1001126cba"/>
22
				<graphicElement>
23
					<pen lineWidth="1.0" lineStyle="Dotted"/>
24
				</graphicElement>
25
			</line>
26
			<subreport>
27
				<reportElement x="5" y="0" width="185" height="40" uuid="b6db748c-379b-4157-8672-20b46c75530e"/>
28
				<subreportParameter name="pCnpj">
29
					<subreportParameterExpression><![CDATA[$F{notaFiscal}.getCnpjDaLoja()]]></subreportParameterExpression>
30
				</subreportParameter>
31
				<subreportParameter name="pEndereco">
32
					<subreportParameterExpression><![CDATA[$F{notaFiscal}.getEnderecoDoEmitente()]]></subreportParameterExpression>
33
				</subreportParameter>
34
				<connectionExpression><![CDATA[$P{REPORT_CONNECTION}]]></connectionExpression>
35
				<subreportExpression><![CDATA[$F{notaFiscal}.getCnpjDaLoja() == "35.470.399/0001-59"? $P{SUBREPORT_DIR} + "nfce_cabecalho_cc.jasper" : $P{SUBREPORT_DIR} + "nfce_cabecalho.jasper"]]></subreportExpression>
36
			</subreport>
37
			<staticText>
38
				<reportElement x="0" y="40" width="195" height="10" uuid="8cb4c6d2-d253-42d4-9839-59e04e746346"/>
39
				<textElement textAlignment="Center" verticalAlignment="Middle">
40
					<font fontName="SansSerif" size="5" isBold="true"/>
41
				</textElement>
42
				<text><![CDATA[DOCUMENTO AUXILIAR DA NOTA FISCAL DE CONSUMIDOR ELETRÔNICA]]></text>
43
			</staticText>
44
			<line>
45
				<reportElement key="line" positionType="Float" x="0" y="40" width="195" height="1" uuid="45815a89-efc7-4031-866f-8a1001126cba"/>
46
				<graphicElement>
47
					<pen lineWidth="1.0" lineStyle="Dotted"/>
48
				</graphicElement>
49
			</line>
50
		</band>
51
	</title>
52
	<columnHeader>
53
		<band height="10">
54
			<staticText>
55
				<reportElement x="23" y="0" width="17" height="10" uuid="6423b892-6a8f-4bac-9f06-2dc94d036b43"/>
56
				<textElement verticalAlignment="Middle">
57
					<font fontName="SansSerif" size="6" isBold="true"/>
58
				</textElement>
59
				<text><![CDATA[COD]]></text>
60
			</staticText>
61
			<staticText>
62
				<reportElement x="40" y="0" width="51" height="10" uuid="6423b892-6a8f-4bac-9f06-2dc94d036b43"/>
63
				<textElement verticalAlignment="Middle">
64
					<font fontName="SansSerif" size="6" isBold="true"/>
65
				</textElement>
66
				<text><![CDATA[DESCRIÇÃO]]></text>
67
			</staticText>
68
			<staticText>
69
				<reportElement x="91" y="0" width="22" height="10" uuid="6423b892-6a8f-4bac-9f06-2dc94d036b43"/>
70
				<textElement textAlignment="Center" verticalAlignment="Middle">
71
					<font fontName="SansSerif" size="6" isBold="true"/>
72
				</textElement>
73
				<text><![CDATA[QTD]]></text>
74
			</staticText>
75
			<staticText>
76
				<reportElement x="113" y="0" width="17" height="10" uuid="6423b892-6a8f-4bac-9f06-2dc94d036b43"/>
77
				<textElement textAlignment="Center" verticalAlignment="Middle">
78
					<font fontName="SansSerif" size="6" isBold="true"/>
79
				</textElement>
80
				<text><![CDATA[UN]]></text>
81
			</staticText>
82
			<staticText>
83
				<reportElement x="129" y="0" width="35" height="10" uuid="6423b892-6a8f-4bac-9f06-2dc94d036b43"/>
84
				<textElement textAlignment="Center" verticalAlignment="Middle">
85
					<font fontName="SansSerif" size="6" isBold="true"/>
86
				</textElement>
87
				<text><![CDATA[VL. UNIT]]></text>
88
			</staticText>
89
			<staticText>
90
				<reportElement x="164" y="0" width="26" height="10" uuid="6423b892-6a8f-4bac-9f06-2dc94d036b43"/>
91
				<textElement textAlignment="Right" verticalAlignment="Middle">
92
					<font fontName="SansSerif" size="6" isBold="true"/>
93
				</textElement>
94
				<text><![CDATA[TOTAL ITEM]]></text>
95
			</staticText>
96
			<staticText>
97
				<reportElement x="5" y="0" width="18" height="10" uuid="6423b892-6a8f-4bac-9f06-2dc94d036b43"/>
98
				<textElement verticalAlignment="Middle">
99
					<font fontName="SansSerif" size="6" isBold="true"/>
100
				</textElement>
101
				<text><![CDATA[ITEM]]></text>
102
			</staticText>
103
		</band>
104
	</columnHeader>
105
	<detail>
106
		<band height="20" splitType="Stretch">
107
			<subreport>
108
				<reportElement positionType="Float" x="5" y="0" width="185" height="20" uuid="1027a0ad-c78a-4f6d-95ed-05989641e369"/>
109
				<dataSourceExpression><![CDATA[new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($F{notaFiscal}.getItens())]]></dataSourceExpression>
110
				<subreportExpression><![CDATA[$P{SUBREPORT_DIR} + "nfce_itens.jasper"]]></subreportExpression>
111
			</subreport>
112
		</band>
113
		<band height="34">
114
			<staticText>
115
				<reportElement x="5" y="4" width="99" height="10" uuid="b4d67b56-c1ce-49cb-91df-d131f4fe3fc3"/>
116
				<textElement>
117
					<font size="6" isBold="true"/>
118
				</textElement>
119
				<text><![CDATA[QTD. TOTAL DE ITENS]]></text>
120
			</staticText>
121
			<staticText>
122
				<reportElement x="5" y="14" width="99" height="10" uuid="b4d67b56-c1ce-49cb-91df-d131f4fe3fc3"/>
123
				<textElement>
124
					<font size="6" isBold="true"/>
125
				</textElement>
126
				<text><![CDATA[VALOR TOTAL R$]]></text>
127
			</staticText>
128
			<staticText>
129
				<reportElement x="5" y="24" width="99" height="10" uuid="b4d67b56-c1ce-49cb-91df-d131f4fe3fc3"/>
130
				<textElement>
131
					<font size="6" isBold="true"/>
132
				</textElement>
133
				<text><![CDATA[VALOR A PAGAR R$]]></text>
134
			</staticText>
135
			<textField>
136
				<reportElement x="116" y="4" width="74" height="10" uuid="b4a670a0-38fe-4fe8-bdc1-891ed7ff05f1"/>
137
				<textElement textAlignment="Right" verticalAlignment="Middle">
138
					<font fontName="SansSerif" size="6" isBold="true"/>
139
				</textElement>
140
				<textFieldExpression><![CDATA[$F{notaFiscal}.getItens().size()]]></textFieldExpression>
141
			</textField>
142
			<textField>
143
				<reportElement x="116" y="14" width="74" height="10" uuid="b4a670a0-38fe-4fe8-bdc1-891ed7ff05f1"/>
144
				<textElement textAlignment="Right" verticalAlignment="Middle">
145
					<font fontName="SansSerif" size="6" isBold="true"/>
146
				</textElement>
147
				<textFieldExpression><![CDATA[$F{notaFiscal}.getValorTotal()]]></textFieldExpression>
148
			</textField>
149
			<textField>
150
				<reportElement x="116" y="24" width="74" height="10" uuid="b4a670a0-38fe-4fe8-bdc1-891ed7ff05f1"/>
151
				<textElement textAlignment="Right" verticalAlignment="Middle">
152
					<font fontName="SansSerif" size="6" isBold="true"/>
153
				</textElement>
154
				<textFieldExpression><![CDATA[$F{notaFiscal}.getValorTotal()]]></textFieldExpression>
155
			</textField>
156
		</band>
157
		<band height="25">
158
			<subreport>
159
				<reportElement positionType="Float" x="5" y="10" width="185" height="15" uuid="1027a0ad-c78a-4f6d-95ed-05989641e369"/>
160
				<dataSourceExpression><![CDATA[new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($F{notaFiscal}.getPagamentos())]]></dataSourceExpression>
161
				<subreportExpression><![CDATA[$P{SUBREPORT_DIR} + "nfce_pagamentos.jasper"]]></subreportExpression>
162
			</subreport>
163
			<staticText>
164
				<reportElement x="5" y="0" width="99" height="10" uuid="b4d67b56-c1ce-49cb-91df-d131f4fe3fc3"/>
165
				<textElement>
166
					<font size="6" isBold="true"/>
167
				</textElement>
168
				<text><![CDATA[FORMA DE PAGAMENTO]]></text>
169
			</staticText>
170
			<staticText>
171
				<reportElement x="116" y="0" width="74" height="10" uuid="b4d67b56-c1ce-49cb-91df-d131f4fe3fc3"/>
172
				<textElement textAlignment="Right">
173
					<font size="6" isBold="true"/>
174
				</textElement>
175
				<text><![CDATA[VALOR PAGO R$]]></text>
176
			</staticText>
177
		</band>
178
		<band height="203">
179
			<image scaleImage="RetainShape" isUsingCache="true" onErrorType="Blank">
180
				<reportElement x="23" y="53" width="150" height="150" uuid="794dd48f-2daf-43ae-a55c-02cb5b478934"/>
181
				<imageExpression><![CDATA[com.google.zxing.client.j2se.MatrixToImageWriter.toBufferedImage(
182
    new com.google.zxing.qrcode.QRCodeWriter().encode(
183
        $F{notaFiscal}.getCaminhoQrCode(),
184
    com.google.zxing.BarcodeFormat.QR_CODE, 300, 300))]]></imageExpression>
185
			</image>
186
			<staticText>
187
				<reportElement x="0" y="13" width="195" height="10" uuid="b4d67b56-c1ce-49cb-91df-d131f4fe3fc3"/>
188
				<textElement textAlignment="Center" verticalAlignment="Middle">
189
					<font fontName="SansSerif" size="6" isBold="false"/>
190
				</textElement>
191
				<text><![CDATA[Consulte pela Chave de Acesso em www.sefaz.al.gov.br/nfce]]></text>
192
			</staticText>
193
			<textField>
194
				<reportElement x="0" y="3" width="195" height="10" uuid="b4a670a0-38fe-4fe8-bdc1-891ed7ff05f1"/>
195
				<textElement textAlignment="Center" verticalAlignment="Middle">
196
					<font fontName="SansSerif" size="6" isBold="false"/>
197
				</textElement>
198
				<textFieldExpression><![CDATA["Número: " + $F{notaFiscal}.getNumero() +
199
" Série: " + $F{notaFiscal}.getSerie() +
200
" Emissão: " + $F{notaFiscal}.getDataHoraEmissao()]]></textFieldExpression>
201
			</textField>
202
			<textField>
203
				<reportElement x="0" y="23" width="195" height="10" uuid="b4a670a0-38fe-4fe8-bdc1-891ed7ff05f1"/>
204
				<textElement textAlignment="Center" verticalAlignment="Middle">
205
					<font fontName="SansSerif" size="6" isBold="false"/>
206
				</textElement>
207
				<textFieldExpression><![CDATA[$F{notaFiscal}.getChave()]]></textFieldExpression>
208
			</textField>
209
			<textField>
210
				<reportElement x="0" y="33" width="195" height="10" uuid="b4a670a0-38fe-4fe8-bdc1-891ed7ff05f1"/>
211
				<textElement textAlignment="Center" verticalAlignment="Middle">
212
					<font fontName="SansSerif" size="6" isBold="false"/>
213
				</textElement>
214
				<textFieldExpression><![CDATA["Protocolo de Autorização: " + $F{notaFiscal}.getProtocoloAutorizacao()]]></textFieldExpression>
215
			</textField>
216
			<textField>
217
				<reportElement x="0" y="43" width="195" height="10" uuid="b4a670a0-38fe-4fe8-bdc1-891ed7ff05f1"/>
218
				<textElement textAlignment="Center" verticalAlignment="Middle">
219
					<font fontName="SansSerif" size="6" isBold="false"/>
220
				</textElement>
221
				<textFieldExpression><![CDATA["Consumidor: " + $F{notaFiscal}.getCpfCnpjConsumidorFormatado()]]></textFieldExpression>
222
			</textField>
223
		</band>
224
	</detail>
225
	<pageFooter>
226
		<band height="30" splitType="Stretch">
227
			<subreport>
228
				<reportElement x="5" y="0" width="185" height="25" uuid="ae8d065c-9cac-41c0-b26e-489b91e02902"/>
229
				<connectionExpression><![CDATA[$P{REPORT_CONNECTION}]]></connectionExpression>
230
				<subreportExpression><![CDATA[$P{SUBREPORT_DIR} + "nfce_rodape.jasper"]]></subreportExpression>
231
			</subreport>
232
		</band>
233
	</pageFooter>
234
</jasperReport>