list_peccancy.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/detailPeccancy?empId=" + request.getParameter("empId") + 
  18.                           "&empName=" + request.getParameter("empName") + "&automobileId=" + request.getParameter("automobileId");     
  19.     String peccancyLink = "/mainctrl/driver/listPeccancy?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 addPeccancy(form)
  45. {
  46.    form.action="/mainctrl/driver/addPeccancy";
  47.    form.submit();
  48. }
  49. function detailDriver(form)
  50. {
  51.    form.action="/mainctrl/driver/detailDriver";
  52.    form.submit();
  53. }
  54. function deletePeccancies(form)
  55. {
  56.     if(confirm("是否要删除所选违章记录?"))
  57.     {
  58.         form.action="/mainctrl/driver/deletePeccancies";
  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.     <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
  69.     <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
  70.     <TR> 
  71.         <TD colSpan=3 align="center"> <br>
  72.           <table width="600" border="1" cellspacing="1" bordercolor="#666666">
  73.             <tr> 
  74.               <td bgcolor="#fafafa">
  75.                 <table class=title cellspacing=1 cellpadding=2 width="100%" 
  76. border=0>
  77.                   <tr> 
  78.                     <td colspan="6" 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") %>违章记录列表                                         
  79.                       </font> </td>
  80.                   </tr>
  81.                   <tr bgcolor="#fafafa"> 
  82.                     <td colspan="6" height="30">&nbsp; 
  83.                       <input type="button" name="Button3222" value="新增" class="file" onClick="addPeccancy(this.form)">&nbsp;&nbsp;
  84.                       <input type="button" name="Button3222" value="删除" class="file" onClick="deletePeccancies(this.form)">&nbsp;&nbsp;
  85.                       <input type="button" name="Button322" value="返回" class="file" onClick="detailDriver(this.form)">
  86.                     </td>
  87.                   </tr>                  
  88.                   <tr align=middle> 
  89.                     <td width="7%"><font  class="strong">选择</font></td>
  90.                     <td width="17%"><font  class="strong">违章时间</font></td>
  91.                     <td width="16%"><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.                   </tr>  
  96.                   <vnex_driver:peccancyList condition="<%= condition %>">                   
  97.                   <vnex:items paging="true">                               
  98.                   <tr align=middle bgcolor="<vnex:itemsColor />"> 
  99.                     <td width="7%" align="center" height="19"> 
  100.                         <p align="center"><font size="2" face="宋体"></font> 
  101.                           <input type="checkbox" name="peccancyId" value="<vnex_driver:peccancyAttribute attribute="id"/>">
  102.                     </td>
  103.                     <td width="17%" height="13"> <vnex_driver:peccancyAttribute attribute="time"/> 
  104.                       <br>
  105.                     </td>
  106.                     <td width="16%" height="13"><vnex_driver:peccancyAttribute attribute="site"/> </td>
  107.                     <td width="16%" height="13"><a href="<%= link %>&id=<vnex_driver:peccancyAttribute attribute="id"/><%= start %>"><vnex_driver:peccancyAttribute attribute="auto"/></a></td>
  108.                     <td width="16%" height="13"> <vnex_driver:peccancyAttribute attribute="severity"/></td>
  109.                     <td width="16%" height="13"><vnex_driver:peccancyAttribute attribute="punishment"/></td>
  110.                   </tr>
  111.                   </vnex:items> 
  112.                   <tr>
  113.                       <td align="center" width="7%" bgcolor="#fafafa">
  114.                          <input type="checkbox" name="C1" onclick="SelectAll(this.form)">
  115.                       </td>
  116.                       <td colspan="5" bgcolor="#fafafa">   
  117.                          &nbsp;&nbsp;全选
  118.                      </td>
  119.                   </tr>
  120.                   <tr>
  121.                       <td colspan="6" align="left" bgcolor="#e0e0e0">
  122.                          &nbsp;<vnex:pagingTag pageName="<%= peccancyLink %>" />
  123.                       </td>
  124.                   </tr>                    
  125.                   </vnex_driver:peccancyList>                  
  126.                 </table>
  127.                 </td>
  128.             </tr>
  129.           </table>         
  130.           <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
  131.        </TD>
  132.     </TR>
  133.     <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
  134.    </TABLE>
  135.   <BR>
  136.   <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
  137. </form></DIV>
  138. </BODY></HTML>