fee_statistic.jsp
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:7k
源码类别:

电子政务应用

开发平台:

Java

  1. <%@ taglib uri="/vnex.tld" prefix="vnex" %>
  2. <%@ taglib uri="/vnex_vehicle_driver.tld" prefix="vnex_driver" %>
  3. <%@ page errorPage="/vnex/ErrorPage.jsp" %>
  4. <%@ page import="com.vnex.intranet.pub.BusinessSession"%>
  5. <%@ page import="com.vnex.intranet.util.*"%>
  6. <%@ page import="java.util.*"%>
  7. <%@ page import="java.sql.Timestamp"%>
  8. <jsp:useBean id="BusinessName" scope="session" class="com.vnex.intranet.pub.BusinessSession" />
  9. <jsp:useBean id="driverProxy" scope="application" class="com.vnex.intranet.vehicle.driver.proxy.DriverProxyBean" />
  10. <%      
  11.     String timeS = request.getParameter("timeS");    
  12.     if( timeS == null || timeS.equals("") )
  13.     {
  14.         timeS = MyDateFormat.myDate( TimeStamp.convertCalendarToTimestamp( Calendar.getInstance() ) );
  15.     }   
  16.     Timestamp condition = MyDateFormat.myDate( timeS );  
  17.     Calendar cal = TimeStamp.convertTimestampToCalendar( condition );      
  18.     int year = cal.get( Calendar.YEAR );
  19.     int month = cal.get( Calendar.MONTH ) + 1;
  20.     cal.set(Calendar.MONTH,month);
  21.     condition = TimeStamp.convertCalendarToTimestamp( cal );  
  22.     
  23.     String link = "/mainctrl/driver/modifyDrivingFee?timeS=" + timeS;
  24.     
  25.     String start = "";
  26.     if( request.getParameter("start") != null )
  27.     {
  28.         start = "&start=" + request.getParameter("start");
  29.     }   
  30. %>
  31. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  32. <HTML>
  33. <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
  34. <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
  35. <script language="JavaScript1.2" src="/vnex/menu/dockmenu_office.js"></script>
  36. <script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
  37. <script Language="JavaScript" src="/vnex/intranet/calendar/Popup.js"></script>
  38. <script language="JavaScript">
  39. function SelectAll(form)
  40. {
  41.   for (var i=0;i<form.elements.length;i++)
  42.   {
  43.     var e = form.elements[i];
  44.     if (e.name != 'C1')
  45.        e.checked = form.C1.checked;
  46.   }
  47. }
  48. function change(select)
  49. {
  50. myform.action="/mainctrl/driver/listDrivingFee";
  51. myform.submit();
  52. }
  53. function listSafetyDriving(form)
  54. {
  55. form.action="/mainctrl/driver/listSafetyDriving";
  56. form.submit();
  57. }
  58. </script>
  59. <DIV align=center>
  60. <form name="myform" method="post" action="">
  61. <input type="hidden" name="timeS" value="<%= timeS %>">   
  62.    
  63.     <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
  64.     <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
  65.     <TR> 
  66.         <TD colSpan=3 align="center"> <br> <table width="600" border="1" cellspacing="1" bordercolor="#666666">
  67.             <tr bgcolor="#fafafa"> 
  68.               <td> 
  69.                 <table width="600" border="0" cellspacing="0" cellpadding="2">
  70.                   <tr bgcolor="#666666"> 
  71.                     <td colspan="2" height="15" bgcolor="#666666"><font class="strongw">&nbsp;<a href="/mainctrl/home/index"><font color="#FFFFFF">首页</font></a>&gt;&gt;<a href="/mainctrl/office/main"><font color="#FFFFFF">办公室管理</font></a>&gt;&gt;车辆月行驶费用统计                    
  72.                     </font></td>
  73.                   </tr>
  74.                 </table>
  75.                 <div id="Layer1" style="width:600px; z-index:1; overflow:auto ">
  76.                 <table class=title cellspacing=1 cellpadding=2 border=0 width="600">
  77.                   <tr bgcolor="#e0e0e0"> 
  78.                     <td colspan="12"> <font class="strong">&nbsp;&nbsp;<%= year %>年<%= month %>月 <img src="/vnex/intranet/calendar/datetime.gif" style="cursor:hand;" align="absmiddle" alt="弹出日历下拉菜单" onClick="fPopUpCalendarDlg(timeS);change(this);return false;" width="16" height="16"></font> 
  79.                     </td>
  80.                   </tr>
  81.                   <tr bgcolor="#fafafa"> 
  82.                     <td colspan="12" height="30">&nbsp;                       
  83.                       <input type="button" style="width:158px" name="Button3222222" value="生成安全行驶奖统计申报表" onClick="listSafetyDriving(this.form)" class="file" >
  84.                     </td>
  85.                   </tr>                  
  86.                   <tr align=middle> 
  87.                     <td><font class="strong">驾驶员</font></td>
  88.                     <td><font class="strong">车牌号</font></td>
  89.                     <td><font class="strong">里程底表</font></td>
  90.                     <td><font class="strong">里程表</font></td>
  91.                     <td><font class="strong">月公里 </font></td>
  92.                     <td><font class="strong">月用油</font></td>
  93.                     <td><font class="strong">金额</font></td>
  94.                     <td><font class="strong">百公里耗油</font></td>
  95.                     <td><font class="strong">行驶费用</font></td>
  96.                     <td><font class="strong">月维修费</font></td>
  97.                     <td><font class="strong">总金额</font></td>
  98.                     <td><font class="strong">备注</font></td>
  99.                   </tr>        
  100.                   <vnex_driver:drivingFeeList condition="<%= condition %>">             
  101.                   <vnex:items paging="true">                               
  102.                   <tr align=middle bgcolor="<vnex:itemsColor />"> 
  103.                     <td><a href="<%= link %>&id=<vnex_driver:drivingFeeAttribute attribute="id"/>"><vnex_driver:drivingFeeAttribute attribute="name"/></td>
  104.                     <td><vnex_driver:drivingFeeAttribute attribute="auto"/></a></td>
  105.                     <td><vnex_driver:drivingFeeAttribute attribute="base_odometer"/></td>
  106.                     <td><vnex_driver:drivingFeeAttribute attribute="odometer"/></td>
  107.                     <td><vnex_driver:drivingFeeAttribute attribute="miles"/></td>
  108.                     <td><vnex_driver:drivingFeeAttribute attribute="oil"/></td>
  109.                     <td><vnex_driver:drivingFeeAttribute attribute="oil_fee"/></td>
  110.                     <td><vnex_driver:drivingFeeAttribute attribute="oil_mile"/></td>
  111.                     <td><vnex_driver:drivingFeeAttribute attribute="driving_fee"/></td>
  112.                     <td><vnex_driver:drivingFeeAttribute attribute="maintain_fee"/></td>
  113.                     <td><vnex_driver:drivingFeeAttribute attribute="sum"/></td>
  114.                     <td><vnex_driver:drivingFeeAttribute attribute="note"/></td>
  115.                   </tr>
  116.                   </vnex:items>
  117.                   <tr>
  118.                       <td colspan="12" align="left" bgcolor="#e0e0e0">
  119.                          &nbsp;<vnex:pagingTag pageName="/mainctrl/driver/listDrivingFee?a" />
  120.                       </td>
  121.                   </tr>                     
  122.                   </vnex_driver:drivingFeeList>
  123.                 </table>
  124.                 </div>
  125.               </td>
  126.             </tr>
  127.           </table>          
  128.           <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
  129.        </TD>
  130.     </TR>
  131.     <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
  132.     </TABLE>
  133.   <BR>
  134.   <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
  135. </form></DIV>
  136. </BODY></HTML>