feeReport.jsp 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269
  1. <%@ page language="java" contentType="text/html;charset=GBK"
  2. pageEncoding="GBK"%>
  3. <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
  4. <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
  5. <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
  6. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  7. <html>
  8. <head>
  9. <meta http-equiv="Content-Type" content="text/html;charset=GBK">
  10. <title>车辆费用统计</title>
  11. <script type="text/javascript"src="${pageContext.request.contextPath }/controls/print/plugPrint.js"></script>
  12. <!--media=print 这个属性可以在打印时有效-->
  13. <style media=print>
  14. .Noprint {
  15. display: none;
  16. }
  17. .PageNext {
  18. page-break-after: always;
  19. }
  20. </style>
  21. <style type="text/css">
  22. body {
  23. font-size: 12pt;
  24. }
  25. .auditOpionin_left_td {
  26. border-left: 1px solid #000000;
  27. border-bottom: 0px solid #000000;
  28. border-right: 1px solid #000000;
  29. }
  30. .auditOpionin_right_td {
  31. border-bottom: 0px solid #000000;
  32. border-right: 1px solid #000000;
  33. }
  34. .auditOpionin_div {
  35. padding-left: 10px;
  36. padding-top: 10px;
  37. margin-bottom: 10px;
  38. }
  39. .auditOpionin_content_left_td {
  40. border-left: 1px solid #000000;
  41. border-bottom: 1px solid #000000;
  42. border-right: 1px solid #000000;
  43. padding-left: 10px;
  44. }
  45. .auditOpionin_content_right_td {
  46. border-bottom: 1px solid #000000;
  47. border-right: 1px solid #000000;
  48. padding-left: 10px;
  49. }
  50. .ctd {
  51. margin: 5px;
  52. padding: 5px;
  53. }
  54. .tdp {
  55. border-bottom: 1 2px solid #000000 #000000;
  56. border-left: 1 2px solid #000000 #000000;
  57. border-right: 0 2px solid #000000 #ffffff;
  58. border-top: 0 2px solid #000000 #ffffff;
  59. }
  60. .tabp {
  61. border-color: #000000 #000000 #000000 #000000;
  62. border: 2px solid #000000;
  63. border-top-width: 2px;
  64. border-right-width: 2px;
  65. border-bottom-width: 1px;
  66. border-left-width: 1px;
  67. }
  68. .NOPRINT {
  69. font-family: "宋体";
  70. font-size: 9pt;
  71. }
  72. ul {
  73. list-style: none;
  74. margin: 0;
  75. padding: 0;
  76. }
  77. ul li {
  78. line-height: 28px;
  79. }
  80. #mdA table,#mdA table td,#mdA table th{border:1px solid #000000;border-collapse:collapse;}
  81. </style>
  82. <script language="javascript" type="text/javascript">
  83. //****************************************************************
  84. //* 名  称:formPrintit
  85. //* 功 能:打印
  86. //* 作 者: 章家明
  87. //* 入口参数:
  88. //* 出口参数:
  89. //*****************************************************************
  90. function formPrintit(isZong, isSelectPrinter) {
  91. setupHeaderAndFooter("", "");
  92. setupMargin("1", "28", "28", "28", "28");
  93. printit(isZong, isSelectPrinter);
  94. }
  95. //****************************************************************
  96. //* 名  称:formPageSetup
  97. //* 功 能:打印设置
  98. //* 作 者: 章家明
  99. //* 入口参数:
  100. //* 出口参数:
  101. //*****************************************************************
  102. function formPageSetup() {
  103. setupHeaderAndFooter("", "");
  104. setupMargin("1", "28", "28", "28", "28");
  105. popPageSetup();
  106. }
  107. //****************************************************************
  108. //* 名  称:formPreview
  109. //* 功 能:打印预览
  110. //* 作 者: 章家明
  111. //* 入口参数:
  112. //* 出口参数:
  113. //*****************************************************************
  114. function formPreview() {
  115. setupHeaderAndFooter("", "");
  116. setupMargin("1", "28", "28", "28", "28");
  117. popPreview();
  118. }
  119. function printWindow() {
  120. factory.printing.header = "This is MeadCo";
  121. factory.printing.footer = "Printing by ScriptX";
  122. factory.printing.portrait = false;
  123. factory.printing.leftMargin = 1.0;
  124. factory.printing.topMargin = 1.0;
  125. factory.printing.rightMargin = 1.0;
  126. factory.printing.bottomMargin = 1.0;
  127. // factory.printing.Print(false);
  128. factory.printing.Preview();
  129. }
  130. </script>
  131. </head>
  132. <body>
  133. <table width="100%" cellpadding="0" cellspacing="0" class="hl hr"
  134. bordercolor="#000000" align="center">
  135. <tr class="Noprint">
  136. <td align="center">
  137. <object id="factory" viewastext style="display: none"
  138. classid="clsid:1663ed61-23eb-11d2-b92f-008048fdd814"
  139. codebase="${pageContext.request.contextPath}/controls/print/smsx.cab#Version=7,0,0,8">
  140. </object> <input type=button value="选择打印" onclick="formPrintit(false, true)">
  141. <input type=button value="直接打印" onclick="formPrintit(true, false)">
  142. <input type=button value="页面设置" onclick="formPageSetup()"> <input
  143. type=button value="打印预览" onclick="formPreview()">
  144. </td>
  145. </tr>
  146. </table>
  147. <br />
  148. <div id="mdA" style="margin-top: 4px">
  149. <div style="text-align: center;">
  150. <font size="6">车辆费用统计报表</font>
  151. </div>
  152. <div style="text-align: center; height: 20px;"></div>
  153. <div style="text-align: center;">
  154. <c:if test="${requestScope.start_time == '' && requestScope.end_time == ''}">
  155. 统计日期:&nbsp;&nbsp; /至/
  156. </c:if>
  157. <c:if test="${requestScope.start_time != '' && requestScope.end_time == ''}">
  158. 统计日期:&nbsp;&nbsp; ${requestScope.start_time }至/
  159. </c:if>
  160. <c:if test="${requestScope.start_time == '' && requestScope.end_time != ''}">
  161. 统计日期:&nbsp;&nbsp; /至${requestScope.end_time }
  162. </c:if>
  163. <c:if test="${requestScope.start_time != '' && requestScope.end_time != ''}">
  164. 统计日期:&nbsp;&nbsp; ${requestScope.start_time }至${requestScope.end_time }
  165. </c:if>
  166. </div>
  167. <div style="text-align: center; height: 20px;"></div>
  168. <table cellpadding="0" width="900" cellspacing="0" align="center" class="print">
  169. <tr>
  170. <th>车牌号</th>
  171. <th>运费收入</th>
  172. <th>过路费</th>
  173. <th>洗车费</th>
  174. <th>停车费</th>
  175. <th>加水费</th>
  176. <th>其它费用</th>
  177. <th>加油费</th>
  178. <th>事故保险费</th>
  179. <th>维保费</th>
  180. <th>保险费</th>
  181. <th>违章费</th>
  182. <th style="background-color:#E0E0E0;">总计</th>
  183. </tr>
  184. <c:set var="freight_incomes" value="0"></c:set>
  185. <c:set var="road_tolls" value="0"></c:set>
  186. <c:set var="car_washing_fees" value="0"></c:set>
  187. <c:set var="parking_fees" value="0"></c:set>
  188. <c:set var="water_fees" value="0"></c:set>
  189. <c:set var="other_fees" value="0"></c:set>
  190. <c:set var="gas_moneys" value="0"></c:set>
  191. <c:set var="insurance_moneys" value="0"></c:set>
  192. <c:set var="maintenance_moneys" value="0"></c:set>
  193. <c:set var="insurance_compensations" value="0"></c:set>
  194. <c:set var="fine_moneys" value="0"></c:set>
  195. <c:set var="sum" value="0"></c:set>
  196. <c:forEach var="list" items="${requestScope.fees}" varStatus="index">
  197. <tr style="text-align: center;">
  198. <td>${list.plate_number}</td>
  199. <td>${list.freight_incomes}</td>
  200. <td>${list.road_tolls}</td>
  201. <td>${list.car_washing_fees}</td>
  202. <td>${list.parking_fees}</td>
  203. <td>${list.water_fees}</td>
  204. <td>${list.other_fees}</td>
  205. <td>${list.gas_moneys}</td>
  206. <td>${list.insurance_moneys}</td>
  207. <td>${list.maintenance_moneys}</td>
  208. <td>${list.insurance_compensations}</td>
  209. <td>${list.fine_moneys}</td>
  210. <td style="background-color:#E0E0E0;">${list.freight_incomes+list.road_tolls+list.car_washing_fees+list.parking_fees+
  211. list.water_fees+list.other_fees+list.gas_moneys+list.insurance_moneys+list.maintenance_moneys+
  212. list.insurance_compensations+list.fine_moneys}</td>
  213. </tr>
  214. <c:set var="freight_incomes" value="${freight_incomes+list.freight_incomes}"></c:set>
  215. <c:set var="road_tolls" value="${road_tolls+list.road_tolls}"></c:set>
  216. <c:set var="car_washing_fees" value="${car_washing_fees+list.car_washing_fees}"></c:set>
  217. <c:set var="parking_fees" value="${parking_fees+list.parking_fees}"></c:set>
  218. <c:set var="water_fees" value="${water_fees+list.water_fees}"></c:set>
  219. <c:set var="other_fees" value="${other_fees+list.other_fees}"></c:set>
  220. <c:set var="gas_moneys" value="${gas_moneys+list.gas_moneys}"></c:set>
  221. <c:set var="insurance_moneys" value="${insurance_moneys+list.insurance_moneys}"></c:set>
  222. <c:set var="maintenance_moneys" value="${maintenance_moneys+list.maintenance_moneys}"></c:set>
  223. <c:set var="insurance_compensations" value="${insurance_compensations+list.insurance_compensations}"></c:set>
  224. <c:set var="fine_moneys" value="${fine_moneys+list.fine_moneys}"></c:set>
  225. <c:set var="sum" value="${sum+list.fine_moneys}"></c:set>
  226. </c:forEach>
  227. <tr style="background-color:#E0E0E0;">
  228. <th>总计</th>
  229. <th align="center">${freight_incomes }</th>
  230. <th align="center">${road_tolls }</th>
  231. <th align="center">${car_washing_fees }</th>
  232. <th align="center">${parking_fees }</th>
  233. <th align="center">${water_fees }</th>
  234. <th align="center">${other_fees }</th>
  235. <th align="center">${gas_moneys}</th>
  236. <th align="center">${insurance_moneys }</th>
  237. <th align="center">${maintenance_moneys }</th>
  238. <th align="center">${insurance_compensations }</th>
  239. <th align="center">${fine_moneys }</th>
  240. <th align="center">${freight_incomes+road_tolls+car_washing_fees+parking_fees+water_fees+other_fees+gas_moneys+insurance_moneys+maintenance_moneys+insurance_compensations+fine_moneys }</th>
  241. </tr>
  242. <tr style="border:0px dashed gold;">
  243. <th colspan="15">记录数:${requestScope.count }</th>
  244. </tr>
  245. </table>
  246. </div>
  247. </body>
  248. </html>