safe_driving_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/modifySafetyDriving?timeS=" + timeS;  
  24. %>
  25. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  26. <HTML>
  27. <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
  28. <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
  29. <script language="JavaScript1.2" src="/vnex/menu/dockmenu_office.js"></script>
  30. <script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
  31. <script Language="JavaScript" src="/vnex/intranet/calendar/Popup.js"></script>
  32. <script language="JavaScript">
  33. function SelectAll(form)
  34. {
  35.   for (var i=0;i<form.elements.length;i++)
  36.   {
  37.     var e = form.elements[i];
  38.     if (e.name != 'C1')
  39.        e.checked = form.C1.checked;
  40.   }
  41. }
  42. function change(select)
  43. {
  44. myform.action="/mainctrl/driver/listSafetyDriving";
  45. myform.submit();
  46. }
  47. function listDrivingFee(select)
  48. {
  49. myform.action="/mainctrl/driver/listDrivingFee";
  50. myform.submit();
  51. }
  52. </script>
  53. <DIV align=center>
  54. <form name="myform" method="post" action="">
  55. <input type="hidden" name="timeS" value="<%= timeS %>">   
  56.    
  57.     <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>     
  58.     <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
  59.     <TR> 
  60.         <TD colSpan=3 align="center"> <br> <table width="600" border="1" cellspacing="1" bordercolor="#666666">
  61.             <tr bgcolor="#fafafa"> 
  62.               <td> 
  63.                 <table width="600" border="0" cellspacing="0" cellpadding="2">
  64.                   <tr bgcolor="#666666"> 
  65.                     <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;<a href="/mainctrl/driver/listDrivingFee"><font color="#FFFFFF">车辆行驶费用</font></a>&gt;&gt;驾驶员安全行驶奖统计申报表                                         
  66.                     </td>
  67.                   </tr>
  68.                 </table>
  69.                 <table class=title cellspacing=1 cellpadding=2 border=0 width="600">
  70.                   <tr bgcolor="#fafafa"> 
  71.                     <td colspan="12"> <font class="strong">&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> 
  72.                     </td>
  73.                   </tr>                  
  74.                   <tr align=middle> 
  75.                     <td><font  class="strong">序号</font></td>
  76.                     <td><font  class="strong">姓名</font></td>
  77.                     <td><font  class="strong">车牌号</font></td>
  78.                     <td><font  class="strong">里程表底</font></td>
  79.                     <td><font  class="strong">里程表</font></td>
  80.                     <td><font  class="strong">总计行走公里</font></td>
  81.                     <td><font  class="strong">耗油(公升)</font></td>
  82.                     <td><font  class="strong">元/公里</font></td>
  83.                     <td><font  class="strong">安全考核</font></td>
  84.                     <td><font  class="strong">奖金 </font></td>
  85.                     <td><font  class="strong">签字</font></td>
  86.                     <td><font  class="strong">备注</font></td>
  87.                   </tr>  
  88.                   <vnex_driver:safetyDrivingList condition="<%= condition %>">                  
  89.                   <vnex:items paging="false">  
  90.                   <tr align=middle bgcolor="<vnex:itemsColor />"> 
  91.                     <td><vnex:itemsRowNum /></td>
  92.                     <td><a href="<%= link %>&id=<vnex_driver:safetyDrivingAttribute attribute="id"/>"><vnex_driver:safetyDrivingAttribute attribute="name"/></td>
  93.                     <td><vnex_driver:safetyDrivingAttribute attribute="auto"/></a></td>
  94.                     <td><vnex_driver:safetyDrivingAttribute attribute="base_odometer"/></td>
  95.                     <td><vnex_driver:safetyDrivingAttribute attribute="odometer"/></td>
  96.                     <td><vnex_driver:safetyDrivingAttribute attribute="miles"/></td>
  97.                     <td><vnex_driver:safetyDrivingAttribute attribute="oil"/></td>
  98.                     <td><vnex_driver:safetyDrivingAttribute attribute="fee_mile"/></td>
  99.                     <td><vnex_driver:safetyDrivingAttribute attribute="examination"/></td>
  100.                     <td><vnex_driver:safetyDrivingAttribute attribute="bonus"/></td>
  101.                     <td>&nbsp;</td>
  102.                     <td><vnex_driver:safetyDrivingAttribute attribute="note"/></td>
  103.                   </tr>
  104.                   </vnex:items>    
  105.                   </vnex_driver:safetyDrivingList>                                             
  106.                   <tr bgcolor="#e0e0e0"> 
  107.                     <td colspan="12"> 
  108.                       <table width="100%" border="0">
  109.                         <tr> 
  110.                           <td>&nbsp;车队负责人: </td>
  111.                           <td>人事部负责人: </td>
  112.                         </tr>
  113.                         <tr> 
  114.                           <td>&nbsp;办公室负责人: </td>
  115.                           <td>财务部负责人: </td>
  116.                         </tr>
  117.                       </table>
  118.                     </td>
  119.                   </tr>
  120.                   <tr align=center bgcolor="#fafafa"> 
  121.                     <td colspan="12" height="30"> 
  122.                       <input type="button" name="Button3222" value="返回" class="file" onClick="listDrivingFee(this.form)">
  123.                     </td>
  124.                   </tr>
  125.                 </table>
  126.               </td>
  127.             </tr>
  128.           </table>         
  129.           <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
  130.        </TD>
  131.     </TR>
  132.     <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
  133.     </TABLE>
  134.   <BR>
  135.   <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
  136. </form></DIV>
  137. </BODY></HTML>