(1) 将鼠标放在名字上,页面上自动显示该学生的基本信息
<td align="center">
<a href="showDetailEnrolledStudentInfoForUpdatestudentId=${StudentInfoPrintVO.id}">${StudentInfoPrintVO.realName}</a>
</td>
(2) 点击查看,显示链接
<td align="center"><a href="<%=basePath1%>/birtApp/frameset?__report=tongzhishu2.rptdesign&__masterpage=true&__format=doc&__parameterpage=false&studentId=${StudentInfoPrintVO.id}">查看</a></td>
(3)在jsp页面上写 0:未打印,1:已打印
<td align="center">
<c:choose>
<c:when test="${StudentInfoPrintVO.noticePrintStatus == 0}">
<c:out value="未打印"/>
</c:when>
<c:when test="${StudentInfoPrintVO.noticePrintStatus == 1}">
<c:out value="已打印"/>
</c:when>
<c:otherwise>
<c:out value="${StudentInfoPrintVO.noticePrintState}"/>
</c:otherwise>
</c:choose>
</td>
<c:choose>
<c:when test="${StudentInfoPrintVO.noticePrintStatus == 0}">
<c:out value="未打印"/>
</c:when>
<c:when test="${StudentInfoPrintVO.noticePrintStatus == 1}">
<c:out value="已打印"/>
</c:when>
<c:otherwise>
<c:out value="${StudentInfoPrintVO.noticePrintState}"/>
</c:otherwise>
</c:choose>
</td>
配合以下代码使用:
<li>
<p>录取通知书是否打印:</p>
<label><select name="noticePrintStatus" id="noticePrintStatus">
<option value="">全部</option>
<option value="0">未打印</option>
<option value="1">已打印</option>
</select></label>
</li>
<p>录取通知书是否打印:</p>
<label><select name="noticePrintStatus" id="noticePrintStatus">
<option value="">全部</option>
<option value="0">未打印</option>
<option value="1">已打印</option>
</select></label>
</li>
(4) 获取服务器的时间
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<td align="center">
<fmt:formatDate value="${StudentInfoPrintVO.noticePrintDate}" pattern="yyyy-MM-dd HH:mm:ss"/>
<fmt:formatDate value="${StudentInfoPrintVO.noticePrintDate}" pattern="yyyy-MM-dd HH:mm:ss"/>
(5)点击“录取通知书批量打印” 跳到函数“batchPrinter”
<label><input type="button" id="printerForBatch" name="printerForBatch" value="录取通知书批量打印" class="but blue"
οnclick="batchPrinter('<%=basePath%>','1')" /></label>
οnclick="batchPrinter('<%=basePath%>','1')" /></label>
(6)jsp上传参问题:
如: var specialID = document.getElementById("specialID").value;
下面为判断:(一般不怎么用)
if(specialID ==""){
specialID=0;
}
if(specialID ==""){
specialID=0;
}
(7)调用函数方法
1.updatePrintEnrollLetterSearch(studyCenter,registrationPoint, grade, educationLevel,special, enrollType, realName,
credentialNum, noticePrintStatus, noticePrinter, beginEnrollDate, endEnrollDate, pageNo, pageSize);
2.window.location.href="<%=basePath %>/jyglFront/updatePrintEnrollLetterSearch";
credentialNum, noticePrintStatus, noticePrinter, beginEnrollDate, endEnrollDate, pageNo, pageSize);
2.window.location.href="<%=basePath %>/jyglFront/updatePrintEnrollLetterSearch";