<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%><%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%><%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/xml" prefix="x"%><%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%
response.setHeader("Cache-Control", "no-cache"); //HTTP 1.1
response.setHeader("Pragma", "no-cache"); //HTTP 1.0
response.setDateHeader("Expires", 0);
%>
<%
String wwwroot = request.getContextPath();
%>
<%@page contentType="text/html; charset=utf-8" language="java" errorPage=""%>
<%@page import="java.util.Map"%>
<%@page import="java.util.List"%>
<%@page import="java.util.Iterator"%>
<%@page import="com.qeweb.sanygsp.model.logistics.LmGoodsDeliveryItemPO"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title> </title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<link rel="stylesheet" type="text/css" href="../../css/style.css">
<style media=print>
.Noprint {
display: none;
}
.PageNext {
page-break-after: always;
}
</style>
<style>
body {
font-family: "宋体";
color: #484848;
font-size: 13px;
}
.tdp {
border-bottom: 1 solid #000000;
border-left: 1 solid #000000;
border-right: 0 solid #ffffff;
border-top: 0 solid #ffffff;
}
.tabp {
border-color: #000000 #000000 #000000 #000000;
border-style: solid;
border-top-width: 2px;
border-right-width: 2px;
border-bottom-width: 1px;
border-left-width: 1px;
}
.NOPRINT {
font-family: "宋体";
font-size: 9pt;
}
table.simple td,table.simple th {
border: 2px solid #ccc;
vertical-align: middle;
text-align: center;
}
.queryListcontainer {
padding: 2px;
margin-left: 8px;
margin-right: 2px;
background: white
}
table.simple thead tr {
background-color: #ffffff;
}
table.simple tr.even {
background-color: #FFF;
height: 30px;
onmouseover: expression(οnmοuseοver=function (){this.style.backgroundColor ='#FC9';});
onmouseout: expression(οnmοuseοut=function (){this.style.backgroundColor ='#FFF';});
}
table.simple {
border: 1px solid #ccc;
border-collapse: collapse;
width: 100%;
}
table.simple td,table.simple th {
border: 1px solid #ccc;
}
tr.odd {
background-color: #EDF4FE;
onmouseover: expression(οnmοuseοver=function (){this.style.backgroundColor ='#FC9';});
onmouseout: expression(οnmοuseοut=function (){this.style.backgroundColor ='#EDF4FE';});
height: 30px;
}
</style>
</head>
<body>
<%
Map<String, List<LmGoodsDeliveryItemPO>> pM = (Map<String, List<LmGoodsDeliveryItemPO>>) request.getAttribute("printTable");
Integer printTableNum = (Integer) request.getAttribute("printTableNum");
%>
<DIV class="queryListcontainer" align="left"><span id='div1'>
<hr>
<center class="Noprint"><span class="wp_btn wp_btn2"><a href="javascript:window.close();"><b class="btn_closewindow btn_image"></b><span class="btn_text">关闭</span></a></span> <span class="wp_btn wp_btn2"><a href="#"
οnclick="doPrint();"><b class="btn_print btn_image"></b><span class="btn_text">打印</span></a></span></center>
<%
if (pM != null && pM.size() > 0) {
int curPage = 0;
for (Iterator it = pM.entrySet().iterator(); it.hasNext();) {
curPage++;
Map.Entry entry = (Map.Entry) it.next();
List printList = pM.get(entry.getKey());
%>
<table style="width: 740px;">
<TR>
<TD colspan="3" style="text-align: center;"><B><font size="5"><bean:message key="btn.logistics.print.bill.receive.point" /></font> </B></TD>
</TR>
<TR>
<td style="width: 80px;"> </td>
<TD><bean:message key="label.common.logistics.resultlist.vendorCode" />:<bean:write name="vendorCode" /></TD>
<TD><bean:message key="label.common.logistics.resultlist.vendorName" />:<bean:write name="vendorName" /></TD>
</TR>
<TR>
<td style="width: 80px;"> </td>
<TD><bean:message key="label.common.logistics.resultlist.goodsDelvCode" />:<bean:write name="goodsDelvCode" /></TD>
<TD><bean:message key="label.common.logistics.resultlist.arriveDatetime" />:<bean:write name="passTime" /></TD>
</TR>
</table>
<table class="simple" style="width: 740px;" id="row">
<thead>
<tr>
<th style="width: 75px;" nowrap="nowrap"><bean:message key="label.common.logistics.resultlist.materialName" /></th>
<th><bean:message key="label.common.logistics.resultlist.materialDesc" /></th>
<th><bean:message key="label.common.logistics.resultlist.materialUnit" /></th>
<th style="width: 35px;"><bean:message key="label.common.logistics.resultlist.materialCheckProperty" /></th>
<th style="width: 35px;"><bean:message key="label.common.logistics.resultlist.qualityPlantCode" /></th>
<th style="width: 35px;"><bean:message key="label.common.logistics.resultlist.storageAddr" /></th>
<th style="width: 35px;"><bean:message key="label.common.logistics.resultlist.storageAttr" /></th>
<th style="width: 40px;"><bean:message key="label.common.logistics.resultlist.storagePeople" /></th>
<th style="width: 40px;"><bean:message key="label.common.logistics.resultlist.storageLocation" /></th>
<th><bean:message key="label.common.logistics.resultlist.delvQty.buyer" /></th>
<th><bean:message key="label.common.logistics.resultlist.eligibleQty" /></th>
<th><bean:message key="label.common.logistics.resultlist.returnQty" /></th>
<th><bean:message key="label.common.logistics.resultlist.vouchCode" /></th>
</tr>
</thead>
<tbody>
<%
for (int i = 0; i < printList.size(); i++) {
LmGoodsDeliveryItemPO itemPo = (LmGoodsDeliveryItemPO) printList.get(i);
%>
<tr class="odd">
<td><%=itemPo.getMaterialCode()%></td>
<td><%=itemPo.getMaterialNameCn()%></td>
<td><%=itemPo.getMeasureUnit()%></td>
<td><%=(itemPo.getZjflag() == null || "".equals(itemPo.getZjflag())) ? " " : itemPo.getZjflag()%></td>
<td><%=(itemPo.getWerks() == null || "".equals(itemPo.getWerks())) ? " " : itemPo.getWerks()%></td>
<td><%=(itemPo.getLgort() == null || "".equals(itemPo.getLgort())) ? " " : itemPo.getLgort()%></td>
<td><%=(itemPo.getLtkze() == null || "".equals(itemPo.getLtkze())) ? " " : itemPo.getLtkze()%></td>
<td><%=(itemPo.getQname() == null || "".equals(itemPo.getQname())) ? " " : itemPo.getQname()%></td>
<td><%=(itemPo.getNlpla() == null || "".equals(itemPo.getNlpla())) ? " " : itemPo.getNlpla()%></td>
<td><%=(itemPo.getDelvQty() == null || "".equals(itemPo.getDelvQty())) ? " " : itemPo.getDelvQty()%></td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<%
}
%>
</table>
<br>
<TABLE style="width: 740px;">
<TR>
<TD><bean:message key="label.common.logistics.resultlist.tallyClerk" />:</TD>
<TD width="20%"></TD>
<TD><bean:message key="label.common.logistics.resultlist.qualityPeople" />:</TD>
<TD width="20%"></TD>
<TD><bean:message key="label.common.logistics.resultlist.receivePeople" />:</TD>
<TD width="20%"></TD>
</TR>
</TABLE>
<%
if (curPage < printTableNum.intValue()) {
%>
<hr align="center" width="100%" size="1" noshade class="NOPRINT">
<!--分页-->
<div class="PageNext"></div>
<%
}
%> <%
}
}
%>
</DIV>
<script type="text/javascript">
function doPrint(){
if(window.confirm('<bean:message key="btn.printConfirm"/>')){
window.print();
}
}
function doClose(){
window.close();
}
</script>
</body>
</html>
页面分页打印
最新推荐文章于 2022-12-07 12:01:09 发布