Commit 7f9234b921dfe799252b9115dcb2b695c2b78bdd
1 parent
442c89cc
Exists in
master
Codificação #2973: Relatório Parâmetro de Cálculo
git-svn-id: https://svn.bento.ifrs.edu.br/default/ASES/e-selo@9795 c2178572-b5ca-4887-91d2-9e3a90c7d55b
Showing
3 changed files
with
93 additions
and
1 deletions
Show diff stats
Desenvolvimento/Codificacao/e-Selo/WebContent/WEB-INF/jsp/parametroCalculo/lista.jsp
... | ... | @@ -13,7 +13,7 @@ |
13 | 13 | </c:when> |
14 | 14 | |
15 | 15 | <c:otherwise> |
16 | - <a href="<c:url value="/parametrosCalculo/form" />" class="btn btn-default pull-right"><span class="glyphicon glyphicon-plus"></span> Incluir Parametro de Avaliação</a> | |
16 | + <a href="<c:url value="/parametroCalculo/form" />" class="btn btn-default pull-right"><span class="glyphicon glyphicon-plus"></span> Incluir Parametro de Avaliação</a> | |
17 | 17 | </c:otherwise> |
18 | 18 | </c:choose> |
19 | 19 | |
... | ... | @@ -67,6 +67,7 @@ |
67 | 67 | <td>${parametroCalculo.usuario.nome}</td> |
68 | 68 | <td> |
69 | 69 | <div class="btn-group"> |
70 | + <a href="<c:url value="/parametrosCalculo/relatorio/${parametroCalculo.id}" />" class="btn btn-default btn-sm">Relatório</a> | |
70 | 71 | <a href="<c:url value="/parametrosCalculo/atualizar/${parametroCalculo.id}" />" class="btn btn-default btn-sm">Consultar</a> |
71 | 72 | <c:if test="${parametroCalculo.tsFim == null}"> |
72 | 73 | <a href="<c:url value="/parametrosCalculo/delete/${parametroCalculo.id}" />" class="btn btn-default btn-sm btn-confirm" data-msg="Deseja realmente excluir o Parametro de Avaliação selecionado?">Excluir</a> | ... | ... |
Desenvolvimento/Codificacao/e-Selo/WebContent/WEB-INF/jsp/parametroCalculo/relatorio.jsp
0 → 100644
... | ... | @@ -0,0 +1,81 @@ |
1 | +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> | |
2 | +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> | |
3 | +<%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles"%> | |
4 | +<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> | |
5 | + | |
6 | +<tiles:insertTemplate template="/WEB-INF/jsp/template/template.jsp"> | |
7 | + <tiles:putAttribute name="body"> | |
8 | + <a href="<c:url value="/parametrosCalculo"/>"><strong><span class="glyphicon glyphicon-check"></span> Parametros de Cálculo</strong></a> | |
9 | + | |
10 | + <hr /> | |
11 | + | |
12 | + <div class="row"> | |
13 | + <div class="col-xs-12"> | |
14 | + <div class="text-center"> | |
15 | + <i class="fa fa-search-plus pull-left icon"></i> | |
16 | + <h2>${parametroCalculo.descricao}</h2> | |
17 | + </div> | |
18 | + | |
19 | + <hr /> | |
20 | + </div> | |
21 | + </div> | |
22 | + <div class="row"> | |
23 | + <div class="col-md-12"> | |
24 | + <div class="panel panel-default"> | |
25 | + <div class="panel-heading"> | |
26 | + <h3 class="text-center"><strong>RECOMENDAÇÕES E CRITÉRIOS</strong></h3> | |
27 | + </div> | |
28 | + | |
29 | + <div class="panel-body"> | |
30 | + <c:forEach items="${recomendacaoList}" var="recomendacao"> | |
31 | + <fieldset> | |
32 | + <legend>Recomendação</legend> | |
33 | + | |
34 | + <dl class="dl-horizontal"> | |
35 | + <dt>Número</dt> | |
36 | + <dd>${recomendacao.numeroRecomendacao}</dd> | |
37 | + <dt>Descrição</dt> | |
38 | + <dd>${recomendacao.descricao}</dd> | |
39 | + <dt>Peso</dt> | |
40 | + <dd>${recomendacao.peso}</dd> | |
41 | + </dl> | |
42 | + | |
43 | + <c:choose> | |
44 | + <c:when test="${empty recomendacao.criterios}"> | |
45 | + <p>Nenhum critério cadastrado.</p> | |
46 | + </c:when> | |
47 | + <c:when test="${not empty recomendacao.criterios}"> | |
48 | + <div class="table-responsive"> | |
49 | + <table class="table table-condensed table-hover"> | |
50 | + <thead> | |
51 | + <tr> | |
52 | + <th>Critério</th> | |
53 | + <th>Peso</th> | |
54 | + </tr> | |
55 | + </thead> | |
56 | + <tbody> | |
57 | + <c:forEach items="${recomendacao.criterios}" var="criterio"> | |
58 | + <tbody> | |
59 | + <tr> | |
60 | + <td>${criterio.descricao}</td> | |
61 | + <td>${criterio.peso}</td> | |
62 | + </tr> | |
63 | + </tbody> | |
64 | + </c:forEach> | |
65 | + </tbody> | |
66 | + </table> | |
67 | + </div> | |
68 | + </c:when> | |
69 | + </c:choose> | |
70 | + | |
71 | + <hr /> | |
72 | + <br /><br /> | |
73 | + </fieldset> | |
74 | + </c:forEach> | |
75 | + </div> | |
76 | + </div> | |
77 | + </div> | |
78 | + </div> | |
79 | + | |
80 | + </tiles:putAttribute> | |
81 | +</tiles:insertTemplate> | |
0 | 82 | \ No newline at end of file | ... | ... |
Desenvolvimento/Codificacao/e-Selo/src/main/java/br/com/eselo/controller/ParametroCalculoController.java
... | ... | @@ -253,5 +253,15 @@ public class ParametroCalculoController { |
253 | 253 | |
254 | 254 | |
255 | 255 | } |
256 | + | |
257 | + @Get("/parametrosCalculo/relatorio/{id}") | |
258 | + @Restrito(descricao = "PARAMETRO_CALCULO_RELATORIO") | |
259 | + public ParametroCalculo relatorio(Long id) { | |
260 | + ParametroCalculo parametroCalculo = this.dao.load(id); | |
261 | + result.include("usuarioList", dao.getAllUsuarios()); | |
262 | + result.include("recomendacaoList", new RecomendacaoDAO(dao.getSession()).listAllAtivas(parametroCalculo)); | |
263 | + | |
264 | + return parametroCalculo; | |
265 | + } | |
256 | 266 | |
257 | 267 | } | ... | ... |