auto_booking_add.jsp
资源名称:NetOffice.rar [点击查看]
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:8k
源码类别:
电子政务应用
开发平台:
Java
- <%@jsp:include file="/vnex/head.jsp"%>
- <%@ page errorPage="/vnex/ErrorPage.jsp" %>
- <%@ page import="java.util.*" %>
- <%@ page import="com.vnex.intranet.vehicle.loader.*" %>
- <%@ 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 beginTime = request.getParameter("beginTime");
- String endTime = request.getParameter("endTime");
- String personNum = request.getParameter("personNum");
- int automobileId = Integer.parseInt(request.getParameter("automobileId"));
- String start = request.getParameter("start");
- if( start!= null )
- {
- //start = start;
- start = "1";
- }
- %>
- <script language=JavaScript>
- function checkChar(str)
- {
- var i,j,strTemp;
- strTemp=""<>/\'%&";
- for (i=0;i<str.length;i++)
- {
- j=strTemp.indexOf(str.charAt(i));
- if (j!=-1)
- {
- return false;
- }
- }
- return true;
- }
- function save()
- {
- if (check())
- {
- document.form1.action="/mainctrl/booking/autoBookingAddSave";
- document.form1.submit();
- }
- }
- function cancel()
- {
- document.form1.action="/mainctrl/booking/autoBookingList?start=1";
- document.form1.submit();
- }
- function check()
- {
- if (document.form1.reason.value.length <= 0||isWhitespace(document.form1.reason.value))
- {
- alert("理由字段必须输入 ");
- document.form1.reason.focus();
- return false;
- }
- /*
- if(!checkChar(document.form1.reason.value))
- {
- alert("请不要在理由中加入"<>/\'%&这样的字符");
- document.form1.reason.focus();
- return false;
- }
- */
- if (document.form1.route.value.length <= 0||isWhitespace(document.form1.route.value))
- {
- alert("路线字段必须输入 ");
- document.form1.route.focus();
- return false;
- }
- /*
- if(!checkChar(document.form1.route.value))
- {
- alert("请不要在路线中加入"<>/\'%&这样的字符");
- document.form1.route.focus();
- return false;
- }
- */
- if (document.form1.note.value.length > 50)
- {
- alert("备注字段长度要小于50个字母 ");
- document.form1.note.focus();
- return false;
- }
- /*
- if(!checkChar(document.form1.note.value))
- {
- alert("请不要在备注中加入"<>/\'%&这样的字符");
- document.form1.note.focus();
- return false;
- }
- */
- return true;
- }
- </script>
- <HTML>
- <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_person.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>
- <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 class=title width="600" border="0" cellspacing="1" cellpadding="2">
- <tr>
- <td colspan="2" height="14" bgcolor="#666666"><font class="strongw"> <a href="/mainctrl/home/index"><font color="#FFFFFF">首页</font></a>>><a href="/mainctrl/personal/main"><font color="#FFFFFF">个人办公</font></a>>><a href="/mainctrl/booking/autoBookingList"><font color="#FFFFFF">车辆预订</font></a>>>添加预订信息
- </font></td>
- </tr>
- <tr>
- <input type="hidden" name="automobileId" value="<%=automobileId%>">
- <input type="hidden" name="personNum" value="<%=personNum%>">
- <input type="hidden" name="userId" value="<%=userId%>">
- </tr>
- <tr>
- <td width="125" bgcolor="#e0e0e0"><font class="strong"> 开始时间:
- </font></td>
- <td width="469" bgcolor="#e0e0e0">
- <input type="hidden" name="beginDate" value="<%=beginTime%>">
- <%=beginTime%>
- </td>
- </tr>
- <tr>
- <td width="125" bgcolor="#fafafa"><font class="strong"> 终止时间:
- </font></td>
- <td width="469" bgcolor="#fafafa">
- <input type="hidden" name="endDate" value="<%=endTime%>">
- <%=endTime%>
- </td>
- </tr>
- <tr>
- <td width="125" bgcolor="#e0e0e0"><font class="strong"> </font><font class="strong" > 乘车人数:</font></td>
- <td width="469" bgcolor="#e0e0e0">
- <input type="hidden" name="endTime" value="<%=personNum%>">
- <%=personNum%>
- </td>
- </tr>
- <tr>
- <td width="125" bgcolor="#fafafa"><font class="strong"> 带司机:</font></td>
- <td width="469" bgcolor="#fafafa">
- <input type="checkbox" name="hasDriver" value="1" checked>
- </td>
- </tr>
- <tr>
- <td width="125" bgcolor="#e0e0e0"><font class="strong"> 理由:</font></td>
- <td width="469" bgcolor="#e0e0e0">
- <input type="text" name="reason" size="30" class=text maxlength="30">
- * (注:带*为必填内容) </td>
- </tr>
- <tr>
- <td width="125" bgcolor="#fafafa"><font class="strong" > 路线:</font></td>
- <td width="469" bgcolor="#fafafa">
- <input type="text" name="route" size="30" class=text maxlength="30">
- *
- </td>
- </tr>
- <tr>
- <td width="125" bgcolor="#e0e0e0"><font class="strong"> 备注:</font></td>
- <td width="469" bgcolor="#e0e0e0">
- <textarea name="note" class=text cols="24" rows="6"></textarea>
- </td>
- </tr>
- <tr align="center" bgcolor="#fafafa">
- <td colspan="2" height="30">
- <input type="button" name="Submit22" value="保存" class="file" onClick="save()">
-
- <input type="reset" name="Submit223" value="重置" class="file">
-
- <input type="button" name="Submit222" value="放弃" class="file" onClick="cancel()">
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- <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>