📄 ullageprint.jsp
字号:
<jsp:useBean id="ullage" class="src.wuyang.Ullage" scope="page"/>
<jsp:useBean id="ullageProduct" class="src.wuyang.UllageProduct" scope="page"/>
<jsp:useBean id="department" class="src.wuyang.Department" scope="page"/>
<jsp:useBean id="global" class="src.com.MyGlobal" scope="session"/>
<% if (global.isLogined == false) {
%>
<jsp:forward page="../pub/DBErr.jsp" >
<jsp:param name="rtcode" value="-4" />
</jsp:forward>
<% }
%>
<html>
<head>
<title>打印采购申请单信息</title>
</head>
<body>
<%
String ullageId = request.getParameter("ullageId");
ullage.load(ullageId);
ullageProduct.load(ullageId);
department.load(ullage.getDeptId());
%>
<form method="POST" action="UllageUpdate.jsp?ullageId=<%=ullageId%>">
<input type="hidden" name="mode" value="update"/>
采购申请编号:<%=ullage.getUllageId()%><input type="hidden" name="ullageId" value="<%=ullage.getUllageId()%>" >
<br>
申请人:<%=ullage.getProposer()%><input type="hidden" name="proposer" value="<%=ullage.getProposer()%>">
<br>
申请部门:<%=department.getDeptName()%><input type="hidden" name="deptName" value="<%=department.getDeptName()%>">
<br>
预计总价:<%=ullage.getAppMoney()%>
<br>
批注:<%=ullage.getComment()%>
<table border="1">
<caption align = "center">采购产品列表</caption>
<tr>
<td>产品名称</td>
<td>规格/型号</td>
<td>预计数量</td>
<td>预计单价</td>
<td>备注</td>
</tr>
<%
ullageProduct.load(ullageId);
do { %>
<form method="post" action="UllageProductUpdate.jsp?ullageId=<%=ullageId%>">
<input type="hidden" name="mode" value="update"/>
</tr>
<td><%=ullageProduct.getProductName()%></td>
<td><%=ullageProduct.getProductType()%></td>
<td><%=ullageProduct.getAppQuantity()%></td>
<td><%=ullageProduct.getAppPrice()%></td>
<td><%=ullageProduct.getComment()%></td>
</tr>
</form>
<%
}while(ullageProduct.next()>0);
%>
</table>
<p>
<div id = "pannel" class="text">
<input type="button" value="打印" onclick="window.pannel.style.visibility='hidden';window.print();window.pannel.style.display='block'">
</div>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -