taskreport.jsp
来自「Java的框架」· JSP 代码 · 共 83 行
JSP
83 行
<%@ include file="/common/taglibs.jsp"%>
<p><h3><fmt:message key="task.subtitle.report"/></h3></p>
<c:set var="buttons">
<!-- If already opened, allow creation of report -->
<c:if test="${task.category == 'Inspection'}">
<c:url var="createUrl" value="roadInspectionForm.action">
<c:param name="method" value="add" />
<c:param name="roadDefectId" value="${task.roadDefectId}" />
<c:param name="taskId" value="${task.id}" />
</c:url>
<button name="create" type="button" style="margin-right: 5px"
onclick="window.location='<c:out value="${createUrl}"/>'"
<c:choose>
<c:when test="${!empty requestScope.roadInspectionList}">disabled</c:when>
<c:otherwise>
<c:if test="${task.status == 'Closed'}">disabled</c:if>
</c:otherwise>
</c:choose>
>
<fmt:message key="button.report.create"/>
</button>
<c:url var="editUrl" value="roadInspectionForm.action">
<c:param name="method" value="edit" />
<c:param name="roadInspectionId" value="${requestScope.roadInspectionList[0].id}" />
<c:param name="roadDefectId" value="${task.roadDefectId}" />
<c:param name="taskId" value="${task.id}" />
</c:url>
<button name="edit" type="button" style="margin-right: 5px"
onclick="window.location='<c:out value="${editUrl}"/>'"
<c:choose>
<c:when test="${empty requestScope.roadInspectionList}">disabled</c:when>
<c:otherwise>
<c:if test="${(task.status == 'Done') || (task.status == 'Closed')}">disabled</c:if>
</c:otherwise>
</c:choose>
>
<fmt:message key="button.report.edit"/>
</button>
<c:url var="viewUrl" value="roadInspection.action">
<c:param name="roadInspectionId" value="${requestScope.roadInspectionList[0].id}" />
<c:param name="roadDefectId" value="${task.roadDefectId}" />
<c:param name="taskId" value="${task.id}" />
</c:url>
<button name="view" type="button" style="margin-right: 5px"
onclick="window.location='<c:out value="${viewUrl}"/>'"
<c:if test="${empty requestScope.roadInspectionList}">disabled</c:if>
>
<fmt:message key="button.report.view"/>
</button>
<c:url var="submitUrl" value="submitRoadInspection.action">
<c:param name="method" value="submit" />
<c:param name="roadInspectionId" value="${requestScope.roadInspectionList[0].id}" />
<c:param name="roadDefectId" value="${task.roadDefectId}" />
<c:param name="taskId" value="${task.id}" />
</c:url>
<button name="submit" type="button" style="margin-right: 5px"
onclick="window.location='<c:out value="${submitUrl}"/>'"
<c:choose>
<c:when test="${empty requestScope.roadInspectionList}">disabled</c:when>
<c:otherwise>
<c:if test="${(task.status == 'Done') || (task.status == 'Closed')}">disabled</c:if>
</c:otherwise>
</c:choose>
>
<fmt:message key="button.report.submit"/>
</button>
</c:if>
</c:set>
<c:out value="${buttons}" escapeXml="false" />
<!--
<c:if test="${task.status != ''}">
<c:if test="${task.status != 'Pending'}">
<fmt:message key="task.report.pending"/>
</c:if>
<c:if test="${task.status != 'Opened'}">
<fmt:message key="task.report.pending"/>
</c:if>
</c:if>
-->
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?