| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254 |
- <%@ page language="java" contentType="text/html;charset=GBK"
- pageEncoding="GBK"%>
- <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
- <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
- <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html;charset=GBK">
- <title>车辆维保统计</title>
- <script type="text/javascript"src="${pageContext.request.contextPath }/controls/print/plugPrint.js"></script>
- <!--media=print 这个属性可以在打印时有效-->
- <style media=print>
- .Noprint {
- display: none;
- }
- .PageNext {
- page-break-after: always;
- }
- </style>
- <style type="text/css">
- body {
- font-size: 12pt;
- }
- .auditOpionin_left_td {
- border-left: 1px solid #000000;
- border-bottom: 0px solid #000000;
- border-right: 1px solid #000000;
- }
- .auditOpionin_right_td {
- border-bottom: 0px solid #000000;
- border-right: 1px solid #000000;
- }
- .auditOpionin_div {
- padding-left: 10px;
- padding-top: 10px;
- margin-bottom: 10px;
- }
- .auditOpionin_content_left_td {
- border-left: 1px solid #000000;
- border-bottom: 1px solid #000000;
- border-right: 1px solid #000000;
- padding-left: 10px;
- }
- .auditOpionin_content_right_td {
- border-bottom: 1px solid #000000;
- border-right: 1px solid #000000;
- padding-left: 10px;
- }
- .ctd {
- margin: 5px;
- padding: 5px;
- }
- .tdp {
- border-bottom: 1 2px solid #000000 #000000;
- border-left: 1 2px solid #000000 #000000;
- border-right: 0 2px solid #000000 #ffffff;
- border-top: 0 2px solid #000000 #ffffff;
- }
- .tabp {
- border-color: #000000 #000000 #000000 #000000;
- border: 2px solid #000000;
- border-top-width: 2px;
- border-right-width: 2px;
- border-bottom-width: 1px;
- border-left-width: 1px;
- }
- .NOPRINT {
- font-family: "宋体";
- font-size: 9pt;
- }
- ul {
- list-style: none;
- margin: 0;
- padding: 0;
- }
- ul li {
- line-height: 28px;
- }
- #mdA table,#mdA table td,#mdA table th{border:1px solid #000000;border-collapse:collapse;}
- </style>
- <script language="javascript" type="text/javascript">
- //****************************************************************
- //* 名 称:formPrintit
- //* 功 能:打印
- //* 作 者: 章家明
- //* 入口参数:
- //* 出口参数:
- //*****************************************************************
- function formPrintit(isZong, isSelectPrinter) {
- setupHeaderAndFooter("", "");
- setupMargin("1", "28", "28", "28", "28");
- printit(isZong, isSelectPrinter);
- }
- //****************************************************************
- //* 名 称:formPageSetup
- //* 功 能:打印设置
- //* 作 者: 章家明
- //* 入口参数:
- //* 出口参数:
- //*****************************************************************
- function formPageSetup() {
- setupHeaderAndFooter("", "");
- setupMargin("1", "28", "28", "28", "28");
- popPageSetup();
- }
- //****************************************************************
- //* 名 称:formPreview
- //* 功 能:打印预览
- //* 作 者: 章家明
- //* 入口参数:
- //* 出口参数:
- //*****************************************************************
- function formPreview() {
- setupHeaderAndFooter("", "");
- setupMargin("1", "28", "28", "28", "28");
- popPreview();
- }
- function printWindow() {
- factory.printing.header = "This is MeadCo";
- factory.printing.footer = "Printing by ScriptX";
- factory.printing.portrait = false;
- factory.printing.leftMargin = 1.0;
- factory.printing.topMargin = 1.0;
- factory.printing.rightMargin = 1.0;
- factory.printing.bottomMargin = 1.0;
- // factory.printing.Print(false);
- factory.printing.Preview();
- }
- </script>
- </head>
- <body>
- <table width="100%" cellpadding="0" cellspacing="0" class="hl hr"
- bordercolor="#000000" align="center">
- <tr class="Noprint">
- <td align="center">
- <object id="factory" viewastext style="display: none"
- classid="clsid:1663ed61-23eb-11d2-b92f-008048fdd814"
- codebase="${pageContext.request.contextPath}/controls/print/smsx.cab#Version=7,0,0,8">
- </object> <input type=button value="选择打印" onclick="formPrintit(false, true)">
- <input type=button value="直接打印" onclick="formPrintit(true, false)">
- <input type=button value="页面设置" onclick="formPageSetup()"> <input
- type=button value="打印预览" onclick="formPreview()">
- </td>
- </tr>
- </table>
- <br />
- <div id="mdA" style="margin-top: 4px">
-
-
- <table class="print" width="1200" style="border-collapse: collapse; margin: 0px auto;text-align: center;" border="1">
- <tr height="100px;">
- <th colspan="10"><font size="6">车辆维保统计报表</font></th>
- </tr>
- <tr height="30px;">
- <c:if test="${requestScope.start_time == '' && requestScope.end_time == ''}">
- <th colspan="20" style="text-align: left;">统计日期: /至/</th>
- </c:if>
- <c:if test="${requestScope.start_time != '' && requestScope.end_time == ''}">
- <th colspan="20" style="text-align: left;">统计日期: ${requestScope.start_time }至/</th>
- </c:if>
- <c:if test="${requestScope.start_time == '' && requestScope.end_time != ''}">
- <th colspan="20" style="text-align: left;">统计日期: /至${requestScope.end_time }</th>
- </c:if>
- <c:if test="${requestScope.start_time != '' && requestScope.end_time != ''}">
- <th colspan="20" style="text-align: left;">统计日期: ${requestScope.start_time }至${requestScope.end_time }</th>
- </c:if>
- </tr>
- <c:if test="${requestScope.fees != null}">
- <c:forEach var="list" items="${requestScope.fees}" varStatus="index">
- <c:forEach var="listO" items="${list.lists}" varStatus="status">
- <tr>
- <td width="100px">车牌号:<br/><br/>${listO['plate_number']}</td>
- <td width="100px;">是否保养:<br/><br/>
- <c:if test="${1==listO['if_maintain']}">
- 是
- </c:if>
- <c:if test="${2==listO['if_maintain']}">
- 否
- </c:if>
- </td>
- <td width="100px;">送修时间:<br/><br/><c:out value="${fn:substring(listO['repair_date'],0,16)}"/></td>
- <td width="100px;">取车时间:<br/><br/><c:out value="${fn:substring(listO['take_date'],0,16)}"/></td>
- <td width="100px;">维修费用:<br/><br/>
- <fmt:formatNumber value="${listO['money']}" pattern="#.##" minFractionDigits="2" />
- </td>
- <td width="170px;">送修原因:<br/><br/>${listO['repair_reason']}</td>
- <td>维修配件
- <table class="print" style="border-collapse: collapse; margin: 0px auto;text-align: center;" border="1">
- <tr>
- <td width="50px;">序号</td>
- <td width="100px;">维修项目</td>
- <td width="100px;">配件名称</td>
- <td width="50px;">单价</td>
- <td width="50px;">数量</td>
- <td width="100px;">计量单位</td>
- <td width="50px;">工时费</td>
- <td width="50px;">小计</td>
- </tr>
- <c:set var="idMountings" value="xx${listO['universalid']}"></c:set>
- <c:set var="total" value="0"></c:set>
- <c:forEach items="${list[idMountings]}" var="mountings" varStatus="i">
- <tr>
- <td width="50px;">${i.index+1}</td>
- <td width="100px;">${mountings.service_project}</td>
- <td width="100px;">${mountings.mountings_name}</td>
- <td width="50px;"><fmt:formatNumber value="${mountings.unit_price}" pattern="#.##" minFractionDigits="2" /></td>
- <td width="50px;">${mountings.number}</td>
- <td width="50px;">${mountings.unit}</td>
- <td width="50px;"><fmt:formatNumber value="${mountings.work_fee}" pattern="#.##" minFractionDigits="2" /></td>
- <td width="50px;"><fmt:formatNumber value="${mountings.unit_price*mountings.number+mountings.work_fee}" pattern="#.##" minFractionDigits="2" /></td>
- <c:set var="total" value="${total+mountings.sum}"></c:set>
- </tr>
- </c:forEach>
- <tr>
- <td colspan="7">总计:</td>
- <td><fmt:formatNumber value="${total}" pattern="#.##" minFractionDigits="2" /></td>
- </tr>
- </table>
- </td>
- </tr>
- </c:forEach>
- </c:forEach>
- </c:if>
- <c:if test="${fn:length(requestScope.fees)==0}">
- <tr>
- <th colspan="10" style="text-align: content: ;">没有找到数据</th>
- </tr>
- </c:if>
- </table>
- </div>
- </body>
- </html>
|