add.jsp
资源名称:NetOffice.rar [点击查看]
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:10k
源码类别:
电子政务应用
开发平台:
Java
- <%@ taglib uri="/vnex.tld" prefix="vnex" %>
- <%@ taglib uri="/vnex_organization.tld" prefix="org" %>
- <%@ taglib uri="/vnex_hr.tld" prefix="hr" %>
- <%@ taglib uri="/vnex_vehicle_automobile.tld" prefix="vnex_auto" %>
- <%@ page errorPage="/vnex/ErrorPage.jsp" %>
- <%@ page import="com.vnex.intranet.pub.BusinessSession"%>
- <%@ page import="java.util.*"%>
- <jsp:useBean id="BusinessName" scope="session" class="com.vnex.intranet.pub.BusinessSession" />
- <jsp:useBean id="driverProxy" scope="application" class="com.vnex.intranet.vehicle.driver.proxy.DriverProxyBean" />
- <jsp:useBean id="dvb" class="com.vnex.intranet.vehicle.driver.value.DriverValueBean" scope="page" />
- <jsp:setProperty name="dvb" property="*" />
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
- <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_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/util/strUtil.js"></script>
- <script language="JavaScript">
- function change(select)
- {
- myform.action="/mainctrl/driver/addDriver";
- myform.submit();
- }
- function addDriver(form)
- {
- if(checkIt(form))
- {
- form.action="/mainctrl/driver/addDriverSuccess";
- form.submit();
- }
- }
- function checkIt(form)
- {
- if( form.empId.value == -1 )
- {
- alert("请选择司机");
- form.empId.focus();
- return false;
- }
- if(isEmpty(form.licenceNo.value) || isEmptyStr(form.licenceNo.value))
- {
- alert("请输入司机驾驶证号");
- form.licenceNo.focus();
- return false;
- }
- if(isInvalidateLen(form.licenceNo.value,100))
- {
- alert("司机驾驶证号不能超过25个汉字或100个英文字符");
- form.licenceNo.focus();
- return false;
- }
- if(isEmpty(form.typePermited.value) || isEmptyStr(form.typePermited.value))
- {
- alert("请输入司机准驾车型");
- form.typePermited.focus();
- return false;
- }
- if(isInvalidateLen(form.typePermited.value,100))
- {
- alert("司机准驾车型不能超过25个汉字或100个英文字符");
- form.typePermited.focus();
- return false;
- }
- if( form.automobileId.options.length < 1 )
- {
- alert("请选择车辆");
- form.automobileId.focus();
- return false;
- }
- if(isEmpty(form.addressIssued.value) || isEmptyStr(form.addressIssued.value))
- {
- alert("请输入司机备案地点");
- form.addressIssued.focus();
- return false;
- }
- if(isInvalidateLen(form.addressIssued.value,100))
- {
- alert("司机备案地点不能超过25个汉字或100个英文字符");
- form.addressIssued.focus();
- return false;
- }
- if(isEmpty(form.timeIssuedS.value) || isEmptyStr(form.timeIssuedS.value))
- {
- alert("请输入司机领证时间");
- form.timeIssuedS.focus();
- return false;
- }
- if( !isEmpty(form.nextTimeS.value) && !isEmptyStr(form.nextTimeS.value) )
- {
- if( form.timeIssuedS.value >= form.nextTimeS.value )
- {
- alert("下次验证时间应晚于领证时间");
- form.timeIssuedS.focus();
- return false;
- }
- }
- if(isInvalidateLen(form.note.value, 800))
- {
- alert("你的说明过长了,它只能容纳200个汉字或800个英文字符");
- form.note.focus();
- return false;
- }
- return true;
- }
- </script>
- <DIV align=center>
- <form name="myform" method="post" action="">
- <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
- <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 bgcolor="#666666">
- <td colspan="2" 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/driver/listDriver"><font color="#FFFFFF">司机管理</font></a>>>增加司机
- </font></td>
- </tr>
- <tr bgcolor="#fafafa">
- <td width="100"> <font class="strong"> 姓名</font>: </td>
- <td width="463">
- <select name="depId" class=choice onChange=change(this)>
- <org:DivisionList>
- <vnex:items select='<%= dvb.getDepId()+"" %>' >
- <option value=<org:DivisionAttribute attribute="id"/> <org:DivisionAttribute attribute="isSelected"/> >
- <org:DivisionAttribute attribute="levelStr"/>+<org:DivisionAttribute attribute="name"/>
- </option>
- </vnex:items>
- </org:DivisionList>
- </select>
- <select name="empId">
- <option value=-1>请选择</option>
- <hr:EmployeeList divisionId='<%= dvb.getDepId()%>'>
- <vnex:items select ='<%= dvb.getEmpId()+""%>'>
- <option value="<hr:EmployeeAttribute attribute="id" />" <hr:EmployeeAttribute attribute="isSelected"/> >
- <hr:EmployeeAttribute attribute='<%= null %>' />
- </option>
- </vnex:items>
- </hr:EmployeeList>
- </select>
- * ( 注:带 * 的为必填内容) </td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="100"> <font class="strong"> 驾驶证号</font>:
- </td>
- <td width="487">
- <input type="text" name="licenceNo" class="file" size="24">
- * </td>
- </tr>
- <tr bgcolor="#fafafa">
- <td width="100"><font class="strong"> 准驾车型:</font></td>
- <td width="487">
- <input type="text" name="typePermited" class="file" size="6">
- * </td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="100">
- <font class="strong"> 配备车辆</font>:
- </td>
- <td width="487">
- <select name="automobileId">
- <option value="-1" SELECTED > 请选择</option>
- <vnex_auto:autoList>
- <vnex:items select='<%= dvb.getAutomobileId()+"" %>' >
- <option value="<vnex_auto:autoAttribute attribute="automobileId" />" <vnex_auto:autoAttribute attribute="isSelected" /> >
- <vnex_auto:autoAttribute attribute="carCertNo" />
- </option>
- </vnex:items>
- </vnex_auto:autoList>
- </select>
- </td>
- </tr>
- <tr bgcolor="#fafafa">
- <td width="100"> <font class="strong"> 备案地点</font>:
- </td>
- <td width="487">
- <input type="text" name="addressIssued" class="file" size="72">
- * </td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="100"> <font class="strong"> 领证时间</font>:
- </td>
- <td align="left" width="487">
- <input type="text" name="timeIssuedS" readonly size="24" class="text">
- <img src="/vnex/intranet/calendar/datetime.gif" style="cursor:hand;" align="absmiddle" alt="弹出日历下拉菜单" onClick="fPopUpCalendarDlg(timeIssuedS);return false;" width="16" height="16">
- * </td>
- </tr>
- <tr bgcolor="#fafafa">
- <td width="100"><font class="strong"> 下次验证日期:</font></td>
- <td align="left" width="487">
- <input type="text" name="nextTimeS" readonly size="24" class="text">
- <img src="/vnex/intranet/calendar/datetime.gif" style="cursor:hand;" align="absmiddle" alt="弹出日历下拉菜单" onClick="fPopUpCalendarDlg(nextTimeS);return false;" width="16" height="16">
- </td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="100">
- <font class="strong"> 其他说明:</font></td>
- <td width="487">
- <textarea name="note" cols="59" rows="4"></textarea>
- </td>
- </tr>
- <tr bgcolor="#fafafa">
- <td colspan="2" height="30">
- <div align="center">
- <input type="button" name="Button" value="保存" class="file" onClick="addDriver(this.form)">
- <input type="reset" name="Submit22" value="重置" class="file">
- <input type="button" name="Submit2" value="放弃" class="file" onClick="location='/mainctrl/driver/listDriver'">
- </div>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
- </TD>
- </TR>
- <TR>
- <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
- </TABLE>
- <BR>
- <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
- </form></DIV>
- </BODY></HTML>