码迷,mamicode.com
首页 > Web开发 > 详细

WEB打印(jsp版)

时间:2015-02-05 18:11:06      阅读:148      评论:0      收藏:0      [点我收藏+]

标签:

<%@ 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>

 

经过实际检验,可运行  鉴定完毕

WEB打印(jsp版)

标签:

原文地址:http://www.cnblogs.com/superjt/p/4275377.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!