Rev 1701 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1701 | Rev 1817 | ||
---|---|---|---|
1 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> |
1 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> |
2 | <%@ taglib uri="/WEB-INF/tlds/struts-html.tld" prefix="html" %> |
2 | <%@ taglib uri="/WEB-INF/tlds/struts-html.tld" prefix="html" %> |
3 | <%@ taglib uri="/WEB-INF/tlds/struts-nested.tld" prefix="nested" %> |
3 | <%@ taglib uri="/WEB-INF/tlds/struts-nested.tld" prefix="nested" %> |
4 | <%@ taglib uri="/WEB-INF/tlds/struts-logic.tld" prefix="logic" %> |
4 | <%@ taglib uri="/WEB-INF/tlds/struts-logic.tld" prefix="logic" %> |
5 | <%@ taglib uri="/WEB-INF/tlds/struts-bean.tld" prefix="bean" %> |
5 | <%@ taglib uri="/WEB-INF/tlds/struts-bean.tld" prefix="bean" %> |
6 | <%@ taglib uri="/WEB-INF/tlds/struts-tiles.tld" prefix="tiles" %> |
6 | <%@ taglib uri="/WEB-INF/tlds/struts-tiles.tld" prefix="tiles" %> |
7 | <%@ taglib uri="/WEB-INF/tlds/baco.tld" prefix="baco" %> |
7 | <%@ taglib uri="/WEB-INF/tlds/baco.tld" prefix="baco" %> |
8 | <%@ taglib uri="/WEB-INF/tlds/jomm.tld" prefix="jomm" %> |
8 | <%@ taglib uri="/WEB-INF/tlds/jomm.tld" prefix="jomm" %> |
9 | <%@ page import="jomm.dao.impl.AbstractDao" %> |
9 | <%@ page import="jomm.dao.impl.AbstractDao" %> |
10 | <%@ page import="jomm.dao.utils.HibernateUtils" %> |
10 | <%@ page import="jomm.dao.utils.HibernateUtils" %> |
11 | <%@ page import="jomm.utils.MessageResources" %> |
11 | <%@ page import="jomm.utils.MessageResources" %> |
12 | <%@ page import="pt.estgp.estgweb.domain.CourseUnit" %> |
12 | <%@ page import="pt.estgp.estgweb.domain.CourseUnit" %> |
13 | <%@ page import="pt.estgp.estgweb.domain.Teacher" %> |
13 | <%@ page import="pt.estgp.estgweb.domain.Teacher" %> |
14 | <%@ page import="pt.estgp.estgweb.domain.TeacherImpl" %> |
14 | <%@ page import="pt.estgp.estgweb.domain.TeacherImpl" %> |
15 | <%@ page import="pt.estgp.estgweb.domain.dao.DaoFactory" %> |
15 | <%@ page import="pt.estgp.estgweb.domain.dao.DaoFactory" %> |
16 | <%@ page import="pt.estgp.estgweb.utils.DatesUtils" %> |
16 | <%@ page import="pt.estgp.estgweb.utils.DatesUtils" %> |
17 | <%@ page import="java.util.List" %> |
17 | <%@ page import="java.util.List" %> |
18 | <jsp:useBean id="UserSession" type="pt.estgp.estgweb.domain.UserSessionImpl" scope="request"/> |
18 | <jsp:useBean id="UserSession" type="pt.estgp.estgweb.domain.UserSessionImpl" scope="request"/> |
19 | 19 | ||
20 | <!-- PARA BOOTSTRAP NOVO PORTAL--> |
20 | <!-- PARA BOOTSTRAP NOVO PORTAL--> |
21 | <%--<link type="text/css" rel="stylesheet" href="<%=request.getContextPath()%>/css/offcanvas.css"/>--%> |
21 | <%--<link type="text/css" rel="stylesheet" href="<%=request.getContextPath()%>/css/offcanvas.css"/>--%> |
22 | 22 | ||
23 | 23 | ||
24 | <logic:notMatch value="TeacherImpl" name="UserSession" property="user.class.name"> |
24 | <logic:notMatch value="TeacherImpl" name="UserSession" property="user.class.name"> |
25 | <div class="alert alert-warning"> |
25 | <div class="alert alert-warning"> |
26 | <bean:message key="profile.bad.profile.teacher.iregular.user.class"/> |
26 | <bean:message key="profile.bad.profile.teacher.iregular.user.class"/> |
27 | </div> |
27 | </div> |
28 | </logic:notMatch> |
28 | </logic:notMatch> |
29 | 29 | ||
30 | <jsp:include page="todosAfazer.jsp"/> |
30 | <jsp:include page="todosAfazer.jsp"/> |
31 | 31 | ||
32 | <div class="row"> |
32 | <div class="row"> |
33 | <div class="col-md-6 col-sm-12 col-xs-12" style="padding-right: 6px"> |
33 | <div class="col-md-6 col-sm-12 col-xs-12" style="padding-right: 6px"> |
34 | 34 | ||
35 | <baco:isModuleOn module="courseunits"> |
35 | <baco:isModuleOn module="courseunits"> |
36 | <div class="panel panel-primary"> |
36 | <div class="panel panel-primary"> |
37 | <div class="panel-heading"><bean:message key="intranet.home.curricular"/></div> |
37 | <div class="panel-heading"><bean:message key="intranet.home.curricular"/></div> |
38 | <div class="panel-body"> |
38 | <div class="panel-body"> |
39 | <!--<p><bean:message key="intranet.home.curricular"/></p>--> |
39 | <!--<p><bean:message key="intranet.home.curricular"/></p>--> |
40 | <!--<ul> |
40 | <!--<ul> |
41 | <li>--> |
41 | <li>--> |
42 | <div class="list-group"> |
42 | <div class="list-group"> |
43 | <div class="list-group-item"> |
43 | <div class="list-group-item"> |
44 | <html:link action="/user/startLoadCoursesProgramsFromHome"><bean:message key="courseunit.indexes"/></html:link> |
44 | <html:link action="/user/startLoadCoursesProgramsFromHome"><bean:message key="courseunit.indexes"/></html:link> |
45 | </div> |
45 | </div> |
46 | <div class="list-group-item"> |
46 | <div class="list-group-item"> |
47 | <html:link action="/user/courseComissions"><bean:message key="course.comissions"/></html:link> |
47 | <html:link action="/user/courseComissions"><bean:message key="course.comissions"/></html:link> |
48 | </div> |
48 | </div> |
49 | <div class="list-group-item"> |
49 | <div class="list-group-item"> |
50 | <a href="<%=request.getContextPath()%>/dir/utilsIntranet/comAvalDesemp">Avaliação de Desempenho Docente</a> |
50 | <a href="<%=request.getContextPath()%>/dir/utilsIntranet/comAvalDesemp">Avaliação de Desempenho Docente</a> |
51 | </div> |
51 | </div> |
52 | </div> |
52 | </div> |
53 | <!--</li> |
53 | <!--</li> |
54 | </ul>--> |
54 | </ul>--> |
55 | </div> |
55 | </div> |
56 | </div> |
56 | </div> |
57 | 57 | ||
58 | 58 | ||
59 | <% |
59 | <% |
60 | java.util.List<String> years = new java.util.ArrayList<String>(); |
60 | java.util.List<String> years = new java.util.ArrayList<String>(); |
61 | String nowImportYear = DaoFactory.getConfigurationDaoImpl().getInterfaceImportYearCreateTransaction(); |
61 | String nowImportYear = DaoFactory.getConfigurationDaoImpl().getInterfaceImportYearCreateTransaction(); |
62 | years.add(DaoFactory.getConfigurationDaoImpl().getInterfaceImportYearCreateTransaction()); |
62 | years.add(DaoFactory.getConfigurationDaoImpl().getInterfaceImportYearCreateTransaction()); |
63 | years.add(DatesUtils.getPreviousImportYear(nowImportYear)); |
63 | years.add(DatesUtils.getPreviousImportYear(nowImportYear)); |
64 | 64 | ||
65 | java.util.Collections.sort(years, new java.util.Comparator<String>() |
65 | java.util.Collections.sort(years, new java.util.Comparator<String>() |
66 | { |
66 | { |
67 | public int compare(String o1, String o2) { |
67 | public int compare(String o1, String o2) { |
68 | return o2.compareTo(o1); |
68 | return o2.compareTo(o1); |
69 | } |
69 | } |
70 | }); |
70 | }); |
71 | 71 | ||
72 | 72 | ||
73 | 73 | ||
74 | for(String year: years) |
74 | for(String year: years) |
75 | { |
75 | { |
76 | 76 | ||
77 | String yearFormatted = pt.estgp.estgweb.utils.DatesUtils.getImportYearFormatted(year); |
77 | String yearFormatted = pt.estgp.estgweb.utils.DatesUtils.getImportYearFormatted(year); |
78 | 78 | ||
79 | 79 | ||
80 | %> |
80 | %> |
81 | 81 | ||
82 | 82 | ||
83 | <div class="panel panel-primary"> |
83 | <div class="panel panel-primary"> |
84 | <div class="panel-heading"><bean:message key="intranet.course.units"/> - <%=yearFormatted%></div> |
84 | <div class="panel-heading"><bean:message key="intranet.course.units"/> - <%=yearFormatted%></div> |
85 | <div class="panel-body"> |
85 | <div class="panel-body"> |
86 | 86 | ||
87 | 87 | ||
88 | 88 | ||
89 | <% |
89 | <% |
90 | String[] semestres = new String[]{"A","S1","S2","T1","T2","T3","T4"}; |
90 | String[] semestres = new String[]{"A","S1","S2","T1","T2","T3","T4"}; |
91 | String[] semestreLabel = new String[]{ |
91 | String[] semestreLabel = new String[]{ |
92 | MessageResources.getMessage(request,"courseunit.anuais"), |
92 | MessageResources.getMessage(request,"courseunit.anuais"), |
93 | MessageResources.getMessage(request,"courseunit.semestre") + "1", |
93 | MessageResources.getMessage(request,"courseunit.semestre") + "1", |
94 | MessageResources.getMessage(request,"courseunit.semestre") + "2", |
94 | MessageResources.getMessage(request,"courseunit.semestre") + "2", |
95 | MessageResources.getMessage(request,"courseunit.trimestre") + "1", |
95 | MessageResources.getMessage(request,"courseunit.trimestre") + "1", |
96 | MessageResources.getMessage(request,"courseunit.trimestre") + "2", |
96 | MessageResources.getMessage(request,"courseunit.trimestre") + "2", |
97 | MessageResources.getMessage(request,"courseunit.trimestre") + "3", |
97 | MessageResources.getMessage(request,"courseunit.trimestre") + "3", |
98 | MessageResources.getMessage(request,"courseunit.trimestre") + "4"}; |
98 | MessageResources.getMessage(request,"courseunit.trimestre") + "4"}; |
99 | 99 | ||
100 | for(int i =0;i< semestres.length;i++) |
100 | for(int i =0;i< semestres.length;i++) |
101 | { |
101 | { |
102 | request.setAttribute("LABEL",semestreLabel[i]); |
102 | request.setAttribute("LABEL",semestreLabel[i]); |
103 | %> |
103 | %> |
104 | 104 | ||
105 | <jsp:useBean id="LABEL" scope="request" type="java.lang.String"/> |
105 | <jsp:useBean id="LABEL" scope="request" type="java.lang.String"/> |
106 | <% |
106 | <% |
107 | TeacherImpl u = ((pt.estgp.estgweb.domain.TeacherImpl)UserSession.getUser()); |
107 | TeacherImpl u = ((pt.estgp.estgweb.domain.TeacherImpl)UserSession.getUser()); |
108 | List<pt.estgp.estgweb.domain.CourseUnit> cus= |
108 | List<pt.estgp.estgweb.domain.CourseUnit> cus= |
109 | (List<CourseUnit>) |
109 | (List<CourseUnit>) |
110 | u.getClass().getMethod("getTeachedUnitsView" + semestres[i],String.class) |
110 | u.getClass().getMethod("getTeachedUnitsView" + semestres[i],String.class) |
111 | .invoke(u,year); |
111 | .invoke(u,year); |
112 | request.setAttribute("units",cus); |
112 | request.setAttribute("units",cus); |
113 | if(cus == null || cus.size() == 0) |
113 | if(cus == null || cus.size() == 0) |
114 | {} |
114 | {} |
115 | else if(cus.size() > 0) |
115 | else if(cus.size() > 0) |
116 | { |
116 | { |
117 | %> |
117 | %> |
118 | <jsp:useBean id="units" scope="request" type="java.util.Collection"/> |
118 | <jsp:useBean id="units" scope="request" type="java.util.Collection"/> |
119 | <div class="list-group"> |
119 | <div class="list-group"> |
120 | <div class="list-group-item list-group-item-heading"><bean:write name="LABEL"/></div> |
120 | <div class="list-group-item list-group-item-heading"><bean:write name="LABEL"/></div> |
121 | 121 | ||
122 | <logic:iterate id="unit" name="units" type="pt.estgp.estgweb.domain.CourseUnit"> |
122 | <logic:iterate id="unit" name="units" type="pt.estgp.estgweb.domain.CourseUnit"> |
123 | <div class="list-group-item"> |
123 | <div class="list-group-item"> |
124 | <div class="row"> |
124 | <div class="row"> |
125 | <div class="col-sm-10"><html:link action="/user/startLoadCourseUnitFromHome?id=${unit.id}">${unit.name} (${unit.courseName} (${unit.courseCode}) ${unit.cdTurma}</html:link></div> |
125 | <div class="col-sm-10"><html:link action="/user/startLoadCourseUnitFromHome?id=${unit.id}">${unit.name} (${unit.courseName} (${unit.courseCode}) ${unit.cdTurma}</html:link></div> |
126 | <div class="col-sm-2"><html:link action="/user/startLoadCourseUnitRootFromHome?courseUnitView.id=${unit.id}"> <span style="padding:5px" class="glyphicon glyphicon-folder-open"></span> </html:link></div> |
126 | <div class="col-sm-2"><html:link action="/user/startLoadCourseUnitRootFromHome?courseUnitView.id=${unit.id}"> <span style="padding:5px" class="glyphicon glyphicon-folder-open"></span> </html:link></div> |
127 | </div> |
127 | </div> |
128 | </div> |
128 | </div> |
129 | </logic:iterate> |
129 | </logic:iterate> |
130 | </div> |
130 | </div> |
131 | <% |
131 | <% |
132 | } |
132 | } |
133 | } |
133 | } |
134 | 134 | ||
135 | %> |
135 | %> |
136 | 136 | ||
137 | </div> |
137 | </div> |
138 | </div> |
138 | </div> |
139 | <% |
139 | <% |
140 | } |
140 | } |
141 | %> |
141 | %> |
142 | 142 | ||
143 | </baco:isModuleOn> |
143 | </baco:isModuleOn> |
144 | <%-- |
144 | <%-- |
145 | <baco:isModuleOn module="todos"> |
145 | <baco:isModuleOn module="todos"> |
146 | <jsp:include page="/user/home/todos.jsp"/> |
146 | <jsp:include page="/user/home/todos.jsp"/> |
147 | </baco:isModuleOn>--%> |
147 | </baco:isModuleOn>--%> |
148 | <baco:isModuleOn module="courseunits"> |
148 | <baco:isModuleOn module="courseunits"> |
149 | <jsp:include page="/user/home/courseUnitsAnnouncements.jsp"/> |
149 | <jsp:include page="/user/home/courseUnitsAnnouncements.jsp"/> |
150 | </baco:isModuleOn> |
150 | </baco:isModuleOn> |
151 | 151 | ||
152 | 152 | ||
153 | </div> |
153 | </div> |
154 | <div class="col-md-6 col-sm-12 col-xs-12" style="padding-left: 6px"> |
154 | <div class="col-md-6 col-sm-12 col-xs-12" style="padding-left: 6px"> |
155 | 155 | ||
156 | <% |
156 | <% |
157 | AbstractDao.getCurrentSession().beginTransaction(); |
157 | AbstractDao.getCurrentSession().beginTransaction(); |
158 | TeacherImpl tLoggedIn = (TeacherImpl) DaoFactory.getTeacherDaoImpl().get(UserSession.getUser().getId()); |
158 | TeacherImpl tLoggedIn = (TeacherImpl) DaoFactory.getTeacherDaoImpl().get(UserSession.getUser().getId()); |
159 | boolean hasCommisionsOrCoordinations = tLoggedIn.hasCoordinationsOrBelongToCourseCommissions(); |
159 | boolean hasCommisionsOrCoordinations = tLoggedIn.hasCoordinationsOrBelongToCourseCommissions(); |
160 | AbstractDao.getCurrentSession().getTransaction().commit(); |
160 | AbstractDao.getCurrentSession().getTransaction().commit(); |
161 | if( hasCommisionsOrCoordinations ) |
161 | if( hasCommisionsOrCoordinations ) |
162 | { |
162 | { |
163 | %> |
163 | %> |
164 | <div class="panel panel-primary"> |
164 | <div class="panel panel-primary"> |
165 | <div class="panel-heading">As minhas Comissões de Curso</div> |
165 | <div class="panel-heading">As minhas Comissões de Curso</div> |
166 | <div class="panel-body"> |
166 | <div class="panel-body"> |
167 | 167 | ||
168 | <div class="list-group"> |
168 | <div class="list-group"> |
169 | <div class="list-group-item"> |
169 | <div class="list-group-item"> |
170 | <html:link action="/user/startSubmitMessageCourseComission"> |
170 | <html:link action="/user/startSubmitMessageCourseComission"> |
171 | Enviar email aos alunos |
171 | Enviar email aos alunos |
172 | </html:link> |
172 | </html:link> |
173 | </div> |
173 | </div> |
174 | <div class="list-group-item"> |
174 | <div class="list-group-item"> |
175 | <html:link action="/user/startLoadCourseCourseUnitsStatistics?importYear=${UserSession.nowConfiguration.interfaceImportYear}">Consultar estatisticas das Unidades Curriculares (${UserSession.nowConfiguration.interfaceImportYear})</html:link> |
175 | <html:link action="/user/startLoadCourseCourseUnitsStatistics?importYear=${UserSession.nowConfiguration.interfaceImportYear}">Consultar estatisticas das Unidades Curriculares (${UserSession.nowConfiguration.interfaceImportYear})</html:link> |
176 | </div> |
176 | </div> |
177 | <div class="list-group-item"> |
177 | <div class="list-group-item"> |
178 | <html:link action="/user/startLoadCourseCourseUnitsStatistics?importYear=${UserSession.nowConfiguration.previousInterfaceImportYear}">Consultar estatisticas das Unidades Curriculares (${UserSession.nowConfiguration.previousInterfaceImportYear})</html:link> |
178 | <html:link action="/user/startLoadCourseCourseUnitsStatistics?importYear=${UserSession.nowConfiguration.previousInterfaceImportYear}">Consultar estatisticas das Unidades Curriculares (${UserSession.nowConfiguration.previousInterfaceImportYear})</html:link> |
179 | </div> |
179 | </div> |
180 | <div class="list-group-item"> |
180 | <div class="list-group-item"> |
181 | <html:link action="/user/listStudentsCourseComission"> |
181 | <html:link action="/user/listStudentsCourseComission"> |
182 | Consultar Alunos |
182 | Consultar Alunos |
183 | </html:link> |
183 | </html:link> |
184 | </div> |
184 | </div> |
185 | <!--<div class="list-group-item"> |
185 | <!--<div class="list-group-item"> |
186 | <html:link action="/user/startSubmitMessageCourseComission"> |
186 | <html:link action="/user/startSubmitMessageCourseComission"> |
187 | Consultar Docentes |
187 | Consultar Docentes |
188 | </html:link> |
188 | </html:link> |
189 | </div>--> |
189 | </div>--> |
190 | <div class="list-group-item"> |
190 | <div class="list-group-item"> |
191 | <html:link action="/user/startLoadCoursesProgramsFromHome?importYear=${UserSession.nowConfiguration.interfaceImportYear}&forUser=courseCommission">Atalho para as validações (${UserSession.nowConfiguration.interfaceImportYear})</html:link> |
191 | <html:link action="/user/startLoadCoursesProgramsFromHome?importYear=${UserSession.nowConfiguration.interfaceImportYear}&forUser=courseCommission">Atalho para as validações (${UserSession.nowConfiguration.interfaceImportYear})</html:link> |
192 | </div> |
192 | </div> |
193 | <div class="list-group-item"> |
193 | <div class="list-group-item"> |
194 | <html:link action="/user/startLoadCoursesProgramsFromHome?importYear=${UserSession.nowConfiguration.previousInterfaceImportYear}&forUser=courseCommission">Atalho para as validações (${UserSession.nowConfiguration.previousInterfaceImportYear})</html:link> |
194 | <html:link action="/user/startLoadCoursesProgramsFromHome?importYear=${UserSession.nowConfiguration.previousInterfaceImportYear}&forUser=courseCommission">Atalho para as validações (${UserSession.nowConfiguration.previousInterfaceImportYear})</html:link> |
195 | </div> |
195 | </div> |
- | 196 | ||
- | 197 | <div class="list-group-item"> |
|
- | 198 | <html:link action="/user/courseReportTools?importYear=${UserSession.nowConfiguration.previousInterfaceImportYear}">Utilitários do Relatório de Curso (${UserSession.nowConfiguration.previousInterfaceImportYear})</html:link> |
|
- | 199 | </div> |
|
196 | </div> |
200 | </div> |
197 | <!--</li> |
201 | <!--</li> |
198 | </ul>--> |
202 | </ul>--> |
199 | </div> |
203 | </div> |
200 | </div> |
204 | </div> |
201 | <jsp:include page="courseComission.jsp"/> |
205 | <jsp:include page="courseComission.jsp"/> |
202 | <% |
206 | <% |
203 | } |
207 | } |
204 | 208 | ||
205 | %> |
209 | %> |
206 | 210 | ||
207 | 211 | ||
208 | <% |
212 | <% |
209 | try{ |
213 | try{ |
210 | HibernateUtils.getCurrentSession().beginTransaction(); |
214 | HibernateUtils.getCurrentSession().beginTransaction(); |
211 | String activeYear = DaoFactory.getConfigurationDaoImpl().getCourseUnitEvaluationActiveYear(); |
215 | String activeYear = DaoFactory.getConfigurationDaoImpl().getCourseUnitEvaluationActiveYear(); |
212 | List<String> activeDegrees = DaoFactory.getConfigurationDaoImpl().getCourseUnitEvaluationActiveDegrees(); |
216 | List<String> activeDegrees = DaoFactory.getConfigurationDaoImpl().getCourseUnitEvaluationActiveDegrees(); |
213 | 217 | ||
214 | 218 | ||
215 | long time = System.currentTimeMillis(); |
219 | long time = System.currentTimeMillis(); |
216 | List<CourseUnit> evaluations = DaoFactory.getCourseUnitDaoImpl().loadTeacherUnitsMissingEvaluation(UserSession); |
220 | List<CourseUnit> evaluations = DaoFactory.getCourseUnitDaoImpl().loadTeacherUnitsMissingEvaluation(UserSession); |
217 | //System.out.println("TIME10: " + (System.currentTimeMillis()-time)); |
221 | //System.out.println("TIME10: " + (System.currentTimeMillis()-time)); |
218 | time = System.currentTimeMillis(); |
222 | time = System.currentTimeMillis(); |
219 | List<CourseUnit> programs = DaoFactory.getCourseUnitDaoImpl().loadMissingPrograms(UserSession.getUser().getId()); |
223 | List<CourseUnit> programs = DaoFactory.getCourseUnitDaoImpl().loadMissingPrograms(UserSession.getUser().getId()); |
220 | //System.out.println("TIME11: " + (System.currentTimeMillis()-time)); |
224 | //System.out.println("TIME11: " + (System.currentTimeMillis()-time)); |
221 | time = System.currentTimeMillis(); |
225 | time = System.currentTimeMillis(); |
222 | if(programs != null && programs.size() > 0 || evaluations!= null && evaluations.size() > 0) |
226 | if(programs != null && programs.size() > 0 || evaluations!= null && evaluations.size() > 0) |
223 | { |
227 | { |
224 | %> |
228 | %> |
225 | 229 | ||
226 | 230 | ||
227 | 231 | ||
228 | 232 | ||
229 | <div class="panel panel-info"> |
233 | <div class="panel panel-info"> |
230 | <div class="panel-heading"><span class="glyphicon glyphicon-education"> </span> Tarefas Docentes</div> |
234 | <div class="panel-heading"><span class="glyphicon glyphicon-education"> </span> Tarefas Docentes</div> |
231 | <div class="panel-body"> |
235 | <div class="panel-body"> |
232 | <% |
236 | <% |
233 | if(programs != null && programs.size() > 0) |
237 | if(programs != null && programs.size() > 0) |
234 | { |
238 | { |
235 | %> |
239 | %> |
236 | 240 | ||
237 | <div class="list-group"> |
241 | <div class="list-group"> |
238 | <div class="list-group-item list-group-item-heading"><span class="icon icon-file-pdf"></span> <label class="label label-info" style="font-size:1em">${UserSession.nowConfiguration.interfaceImportYear}</label> Fichas Curriculares por preencher </div> |
242 | <div class="list-group-item list-group-item-heading"><span class="icon icon-file-pdf"></span> <label class="label label-info" style="font-size:1em">${UserSession.nowConfiguration.interfaceImportYear}</label> Fichas Curriculares por preencher </div> |
239 | <% |
243 | <% |
240 | for(CourseUnit cu: programs) |
244 | for(CourseUnit cu: programs) |
241 | { |
245 | { |
242 | %> |
246 | %> |
243 | <div class="list-group-item"><a href="<%=request.getContextPath()%>/user/startLoadCourseUnitProgram.do?courseUnitId=<%=cu.getId()%>"><%=cu.getName()%>/<%=cu.getCode()%> (<%=cu.getCourseName() + "/" +cu.getCourseCode()%>)</a></div> |
247 | <div class="list-group-item"><a href="<%=request.getContextPath()%>/user/startLoadCourseUnitProgram.do?courseUnitId=<%=cu.getId()%>"><%=cu.getName()%>/<%=cu.getCode()%> (<%=cu.getCourseName() + "/" +cu.getCourseCode()%>)</a></div> |
244 | <% |
248 | <% |
245 | } |
249 | } |
246 | %> |
250 | %> |
247 | </div> |
251 | </div> |
248 | 252 | ||
249 | <% |
253 | <% |
250 | } |
254 | } |
251 | if(evaluations != null && evaluations.size() > 0) |
255 | if(evaluations != null && evaluations.size() > 0) |
252 | { |
256 | { |
253 | %> |
257 | %> |
254 | <div class="list-group"> |
258 | <div class="list-group"> |
255 | <div class="list-group-item list-group-item-warning"><span class="icon icon-clipboard"></span> <label class="label label-warning" style="font-size:1em"><%=activeYear%></label> Relatórios de avaliação por preencher/entregar de <%=activeYear%> |
259 | <div class="list-group-item list-group-item-warning"><span class="icon icon-clipboard"></span> <label class="label label-warning" style="font-size:1em"><%=activeYear%></label> Relatórios de avaliação por preencher/entregar de <%=activeYear%> |
256 | <%--<% |
260 | <%--<% |
257 | if(activeDegrees != null) |
261 | if(activeDegrees != null) |
258 | { |
262 | { |
259 | %> |
263 | %> |
260 | (graus em processo de validação: |
264 | (graus em processo de validação: |
261 | <% |
265 | <% |
262 | String sep = ""; |
266 | String sep = ""; |
263 | for(String activeDegree: activeDegrees) |
267 | for(String activeDegree: activeDegrees) |
264 | { |
268 | { |
265 | %> |
269 | %> |
266 | <%=sep + MessageResources.getInstance(request).getMessage("course."+activeDegree)%> |
270 | <%=sep + MessageResources.getInstance(request).getMessage("course."+activeDegree)%> |
267 | <% |
271 | <% |
268 | sep = ", "; |
272 | sep = ", "; |
269 | } |
273 | } |
270 | %> |
274 | %> |
271 | ) |
275 | ) |
272 | <% |
276 | <% |
273 | } |
277 | } |
274 | %> |
278 | %> |
275 | --%> |
279 | --%> |
276 | </div> |
280 | </div> |
277 | 281 | ||
278 | <% |
282 | <% |
279 | for(CourseUnit cu: evaluations) |
283 | for(CourseUnit cu: evaluations) |
280 | { |
284 | { |
281 | %> |
285 | %> |
282 | <div class="list-group-item"><a href="<%=request.getContextPath()%>/user/startLoadCourseUnitFromHome.do?id=<%=cu.getId()%>"><%=cu.getName()%>/<%=cu.getCode()%> (<%=cu.getCourseName() + "/" +cu.getCourseCode()%>)</a></div> |
286 | <div class="list-group-item"><a href="<%=request.getContextPath()%>/user/startLoadCourseUnitFromHome.do?id=<%=cu.getId()%>"><%=cu.getName()%>/<%=cu.getCode()%> (<%=cu.getCourseName() + "/" +cu.getCourseCode()%>)</a></div> |
283 | <% |
287 | <% |
284 | } |
288 | } |
285 | %> |
289 | %> |
286 | </div> |
290 | </div> |
287 | <% |
291 | <% |
288 | } |
292 | } |
289 | %> |
293 | %> |
290 | </div> |
294 | </div> |
291 | </div> |
295 | </div> |
292 | 296 | ||
293 | <% |
297 | <% |
294 | } |
298 | } |
295 | 299 | ||
296 | HibernateUtils.getCurrentSession().getTransaction().commit(); |
300 | HibernateUtils.getCurrentSession().getTransaction().commit(); |
297 | }catch(Throwable e) |
301 | }catch(Throwable e) |
298 | { |
302 | { |
299 | System.out.println(e); |
303 | System.out.println(e); |
300 | e.printStackTrace(); |
304 | e.printStackTrace(); |
301 | } |
305 | } |
302 | %> |
306 | %> |
303 | 307 | ||
304 | 308 | ||
305 | 309 | ||
306 | </div> |
310 | </div> |
307 | </div> |
311 | </div> |