printDelivery.jsp 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  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. <link href="${pageContext.request.contextPath }/liger/lib/ligerUI/skins/${sessionScope.css}/css/ligerui-all.css" rel="stylesheet" type="text/css" />
  10. <script type="text/javascript" src="/shares/js/constant.js"></script>
  11. <script type="text/javascript" src="/shares/js/common.js"></script>
  12. <script type="text/javascript" src="controls/print/plugPrint.js"></script>
  13. <link rel="stylesheet" type="text/css" href="controls/print/print.css">
  14. <style type="text/css">
  15. table{
  16. width:100%;
  17. }
  18. .print td{
  19. padding-top:2px;
  20. height:30px;
  21. text-align:center;
  22. }
  23. .commont{
  24. height:30px;
  25. margin-top:30px;
  26. text-align:left;
  27. font-weight:bold;
  28. font-size:15px;
  29. }
  30. .fncBtn {
  31. width: 100%;
  32. background: #e5ecf9;
  33. height: 25px;
  34. padding-top: 3px;
  35. text-align:center;
  36. }
  37. </style>
  38. <script language="javascript" type="text/javascript">
  39. //****************************************************************
  40. //* 名  称:formPrintit
  41. //* 功 能:打印
  42. //* 作 者: 章家明
  43. //* 入口参数:
  44. //* 出口参数:
  45. //*****************************************************************
  46. function formPrintit(isZong, isSelectPrinter){
  47. setupHeaderAndFooter("","");
  48. setupMargin("1","28","28","28","28");
  49. printit(isZong, isSelectPrinter);
  50. }
  51. //****************************************************************
  52. //* 名  称:formPageSetup
  53. //* 功 能:打印设置
  54. //* 作 者: 章家明
  55. //* 入口参数:
  56. //* 出口参数:
  57. //*****************************************************************
  58. function formPageSetup(){
  59. setupHeaderAndFooter("","");
  60. setupMargin("1","28","28","28","28");
  61. popPageSetup();
  62. }
  63. //****************************************************************
  64. //* 名  称:formPreview
  65. //* 功 能:打印预览
  66. //* 作 者: 章家明
  67. //* 入口参数:
  68. //* 出口参数:
  69. //*****************************************************************
  70. function formPreview(){
  71. setupHeaderAndFooter("","");
  72. setupMargin("1","28","28","28","28");
  73. popPreview();
  74. }
  75. </script>
  76. </head>
  77. <body>
  78. <div class="fncBtn">
  79. <input type="button" class="l-button" value="选择打印" onclick="formPrintit(false, true)">
  80. <input type="button" class="l-button" value="直接打印" onclick="formPrintit(true, false)">
  81. <input type="button" class="l-button" value="页面设置" onclick="formPageSetup()">
  82. <input type="button" class="l-button" value="打印预览" onclick="formPreview()">
  83. </div>
  84. <object id="factory" viewastext style="display: none"
  85. classid="clsid:1663ed61-23eb-11d2-b92f-008048fdd814"
  86. codebase="http://localhost:8080/ynet_oa/controls/print/smsx.cab#Version=7,0,0,8"> </object>
  87. <div style="width:100%;text-align:center">
  88. <div style="margin:0 auto;width:90%">
  89. <table>
  90. <tr><th colspan="5" style="height:40px;font-size:23px;">福州农商银行中心库下拔小面额币别表</th></tr>
  91. <tr>
  92. <td style="font-size:15px;" width="15%">下拔时间:${lineDate}</td>
  93. <td width="25%">&nbsp;</td>
  94. <td width="35%">&nbsp;</td>
  95. <td style="font-size:15px;" width="25%">单位:万元</td>
  96. <td>&nbsp;</td>
  97. </tr>
  98. </table>
  99. <table class="print">
  100. <tr><td style="font-weight:bold" width="5%">序号</td>
  101. <td style="font-weight:bold" width="20%">网点名称</td>
  102. <td style="font-weight:bold" width="55%">下拔内容(金额,币别,其他等)</td>
  103. <td style="font-weight:bold" width="10%">实际金额(万元)</td>
  104. <td style="font-weight:bold" width="10%">出库柜号员</td>
  105. </tr>
  106. <c:forEach items="${deliveryModels}" var="delivery" varStatus="i">
  107. <tr>
  108. <td width="5%">${i.index+1}</td>
  109. <td width="20%">${delivery.groupName}</td>
  110. <td width="55%">${delivery.content}</td>
  111. <td width="10%">${delivery.assigneAmount}</td>
  112. <td width="10%"></td>
  113. </tr>
  114. </c:forEach>
  115. </table>
  116. </div>
  117. </div>
  118. </body>
  119. </html>