WEB打印(jsp版)


<%@ page contentType="text/html; charset=UTF-8" language="java"%>
<%@include file="/base/taglibs.jsp"%>
<%@include file="/base/prefix.jsp"%>
<%@include file="/base/gridImport.jsp"%>
<html>
<head>
<title></title>
<style media=print>
.Noprint {
display: none;
}
<!-- 用本樣式在打印時隱藏非打印項目-->

.PageNext {
page-break-after: always;
}
<!--控制分頁-->
</style>
<style type="text/css">
body {
margin-left: 30px;
margin-top: 92px;
color:black;
}

.aa {
font: normal 18px "宋體";
text-align: middle;
}

.bb {
font: normal 15px "宋體";
}

.taskbill {
font: 15px "宋體";
color: #000000;
border: solid windowtext .5pt;
border-bottom: none;
border-right: none;
}

.taskbill td {
font: 14px "宋體";
border: solid windowtext .5pt;
border-left: none;
border-top: none;
color:black;
}

.button_4
{
cursor:hand;
width: 74px;
height: 20px;
background-image: url(${ctx}/images/button_new_bigger.gif);
background-repeat: repeat;
background-attachment: scroll;
background-position: center;
border: 0 solid #000000;
text-align: center;
padding-top: 3px;
font-family: "宋體";
font-size: 12px;
}
</style>
</head>
<center class="Noprint">
<OBJECT id=WebBrowser classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 width=0>
</OBJECT>
<p>
<input type=button class="button_4" value=打印
onclick=document.all.WebBrowser.ExecWB(6,1)> <input
type=button class="button_4" value=直接打印
onclick=document.all.WebBrowser.ExecWB(6,6)> <input
type=button class="button_4" value=頁面設置
onclick=document.all.WebBrowser.ExecWB(8,1)> <input
type=button class="button_4" value=打印預覽
onclick=document.all.WebBrowser.ExecWB(7,1)>
</p>
<hr align="center" width="760" size="0" noshade>
<br>
</center>
<body>
<center>
<p class="aa">
<strong>操作員日終對賬詳細信息</strong>
</p>
</center>
<center>
<p class="bb">
報表日期:${startdate}&nbsp;00:00:00-${enddate}&nbsp;23:59:59
打印日期:${printdate}
</p>
</center>

<center>
<TABLE class="taskbill" cellpadding="0" cellspacing="0" width="94%">
<TBODY>
<TR>
<td width="5%" align="center"><strong>客戶編號</strong>
</td>
<td width="5%" align="center"><strong>客戶姓名</strong>
</td>
<td width="8%" align="center"><strong>收費項目</strong>
</td>
<td width="6%" align="center"><strong>費用金額</strong>
</td>
<td width="12%" align="center"><strong>收費時間</strong>
</td>
<td width="5%" align="center"><strong>發票號</strong>
</td>
<td width="6%" align="center"><strong>POS單號</strong>
</td>
<td width="5%" align="center"><strong>操作員</strong>
</td>
</TR>
<s:iterator var="sumMap" value="#request.list" status="st">
<TR>
<TD align="right"><s:property value="#sumMap.CUST_NO"/>&nbsp;</TD>
<TD align="left"><s:property value="#sumMap.CUST_NAME"/>&nbsp;</TD>
<TD align="left"><s:property value="#sumMap.FEENAME"/>&nbsp;</TD>
<TD align="right"><s:property value="#sumMap.MONEY"/>&nbsp;</TD>
<TD align="center" nowrap><%-- <s:date name="#sumMap.CREATETIME" format="yyyy-MM-dd HH:mm:ss" /> --%>&nbsp;</TD>
<TD align="right"><s:property value="#sumMap.INVO_NO"/>&nbsp;</TD>
<TD align="right"><s:property value="#sumMap.POSNUM"/>&nbsp;</TD>
<TD align="left"><s:property value="#sumMap.OPERATORNAME"/>&nbsp;</TD>
</TR>
</s:iterator>
</TBODY>
</TABLE>
</center>
<p></p>
<center>
<p align="center" class="bb">
<!-- 總計&nbsp;&nbsp;n&nbsp;&nbsp;筆&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -->
實收金額共&nbsp;&nbsp;${paymentMoney}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
應付金額共&nbsp;&nbsp;${sumMoney}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</p>
</center>
</body>

</html>

 

經過實際檢驗,可運行  鑒定完畢


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM