📄 modify.jsp
字号:
<%@ taglib uri="/vnex.tld" prefix="vnex" %>
<%@ taglib uri="/vnex_vehicle_automobile.tld" prefix="vnex_auto" %>
<%@ page errorPage="/vnex/ErrorPage.jsp" %>
<%@ page import="java.util.*"%>
<%@ page import="com.vnex.intranet.util.*" %>
<%@ page import="com.vnex.intranet.pub.BusinessSession"%>
<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.DriverViewBean" scope="page" />
<%
String id = request.getParameter("empId");
int empId = Integer.parseInt( id );
dvb = driverProxy.getDriverInfo( empId );
%>
<!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 detailDriver(form)
{
form.action="/mainctrl/driver/detailDriver";
form.submit();
}
function modifyDriverSuccess(form)
{
if(checkIt(form))
{
form.action="/mainctrl/driver/modifyDriverSuccess";
form.submit();
}
}
function checkIt(form)
{
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="form1" method="post" action="">
<input type="hidden" name="empId" value="<%=request.getParameter("empId")%>">
<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>
<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>>><a href="/mainctrl/driver/detailDriver?empId=<%= request.getParameter("empId") %>"><font color="#FFFFFF">司机详细信息</font></a>>>修改司机信息
</font></td>
</tr>
<tr bgcolor="#fafafa">
<td width="100">
<font class="strong"> 姓名</font>:
</td>
<td width="487"> <%= FieldUtil.filterQuotTag(dvb.getName()) %> </td>
</tr>
<tr bgcolor="#e0e0e0">
<td width="100"> <font class="strong"> 驾驶证号</font>:
</td>
<td width="487">
<input type="text" name="licenceNo" class="file" value="<%= FieldUtil.filterQuotTag(dvb.getLicenceNo()) %>" 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" value="<%= FieldUtil.filterQuotTag(dvb.getTypePermited()) %>" 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" value="<%= FieldUtil.filterQuotTag(dvb.getAddressIssued()) %>" 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" value="<%= dvb.getTimeIssuedS() %>">
<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" value="<%= dvb.getNextTimeS() %>">
<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"><%= FieldUtil.filterQuotTag(dvb.getNote()) %></textarea>
</td>
</tr>
<tr bgcolor="#fafafa">
<td colspan="2" height="30">
<div align="center">
<input type="button" name="Button" value="保存" class="file" onClick="modifyDriverSuccess(this.form)">
<input type="reset" name="Submit2" value="重置" class="file">
<input type="button" name="Submit22" value="放弃" class="file" onClick="detailDriver(this.form)">
</div>
</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" />
</TABLE>
<BR>
<jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
</form></DIV>
</BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -