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,8 +118,10 @@ public class AvaliacaoController { | ||
118 | this.criterioProperties = new CriterioProperties(application); | 118 | this.criterioProperties = new CriterioProperties(application); |
119 | this.utilitiesProperties = new UtilitiesProperties(application); | 119 | this.utilitiesProperties = new UtilitiesProperties(application); |
120 | this.chaveIdentificaAvaliacao = | 120 | this.chaveIdentificaAvaliacao = |
121 | - DateUtil.dataHoraMinutoAtual().replace("/", "").replace(":", "").replace(" ", ""); | 121 | + DateUtil.dataHoraMinutoAtual().replace("/", "").replace(":", "").replace(" ", "").replace(".", ""); |
122 | result.include("chaveIdentificaAvaliacao", chaveIdentificaAvaliacao); | 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,9 +506,7 @@ public class AvaliacaoController { | ||
504 | (List<SummarizedOccurrence>) VRaptorRequestHolder.currentRequest().getServletContext() | 506 | (List<SummarizedOccurrence>) VRaptorRequestHolder.currentRequest().getServletContext() |
505 | .getAttribute(novaChave); | 507 | .getAttribute(novaChave); |
506 | 508 | ||
507 | - novaChave = "urlAvaliada" + chaveAvaliacao; | ||
508 | - String urlAvaliada = | ||
509 | - (String) VRaptorRequestHolder.currentRequest().getServletContext().getAttribute(novaChave); | 509 | + |
510 | 510 | ||
511 | novaChave = "contentLenght" + chaveAvaliacao; | 511 | novaChave = "contentLenght" + chaveAvaliacao; |
512 | String contentLenght = | 512 | String contentLenght = |
@@ -535,6 +535,9 @@ public class AvaliacaoController { | @@ -535,6 +535,9 @@ public class AvaliacaoController { | ||
535 | map.put("pPercentualAses", "0"); | 535 | map.put("pPercentualAses", "0"); |
536 | } | 536 | } |
537 | 537 | ||
538 | + novaChave = "urlAvaliada" + chaveAvaliacao; | ||
539 | + String urlAvaliada = (String) VRaptorRequestHolder.currentRequest().getServletContext().getAttribute(novaChave); | ||
540 | + | ||
538 | map.put("pPagina", urlAvaliada != "" ? urlAvaliada : "Código Fonte ou Arquivo"); | 541 | map.put("pPagina", urlAvaliada != "" ? urlAvaliada : "Código Fonte ou Arquivo"); |
539 | 542 | ||
540 | if (urlAvaliada != "") { | 543 | if (urlAvaliada != "") { |
src/main/webapp/WEB-INF/templates-relatorios/relatorio-avaliacao.jrxml
@@ -191,57 +191,58 @@ | @@ -191,57 +191,58 @@ | ||
191 | <text><![CDATA[Página Avaliada]]></text> | 191 | <text><![CDATA[Página Avaliada]]></text> |
192 | </staticText> | 192 | </staticText> |
193 | <textField> | 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 | <textElement> | 195 | <textElement> |
196 | - <font size="15"/> | 196 | + <font size="13"/> |
197 | </textElement> | 197 | </textElement> |
198 | <textFieldExpression><![CDATA[$P{pPagina}]]></textFieldExpression> | 198 | <textFieldExpression><![CDATA[$P{pPagina}]]></textFieldExpression> |
199 | </textField> | 199 | </textField> |
200 | <staticText> | 200 | <staticText> |
201 | <reportElement x="1" y="182" width="122" height="20" uuid="3074f848-51c0-46d8-af4d-fd9299d1a62c"/> | 201 | <reportElement x="1" y="182" width="122" height="20" uuid="3074f848-51c0-46d8-af4d-fd9299d1a62c"/> |
202 | <textElement> | 202 | <textElement> |
203 | - <font size="15" isBold="true"/> | 203 | + <font size="13" isBold="true"/> |
204 | </textElement> | 204 | </textElement> |
205 | <text><![CDATA[Página:]]></text> | 205 | <text><![CDATA[Página:]]></text> |
206 | </staticText> | 206 | </staticText> |
207 | <staticText> | 207 | <staticText> |
208 | <reportElement x="1" y="202" width="122" height="20" uuid="11782da5-1a64-4e6e-a7e4-9f9fd6611681"/> | 208 | <reportElement x="1" y="202" width="122" height="20" uuid="11782da5-1a64-4e6e-a7e4-9f9fd6611681"/> |
209 | <textElement> | 209 | <textElement> |
210 | - <font size="15" isBold="true"/> | 210 | + <font size="13" isBold="true"/> |
211 | </textElement> | 211 | </textElement> |
212 | <text><![CDATA[Título:]]></text> | 212 | <text><![CDATA[Título:]]></text> |
213 | </staticText> | 213 | </staticText> |
214 | <textField> | 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 | <textElement> | 216 | <textElement> |
217 | - <font size="15"/> | 217 | + <font size="13"/> |
218 | </textElement> | 218 | </textElement> |
219 | <textFieldExpression><![CDATA[$P{pTitulo}]]></textFieldExpression> | 219 | <textFieldExpression><![CDATA[$P{pTitulo}]]></textFieldExpression> |
220 | </textField> | 220 | </textField> |
221 | <staticText> | 221 | <staticText> |
222 | <reportElement x="1" y="222" width="122" height="20" uuid="13e0fafd-2c61-4926-9084-6aca97af9450"/> | 222 | <reportElement x="1" y="222" width="122" height="20" uuid="13e0fafd-2c61-4926-9084-6aca97af9450"/> |
223 | <textElement> | 223 | <textElement> |
224 | - <font size="15" isBold="true"/> | 224 | + <font size="13" isBold="true"/> |
225 | </textElement> | 225 | </textElement> |
226 | <text><![CDATA[Tamanho:]]></text> | 226 | <text><![CDATA[Tamanho:]]></text> |
227 | </staticText> | 227 | </staticText> |
228 | <textField> | 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 | <textElement> | 230 | <textElement> |
231 | - <font size="15"/> | 231 | + <font size="13"/> |
232 | </textElement> | 232 | </textElement> |
233 | <textFieldExpression><![CDATA[$P{pTamanho}]]></textFieldExpression> | 233 | <textFieldExpression><![CDATA[$P{pTamanho}]]></textFieldExpression> |
234 | </textField> | 234 | </textField> |
235 | <staticText> | 235 | <staticText> |
236 | <reportElement x="1" y="242" width="122" height="20" uuid="c3ef6f0a-8daa-494c-b8de-cb7591fd39e6"/> | 236 | <reportElement x="1" y="242" width="122" height="20" uuid="c3ef6f0a-8daa-494c-b8de-cb7591fd39e6"/> |
237 | <textElement> | 237 | <textElement> |
238 | - <font size="15" isBold="true"/> | 238 | + <font size="13" isBold="true"/> |
239 | </textElement> | 239 | </textElement> |
240 | + <text><![CDATA[Data/ Hora:]]></text> | ||
240 | </staticText> | 241 | </staticText> |
241 | <textField> | 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 | <textElement> | 244 | <textElement> |
244 | - <font size="15"/> | 245 | + <font size="13"/> |
245 | </textElement> | 246 | </textElement> |
246 | <textFieldExpression><![CDATA[$P{pDataHoraAvaliacao}]]></textFieldExpression> | 247 | <textFieldExpression><![CDATA[$P{pDataHoraAvaliacao}]]></textFieldExpression> |
247 | </textField> | 248 | </textField> |