list_accident.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="java.util.*"%>
  6. <jsp:useBean id="BusinessName" scope="session" class="com.vnex.intranet.pub.BusinessSession" />
  7. <jsp:useBean id="driverProxy" scope="application" class="com.vnex.intranet.vehicle.driver.proxy.DriverProxyBean" />
  8. <jsp:useBean id="condition" scope="page" class="com.vnex.intranet.vehicle.driver.value.DriverQryBean" />
  9. <%      
  10.     String empId = request.getParameter("empId");    
  11.     if( empId == null )
  12.     {
  13.         empId = "-1";
  14.     }
  15.     condition.setEmpId( Integer.parseInt( empId ) );     
  16.     
  17.     String link = "/mainctrl/driver/detailAccident?empId=" + request.getParameter("empId") + 
  18.                           "&empName=" + request.getParameter("empName") + "&automobileId=" + request.getParameter("automobileId");            
  19.     String accidentLink = "/mainctrl/driver/listAccident?empId=" + request.getParameter("empId") + 
  20.                           "&empName=" + request.getParameter("empName") + "&automobileId=" + request.getParameter("automobileId");
  21.     
  22.     String start = "";
  23.     if( request.getParameter("start") != null )
  24.     {
  25.         start = "&start=" + request.getParameter("start");
  26.     }   
  27. %>
  28. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  29. <HTML>
  30. <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
  31. <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
  32. <script language="JavaScript1.2" src="/vnex/menu/dockmenu_office.js"></script>
  33. <script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
  34. <script language=JavaScript>
  35. function SelectAll(form)
  36. {
  37.   for (var i=0;i<form.elements.length;i++)
  38.   {
  39.     var e = form.elements[i];
  40.     if (e.name != 'C1')
  41.        e.checked = form.C1.checked;
  42.   }
  43. }
  44. function addAccident(form)
  45. {
  46.    form.action="/mainctrl/driver/addAccident";
  47.    form.submit();
  48. }
  49. function detailDriver(form)
  50. {
  51.    form.action="/mainctrl/driver/detailDriver";
  52.    form.submit();
  53. }
  54. function deleteAccidents(form)
  55. {
  56.     if(confirm("是否要删除所选事故记录?"))
  57.     {
  58.         form.action="/mainctrl/driver/deleteAccidents";
  59.         form.submit();
  60.     }
  61. }
  62. </script>
  63. <DIV align=center>
  64. <form name="myform" method="post" action="">
  65. <input type="hidden" name="empId" value="<%=request.getParameter("empId")%>">   
  66. <input type="hidden" name="empName" value="<%= request.getParameter("empName") %>">
  67. <input type="hidden" name="automobileId" value="<%= request.getParameter("automobileId") %>">
  68.    
  69.     <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
  70.     <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
  71.     <TR> 
  72.         <TD colSpan=3 align="center"> <br>
  73.           <table width="600" border="1" cellspacing="1" bordercolor="#666666">
  74.             <tr> 
  75.               <td bgcolor="#fafafa">
  76.                 <table class=title cellspacing=1 cellpadding=2 width="100%" 
  77. border=0>
  78.                   <tr> 
  79.                     <td colspan="7" height="15" bgcolor="#666666"><font class="strongw">&nbsp;&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/listDriver"><font color="#FFFFFF">司机管理</font></a>&gt;&gt;<a href="/mainctrl/driver/detailDriver?empId=<%= request.getParameter("empId") %>"><font color="#FFFFFF">司机详细信息</font></a>&gt;&gt;<%= request.getParameter("empName") %>事故记录列表                     
  80.                       </font> </td>
  81.                   </tr>
  82.                   <tr bgcolor="#fafafa"> 
  83.                     <td colspan="7" height="30">&nbsp; 
  84.                       <input type="button" name="Button3222" value="新增" class="file" onClick="addAccident(this.form)">&nbsp;&nbsp;
  85.                       <input type="button" name="Button3222" value="删除" class="file" onClick="deleteAccidents(this.form)">&nbsp;&nbsp;
  86.                       <input type="button" name="Button322" value="返回" class="file" onClick="detailDriver(this.form)">&nbsp;&nbsp;
  87.                     </td>
  88.                   </tr>                  
  89.                   <tr align=middle> 
  90.                     <td width="7%"><font  class="strong">选择</font></td>
  91.                     <td width="17%"><font  class="strong">事故时间</font></td>
  92.                     <td width="16%"><font  class="strong">事故地点</font></td>
  93.                     <td width="16%"><font  class="strong">使用车辆</font></td>
  94.                     <td width="16%"><font  class="strong">严重程度</font></td>
  95.                     <td width="18%"><font  class="strong">是否主要责任人</font></td>
  96.                     <td width="17%"><font  class="strong">处理结果</font></td>
  97.                   </tr> 
  98.                   <vnex_driver:accidentList condition="<%= condition %>">                    
  99.                   <vnex:items paging="true">                               
  100.                   <tr align=middle bgcolor="<vnex:itemsColor />">
  101.                     <td width="7%" align="center" height="19"> 
  102.                         <p align="center"><font size="2" face="宋体"></font> 
  103.                           <input type="checkbox" name="accidentId" value="<vnex_driver:accidentAttribute attribute="id"/>">
  104.                     </td> 
  105.                     <td width="17%" height="13"> <vnex_driver:accidentAttribute attribute="time"/> 
  106.                       <br>
  107.                     </td>
  108.                     <td width="16%" height="13"><vnex_driver:accidentAttribute attribute="site"/> </td>
  109.                     <td width="16%" height="13"><a href="<%= link %>&id=<vnex_driver:accidentAttribute attribute="id"/><%= start %>"><vnex_driver:accidentAttribute attribute="auto"/></a></td>
  110.                     <td width="16%" height="13"> <vnex_driver:accidentAttribute attribute="severity"/></td>
  111.                     <td width="18%" height="13"><vnex_driver:accidentAttribute attribute="responsibility"/></td>
  112.                     <td width="17%" height="13"><vnex_driver:accidentAttribute attribute="process_result"/></td>
  113.                   </tr>   
  114.                   </vnex:items>  
  115.                   <tr>
  116.                       <td align="center" width="7%" bgcolor="#fafafa">
  117.                          <input type="checkbox" name="C1" onclick="SelectAll(this.form)">
  118.                       </td>
  119.                       <td colspan="6" bgcolor="#fafafa">   
  120.                          &nbsp;&nbsp;全选
  121.                      </td>
  122.                   </tr>                 
  123.                   <tr>
  124.                       <td colspan="7" align="left" bgcolor="#e0e0e0">
  125.                          &nbsp;<vnex:pagingTag pageName="<%= accidentLink %>" />
  126.                       </td>
  127.                   </tr>                    
  128.                   </vnex_driver:accidentList>                                 
  129.                 </table>
  130.                 </td>
  131.             </tr>
  132.           </table>         
  133.          <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
  134.        </TD>
  135.     </TR>
  136.     <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
  137.     </TABLE>
  138.   <BR>
  139.   <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
  140. </form></DIV>
  141. </BODY></HTML>