auto_basic_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.vehicle.automobile.manage.proxy.*" %>
- <%@ 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" />
- <%
- int userId = BusinessName.getEmpId();
- String type = request.getParameter("type");
- int autotype = 0;
- String pageTo = "/mainctrl/manage/autoBasicList?a";
- if(type!=null)
- {
- autotype = Integer.parseInt(type);
- pageTo = pageTo + "&type="+autotype;
- }
- %>
- <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>
- <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 addd()
- {
- document.form1.action="/mainctrl/manage/autoBasicAdd";
- document.form1.submit();
- }
- function del()
- {
- if(form1.ids!=null)
- {
- if(isChecked(form1.ids))
- {
- if(confirm("是否要删除所选车辆信息?"))
- {
- document.form1.action="/mainctrl/manage/autoesBasicDeleteSuccess";
- document.form1.submit();
- }
- }
- else
- {
- alert("至少要选择一辆车");
- return false;
- }
- }
- }
- function query()
- {
- document.form1.action="/mainctrl/manage/autoBasicList";
- document.form1.submit();
- }
- </script>
- </HEAD>
- <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 bgcolor="#fafafa">
- <td>
- <table width="600" border="0" cellspacing="0" cellpadding="2">
- <tr>
- <td colspan="4" 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/manage/autoBasicList"><font color="#FFFFFF">车辆管理</font></a>>>车辆基本情况</font></td>
- </tr>
- <tr>
- <td colspan="4" height="30"><font class="strong"> 查询:</font>
- <select size="1" name="type" value="0" style="width=150">
- <option value="0">全部类型
- <%
- Hashtable hash = VehicleLoader.getAllAutomobileType();
- Enumeration enum = hash.keys();
- if(enum != null)
- {
- while(enum.hasMoreElements())
- {
- String key = (String)enum.nextElement();
- String s = (String)hash.get(key);
- %>
- <option value="<%= key%>"><%= s%>
- <%}}%>
- </select>
- <input type="button" name="Button" value="查询" onClick="query()" class=text>
- </td>
- </tr>
- </table>
- <table class=title cellspacing=1 cellpadding=2 width="100%" border=0>
- <tr bgcolor="#fafafa">
- <td colspan="6" height="30">
- <input type="button" name="Button3222" value="新增" class="file" onClick="addd()">
- <input type="button" name="Button32222" value="删除" class="file" onClick="del()">
- </td>
- </tr>
- <tr align=middle>
- <td width="7%"><font class="strong">选择</font></td>
- <td width="15%"><font class="strong">编号 </font></td>
- <td width="16%"><font class="strong">车型</font></td>
- <td width="20%"><font class="strong">牌号 </font></td>
- <td width="15%"><font class="strong">价格 </font></td>
- <td width="27%"><font class="strong">购买日期 </font></td>
- <%
- AutoManageProxyBean proxy = new AutoManageProxyBean();
- pageContext.getServletContext().setAttribute("proxy", proxy);
- %> </tr>
- <vnex_automobile:automobileManageList employeeId = '<%=userId%>' typeId = '<%=autotype%>' >
- <vnex:items paging="true">
- <tr bgcolor="<vnex:itemsColor/>" align="center">
- <td width="7%" align="center" height="27">
- <input type="checkbox" name="ids" value="<vnex_automobile:automobileManageAttribute attribute = "automobileId"/>">
- </td>
- <td width="15%" height="27">
- <vnex_automobile:automobileManageAttribute attribute = "automobileId"/>
- </td>
- <td width="16%" height="27">
- <vnex_automobile:automobileManageAttribute attribute = "typeName"/>
- </td>
- <td width="20%" height="27">
- <a href="/mainctrl/manage/autoBasicDetail?automobileId=<vnex_automobile:automobileManageAttribute attribute = "automobileId"/>">
- <vnex_automobile:automobileManageAttribute attribute = "carCertNo"/>
- </a>
- </td>
- <td width="15%" height="27">
- <vnex_automobile:automobileManageAttribute attribute = "price"/>
- </td>
- <td width="27%" height="27">
- <vnex_automobile:automobileManageAttribute attribute = "purchaseDate"/>
- </td>
- </tr>
- </vnex:items>
- <tr bgcolor="#fafafa">
- <td width="7%" align="center">
- <input type="checkbox" name="C1" onclick="SelectAll(this.form)">
- </td>
- <td colspan="5"> 全选</td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td colspan="6" align="left">
- <vnex:pagingTag pageName="<%=pageTo%>" />
- </td>
- </tr>
- </vnex_automobile:automobileManageList>
- </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>