auto_repair_list.jsp
资源名称:NetOffice.rar [点击查看]
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:7k
源码类别:
电子政务应用
开发平台:
Java
- <%@jsp:include file="/vnex/head.jsp"%>
- <%@ page errorPage="/vnex/ErrorPage.jsp" %>
- <%@ page import="java.util.*" %>
- <%@ page import="com.vnex.intranet.vehicle.loader.*" %>
- <%@ page import="com.vnex.intranet.util.*" %>
- <%@ page import="com.vnex.intranet.util.FieldUtil" %>
- <%@ taglib uri="/vnex_vehicle_automobile.tld" prefix="vnex_automobile" %>
- <%@ taglib uri="/vnex.tld" prefix="vnex" %>
- <jsp:useBean id="BusinessName" scope="session" class="com.vnex.intranet.pub.BusinessSession" />
- <jsp:useBean id="proxy" scope="request" class="com.vnex.intranet.vehicle.automobile.manage.proxy.AutoManageProxyBean" />
- <jsp:useBean id="autoRepairInfo" scope="request" class="com.vnex.intranet.vehicle.automobile.manage.value.AutoRepairValueBean" />
- <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" src="/vnex/intranet/calendar/Popup.js"></script>
- <script language="JavaScript" src="/vnex/validate.js"></script>
- <script language="JavaScript" src="/vnex/util/strUtil.js"></script>
- <%
- String sId = request.getParameter("automobileId");
- String pageTo = "/mainctrl/manage/autoRepairList?a";
- int id = 0;
- if(sId!=null)
- {
- id = Integer.parseInt(sId);
- pageTo = pageTo + "&automobileId="+id;
- }
- %>
- <script language=JavaScript>
- function addd()
- {
- document.form1.action="/mainctrl/manage/autoRepairAdd?automobileId=<%=id%>";
- document.form1.submit();
- }
- function del()
- {
- if(form1.ids!=null)
- {
- if(isChecked(form1.ids))
- {
- if(confirm("是否要删除所选车辆的维修信息?"))
- {
- document.form1.action="/mainctrl/manage/autoesRepairDelete?automobileId="+<%=id%>;
- document.form1.submit();
- }
- }
- else
- {
- alert("至少要选择一条维修记录");
- return false;
- }
- }
- }
- function query()
- {
- document.form1.action="/mainctrl/manage/autoRepairList";
- document.form1.submit();
- }
- function can()
- {
- document.form1.action="/mainctrl/manage/autoBasicDetail?automobileId="+<%=sId%>;
- document.form1.submit();
- }
- 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;
- }
- }
- </script>
- <DIV align=center>
- <form name="form1" method="post">
- <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
- <TBODY>
- <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 border=0 width="600">
- <tr>
- <td colspan="8" 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>>>查看维修记录
- </font> </td>
- </tr>
- <tr bgcolor="#fafafa">
- <td height="30" colspan="8">
- <input type="button" name="Button3222" value="新增维修记录" style="width:85px" class="file" onClick="addd()">
- <input type="button" name="Button3223" value="删除" class="file" onClick="del()">
- <input type="button" name="Button322" value="返回" class="file" onClick="can()">
- </td>
- </tr>
- <tr align=center>
- <td width="7%"><font class="strong">选择</font></td>
- <td><font class="strong">车牌号</font></td>
- <td><font class="strong">送修时间</font></td>
- <td><font class="strong">修复时间</font></td>
- <td><font class="strong">送修者</font></td>
- <td><font class="strong">维修厂家</font></td>
- <td><font class="strong">维修原因</font></td>
- <td><font class="strong">维修费用</font></td>
- </tr>
- <vnex_automobile:automobileRepairList autoId = "<%=id%>">
- <vnex:pagingItems>
- <tr bgcolor="<vnex:itemsColor/>" align="center">
- <td width="7%">
- <input type="checkbox" name="ids" value="<vnex_automobile:automobileRepairAttribute attribute = "id"/>">
- </td>
- <td>
- <a href="/mainctrl/manage/autoRepairModify?automobileId=<vnex_automobile:automobileRepairAttribute attribute = "automobileId"/>&autoRepairId=<vnex_automobile:automobileRepairAttribute attribute = "id"/>">
- <vnex_automobile:automobileRepairAttribute attribute = "carCertNo"/>
- </a>
- </td>
- <td>
- <vnex_automobile:automobileRepairAttribute attribute = "beginDate"/>
- <br>
- </td>
- <td>
- <vnex_automobile:automobileRepairAttribute attribute = "endDate"/>
- </td>
- <td>
- <vnex_automobile:automobileRepairAttribute attribute = "sender"/>
- </td>
- <td>
- <vnex_automobile:automobileRepairAttribute attribute = "repairer"/>
- </td>
- <td>
- <vnex_automobile:automobileRepairAttribute attribute = "reason"/>
- </td>
- <td>
- <vnex_automobile:automobileRepairAttribute attribute = "cost"/>
- </td>
- </tr>
- </vnex:pagingItems>
- <tr bgcolor="#e0e0e0">
- <td align="center" width="42">
- <input type="checkbox" name="C1" onclick="SelectAll(this.form)">
- </td>
- <td colspan="8"> 全选</td>
- </tr>
- <tr>
- <td colspan="6" align="left">
- <vnex:pagingTag pageName="<%=pageTo%>" />
- </td>
- </tr>
- </vnex_automobile:automobileRepairList>
- </table>
- </td>
- </tr>
- </table>
- <br><br>
- <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
- </TD>
- </TR>
- <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
- </TBODY>
- </TABLE>
- <BR>
- <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
- </form>
- </DIV>
- </BODY>
- </HTML>
- </BODY>
- </HTML>