Commit c6f4febc1ccc164922cb1606ee0ce8ece97b5cbc
1 parent
ee11ce94
Exists in
master
Redimencionamento do tamanho da fonte da "página" no relatório.
Showing
2 changed files
with
20 additions
and
16 deletions
Show diff stats
src/main/java/br/com/ases/controller/AvaliacaoController.java
... | ... | @@ -118,8 +118,10 @@ public class AvaliacaoController { |
118 | 118 | this.criterioProperties = new CriterioProperties(application); |
119 | 119 | this.utilitiesProperties = new UtilitiesProperties(application); |
120 | 120 | this.chaveIdentificaAvaliacao = |
121 | - DateUtil.dataHoraMinutoAtual().replace("/", "").replace(":", "").replace(" ", ""); | |
121 | + DateUtil.dataHoraMinutoAtual().replace("/", "").replace(":", "").replace(" ", "").replace(".", ""); | |
122 | 122 | result.include("chaveIdentificaAvaliacao", chaveIdentificaAvaliacao); |
123 | + | |
124 | + //VRaptorRequestHolder.currentRequest().getServletContext().setAttribute("chaveIdentificaAvaliacao", chaveIdentificaAvaliacao); | |
123 | 125 | |
124 | 126 | } |
125 | 127 | |
... | ... | @@ -504,9 +506,7 @@ public class AvaliacaoController { |
504 | 506 | (List<SummarizedOccurrence>) VRaptorRequestHolder.currentRequest().getServletContext() |
505 | 507 | .getAttribute(novaChave); |
506 | 508 | |
507 | - novaChave = "urlAvaliada" + chaveAvaliacao; | |
508 | - String urlAvaliada = | |
509 | - (String) VRaptorRequestHolder.currentRequest().getServletContext().getAttribute(novaChave); | |
509 | + | |
510 | 510 | |
511 | 511 | novaChave = "contentLenght" + chaveAvaliacao; |
512 | 512 | String contentLenght = |
... | ... | @@ -535,6 +535,9 @@ public class AvaliacaoController { |
535 | 535 | map.put("pPercentualAses", "0"); |
536 | 536 | } |
537 | 537 | |
538 | + novaChave = "urlAvaliada" + chaveAvaliacao; | |
539 | + String urlAvaliada = (String) VRaptorRequestHolder.currentRequest().getServletContext().getAttribute(novaChave); | |
540 | + | |
538 | 541 | map.put("pPagina", urlAvaliada != "" ? urlAvaliada : "Código Fonte ou Arquivo"); |
539 | 542 | |
540 | 543 | if (urlAvaliada != "") { | ... | ... |
src/main/webapp/WEB-INF/templates-relatorios/relatorio-avaliacao.jrxml
... | ... | @@ -191,57 +191,58 @@ |
191 | 191 | <text><![CDATA[Página Avaliada]]></text> |
192 | 192 | </staticText> |
193 | 193 | <textField> |
194 | - <reportElement x="123" y="182" width="432" height="20" uuid="c14e0918-43d2-4d71-bed9-c32949d0af5f"/> | |
194 | + <reportElement x="90" y="182" width="1024" height="20" uuid="c14e0918-43d2-4d71-bed9-c32949d0af5f"/> | |
195 | 195 | <textElement> |
196 | - <font size="15"/> | |
196 | + <font size="13"/> | |
197 | 197 | </textElement> |
198 | 198 | <textFieldExpression><![CDATA[$P{pPagina}]]></textFieldExpression> |
199 | 199 | </textField> |
200 | 200 | <staticText> |
201 | 201 | <reportElement x="1" y="182" width="122" height="20" uuid="3074f848-51c0-46d8-af4d-fd9299d1a62c"/> |
202 | 202 | <textElement> |
203 | - <font size="15" isBold="true"/> | |
203 | + <font size="13" isBold="true"/> | |
204 | 204 | </textElement> |
205 | 205 | <text><![CDATA[Página:]]></text> |
206 | 206 | </staticText> |
207 | 207 | <staticText> |
208 | 208 | <reportElement x="1" y="202" width="122" height="20" uuid="11782da5-1a64-4e6e-a7e4-9f9fd6611681"/> |
209 | 209 | <textElement> |
210 | - <font size="15" isBold="true"/> | |
210 | + <font size="13" isBold="true"/> | |
211 | 211 | </textElement> |
212 | 212 | <text><![CDATA[Título:]]></text> |
213 | 213 | </staticText> |
214 | 214 | <textField> |
215 | - <reportElement x="123" y="202" width="432" height="20" uuid="ee935205-bcf5-4980-a48c-eac3915fdf4c"/> | |
215 | + <reportElement x="90" y="202" width="432" height="20" uuid="ee935205-bcf5-4980-a48c-eac3915fdf4c"/> | |
216 | 216 | <textElement> |
217 | - <font size="15"/> | |
217 | + <font size="13"/> | |
218 | 218 | </textElement> |
219 | 219 | <textFieldExpression><![CDATA[$P{pTitulo}]]></textFieldExpression> |
220 | 220 | </textField> |
221 | 221 | <staticText> |
222 | 222 | <reportElement x="1" y="222" width="122" height="20" uuid="13e0fafd-2c61-4926-9084-6aca97af9450"/> |
223 | 223 | <textElement> |
224 | - <font size="15" isBold="true"/> | |
224 | + <font size="13" isBold="true"/> | |
225 | 225 | </textElement> |
226 | 226 | <text><![CDATA[Tamanho:]]></text> |
227 | 227 | </staticText> |
228 | 228 | <textField> |
229 | - <reportElement x="123" y="222" width="433" height="20" uuid="1a736f75-5fc3-44b6-b2c2-05bcba62c6fe"/> | |
229 | + <reportElement x="90" y="222" width="433" height="20" uuid="1a736f75-5fc3-44b6-b2c2-05bcba62c6fe"/> | |
230 | 230 | <textElement> |
231 | - <font size="15"/> | |
231 | + <font size="13"/> | |
232 | 232 | </textElement> |
233 | 233 | <textFieldExpression><![CDATA[$P{pTamanho}]]></textFieldExpression> |
234 | 234 | </textField> |
235 | 235 | <staticText> |
236 | 236 | <reportElement x="1" y="242" width="122" height="20" uuid="c3ef6f0a-8daa-494c-b8de-cb7591fd39e6"/> |
237 | 237 | <textElement> |
238 | - <font size="15" isBold="true"/> | |
238 | + <font size="13" isBold="true"/> | |
239 | 239 | </textElement> |
240 | + <text><![CDATA[Data/ Hora:]]></text> | |
240 | 241 | </staticText> |
241 | 242 | <textField> |
242 | - <reportElement x="123" y="242" width="433" height="20" uuid="e02bad1d-cc4c-4cfc-a093-41b6a2433dd1"/> | |
243 | + <reportElement x="90" y="242" width="433" height="20" uuid="e02bad1d-cc4c-4cfc-a093-41b6a2433dd1"/> | |
243 | 244 | <textElement> |
244 | - <font size="15"/> | |
245 | + <font size="13"/> | |
245 | 246 | </textElement> |
246 | 247 | <textFieldExpression><![CDATA[$P{pDataHoraAvaliacao}]]></textFieldExpression> |
247 | 248 | </textField> | ... | ... |