printBacList.jsp 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
  2. <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  4. <html>
  5. <head>
  6. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  7. <title>打印预览</title>
  8. <link href="main.css" rel="stylesheet" type="text/css"></link>
  9. <script type="text/javascript" src="/shares/js/constant.js"></script>
  10. <script type="text/javascript" src="/shares/js/common.js"></script>
  11. <script type="text/javascript" src="controls/print/plugPrint.js"></script>
  12. <link rel="stylesheet" type="text/css" href="controls/print/print.css">
  13. <style type="text/css">
  14. table{
  15. width:100%;
  16. }
  17. .print td{
  18. padding-top:2px;
  19. height:30px;
  20. text-align:center;
  21. }
  22. .commont{
  23. height:30px;
  24. margin-top:30px;
  25. text-align:left;
  26. font-weight:bold;
  27. font-size:15px;
  28. }
  29. .fncBtn {
  30. width: 100%;
  31. background: #e5ecf9;
  32. height: 25px;
  33. padding-top: 3px;
  34. text-align:center;
  35. }
  36. </style>
  37. <script language="javascript" type="text/javascript">
  38. //****************************************************************
  39. //* 名  称:formPrintit
  40. //* 功 能:打印
  41. //* 作 者: 章家明
  42. //* 入口参数:
  43. //* 出口参数:
  44. //*****************************************************************
  45. function formPrintit(isZong, isSelectPrinter){
  46. setupHeaderAndFooter("","");
  47. setupMargin("1","28","28","28","28");
  48. printit(isZong, isSelectPrinter);
  49. }
  50. //****************************************************************
  51. //* 名  称:formPageSetup
  52. //* 功 能:打印设置
  53. //* 作 者: 章家明
  54. //* 入口参数:
  55. //* 出口参数:
  56. //*****************************************************************
  57. function formPageSetup(){
  58. setupHeaderAndFooter("","");
  59. setupMargin("1","28","28","28","28");
  60. popPageSetup();
  61. }
  62. //****************************************************************
  63. //* 名  称:formPreview
  64. //* 功 能:打印预览
  65. //* 作 者: 章家明
  66. //* 入口参数:
  67. //* 出口参数:
  68. //*****************************************************************
  69. function formPreview(){
  70. setupHeaderAndFooter("","");
  71. setupMargin("1","28","28","28","28");
  72. popPreview();
  73. }
  74. </script>
  75. </head>
  76. <body>
  77. <div class="fncBtn">
  78. <input type="button" class="l-button" value="选择打印" onclick="formPrintit(false, true)">
  79. <input type="button" class="l-button" value="直接打印" onclick="formPrintit(true, false)">
  80. <input type="button" class="l-button" value="页面设置" onclick="formPageSetup()">
  81. <input type="button" class="l-button" value="打印预览" onclick="formPreview()">
  82. </div>
  83. <object id="factory" viewastext style="display: none"
  84. classid="clsid:1663ed61-23eb-11d2-b92f-008048fdd814"
  85. codebase="http://localhost:8080/ynet_oa/controls/print/smsx.cab#Version=7,0,0,8"> </object>
  86. <div style="width:100%;text-align:center">
  87. <div style="margin:0 auto;width:90%">
  88. <table>
  89. <tr><th colspan="5" style="height:40px;font-size:18px;">客户转账预约表</th></tr>
  90. <tr><td width="16%">&nbsp;</td><td width="16%">&nbsp;</td><td width="16%">&nbsp;</td><td width="20%">填报时间:${appointDate}</td><td>&nbsp;</td></tr>
  91. </table>
  92. <table class="print">
  93. <tr><td style="font-weight:bold" width="10%">序号</td><td style="font-weight:bold" width="25%">网点</td><td style="font-weight:bold" width="35%">预约客户名称(企业账户可用简称)</td><td style="font-weight:bold" width="15%">预约金额(万元)</td><td style="font-weight:bold" width="15%">转账方式</td></tr>
  94. <c:forEach items="${customerModels}" var="customerModel" varStatus="vstatus">
  95. <tr><td style="font-weight:bold">${vstatus.index+1}&nbsp;</td> <td style="font-weight:bold">${customerModel.groupname}&nbsp;</td><td style="font-weight:bold">${customerModel.customerName}&nbsp;</td><td style="font-weight:bold">${customerModel.appointAmount}&nbsp;</td><td style="font-weight:bold">${customerModel.transferTypeStr}&nbsp;</td></tr>
  96. </c:forEach>
  97. <tr><td style="font-weight:bold">&nbsp;</td> <td style="font-weight:bold">&nbsp;</td><td style="font-weight:bold">合计</td><td style="font-weight:bold">${requestScope.sumAppointAmount}&nbsp;</td><td style="font-weight:bold">&nbsp;</td></tr>
  98. </table>
  99. </div>
  100. </div>
  101. </body>
  102. </html>