Subversion Repositories Integrator Subversion

Rev

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_cupom" pageWidth="215" pageHeight="200" 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.897434200000006"/>
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
			<subreport>
21
				<reportElement x="0" y="0" width="195" height="40" uuid="b6db748c-379b-4157-8672-20b46c75530e"/>
22
				<subreportParameter name="pCnpj">
23
					<subreportParameterExpression><![CDATA[$F{notaFiscal}.getCnpjDaLoja()]]></subreportParameterExpression>
24
				</subreportParameter>
25
				<subreportParameter name="pEndereco">
26
					<subreportParameterExpression><![CDATA[$F{notaFiscal}.getEnderecoDoEmitente()]]></subreportParameterExpression>
27
				</subreportParameter>
28
				<subreportParameter name="pRazaoSocial">
29
					<subreportParameterExpression><![CDATA[$F{notaFiscal}.getRazaoSocialDaLoja()]]></subreportParameterExpression>
30
				</subreportParameter>
31
				<connectionExpression><![CDATA[$P{REPORT_CONNECTION}]]></connectionExpression>
32
				<subreportExpression><![CDATA[$F{notaFiscal}.getCnpjDaLoja() == "35.470.399/0001-59"? $P{SUBREPORT_DIR} + "nfce_cabecalho_cc.jasper" : $P{SUBREPORT_DIR} + "nfce_cabecalho.jasper"]]></subreportExpression>
33
			</subreport>
34
			<staticText>
35
				<reportElement x="0" y="40" width="195" height="10" uuid="8cb4c6d2-d253-42d4-9839-59e04e746346"/>
36
				<textElement textAlignment="Center" verticalAlignment="Middle">
37
					<font fontName="SansSerif" size="5" isBold="true"/>
38
				</textElement>
39
				<text><![CDATA[CUPOM NÃO FISCAL]]></text>
40
			</staticText>
41
			<line>
42
				<reportElement key="line" positionType="Float" x="0" y="40" width="195" height="1" uuid="45815a89-efc7-4031-866f-8a1001126cba"/>
43
				<graphicElement>
44
					<pen lineWidth="1.0" lineStyle="Dotted"/>
45
				</graphicElement>
46
			</line>
47
		</band>
48
	</title>
49
	<columnHeader>
50
		<band height="10">
51
			<staticText>
52
				<reportElement x="17" y="0" width="17" height="10" uuid="6423b892-6a8f-4bac-9f06-2dc94d036b43"/>
53
				<textElement verticalAlignment="Middle">
54
					<font fontName="SansSerif" size="6" isBold="true"/>
55
				</textElement>
56
				<text><![CDATA[COD]]></text>
57
			</staticText>
58
			<staticText>
59
				<reportElement x="34" y="0" width="56" height="10" uuid="6423b892-6a8f-4bac-9f06-2dc94d036b43"/>
60
				<textElement verticalAlignment="Middle">
61
					<font fontName="SansSerif" size="6" isBold="true"/>
62
				</textElement>
63
				<text><![CDATA[DESCRIÇÃO]]></text>
64
			</staticText>
65
			<staticText>
66
				<reportElement x="90" y="0" width="22" height="10" uuid="6423b892-6a8f-4bac-9f06-2dc94d036b43"/>
67
				<textElement textAlignment="Center" verticalAlignment="Middle">
68
					<font fontName="SansSerif" size="6" isBold="true"/>
69
				</textElement>
70
				<text><![CDATA[QTD]]></text>
71
			</staticText>
72
			<staticText>
73
				<reportElement x="112" y="0" width="22" height="10" uuid="6423b892-6a8f-4bac-9f06-2dc94d036b43"/>
74
				<textElement textAlignment="Center" verticalAlignment="Middle">
75
					<font fontName="SansSerif" size="6" isBold="true"/>
76
				</textElement>
77
				<text><![CDATA[UN]]></text>
78
			</staticText>
79
			<staticText>
80
				<reportElement x="134" y="0" width="35" height="10" uuid="6423b892-6a8f-4bac-9f06-2dc94d036b43"/>
81
				<textElement textAlignment="Center" verticalAlignment="Middle">
82
					<font fontName="SansSerif" size="6" isBold="true"/>
83
				</textElement>
84
				<text><![CDATA[VL. UNIT]]></text>
85
			</staticText>
86
			<staticText>
87
				<reportElement x="169" y="0" width="26" height="10" uuid="6423b892-6a8f-4bac-9f06-2dc94d036b43"/>
88
				<textElement textAlignment="Right" verticalAlignment="Middle">
89
					<font fontName="SansSerif" size="6" isBold="true"/>
90
				</textElement>
91
				<text><![CDATA[TOTAL ITEM]]></text>
92
			</staticText>
93
			<staticText>
94
				<reportElement x="0" y="0" width="17" height="10" uuid="6423b892-6a8f-4bac-9f06-2dc94d036b43"/>
95
				<textElement verticalAlignment="Middle">
96
					<font fontName="SansSerif" size="6" isBold="true"/>
97
				</textElement>
98
				<text><![CDATA[ITEM]]></text>
99
			</staticText>
100
			<line>
101
				<reportElement key="line" positionType="Float" x="0" y="-1" width="195" height="1" uuid="45815a89-efc7-4031-866f-8a1001126cba"/>
102
				<graphicElement>
103
					<pen lineWidth="1.0" lineStyle="Dotted"/>
104
				</graphicElement>
105
			</line>
106
		</band>
107
	</columnHeader>
108
	<detail>
109
		<band height="20" splitType="Stretch">
110
			<subreport>
111
				<reportElement positionType="Float" x="0" y="0" width="195" height="20" uuid="1027a0ad-c78a-4f6d-95ed-05989641e369"/>
112
				<dataSourceExpression><![CDATA[new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($F{notaFiscal}.getItens())]]></dataSourceExpression>
113
				<subreportExpression><![CDATA[$P{SUBREPORT_DIR} + "nfce_itens.jasper"]]></subreportExpression>
114
			</subreport>
115
		</band>
116
		<band height="34">
117
			<staticText>
118
				<reportElement x="0" y="4" width="99" height="10" uuid="b4d67b56-c1ce-49cb-91df-d131f4fe3fc3"/>
119
				<textElement>
120
					<font size="6" isBold="true"/>
121
				</textElement>
122
				<text><![CDATA[QTD. TOTAL DE ITENS]]></text>
123
			</staticText>
124
			<staticText>
125
				<reportElement x="0" y="14" width="99" height="10" uuid="b4d67b56-c1ce-49cb-91df-d131f4fe3fc3"/>
126
				<textElement>
127
					<font size="6" isBold="true"/>
128
				</textElement>
129
				<text><![CDATA[VALOR TOTAL R$]]></text>
130
			</staticText>
131
			<staticText>
132
				<reportElement x="0" y="24" width="99" height="10" uuid="b4d67b56-c1ce-49cb-91df-d131f4fe3fc3"/>
133
				<textElement>
134
					<font size="6" isBold="true"/>
135
				</textElement>
136
				<text><![CDATA[VALOR A PAGAR R$]]></text>
137
			</staticText>
138
			<textField>
139
				<reportElement x="121" y="4" width="74" height="10" uuid="b4a670a0-38fe-4fe8-bdc1-891ed7ff05f1"/>
140
				<textElement textAlignment="Right" verticalAlignment="Middle">
141
					<font fontName="SansSerif" size="6" isBold="true"/>
142
				</textElement>
143
				<textFieldExpression><![CDATA[$F{notaFiscal}.getItens().size()]]></textFieldExpression>
144
			</textField>
145
			<textField>
146
				<reportElement x="121" y="14" width="74" height="10" uuid="b4a670a0-38fe-4fe8-bdc1-891ed7ff05f1"/>
147
				<textElement textAlignment="Right" verticalAlignment="Middle">
148
					<font fontName="SansSerif" size="6" isBold="true"/>
149
				</textElement>
150
				<textFieldExpression><![CDATA[$F{notaFiscal}.getValorTotal()]]></textFieldExpression>
151
			</textField>
152
			<textField>
153
				<reportElement x="121" y="24" width="74" height="10" uuid="b4a670a0-38fe-4fe8-bdc1-891ed7ff05f1"/>
154
				<textElement textAlignment="Right" verticalAlignment="Middle">
155
					<font fontName="SansSerif" size="6" isBold="true"/>
156
				</textElement>
157
				<textFieldExpression><![CDATA[$F{notaFiscal}.getValorTotal()]]></textFieldExpression>
158
			</textField>
159
		</band>
160
		<band height="25">
161
			<subreport>
162
				<reportElement positionType="Float" x="0" y="10" width="195" height="15" uuid="1027a0ad-c78a-4f6d-95ed-05989641e369"/>
163
				<dataSourceExpression><![CDATA[new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($F{notaFiscal}.getPagamentos())]]></dataSourceExpression>
164
				<subreportExpression><![CDATA[$P{SUBREPORT_DIR} + "nfce_pagamentos.jasper"]]></subreportExpression>
165
			</subreport>
166
			<staticText>
167
				<reportElement x="0" y="0" width="99" height="10" uuid="b4d67b56-c1ce-49cb-91df-d131f4fe3fc3"/>
168
				<textElement>
169
					<font size="6" isBold="true"/>
170
				</textElement>
171
				<text><![CDATA[FORMA DE PAGAMENTO]]></text>
172
			</staticText>
173
			<staticText>
174
				<reportElement x="121" y="0" width="74" height="10" uuid="b4d67b56-c1ce-49cb-91df-d131f4fe3fc3"/>
175
				<textElement textAlignment="Right">
176
					<font size="6" isBold="true"/>
177
				</textElement>
178
				<text><![CDATA[VALOR PAGO R$]]></text>
179
			</staticText>
180
		</band>
181
		<band height="13">
182
			<textField>
183
				<reportElement x="0" y="0" width="195" height="10" uuid="b4a670a0-38fe-4fe8-bdc1-891ed7ff05f1"/>
184
				<textElement textAlignment="Center" verticalAlignment="Middle">
185
					<font fontName="SansSerif" size="6" isBold="true"/>
186
				</textElement>
187
				<textFieldExpression><![CDATA["CONSUMIDOR: " + $F{notaFiscal}.getCpfCnpjConsumidorFormatado()]]></textFieldExpression>
188
			</textField>
189
		</band>
190
	</detail>
191
	<pageFooter>
192
		<band height="30" splitType="Stretch">
193
			<subreport>
194
				<reportElement x="0" y="0" width="195" height="25" uuid="ae8d065c-9cac-41c0-b26e-489b91e02902"/>
195
				<connectionExpression><![CDATA[$P{REPORT_CONNECTION}]]></connectionExpression>
196
				<subreportExpression><![CDATA[$P{SUBREPORT_DIR} + "nfce_rodape.jasper"]]></subreportExpression>
197
			</subreport>
198
		</band>
199
	</pageFooter>
200
</jasperReport>