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

电子政务应用

开发平台:

Java

  1. <%@ page errorPage="/vnex/ErrorPage.jsp" %>
  2. <%@ page import="com.vnex.intranet.pub.BusinessSession"%>
  3. <%@ page import="java.util.*"%>
  4. <%@ page import="com.vnex.intranet.vehicle.automobile.booking.process.AutoBookingStatus"%>
  5. <jsp:useBean id="BusinessName" scope="session" class="com.vnex.intranet.pub.BusinessSession" />
  6. <jsp:useBean id="bookingProxy" scope="application" class="com.vnex.intranet.vehicle.automobile.booking.proxy.AutoBookingProxyBean" />
  7. <%      
  8.     String id = request.getParameter("id");        
  9. %>
  10. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  11. <HTML>
  12. <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
  13. <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
  14. <script language="JavaScript1.2" src="/vnex/menu/dockmenu_office.js"></script>
  15. <script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
  16. <script language="JavaScript" src="/vnex/util/strUtil.js"></script>
  17. <script language=JavaScript>
  18. function checkChar(str)
  19. {
  20.     var i,j,strTemp;
  21.     strTemp=""<>/\'%&";
  22.     for (i=0;i<str.length;i++)
  23.     {
  24.       j=strTemp.indexOf(str.charAt(i));
  25.       if (j!=-1)
  26.       {
  27.         return false;
  28.       }
  29.     }
  30.     return true;
  31. }
  32. function disapproveAutoBookingSuccess(form)
  33. {
  34.     if( checkIt(form) )
  35.     {
  36.         form.action="/mainctrl/booking/disapproveAutoBookingSuccess";
  37.         form.submit();
  38.     }
  39. }
  40. function detailAutoBooking(form)
  41. {
  42.    form.action="/mainctrl/booking/detailAutoBooking";
  43.    form.submit();
  44. }
  45. function checkIt(form)
  46. {    
  47.     if(isInvalidateLen(form.disapprove.value,100))
  48.     {
  49.         alert("拒绝理由不能超过25个汉字或100个英文字符");
  50.         form.disapprove.focus();
  51.         return false;
  52.     }
  53.     if(!checkChar(form.disapprove.value))
  54.     {
  55.         alert("请不要在司机驾驶证号中加入"<>/\'%&这样的字符");
  56.         form.disapprove.focus();
  57.         return false;
  58.     }    
  59.     return true;
  60. }
  61. </script>
  62. <DIV align=center>
  63. <form name="myform" method="post" action="">
  64. <input type="hidden" name="id" value="<%= id %>">   
  65. <input type="hidden" name="statusId" value="<%= request.getParameter("statusId") %>">   
  66.   <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
  67.   <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
  68.   <TR> 
  69.         <TD colSpan=3 align="center"><br>
  70.            <table width="600" border="1" cellspacing="1" bordercolor="#666666">
  71.             <tr valign="top"> 
  72.               <td bgcolor="#fafafa"> 
  73.                 <table width="600" border="0" cellspacing="0" cellpadding="0">
  74.                   <tr> 
  75.                     <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;<a href="/mainctrl/booking/listAutoBooking"><font color="#FFFFFF">车辆预订管理</font></a>&gt;&gt;<a href="/mainctrl/booking/detailAutoBooking?id=<%= id %>"><font color="#FFFFFF">车辆预订详细信息</font></a>&gt;&gt;填写拒绝理由
  76.                     </font></td>                     
  77.                   </tr>
  78.                 </table>
  79.                 <table class=title width="600" border="0" cellpadding="2" cellspacing="1">
  80.                   <tr bgcolor="#e0e0e0"> 
  81.                     <td width="140"><font class="strong">请填写拒绝理由:</font></td>
  82.                     <td width="481"> 
  83.                       <textarea name="disapprove" cols="60" rows="5"></textarea>
  84.                     </td>
  85.                   </tr>
  86.                   <tr align="center" bgcolor="#fafafa"> 
  87.                     <td height="30" colspan="2"> 
  88.                       <input type="button" name="Button" value="确认拒绝" onClick="disapproveAutoBookingSuccess(this.form)" class="text">&nbsp;&nbsp;
  89.                       <input type="button" name="Submit2" value="返回" onClick="detailAutoBooking(this.form)" class="text">
  90.                     </td>
  91.                   </tr>
  92.                 </table>
  93.               </td>
  94.             </tr>
  95.           </table>         
  96.           <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
  97.        </TD>
  98.     </TR>
  99.     <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
  100.   </TABLE>
  101.   <BR>
  102.   <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
  103. </form></DIV>
  104. </BODY></HTML>