Subversion Repositories Integrator Subversion

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 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_acompanhamento_avaliacao" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="96b0c032-951b-4918-9418-1135f2e13659">
3
	<property name="ireport.zoom" value="3.138428376721004"/>
4
	<property name="ireport.x" value="0"/>
5
	<property name="ireport.y" value="414"/>
6
	<parameter name="pSequencialGrupoAvaliacao" class="java.lang.Long">
7
		<defaultValueExpression><![CDATA[]]></defaultValueExpression>
8
	</parameter>
9
	<parameter name="pCodigoUnidadeExercicio" class="java.lang.Long">
10
		<defaultValueExpression><![CDATA[]]></defaultValueExpression>
11
	</parameter>
12
	<parameter name="pAnoCronograma" class="java.lang.Long"/>
13
	<parameter name="IMAGEM_DIR" class="java.lang.String">
14
		<defaultValueExpression><![CDATA["c://"]]></defaultValueExpression>
15
	</parameter>
16
	<parameter name="SUBREPORT_DIR" class="java.lang.String" isForPrompting="false">
17
		<defaultValueExpression><![CDATA[""]]></defaultValueExpression>
18
	</parameter>
19
	<parameter name="pMatriculaServidor" class="java.lang.Long">
20
		<defaultValueExpression><![CDATA[]]></defaultValueExpression>
21
	</parameter>
22
	<parameter name="pNomeUsuario" class="java.lang.String"/>
23
	<parameter name="pCpfUsuario" class="java.lang.String"/>
24
	<queryString>
25
		<![CDATA[SELECT
26
  ad.dsc_unidade_cadastro unidade,
27
  ad.dsc_grupo_avaliacao grupoAvaliacao,
28
(
29
  select p.nom_pessoa from sc_scg.vw_pessoa_fisica p where p.seq_pessoa = (select sdf.seq_pessoa_servidor from sc_srv.vw_servidor_dadofuncional sdf where sdf.seq_servidor_dadofuncional = ad.seq_servidor_dadofunc_avaliador)
30
  ) nomeAvaliador,
31
  ad.num_cpf numeroCpf,
32
  ad.nom_pessoa nomeServidor,
33
  (ad.num_matricula_servidor || '-' || ad.num_digito_matricula) matricula_servidor,
34
  (EXISTS(
35
	SELECT * FROM sc_rhd.rhd_avaliacao_desempenho ade join sc_rhd.rhd_questao_avaliadesemp qd ON ade.seq_questao_avaliacao = qd.seq_questao_avaliadesemp
36
		WHERE ade.num_ano = ad.num_ano AND ade.seq_servidor_dadofuncional = ad.seq_servidor_dadofuncional and qd.tip_avaliacao_desempenho = 'U'
37
	)
38
   ) ind_autoavaliacao_realizada,
39
  (EXISTS(
40
	SELECT * FROM sc_rhd.rhd_avaliacao_desempenho ade join sc_rhd.rhd_questao_avaliadesemp qd ON ade.seq_questao_avaliacao = qd.seq_questao_avaliadesemp
41
		WHERE ade.num_ano = ad.num_ano AND ade.seq_servidor_dadofuncional = ad.seq_servidor_dadofuncional and qd.tip_avaliacao_desempenho = 'A'
42
	)
43
  ) ind_avaliacao_realizada,
44
  ad.num_nota_desempenho notaDesempenho,
45
  ad.num_nota_assiduidade notaAssiduidade,
46
  ad.num_nota_qualificacao notaQualificacao,
47
  ad.num_nota_pontuacao_extra pontuacaoExtra,
48
  ad.num_nota_final notaFinal
49
  FROM sc_rhd.vw_avaliacao_desempenho ad
50
where ad.num_ano = $P{pAnoCronograma}
51
and (ad.seq_grupo_avaliacao = $P{pSequencialGrupoAvaliacao} OR $P{pSequencialGrupoAvaliacao} IS NULL)
52
and (ad.cod_unidade_cadastro = $P{pCodigoUnidadeExercicio} OR $P{pCodigoUnidadeExercicio} IS NULL)
53
and ((ad.num_matricula_servidor) = $P{pMatriculaServidor} OR  $P{pMatriculaServidor} IS NULL)
54
ORDER BY ad.dsc_unidade_cadastro, ad.dsc_grupo_avaliacao, ad.nom_pessoa]]>
55
	</queryString>
56
	<field name="unidade" class="java.lang.String"/>
57
	<field name="grupoavaliacao" class="java.lang.String"/>
58
	<field name="nomeavaliador" class="java.lang.String"/>
59
	<field name="numerocpf" class="java.lang.String"/>
60
	<field name="nomeservidor" class="java.lang.String"/>
61
	<field name="matricula_servidor" class="java.lang.String"/>
62
	<field name="ind_autoavaliacao_realizada" class="java.lang.Boolean"/>
63
	<field name="ind_avaliacao_realizada" class="java.lang.Boolean"/>
64
	<field name="notadesempenho" class="java.math.BigDecimal"/>
65
	<field name="notaassiduidade" class="java.math.BigDecimal"/>
66
	<field name="notaqualificacao" class="java.math.BigDecimal"/>
67
	<field name="pontuacaoextra" class="java.math.BigDecimal"/>
68
	<field name="notafinal" class="java.math.BigDecimal"/>
69
	<group name="servidores_sem_grupo_avaliacao">
70
		<groupExpression><![CDATA[$P{pAnoCronograma}]]></groupExpression>
71
		<groupFooter>
72
			<band height="54">
73
				<subreport>
74
					<reportElement uuid="f09708ad-41eb-489f-8e24-9315f7e9f99b" x="0" y="32" width="555" height="22"/>
75
					<subreportParameter name="pMatriculaServidor">
76
						<subreportParameterExpression><![CDATA[$P{pMatriculaServidor}]]></subreportParameterExpression>
77
					</subreportParameter>
78
					<subreportParameter name="pAnoCronograma">
79
						<subreportParameterExpression><![CDATA[$P{pAnoCronograma}]]></subreportParameterExpression>
80
					</subreportParameter>
81
                    <subreportParameter name="pCodigoUnidadeExercicio">
82
						<subreportParameterExpression><![CDATA[$P{pCodigoUnidadeExercicio}]]></subreportParameterExpression>
83
					</subreportParameter>
84
					<connectionExpression><![CDATA[$P{REPORT_CONNECTION}]]></connectionExpression>
85
					<subreportExpression><![CDATA[$P{SUBREPORT_DIR} + "relatorio_acompanhamento_avaliacao_subreport_servidores_sem_grupo_avaliacao.jasper"]]></subreportExpression>
86
				</subreport>
87
			</band>
88
		</groupFooter>
89
	</group>
90
	<group name="unidade_exercicio">
91
		<groupExpression><![CDATA[$F{unidade}]]></groupExpression>
92
		<groupHeader>
93
			<band height="42">
94
				<textField isStretchWithOverflow="true">
95
					<reportElement uuid="1b7ae11b-d3df-4108-8e29-221b7e53a9d4" x="0" y="21" width="555" height="20"/>
96
					<textElement verticalAlignment="Bottom">
97
						<font fontName="Arial" size="12" isBold="true" isUnderline="true" pdfFontName="Helvetica-Bold"/>
98
					</textElement>
99
					<textFieldExpression><![CDATA["UNIDADE: " + $F{unidade}]]></textFieldExpression>
100
				</textField>
101
			</band>
102
		</groupHeader>
103
	</group>
104
	<group name="grupo_avaliacao">
105
		<groupExpression><![CDATA[$F{grupoavaliacao}]]></groupExpression>
106
		<groupHeader>
107
			<band height="61">
108
				<rectangle>
109
					<reportElement uuid="ebb138a6-6dac-4aee-bb4b-a43843d53ba2" x="0" y="46" width="555" height="14" forecolor="#BABABA" backcolor="#BABABA"/>
110
					<graphicElement>
111
						<pen lineWidth="1.0"/>
112
					</graphicElement>
113
				</rectangle>
114
				<staticText>
115
					<reportElement uuid="6389c3a0-d78e-451f-b563-47d7e6136a21" x="435" y="47" width="36" height="14"/>
116
					<textElement textAlignment="Center" verticalAlignment="Middle">
117
						<font fontName="Arial" size="8" isBold="false"/>
118
					</textElement>
119
					<text><![CDATA[Qualif.]]></text>
120
				</staticText>
121
				<staticText>
122
					<reportElement uuid="6389c3a0-d78e-451f-b563-47d7e6136a21" x="471" y="47" width="39" height="14"/>
123
					<textElement textAlignment="Center" verticalAlignment="Middle">
124
						<font fontName="Arial" size="8" isBold="false"/>
125
					</textElement>
126
					<text><![CDATA[Pont. Ext.]]></text>
127
				</staticText>
128
				<staticText>
129
					<reportElement uuid="6389c3a0-d78e-451f-b563-47d7e6136a21" x="510" y="47" width="45" height="14"/>
130
					<textElement textAlignment="Center" verticalAlignment="Middle">
131
						<font fontName="Arial" size="8" isBold="false"/>
132
					</textElement>
133
					<text><![CDATA[Nota. Fin.]]></text>
134
				</staticText>
135
				<staticText>
136
					<reportElement uuid="b5777072-9dd1-422b-96c8-08baa2b919a8" x="165" y="47" width="55" height="14"/>
137
					<textElement textAlignment="Center" verticalAlignment="Middle">
138
						<font fontName="Arial" size="8" isBold="false"/>
139
					</textElement>
140
					<text><![CDATA[Matrícula]]></text>
141
				</staticText>
142
				<staticText>
143
					<reportElement uuid="429fefa5-0682-4c77-8746-0ff489e5b80b" x="1" y="47" width="164" height="14"/>
144
					<textElement verticalAlignment="Middle">
145
						<font fontName="Arial" size="8" isBold="false"/>
146
					</textElement>
147
					<text><![CDATA[Nome]]></text>
148
				</staticText>
149
				<staticText>
150
					<reportElement uuid="99fb2043-08a8-4412-a02a-786a275cb654" x="220" y="47" width="74" height="14"/>
151
					<textElement textAlignment="Center" verticalAlignment="Middle">
152
						<font fontName="Arial" size="8" isBold="false"/>
153
					</textElement>
154
					<text><![CDATA[CPF]]></text>
155
				</staticText>
156
				<textField>
157
					<reportElement uuid="f0d83fb9-02c2-42c5-9a2c-d618a8de2580" mode="Opaque" x="0" y="24" width="555" height="16" forecolor="#000000" backcolor="#999999"/>
158
					<textElement verticalAlignment="Middle">
159
						<font fontName="Arial" size="8" isBold="true" isUnderline="false" pdfFontName="Helvetica-Bold"/>
160
					</textElement>
161
					<textFieldExpression><![CDATA[" AVALIADOR(A): " + $F{nomeavaliador}]]></textFieldExpression>
162
				</textField>
163
				<staticText>
164
					<reportElement uuid="a3e49187-7580-445e-a660-2f20a1809c57" x="331" y="47" width="30" height="14"/>
165
					<textElement textAlignment="Center" verticalAlignment="Middle">
166
						<font fontName="Arial" size="8" isBold="false"/>
167
					</textElement>
168
					<text><![CDATA[Aval.]]></text>
169
				</staticText>
170
				<textField>
171
					<reportElement uuid="f0d83fb9-02c2-42c5-9a2c-d618a8de2580" mode="Opaque" x="0" y="8" width="555" height="16" forecolor="#000000" backcolor="#999999"/>
172
					<textElement verticalAlignment="Middle">
173
						<font fontName="Arial" isBold="true" isUnderline="false" pdfFontName="Helvetica-Bold"/>
174
					</textElement>
175
					<textFieldExpression><![CDATA[" GRUPO: " + $F{grupoavaliacao}]]></textFieldExpression>
176
				</textField>
177
				<staticText>
178
					<reportElement uuid="6389c3a0-d78e-451f-b563-47d7e6136a21" x="399" y="47" width="36" height="14"/>
179
					<textElement textAlignment="Center" verticalAlignment="Middle">
180
						<font fontName="Arial" size="8" isBold="false"/>
181
					</textElement>
182
					<text><![CDATA[Assid.]]></text>
183
				</staticText>
184
				<staticText>
185
					<reportElement uuid="a3e49187-7580-445e-a660-2f20a1809c57" x="294" y="47" width="37" height="14"/>
186
					<textElement textAlignment="Center" verticalAlignment="Middle">
187
						<font fontName="Arial" size="8" isBold="false"/>
188
					</textElement>
189
					<text><![CDATA[Autoav.]]></text>
190
				</staticText>
191
				<staticText>
192
					<reportElement uuid="6389c3a0-d78e-451f-b563-47d7e6136a21" x="361" y="47" width="38" height="14"/>
193
					<textElement textAlignment="Center" verticalAlignment="Middle">
194
						<font fontName="Arial" size="8" isBold="false"/>
195
					</textElement>
196
					<text><![CDATA[Desemp.]]></text>
197
				</staticText>
198
			</band>
199
		</groupHeader>
200
	</group>
201
	<background>
202
		<band splitType="Stretch"/>
203
	</background>
204
	<title>
205
		<band height="145" splitType="Stretch">
206
			<textField isBlankWhenNull="false">
207
				<reportElement uuid="7e420030-8524-414a-9258-b8ff749fc009" x="0" y="116" width="555" height="15"/>
208
				<textElement textAlignment="Center">
209
					<font fontName="Arial" isBold="true" pdfFontName="Helvetica-Bold" isPdfEmbedded="false"/>
210
				</textElement>
211
				<textFieldExpression><![CDATA["CRONOGRAMA: " + $P{pAnoCronograma}]]></textFieldExpression>
212
			</textField>
213
			<image hAlign="Right">
214
				<reportElement uuid="9cc0d6bd-ba27-4a57-903c-0182a11a1f53" x="259" y="1" width="48" height="59"/>
215
				<imageExpression><![CDATA[$P{IMAGEM_DIR} + "brasao.jpg"]]></imageExpression>
216
			</image>
217
			<staticText>
218
				<reportElement uuid="36f361c7-c2c5-4f4b-9918-4f375cff39d2" x="0" y="95" width="555" height="16" isPrintWhenDetailOverflows="true"/>
219
				<textElement textAlignment="Center" verticalAlignment="Top">
220
					<font fontName="Arial" size="10" isBold="true" pdfFontName="Helvetica-Bold" isPdfEmbedded="false"/>
221
				</textElement>
222
				<text><![CDATA[RELATÓRIO DE ACOMPANHAMENTO DA AVALIAÇÃO]]></text>
223
			</staticText>
224
			<staticText>
225
				<reportElement uuid="36f361c7-c2c5-4f4b-9918-4f375cff39d2" x="0" y="64" width="555" height="26"/>
226
				<textElement textAlignment="Center">
227
					<font fontName="Arial" size="10" isBold="true" pdfFontName="Helvetica-Bold" isPdfEmbedded="false"/>
228
				</textElement>
229
				<text><![CDATA[ESTADO DE ALAGOAS
230
SECRETARIA DE ESTADO DA SAÚDE DE ALAGOAS]]></text>
231
			</staticText>
232
		</band>
233
	</title>
234
	<pageHeader>
235
		<band splitType="Stretch"/>
236
	</pageHeader>
237
	<detail>
238
		<band height="14" splitType="Stretch">
239
			<rectangle>
240
				<reportElement uuid="929d9137-2979-443b-a76d-d93458dbea93" stretchType="RelativeToBandHeight" x="0" y="0" width="555" height="14" isPrintWhenDetailOverflows="true" forecolor="#DCDCDC" backcolor="#DCDCDC">
241
					<printWhenExpression><![CDATA[new Boolean(($V{COLUMN_COUNT}.intValue() % 2) == 0)]]></printWhenExpression>
242
				</reportElement>
243
				<graphicElement>
244
					<pen lineWidth="0.0"/>
245
				</graphicElement>
246
			</rectangle>
247
			<textField isStretchWithOverflow="true">
248
				<reportElement uuid="6061d8f0-769a-4fd2-9713-b0908f153b4c" x="165" y="0" width="55" height="14"/>
249
				<textElement textAlignment="Center" verticalAlignment="Middle">
250
					<font fontName="Arial" size="8"/>
251
				</textElement>
252
				<textFieldExpression><![CDATA[$F{matricula_servidor}]]></textFieldExpression>
253
			</textField>
254
			<textField isStretchWithOverflow="true">
255
				<reportElement uuid="a92ba739-a606-4b85-8c12-d540a5ba9a08" x="0" y="0" width="165" height="14"/>
256
				<textElement verticalAlignment="Middle">
257
					<font fontName="Arial" size="8"/>
258
				</textElement>
259
				<textFieldExpression><![CDATA[$F{nomeservidor}]]></textFieldExpression>
260
			</textField>
261
			<textField isStretchWithOverflow="true">
262
				<reportElement uuid="04d5aaaa-8a49-4b1a-bc70-0a51baa44eba" x="220" y="0" width="74" height="14"/>
263
				<textElement textAlignment="Center" verticalAlignment="Middle">
264
					<font fontName="Arial" size="8"/>
265
				</textElement>
266
				<textFieldExpression><![CDATA[($F{numerocpf} == null)? null : (($F{numerocpf}.trim().length() == 11)? $F{numerocpf}.trim().replaceAll("(\\d{3})(\\d{3})(\\d{3})(\\d{2})", "$1.$2.$3-$4") : $F{numerocpf})]]></textFieldExpression>
267
			</textField>
268
			<textField isStretchWithOverflow="true">
269
				<reportElement uuid="46a8fda5-9660-47a6-aa8b-45881fcedc41" x="294" y="0" width="37" height="14"/>
270
				<textElement textAlignment="Center" verticalAlignment="Middle">
271
					<font fontName="Arial" size="8"/>
272
				</textElement>
273
				<textFieldExpression><![CDATA[$F{ind_autoavaliacao_realizada}? "SIM" : "NÃO"]]></textFieldExpression>
274
			</textField>
275
			<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
276
				<reportElement uuid="c93aa7da-14b7-4d3c-814d-bcdb33b00027" x="361" y="0" width="38" height="14"/>
277
				<textElement textAlignment="Center" verticalAlignment="Middle">
278
					<font fontName="Arial" size="8"/>
279
				</textElement>
280
				<textFieldExpression><![CDATA[$F{notadesempenho}]]></textFieldExpression>
281
			</textField>
282
			<textField isStretchWithOverflow="true">
283
				<reportElement uuid="46a8fda5-9660-47a6-aa8b-45881fcedc41" x="331" y="0" width="30" height="14"/>
284
				<textElement textAlignment="Center" verticalAlignment="Middle">
285
					<font fontName="Arial" size="8"/>
286
				</textElement>
287
				<textFieldExpression><![CDATA[$F{ind_avaliacao_realizada}? "SIM" : "NÃO"]]></textFieldExpression>
288
			</textField>
289
			<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
290
				<reportElement uuid="c93aa7da-14b7-4d3c-814d-bcdb33b00027" x="399" y="0" width="36" height="14"/>
291
				<textElement textAlignment="Center" verticalAlignment="Middle">
292
					<font fontName="Arial" size="8"/>
293
				</textElement>
294
				<textFieldExpression><![CDATA[$F{notaassiduidade}]]></textFieldExpression>
295
			</textField>
296
			<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
297
				<reportElement uuid="c93aa7da-14b7-4d3c-814d-bcdb33b00027" x="435" y="0" width="36" height="14"/>
298
				<textElement textAlignment="Center" verticalAlignment="Middle">
299
					<font fontName="Arial" size="8"/>
300
				</textElement>
301
				<textFieldExpression><![CDATA[$F{notaqualificacao}]]></textFieldExpression>
302
			</textField>
303
			<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
304
				<reportElement uuid="c93aa7da-14b7-4d3c-814d-bcdb33b00027" x="471" y="0" width="39" height="14"/>
305
				<textElement textAlignment="Center" verticalAlignment="Middle">
306
					<font fontName="Arial" size="8"/>
307
				</textElement>
308
				<textFieldExpression><![CDATA[$F{pontuacaoextra}]]></textFieldExpression>
309
			</textField>
310
			<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
311
				<reportElement uuid="c93aa7da-14b7-4d3c-814d-bcdb33b00027" x="510" y="0" width="45" height="14"/>
312
				<textElement textAlignment="Center" verticalAlignment="Middle">
313
					<font fontName="Arial" size="8"/>
314
				</textElement>
315
				<textFieldExpression><![CDATA[$F{notafinal}]]></textFieldExpression>
316
			</textField>
317
		</band>
318
	</detail>
319
	<pageFooter>
320
		<band height="21">
321
			<textField isBlankWhenNull="true">
322
				<reportElement uuid="0ad83100-9e7e-42de-97b6-51dc07b7dd68" x="0" y="6" width="374" height="15"/>
323
				<textElement verticalAlignment="Middle">
324
					<font fontName="Arial" size="6" isBold="false"/>
325
				</textElement>
326
				<textFieldExpression><![CDATA["Gerado por " + $P{pNomeUsuario} + ", CPF: " + $P{pCpfUsuario} + new java.text.SimpleDateFormat("', em ' dd 'de' MMMMM 'de' yyyy ' às ' HH:mm", new Locale("pt", "BR")).format(new java.util.Date()).toUpperCase()]]></textFieldExpression>
327
			</textField>
328
			<textField evaluationTime="Report" isBlankWhenNull="false">
329
				<reportElement uuid="506b9991-ff6d-43b5-ab78-2832586c3dda" key="textField" x="502" y="6" width="52" height="15"/>
330
				<textElement verticalAlignment="Middle">
331
					<font fontName="Arial" size="6" isBold="false"/>
332
				</textElement>
333
				<textFieldExpression><![CDATA["" + $V{PAGE_NUMBER} + ""]]></textFieldExpression>
334
			</textField>
335
			<textField isBlankWhenNull="false">
336
				<reportElement uuid="e5f06c72-11c0-479b-b234-4dcaf2bc0440" key="textField" x="428" y="6" width="73" height="15"/>
337
				<textElement textAlignment="Right" verticalAlignment="Middle">
338
					<font fontName="Arial" size="6" isBold="false"/>
339
				</textElement>
340
				<textFieldExpression><![CDATA["PÁGINA " + $V{PAGE_NUMBER} + " DE "]]></textFieldExpression>
341
			</textField>
342
		</band>
343
	</pageFooter>
344
	<summary>
345
		<band splitType="Stretch"/>
346
	</summary>
347
</jasperReport>