Subversion Repositories bacoAlunos

Rev

Rev 1312 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

<%@ page import="jomm.dao.impl.AbstractDao" %>
<%@ page import="pt.estgp.estgweb.domain.dao.DaoFactory" %>
<%@ page import="pt.estgp.estgweb.domain.dao.impl.JobServiceTaskDaoImpl" %>
<%@ page import="pt.estgp.estgweb.utils.ConfigProperties" %>
<%@ page import="java.util.List" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="/WEB-INF/tlds/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/tlds/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/tlds/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/tlds/struts-nested.tld" prefix="nested" %>
<%@ taglib uri="/WEB-INF/tlds/jomm.tld" prefix="jomm" %>
<%@ taglib uri="/WEB-INF/tlds/baco.tld" prefix="baco" %>
<%@ taglib prefix="hmlt" uri="http://jakarta.apache.org/struts/tags-html" %>
<jsp:useBean id="UserSession" type="pt.estgp.estgweb.domain.UserSession" scope="request"/>
<jomm:messages/>
<html:errors/>


<%--<jsp:include page="/layout/scriptsBootstrapSoft.jsp"/>--%>

<%
    AbstractDao.getCurrentSession().beginTransaction();
    List<JobServiceTaskDaoImpl> jobTasks = DaoFactory.getJobServiceTaskDaoImpl().findLastNJobTasks(100);
    request.setAttribute("tasks",jobTasks);
%>



<div class="container-fluid">
    <div class="panel panel-default">
        <div class="panel-heading">
            <bean:message key="configuration.jobtasks"/>
        </div>
        <div class="panel-body">
            <table class="tablesorter tablesorterfiltered">
                <thead>
                    <tr>
                        <th class="filter-true"><bean:message key="configuration.jobtasks"/></th>
                        <th class="filter-true">Data Inicio</th>
                        <th class="filter-true">Criador</th>
                        <th class="filter-true">Parametros</th>
                        <th class="filter-true">Estado</th>
                        <th class="filter-true">Progresso</th>
                        <th class="filter-false" data-sorter="false"></th>
                    </tr>
                </thead>
                <tbody>
                    <logic:iterate id="task" name="tasks" type="pt.estgp.estgweb.domain.JobServiceTaskImpl">
                        <tr>
                            <td><bean:message key="targetService.${task.targetService}"/></td>
                            <td>${task.serviceStartDateFormated}</td>
                            <td>${task.createdBy.username}</td>
                            <td>
                                <table cellspacing="0" cellspadding="0">
                                    <logic:iterate id="taskParam" name="task" property="serviceTaskParameters" type="pt.estgp.estgweb.domain.JobServiceTaskParameter">
                                       <tr>
                                           <td>
                                               <bean:message key="task.param.${taskParam.name}"/>
                                           </td>
                                           <td>
                                               <logic:equal value="JOB_institution_KEY" name="taskParam" property="name">
                                                   <%=ConfigProperties.getProperty("institution.code.prefix." + taskParam.getObject())%>
                                               </logic:equal>
                                               <logic:notEqual value="JOB_institution_KEY" name="taskParam" property="name">
                                                   <logic:equal value="JOB_questionario_courseList_KEY" name="taskParam" property="name">
                                                       <a href="#" data-href="<%=request.getContextPath()%>/admin/questionarios/pedagogicoEstudante/cursosJobInfo.jsp?jobId=${task.id}" data-title="Listagem de Cursos da Tarefa de Atribuição" data-toggle="modal" data-target="#modalAjaxRequest">
                                                           Lista Cursos
                                                       </a>
                                                   </logic:equal>
                                                   <logic:notEqual value="JOB_questionario_courseList_KEY" name="taskParam" property="name">
                                                       ${taskParam.object}
                                                   </logic:notEqual>

                                               </logic:notEqual>
                                           </td>
                                        </tr>
                                    </logic:iterate>
                                </table>
                            </td>
                            <td class="jobStatus${task.status}">
                                <bean:message key="job.status.${task.status}"/>
                            </td>
                            <td style="text-align: right">
                                ${task.progress} %
                            </td>
                            <td class="icons">
                                <a href="<%=request.getContextPath()%>/user/configurationTasks.do?dispatch=loadLog&from=jobtasks&id=${task.id}" class="btn btn-default">
                                    <span class="glyphicon glyphicon-list-alt"></span>
                                </a>
                            </td>

                        </tr>
                    </logic:iterate>
                </tbody>

            </table>
        </div>
    </div>
</div>


<%
    AbstractDao.getCurrentSession().getTransaction().commit();
%>

Generated by GNU Enscript 1.6.5.2.