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

电子政务应用

开发平台:

Java

  1. <%@ taglib uri="/vnex.tld" prefix="vnex" %>
  2. <%@ taglib uri="/vnex_vehicle_automobile.tld" prefix="vnex_auto" %>
  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="bookingProxy" scope="application" class="com.vnex.intranet.vehicle.automobile.booking.proxy.AutoBookingProxyBean" />
  8. <jsp:useBean id="condition" scope="page" class="com.vnex.intranet.vehicle.automobile.booking.value.AutoBookingConditionBean" />
  9. <%      
  10.     String statusId = request.getParameter("statusId");    
  11.     if( statusId == null )
  12.     {
  13.         statusId = "0";
  14.     }
  15.     condition.setStatusId( Integer.parseInt( statusId ) ); 
  16.     condition.setEmployeeId( BusinessName.getEmpId() );       
  17.     
  18.     String link = "/mainctrl/booking/detailAutoBooking?statusId=" + statusId + "&";
  19.     
  20.     String start = "";
  21.     if( request.getParameter("start") != null )
  22.     {
  23.         start = "&start=" + request.getParameter("start");
  24.     }   
  25. %>
  26. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  27. <HTML>
  28. <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
  29. <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
  30. <script language="JavaScript1.2" src="/vnex/menu/dockmenu_office.js"></script>
  31. <script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
  32. <script language=JavaScript>
  33. function listAutoBooking(form)
  34. {
  35.    form.action="/mainctrl/booking/listAutoBooking";
  36.    form.submit();
  37. }
  38. </script>
  39. <DIV align=center>
  40. <form name="myform" method="post" action="">
  41.    
  42.     <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>     
  43.     <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
  44.     <TR> 
  45.         <TD colSpan=3 align="center"> <br> <table width="600" border="1" cellspacing="1" bordercolor="#666666">
  46.             <tr bgcolor="#fafafa"> 
  47.               <td> 
  48.                 <table width="600" border="0" cellspacing="0" cellpadding="2">
  49.                   <tr bgcolor="#666666"> 
  50.                     <td colspan="6" 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;车辆预订管理                    
  51.                     </font></td>
  52.                   </tr>
  53.                   <tr> 
  54.                     <td colspan="4">&nbsp;查询状态 
  55.                       <select name="statusId">
  56.                         <option value="0" <% if( statusId.equals("0") ) out.print("selected"); %>>全部</option>
  57.                         <option value="1" <% if( statusId.equals("1") ) out.print("selected"); %>>待批</option>
  58.                         <option value="2" <% if( statusId.equals("2") ) out.print("selected"); %>>同意</option>
  59.                         <option value="3" <% if( statusId.equals("3") ) out.print("selected"); %>>拒绝</option>
  60.                       </select>
  61.                       <input type="submit" name="Submit" class="file" onclick="listAutoBooking(this.form)" value="查询">
  62.                     </td>
  63.                   </tr>
  64.                 </table>                
  65.                 <table class=title cellspacing=1 cellpadding=2 width="100%" border=0>                  
  66.                   <tr align=middle>                     
  67.                     <td width="9%"><font  class="strong">车型</font></td>
  68.                     <td width="12%"><font  class="strong">牌号 </font></td>
  69.                     <td width="15%"><font  class="strong">开始时间</font></td>
  70.                     <td width="15%"> <font  class="strong">终止时间</font> </td>
  71.                     <td width="20%"><font  class="strong">理由</font></td>
  72.                     <td width="20%"><font  class="strong">路线</font></td>
  73.                     <td width="9%" ><font  class="strong">状态</font></td>
  74.                   </tr>
  75.                   <vnex_auto:autoBookingList condition="<%= condition %>">   
  76.                   <vnex:items paging="true">                               
  77.                   <tr align=middle bgcolor="<vnex:itemsColor />">                     
  78.                     <td width="9%" height="27">&nbsp;<vnex_auto:automobileBookingAttribute attribute="autoTypeName"/></td>
  79.                     <td width="12%" height="27"><a href="<%= link %>id=<vnex_auto:automobileBookingAttribute attribute="id"/>"><vnex_auto:automobileBookingAttribute attribute="carCertNo"/></a></td>
  80.                     <td width="15%" height="27"><vnex_auto:automobileBookingAttribute attribute="beginTime"/></td>
  81.                     <td width="15%" height="27"><vnex_auto:automobileBookingAttribute attribute="endTime"/></td>
  82.                     <td width="20%" height="27"><vnex_auto:automobileBookingAttribute attribute="reason"/></td>
  83.                     <td width="20%" height="27"><vnex_auto:automobileBookingAttribute attribute="route"/></td>
  84.                     <td width="9%" height="27" ><vnex_auto:automobileBookingAttribute attribute="statusName"/></td>
  85.                   </tr>
  86.                   </vnex:items>                   
  87.                   <tr>
  88.                       <td colspan="8" align="left" bgcolor="#e0e0e0">
  89.                          &nbsp;<vnex:pagingTag pageName="/mainctrl/booking/listAutoBooking?a" />
  90.                       </td>
  91.                   </tr>                            
  92.                   </vnex_auto:autoBookingList>
  93.                 </table>
  94.               </td>
  95.             </tr>
  96.           </table>
  97.           <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
  98.        </TD>
  99.     </TR>
  100.     <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
  101.     </TABLE>
  102.   <BR>
  103.   <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
  104. </form></DIV>
  105. </BODY></HTML>