-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCliente.jrxml
321 lines (321 loc) · 13.6 KB
/
Cliente.jrxml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
<?xml version="1.0" encoding="UTF-8"?>
<!-- Created with Jaspersoft Studio version 6.3.1.final using JasperReports Library version 6.3.1 -->
<!-- 2017-11-24T22:50:43 -->
<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="Cliente" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="feffacee-c2b5-463d-a25e-5bf4b0f3df7f">
<property name="com.jaspersoft.studio.data.sql.tables" value=""/>
<property name="com.jaspersoft.studio.data.sql.SQLQueryDesigner.sash.w1" value="176"/>
<property name="com.jaspersoft.studio.data.sql.SQLQueryDesigner.sash.w2" value="817"/>
<property name="com.jaspersoft.studio.data.defaultdataadapter" value="iRRadiacaoV31"/>
<subDataset name="Contatos" uuid="89b601d4-9983-43ff-a924-a22c7acf90b5">
<property name="com.jaspersoft.studio.data.sql.tables" value=""/>
<property name="com.jaspersoft.studio.data.defaultdataadapter" value="iRRadiacaoV31"/>
<queryString language="SQL">
<![CDATA[select distinct
c.Id
, c.Descricao
from Contato c
where c.Cliente = 21
]]>
</queryString>
<field name="Id" class="java.lang.Integer"/>
<field name="Descricao" class="java.lang.String"/>
</subDataset>
<parameter name="idCliente" class="java.lang.Integer">
<parameterDescription><![CDATA[Id do Cliente]]></parameterDescription>
</parameter>
<queryString language="SQL">
<![CDATA[select
clnt.Id idCliente
, clnt.RazaoSocial_Nome
, clnt.NomeFantasia_Apelido
, clnt.CNPJ_CPF
, clnt.IE_RG
, clnt.IM
, clnt.DataNascimento
, sts.Descricao Status
, tp.Descricao TipoPessoa
, endr.Bairro
, endr.Numero NrEndereco
, endr.Complemento
, endr.Logradouro
, endr.CEP
, endr.UF
, endr.Cidade
, endr.Latitude
, endr.Longitude
, igm.Anual IrradiacaoAnual
, uc.Numero NrUC
, uc.NumeroMedidor NrMedidorUC
, uc.TipoDeLigacao
, ce.Consumo
, ce.Grupo
, ce.ValorFatura
, ce.MesReferencia
, ce.AnoReferencia
from Cliente clnt
left join Status sts on clnt.Status = sts.Id
left join TipoPessoa tp on clnt.TipoPessoa = tp.Id
left join Endereco endr on clnt.Id = endr.Cliente
left join IrradiacaoGlobalMes igm on endr.IrradiacaoGlobalMes = igm.Id
left join UnidadeConsumidora uc on endr.Id = uc.Endereco
left join ConsumoEnergetico ce on uc.Id = ce.UnidadeConsumidora
where clnt.Id = $P{idCliente}
order by
clnt.RazaoSocial_Nome
, clnt.NomeFantasia_Apelido
, endr.CEP
, uc.Numero
, uc.NumeroMedidor
, ce.AnoReferencia
, ce.MesReferencia]]>
</queryString>
<field name="idCliente" class="java.lang.Integer"/>
<field name="RazaoSocial_Nome" class="java.lang.String"/>
<field name="NomeFantasia_Apelido" class="java.lang.String"/>
<field name="CNPJ_CPF" class="java.lang.String"/>
<field name="IE_RG" class="java.lang.String"/>
<field name="IM" class="java.lang.String"/>
<field name="DataNascimento" class="java.sql.Timestamp"/>
<field name="Status" class="java.lang.String"/>
<field name="TipoPessoa" class="java.lang.String"/>
<field name="Bairro" class="java.lang.String"/>
<field name="NrEndereco" class="java.lang.String"/>
<field name="Complemento" class="java.lang.String"/>
<field name="Logradouro" class="java.lang.String"/>
<field name="CEP" class="java.lang.String"/>
<field name="UF" class="java.lang.String"/>
<field name="Cidade" class="java.lang.String"/>
<field name="Latitude" class="java.lang.Double"/>
<field name="Longitude" class="java.lang.Double"/>
<field name="IrradiacaoAnual" class="java.lang.Double"/>
<field name="NrUC" class="java.lang.String"/>
<field name="NrMedidorUC" class="java.lang.String"/>
<field name="TipoDeLigacao" class="java.lang.String"/>
<field name="Consumo" class="java.lang.Double"/>
<field name="Grupo" class="java.lang.String"/>
<field name="ValorFatura" class="java.lang.Double"/>
<field name="MesReferencia" class="java.lang.Integer"/>
<field name="AnoReferencia" class="java.lang.Integer"/>
<variable name="ValorFatura_SUM" class="java.lang.Double" calculation="Sum">
<variableExpression><![CDATA[$F{ValorFatura}]]></variableExpression>
</variable>
<group name="Endereco">
<groupExpression><![CDATA[CONCATENATE($F{CEP},$F{UF},$F{Cidade},$F{Logradouro} )]]></groupExpression>
<groupHeader>
<band height="22">
<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
<staticText>
<reportElement x="2" y="2" width="28" height="14" uuid="e92e2e79-6e0f-461e-ac3b-fe0d482178d8">
<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
</reportElement>
<textElement textAlignment="Right"/>
<text><![CDATA[CEP:]]></text>
</staticText>
<textField>
<reportElement x="40" y="2" width="79" height="14" uuid="b7fea37c-f01a-4434-b1f6-ecf0394e1381">
<property name="com.jaspersoft.studio.unit.y" value="pixel"/>
</reportElement>
<textElement verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{CEP}]]></textFieldExpression>
</textField>
</band>
</groupHeader>
<groupFooter>
<band height="22"/>
</groupFooter>
</group>
<group name="UnidadeConsumidora">
<groupExpression><![CDATA[CONCATENATE($F{NrUC},$F{NrMedidorUC},$F{TipoDeLigacao})]]></groupExpression>
<groupHeader>
<band height="18">
<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
<textField>
<reportElement x="50" y="2" width="100" height="14" uuid="dced29a4-b86b-4c26-b45e-5cda06b09347">
<property name="com.jaspersoft.studio.unit.y" value="pixel"/>
</reportElement>
<textElement verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{NrUC}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="233" y="2" width="100" height="14" uuid="25a30da0-73f2-457c-aee1-8af3cf6f1d73">
<property name="com.jaspersoft.studio.unit.y" value="pixel"/>
</reportElement>
<textElement verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{TipoDeLigacao}]]></textFieldExpression>
</textField>
<staticText>
<reportElement x="2" y="2" width="48" height="14" uuid="0de8d9b4-0d9c-49f5-abd6-275b86f99047">
<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
</reportElement>
<textElement textAlignment="Right"/>
<text><![CDATA[Número:]]></text>
</staticText>
<staticText>
<reportElement x="153" y="2" width="77" height="14" uuid="07d6ee5f-1735-4fe6-9117-c107a4034234">
<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
</reportElement>
<text><![CDATA[Tipo de Ligação:]]></text>
</staticText>
<staticText>
<reportElement x="340" y="2" width="110" height="14" uuid="666e0e52-a332-4139-bcc9-60fdca5139e8">
<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
</reportElement>
<textElement textAlignment="Right"/>
<text><![CDATA[Unidade Consumidora:]]></text>
</staticText>
<textField>
<reportElement x="454" y="2" width="100" height="14" uuid="154de294-813e-4720-8cd6-07f221dba4f8">
<property name="com.jaspersoft.studio.unit.y" value="pixel"/>
<property name="com.jaspersoft.studio.unit.x" value="pixel"/>
</reportElement>
<textElement verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{NrMedidorUC}]]></textFieldExpression>
</textField>
</band>
</groupHeader>
<groupFooter>
<band height="50"/>
</groupFooter>
</group>
<background>
<band splitType="Stretch"/>
</background>
<title>
<band height="70" splitType="Stretch">
<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
<image>
<reportElement x="2" y="2" width="257" height="65" uuid="4114a6db-944f-4281-8f7f-951b76aea180">
<property name="com.jaspersoft.studio.unit.x" value="pixel"/>
<property name="com.jaspersoft.studio.unit.y" value="pixel"/>
</reportElement>
<imageExpression><![CDATA["C:/Users/KAI/Google Drive/Fanap/Irrradiacao.Solar/iRRadiacaoV31/src/image/fundo transparente.224x58.png"]]></imageExpression>
</image>
<staticText>
<reportElement x="260" y="2" width="293" height="64" uuid="e7e92d5f-b7b4-4976-9fa2-316277dca50f">
<property name="com.jaspersoft.studio.unit.y" value="pixel"/>
</reportElement>
<textElement textAlignment="Right">
<font size="16" isBold="false"/>
</textElement>
<text><![CDATA[Cadastro de Cliente]]></text>
</staticText>
</band>
</title>
<pageHeader>
<band height="115" splitType="Stretch"/>
</pageHeader>
<columnHeader>
<band height="61" splitType="Stretch"/>
</columnHeader>
<detail>
<band height="21" splitType="Stretch">
<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
<textField>
<reportElement x="480" y="2" width="20" height="14" uuid="5c7b83d6-b9cc-43aa-9013-acbb9bfb0a3e">
<property name="com.jaspersoft.studio.unit.y" value="pixel"/>
<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
</reportElement>
<textElement textAlignment="Right" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{MesReferencia}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="510" y="2" width="39" height="14" uuid="5854de92-a454-4a62-923a-470db61f22de"/>
<textElement verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{AnoReferencia}]]></textFieldExpression>
</textField>
<staticText>
<reportElement x="500" y="2" width="10" height="14" uuid="84deab49-6752-4218-b086-9dd2ede76ab3"/>
<textElement textAlignment="Center" verticalAlignment="Middle"/>
<text><![CDATA[/]]></text>
</staticText>
<textField>
<reportElement x="170" y="2" width="53" height="14" uuid="3c05bfb3-1dc9-431c-806f-e7181aaec551">
<property name="com.jaspersoft.studio.unit.y" value="pixel"/>
</reportElement>
<textElement verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{Consumo}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="265" y="2" width="49" height="14" uuid="cd3ca208-dede-4e29-afa3-6f9b26039c93">
<property name="com.jaspersoft.studio.unit.y" value="pixel"/>
</reportElement>
<textElement verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{Grupo}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="360" y="2" width="49" height="14" uuid="0a76797b-bdd4-4c9e-9f1e-9f68b8de8de1">
<property name="com.jaspersoft.studio.unit.y" value="pixel"/>
</reportElement>
<textElement textAlignment="Right" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{ValorFatura}]]></textFieldExpression>
</textField>
<staticText>
<reportElement x="120" y="2" width="50" height="14" uuid="c59e2516-791f-48f0-b5cb-0fd41b3612e5">
<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
</reportElement>
<textElement textAlignment="Right"/>
<text><![CDATA[Consumo:]]></text>
</staticText>
<staticText>
<reportElement x="230" y="2" width="32" height="14" uuid="638f33e5-2e35-4a1e-8a29-0a354e6ac55a">
<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
</reportElement>
<textElement textAlignment="Right"/>
<text><![CDATA[Grupo:]]></text>
</staticText>
<staticText>
<reportElement x="330" y="2" width="29" height="14" uuid="c7d2c259-a897-4341-af54-8f8b1a81c3e9">
<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
</reportElement>
<textElement textAlignment="Right"/>
<text><![CDATA[Valor:]]></text>
</staticText>
<staticText>
<reportElement x="440" y="2" width="39" height="14" uuid="40089e6c-a3c6-4c95-bb38-9f0f1ded0df4">
<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
</reportElement>
<textElement textAlignment="Right"/>
<text><![CDATA[Período:]]></text>
</staticText>
</band>
</detail>
<columnFooter>
<band height="45" splitType="Stretch"/>
</columnFooter>
<pageFooter>
<band height="20" splitType="Stretch">
<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
<frame>
<reportElement mode="Opaque" x="0" y="2" width="554" height="16" forecolor="#D0B48E" backcolor="#006699" uuid="b495732a-c3fc-4dcb-a584-58371d8d2c39">
<property name="com.jaspersoft.studio.unit.y" value="pixel"/>
<property name="com.jaspersoft.studio.unit.x" value="pixel"/>
<property name="com.jaspersoft.studio.unit.width" value="pixel"/>
</reportElement>
<textField evaluationTime="Report">
<reportElement x="510" y="0" width="40" height="16" forecolor="#FFFFFF" uuid="ada375ef-ed18-429f-9cf0-c6d27d242067"/>
<textElement verticalAlignment="Middle">
<font fontName="Arial" size="12" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA[" " + $V{PAGE_NUMBER}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="430" y="0" width="80" height="16" forecolor="#FFFFFF" uuid="9c76e268-6ae1-42f7-b0d3-8bd2e7cedc76"/>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font fontName="Arial" size="12" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA["Page "+$V{PAGE_NUMBER}+" of"]]></textFieldExpression>
</textField>
<textField pattern="EEEEE dd MMMMM yyyy">
<reportElement x="0" y="0" width="197" height="16" forecolor="#FFFFFF" uuid="704c9c11-d018-4395-8004-23ee6b72ed12"/>
<textElement verticalAlignment="Middle">
<font fontName="Arial" size="12" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
</textField>
</frame>
</band>
</pageFooter>
<summary>
<band height="42" splitType="Stretch"/>
</summary>
</jasperReport>