• 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>

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

  • 相关阅读:
    配置 PHP 的 Session 存储到 Redis
    ab测试工具
    mysql:general_log 日志、数据库线程查询、数据库慢查询
    upload-labs-env文件上传漏洞 11-19关
    upload-labs-env文件上传漏洞 1-10关
    Webshell免杀绕过waf
    虚拟机安装安全狗apache服务的一些问题解决方式(11.5)
    SQL注入过WAF(11.4 第三十三天)
    内联注入和堆叠注入(10.30 第三十天)
    SQL server 注入 和 SQL server 扩展(10.29 第二十九天)
  • 原文地址:https://www.cnblogs.com/superjt/p/4275377.html
Copyright © 2020-2023  润新知