Rev 1506 | Rev 1540 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1506 | Rev 1516 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | <%@ page import="pt.utl.ist.berserk.logic.serviceManager.ServiceManager" %> |
1 | <%@ page import="jomm.dao.impl.AbstractDao" %> |
2 | <%@ page import="pt.utl.ist.berserk.logic.serviceManager.IServiceManager" %> |
2 | <%@ page import="pt.estgp.estgweb.domain.CourseDepartment" %> |
3 | <%@ page import="pt.estgp.estgweb.web.utils.RequestUtils" %> |
3 | <%@ page import="pt.estgp.estgweb.domain.dao.DaoFactory" %> |
4 | <%@ page import="pt.estgp.estgweb.domain.views.CourseView" %> |
4 | <%@ page import="pt.estgp.estgweb.domain.views.CourseView" %> |
- | 5 | <%@ page import="pt.estgp.estgweb.web.utils.RequestUtils" %> |
|
- | 6 | <%@ page import="pt.utl.ist.berserk.logic.serviceManager.IServiceManager" %> |
|
- | 7 | <%@ page import="pt.utl.ist.berserk.logic.serviceManager.ServiceManager" %> |
|
5 | <%@ page import="java.util.List" %> |
8 | <%@ page import="java.util.List" %> |
6 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> |
9 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> |
7 | <%@ taglib uri="/WEB-INF/tlds/baco.tld" prefix="baco" %> |
10 | <%@ taglib uri="/WEB-INF/tlds/baco.tld" prefix="baco" %> |
8 | <%@ taglib uri="/WEB-INF/tlds/struts-html.tld" prefix="html" %> |
11 | <%@ taglib uri="/WEB-INF/tlds/struts-html.tld" prefix="html" %> |
9 | <%@ taglib uri="/WEB-INF/tlds/struts-nested.tld" prefix="nested" %> |
12 | <%@ taglib uri="/WEB-INF/tlds/struts-nested.tld" prefix="nested" %> |
Line 14... | Line 17... | ||
14 | IServiceManager sm = ServiceManager.getInstance(); |
17 | IServiceManager sm = ServiceManager.getInstance(); |
15 | String[] names = new String[]{}; |
18 | String[] names = new String[]{}; |
16 | Object[] args = new Object[]{}; |
19 | Object[] args = new Object[]{}; |
17 | List<CourseView> courseViews = (List<CourseView>) sm.execute(RequestUtils.getRequester(request, response), "LoadCourses", args, names); |
20 | List<CourseView> courseViews = (List<CourseView>) sm.execute(RequestUtils.getRequester(request, response), "LoadCourses", args, names); |
18 | request.setAttribute("Courses", courseViews); |
21 | request.setAttribute("Courses", courseViews); |
- | 22 | ||
- | 23 | ||
- | 24 | AbstractDao.getCurrentSession().beginTransaction(); |
|
- | 25 | List<CourseDepartment> departments = DaoFactory.getCourseDepartmentDaoImpl().findActives(); |
|
- | 26 | request.setAttribute("departaments",departments); |
|
- | 27 | ||
19 | %> |
28 | %> |
20 | <jsp:useBean id="Courses" type="java.util.List" scope="request"/> |
29 | <jsp:useBean id="Courses" type="java.util.List" scope="request"/> |
21 | <div class="seccao"> |
30 | <div class="seccao"> |
22 | <h2><bean:message key="course.select.message"/> </h2> |
31 | <h2><bean:message key="course.select.message"/> </h2> |
23 | <div class="form"> |
32 | <div class="form"> |
Line 26... | Line 35... | ||
26 | <tr> |
35 | <tr> |
27 | <th class="filter-name filter-select"><bean:message key="status"/></th> |
36 | <th class="filter-name filter-select"><bean:message key="status"/></th> |
28 | <th><bean:message key="course.code"/>(SIGES)</th> |
37 | <th><bean:message key="course.code"/>(SIGES)</th> |
29 | <th class="filter-name filter-select responsiveChosenFilter"><bean:message key="course.label"/></th> |
38 | <th class="filter-name filter-select responsiveChosenFilter"><bean:message key="course.label"/></th> |
30 | <th class="filter-name filter-select"><bean:message key="course.degree"/></th> |
39 | <th class="filter-name filter-select"><bean:message key="course.degree"/></th> |
- | 40 | <th class="filter-name filter-select"><bean:message key="course.area"/></th> |
|
31 | <th class="filter-name filter-select"><bean:message key="course.importYear"/></th> |
41 | <th class="filter-name filter-select"><bean:message key="course.importYear"/></th> |
32 | <th><bean:message key="course.validation.role"/></th> |
42 | <th><bean:message key="course.validation.role"/></th> |
33 | <th><bean:message key="course.studies.plan"/></th> |
43 | <th><bean:message key="course.studies.plan"/></th> |
34 | <th></th> |
44 | <th></th> |
35 | </tr> |
45 | </tr> |
Line 46... | Line 56... | ||
46 | </logic:equal> |
56 | </logic:equal> |
47 | </td> |
57 | </td> |
48 | <td>${course.code}</td> |
58 | <td>${course.code}</td> |
49 | <td>${course.name}</td> |
59 | <td>${course.name}</td> |
50 | <td><bean:message key="course.${course.degreeCleanCode}"/></td> |
60 | <td><bean:message key="course.${course.degreeCleanCode}"/></td> |
- | 61 | <td> |
|
- | 62 | <%--<baco:hasRole role="admin,all,servicesCoursesManagement"> |
|
- | 63 | <html:select styleClass="form-control" name="course" property="area"> |
|
- | 64 | <html:option value="">Nenhum</html:option> |
|
- | 65 | <logic:iterate id="area" name="departaments" type="pt.estgp.estgweb.domain.CourseDepartmentImpl"> |
|
- | 66 | <html:option value="${area.sigla}">${area.schoolFromInstitutionalCode} - ${area.name}</html:option> |
|
- | 67 | </logic:iterate> |
|
- | 68 | </html:select> |
|
- | 69 | </baco:hasRole>--%> |
|
- | 70 | ${course.courseDepartment.name} |
|
- | 71 | </td> |
|
51 | <td>${course.importYear}</td> |
72 | <td>${course.importYear}</td> |
52 | <td> |
73 | <td> |
53 | <logic:present name="course" property="validationRole"> |
74 | <logic:present name="course" property="validationRole"> |
54 | <bean:message key="user.role.${course.validationRole}"/> |
75 | <bean:message key="user.role.${course.validationRole}"/> |
55 | </logic:present> |
76 | </logic:present> |
Line 75... | Line 96... | ||
75 | </tbody> |
96 | </tbody> |
76 | 97 | ||
77 | </table> |
98 | </table> |
78 | 99 | ||
79 | </div> |
100 | </div> |
80 | </div> |
- | |
81 | 101 | </div> |
|
- | 102 | <% |
|
- | 103 | AbstractDao.getCurrentSession().getTransaction().commit(); |
|
- | 104 | %> |
|
- | 105 | ||
82 | Generated by GNU Enscript 1.6.5.2. |
106 | Generated by GNU Enscript 1.6.5.2. |