Rev 1586 | Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1585 | jmachado | 1 | <%@ page import="jomm.dao.impl.AbstractDao" %> |
2 | <%@ page import="org.hibernate.Query" %> |
||
3 | <%@ page import="pt.estgp.estgweb.domain.QuestionarioReportFileGroupAno" %> |
||
4 | <%@ page import="java.util.List" %> |
||
5 | <%@ page import="pt.estgp.estgweb.web.utils.DatesUtils" %> |
||
6 | <%@ page import="jomm.utils.StringsUtils" %> |
||
7 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> |
||
8 | <%@ taglib uri="/WEB-INF/tlds/struts-html.tld" prefix="html" %> |
||
9 | <%@ taglib uri="/WEB-INF/tlds/struts-nested.tld" prefix="nested" %> |
||
10 | <%@ taglib uri="/WEB-INF/tlds/struts-logic.tld" prefix="logic" %> |
||
11 | <%@ taglib uri="/WEB-INF/tlds/struts-bean.tld" prefix="bean" %> |
||
12 | <%@ taglib uri="/WEB-INF/tlds/struts-tiles.tld" prefix="tiles" %> |
||
13 | <%@ taglib uri="/WEB-INF/tlds/baco.tld" prefix="baco" %> |
||
14 | <%@ taglib uri="/WEB-INF/tlds/jomm.tld" prefix="jomm" %> |
||
15 | <h1>Consulta de Relatórios de Respostas aos Inquéritos Pedagógicos</h1> |
||
16 | |||
17 | |||
18 | |||
19 | <% |
||
20 | AbstractDao.getCurrentSession().beginTransaction(); |
||
21 | |||
22 | Query q = AbstractDao.getCurrentSession().createQuery("" + |
||
23 | "select distinct importYear from " + QuestionarioReportFileGroupAno.class + " " + |
||
24 | ""); |
||
25 | |||
26 | List<String> importYears = q.list(); |
||
27 | |||
28 | for(String importYear: importYears) |
||
29 | { |
||
30 | %> |
||
31 | <div class="panel panel-default"> |
||
32 | <h2>Ano <%=pt.estgp.estgweb.utils.DatesUtils.getImportYearFormatted(importYear)%></h2> |
||
33 | <div class="panel-body"> |
||
34 | |||
35 | </div> |
||
36 | </div> |
||
37 | |||
38 | <% |
||
39 | } |
||
40 | |||
41 | AbstractDao.getCurrentSession().getTransaction().commit(); |
||
42 | %> |
||
43 | |||
44 | </ul> |