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} 00:00:00-${enddate} 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"/> </TD> <TD align="left"><s:property value="#sumMap.CUST_NAME"/> </TD> <TD align="left"><s:property value="#sumMap.FEENAME"/> </TD> <TD align="right"><s:property value="#sumMap.MONEY"/> </TD> <TD align="center" nowrap><%-- <s:date name="#sumMap.CREATETIME" format="yyyy-MM-dd HH:mm:ss" /> --%> </TD> <TD align="right"><s:property value="#sumMap.INVO_NO"/> </TD> <TD align="right"><s:property value="#sumMap.POSNUM"/> </TD> <TD align="left"><s:property value="#sumMap.OPERATORNAME"/> </TD> </TR> </s:iterator> </TBODY> </TABLE> </center> <p></p> <center> <p align="center" class="bb"> <!-- 总计 n 笔 --> 实收金额共 ${paymentMoney} 元 应付金额共 ${sumMoney} 元 </p> </center> </body> </html>
经过实际检验,可运行 鉴定完毕
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。