auto_basic_list.jsp
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:7k
源码类别:

电子政务应用

开发平台:

Java

  1. <%@jsp:include file="/vnex/head.jsp"%>
  2. <%@ page errorPage="/vnex/ErrorPage.jsp" %>
  3. <%@ page import="java.util.*" %>
  4. <%@ page import="com.vnex.intranet.vehicle.loader.*" %>
  5. <%@ page import="com.vnex.intranet.vehicle.automobile.manage.proxy.*" %>
  6. <%@ taglib uri="/vnex_vehicle_automobile.tld" prefix="vnex_automobile" %>
  7. <%@ taglib uri="/vnex.tld" prefix="vnex" %>
  8. <jsp:useBean id="BusinessName" scope="session" class="com.vnex.intranet.pub.BusinessSession" />
  9. <%
  10.     int userId = BusinessName.getEmpId();
  11.     String type = request.getParameter("type");
  12.     int autotype = 0;
  13.     
  14.     String pageTo = "/mainctrl/manage/autoBasicList?a";
  15.     
  16.     if(type!=null)
  17.     {
  18.         autotype = Integer.parseInt(type);
  19.         pageTo = pageTo + "&type="+autotype;
  20.     }
  21. %>
  22. <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
  23. <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
  24. <script language="JavaScript1.2" src="/vnex/menu/dockmenu_office.js"></script>
  25. <script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
  26. <script Language="JavaScript" src="/vnex/intranet/calendar/Popup.js"></script>
  27. <script language="JavaScript" src="/vnex/validate.js"></script>
  28. <script language="JavaScript" src="/vnex/util/strUtil.js"></script>
  29. <script language=JavaScript>
  30. function SelectAll(form)
  31. {
  32.   for (var i=0;i<form.elements.length;i++)
  33.   {
  34.     var e = form.elements[i];
  35.     if (e.name != 'C1')
  36.        e.checked = form.C1.checked;
  37.   }
  38. }
  39. function addd()
  40. {
  41.   document.form1.action="/mainctrl/manage/autoBasicAdd";
  42.   document.form1.submit();
  43. }
  44. function del()
  45. {
  46.   if(form1.ids!=null)
  47.   {
  48.    if(isChecked(form1.ids))
  49.    {
  50.       if(confirm("是否要删除所选车辆信息?"))
  51.       {
  52.         document.form1.action="/mainctrl/manage/autoesBasicDeleteSuccess";
  53.         document.form1.submit();
  54.       }  
  55.     }
  56.     else
  57.     {
  58.         alert("至少要选择一辆车");
  59.         return false;
  60.     }
  61.   }
  62. }
  63. function query()
  64. {
  65.   document.form1.action="/mainctrl/manage/autoBasicList";
  66.   document.form1.submit();
  67. }
  68. </script>
  69. </HEAD>
  70. <DIV align=center>
  71. <form name="form1" method="post">
  72.    
  73.     <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
  74.      
  75.     <TBODY>
  76.     <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
  77.     <TR> 
  78.         <TD colSpan=3 align="center"> <br> <table width="600" border="1" cellspacing="1" bordercolor="#666666">
  79.             <tr bgcolor="#fafafa"> 
  80.               <td> 
  81.                 <table width="600" border="0" cellspacing="0" cellpadding="2">
  82.                   <tr> 
  83.                     <td colspan="4" height="15" bgcolor="#666666"><font class="strongw">&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/manage/autoBasicList"><font color="#FFFFFF">车辆管理</font></a>&gt;&gt;车辆基本情况</font></td>
  84.                   </tr>
  85.                   <tr> 
  86.                     <td colspan="4" height="30"><font class="strong">&nbsp;&nbsp;查询:</font>&nbsp; 
  87.                     <select size="1" name="type" value="0" style="width=150">
  88.                         <option value="0">全部类型
  89. <%                    
  90.                         Hashtable hash = VehicleLoader.getAllAutomobileType();
  91.                         Enumeration enum = hash.keys();
  92.                         
  93.                         if(enum != null)
  94.                         {
  95.                             while(enum.hasMoreElements())
  96.                             {
  97.                                 String key = (String)enum.nextElement();
  98.                                 String s = (String)hash.get(key);
  99. %>                          
  100.                     <option value="<%= key%>"><%= s%>
  101. <%}}%>                    
  102.                     </select>
  103.                       <input type="button" name="Button" value="查询" onClick="query()" class=text>
  104.                     </td>
  105.                   </tr>
  106.                 </table>
  107.                 <table class=title cellspacing=1 cellpadding=2 width="100%" border=0>
  108.                   <tr bgcolor="#fafafa"> 
  109.                     <td colspan="6" height="30">&nbsp; 
  110.                       <input type="button" name="Button3222" value="新增" class="file" onClick="addd()">&nbsp;&nbsp; 
  111.                       <input type="button" name="Button32222" value="删除" class="file" onClick="del()">
  112.                     </td>
  113.                   </tr>
  114.                   <tr align=middle> 
  115.                     <td width="7%"><font  class="strong">选择</font></td>
  116.                     <td width="15%"><font  class="strong">编号 </font></td>
  117.                     <td width="16%"><font  class="strong">车型</font></td>
  118.                     <td width="20%"><font  class="strong">牌号 </font></td>
  119.                     <td width="15%"><font  class="strong">价格 </font></td>
  120.                     <td width="27%"><font  class="strong">购买日期 </font></td>
  121.   
  122. <%
  123.     AutoManageProxyBean proxy = new AutoManageProxyBean();
  124.     pageContext.getServletContext().setAttribute("proxy", proxy);
  125. %>                </tr>
  126. <vnex_automobile:automobileManageList employeeId = '<%=userId%>' typeId = '<%=autotype%>' >
  127.                   <vnex:items paging="true">   
  128. <tr bgcolor="<vnex:itemsColor/>" align="center">                   
  129.                     <td width="7%" align="center" height="27"> 
  130.                       <input type="checkbox" name="ids" value="<vnex_automobile:automobileManageAttribute attribute = "automobileId"/>">
  131.                     </td>
  132.                     <td width="15%" height="27">
  133.                         <vnex_automobile:automobileManageAttribute attribute = "automobileId"/>
  134.                     </td>
  135.                     <td width="16%" height="27"> 
  136.                         <vnex_automobile:automobileManageAttribute attribute = "typeName"/>
  137.                     </td>
  138.                     <td width="20%" height="27">
  139.                     <a href="/mainctrl/manage/autoBasicDetail?automobileId=<vnex_automobile:automobileManageAttribute attribute = "automobileId"/>">
  140.                         <vnex_automobile:automobileManageAttribute attribute = "carCertNo"/>
  141.                     </a>
  142.                     </td>
  143.                     <td width="15%" height="27">
  144.                         <vnex_automobile:automobileManageAttribute attribute = "price"/>
  145.                     </td>
  146.                     <td width="27%" height="27">
  147.                         <vnex_automobile:automobileManageAttribute attribute = "purchaseDate"/>
  148.                     </td>
  149.                   </tr>
  150.                   </vnex:items> 
  151.                   <tr bgcolor="#fafafa"> 
  152.                     <td width="7%" align="center"> 
  153.                       <input type="checkbox" name="C1" onclick="SelectAll(this.form)">
  154.                     </td>
  155.                     <td colspan="5">&nbsp;全选</td>
  156.                   </tr>
  157. <tr bgcolor="#e0e0e0">
  158.    <td colspan="6" align="left"> 
  159.        &nbsp;<vnex:pagingTag pageName="<%=pageTo%>" />
  160.    </td>
  161. </tr>    
  162. </vnex_automobile:automobileManageList>  
  163.                 </table>
  164.               </td>
  165.             </tr>
  166.           </table>
  167.          <br><br>
  168.           <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
  169.        </TD>
  170.      </TR>
  171.      <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
  172.     </TBODY> 
  173.   </TABLE>
  174.     <BR>
  175.   <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
  176. </form>
  177. </DIV>
  178. </BODY>
  179. </HTML>
  180. </BODY>
  181. </HTML>