list_accident.jsp
资源名称:NetOffice.rar [点击查看]
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:7k
源码类别:
电子政务应用
开发平台:
Java
- <%@ taglib uri="/vnex.tld" prefix="vnex" %>
- <%@ taglib uri="/vnex_vehicle_driver.tld" prefix="vnex_driver" %>
- <%@ page errorPage="/vnex/ErrorPage.jsp" %>
- <%@ page import="com.vnex.intranet.pub.BusinessSession"%>
- <%@ page import="java.util.*"%>
- <jsp:useBean id="BusinessName" scope="session" class="com.vnex.intranet.pub.BusinessSession" />
- <jsp:useBean id="driverProxy" scope="application" class="com.vnex.intranet.vehicle.driver.proxy.DriverProxyBean" />
- <jsp:useBean id="condition" scope="page" class="com.vnex.intranet.vehicle.driver.value.DriverQryBean" />
- <%
- String empId = request.getParameter("empId");
- if( empId == null )
- {
- empId = "-1";
- }
- condition.setEmpId( Integer.parseInt( empId ) );
- String link = "/mainctrl/driver/detailAccident?empId=" + request.getParameter("empId") +
- "&empName=" + request.getParameter("empName") + "&automobileId=" + request.getParameter("automobileId");
- String accidentLink = "/mainctrl/driver/listAccident?empId=" + request.getParameter("empId") +
- "&empName=" + request.getParameter("empName") + "&automobileId=" + request.getParameter("automobileId");
- String start = "";
- if( request.getParameter("start") != null )
- {
- start = "&start=" + request.getParameter("start");
- }
- %>
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
- <HTML>
- <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
- <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
- <script language="JavaScript1.2" src="/vnex/menu/dockmenu_office.js"></script>
- <script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
- <script language=JavaScript>
- function SelectAll(form)
- {
- for (var i=0;i<form.elements.length;i++)
- {
- var e = form.elements[i];
- if (e.name != 'C1')
- e.checked = form.C1.checked;
- }
- }
- function addAccident(form)
- {
- form.action="/mainctrl/driver/addAccident";
- form.submit();
- }
- function detailDriver(form)
- {
- form.action="/mainctrl/driver/detailDriver";
- form.submit();
- }
- function deleteAccidents(form)
- {
- if(confirm("是否要删除所选事故记录?"))
- {
- form.action="/mainctrl/driver/deleteAccidents";
- form.submit();
- }
- }
- </script>
- <DIV align=center>
- <form name="myform" method="post" action="">
- <input type="hidden" name="empId" value="<%=request.getParameter("empId")%>">
- <input type="hidden" name="empName" value="<%= request.getParameter("empName") %>">
- <input type="hidden" name="automobileId" value="<%= request.getParameter("automobileId") %>">
- <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
- <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
- <TR>
- <TD colSpan=3 align="center"> <br>
- <table width="600" border="1" cellspacing="1" bordercolor="#666666">
- <tr>
- <td bgcolor="#fafafa">
- <table class=title cellspacing=1 cellpadding=2 width="100%"
- border=0>
- <tr>
- <td colspan="7" height="15" bgcolor="#666666"><font class="strongw"> <a href="/mainctrl/home/index"><font color="#FFFFFF">首页</font></a>>><a href="/mainctrl/office/main"><font color="#FFFFFF">办公室管理</font></a>>><a href="/mainctrl/driver/listDriver"><font color="#FFFFFF">司机管理</font></a>>><a href="/mainctrl/driver/detailDriver?empId=<%= request.getParameter("empId") %>"><font color="#FFFFFF">司机详细信息</font></a>>><%= request.getParameter("empName") %>事故记录列表
- </font> </td>
- </tr>
- <tr bgcolor="#fafafa">
- <td colspan="7" height="30">
- <input type="button" name="Button3222" value="新增" class="file" onClick="addAccident(this.form)">
- <input type="button" name="Button3222" value="删除" class="file" onClick="deleteAccidents(this.form)">
- <input type="button" name="Button322" value="返回" class="file" onClick="detailDriver(this.form)">
- </td>
- </tr>
- <tr align=middle>
- <td width="7%"><font class="strong">选择</font></td>
- <td width="17%"><font class="strong">事故时间</font></td>
- <td width="16%"><font class="strong">事故地点</font></td>
- <td width="16%"><font class="strong">使用车辆</font></td>
- <td width="16%"><font class="strong">严重程度</font></td>
- <td width="18%"><font class="strong">是否主要责任人</font></td>
- <td width="17%"><font class="strong">处理结果</font></td>
- </tr>
- <vnex_driver:accidentList condition="<%= condition %>">
- <vnex:items paging="true">
- <tr align=middle bgcolor="<vnex:itemsColor />">
- <td width="7%" align="center" height="19">
- <p align="center"><font size="2" face="宋体"></font>
- <input type="checkbox" name="accidentId" value="<vnex_driver:accidentAttribute attribute="id"/>">
- </td>
- <td width="17%" height="13"> <vnex_driver:accidentAttribute attribute="time"/>
- <br>
- </td>
- <td width="16%" height="13"><vnex_driver:accidentAttribute attribute="site"/> </td>
- <td width="16%" height="13"><a href="<%= link %>&id=<vnex_driver:accidentAttribute attribute="id"/><%= start %>"><vnex_driver:accidentAttribute attribute="auto"/></a></td>
- <td width="16%" height="13"> <vnex_driver:accidentAttribute attribute="severity"/></td>
- <td width="18%" height="13"><vnex_driver:accidentAttribute attribute="responsibility"/></td>
- <td width="17%" height="13"><vnex_driver:accidentAttribute attribute="process_result"/></td>
- </tr>
- </vnex:items>
- <tr>
- <td align="center" width="7%" bgcolor="#fafafa">
- <input type="checkbox" name="C1" onclick="SelectAll(this.form)">
- </td>
- <td colspan="6" bgcolor="#fafafa">
- 全选
- </td>
- </tr>
- <tr>
- <td colspan="7" align="left" bgcolor="#e0e0e0">
- <vnex:pagingTag pageName="<%= accidentLink %>" />
- </td>
- </tr>
- </vnex_driver:accidentList>
- </table>
- </td>
- </tr>
- </table>
- <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
- </TD>
- </TR>
- <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
- </TABLE>
- <BR>
- <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
- </form></DIV>
- </BODY></HTML>