📄 updatestationmsg.jsp.svn-base
字号:
<%@ page language="java" contentType="text/html;charset=GB2312"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/c.tld" prefix="c"%>
<%@ taglib uri="/WEB-INF/extremecomponents.tld" prefix="ec"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<script type="text/javascript" language="javascript">
String.prototype.trim = function(){
return this.replace(/(^\s*)|(\s*$)/g, '');
}
function validator(form){
if(form.stationName.value.trim()==""){
form.stationName.focus();
alert("加油站名称不能为空!");
return false;
}
if(form.stationAddress.value.trim()==""{
form.stationAddress.focus();
alert("加油站地址不能为空!");
return false;
}
if(form.code.value.trim()==""){
form.code.focus();
alert("加油站编号不能为空!");
return false;
}
if (!isNum(form.code.value)) {
alert("加油站编号不能为字符,请改为数字!");
form.code.focus();
form.code.value = "";
return false;
}
if(form.orgId.value.trim()==""){
form.orgId.focus();
alert("组织名称不能为空!");
return false;
}
if(form.groupId.value.trim()==""){
form.groupId.focus();
alert("油站组别不能为空!");
return false;
}
if(form.connectMethod.value.trim()==""){
form.connectMethod.focus();
alert("接入方式不能为空!");
return false;
}
if(form.contact.value.trim()==""){
form.contact.focus();
alert("联系人不能为空!");
return false;
}
if(form.contactTele.value.trim()==""){
form.contactTele.focus();
alert("联系电话不能为空!");
return false;
}
if(form.fax.value.trim()==""){
form.fax.focus();
alert("传真不能为空!");
return false;
}
if(form.runType.value.trim()==""){
form.runType.focus();
alert("加油站运营方式不能为空!");
return false;
}
if(form.map.value.trim()==""){
form.map.focus();
alert("图片不能为空!");
return false;
}
if(form.connectTime.value.trim()==""){
form.connectTime.focus();
alert("加油站运营方式不能为空!");
return false;
}
if(form.status.value.trim()==""){
form.status.focus();
alert("状态不能为空!");
return false;
}
form.submit();
}
function kd()
{
if (event.keyCode==13)
event.keyCode=9
}
</script>
<bean:define id="station" name="stationInfo" scope="request" />
<head>
<script Language="JavaScript" src="../calendar/oa_Popup.js" type=""></script>
<script Language="JavaScript" src="../js/Global.js" type=""></script>
<link rel="stylesheet" type="text/css"
href="${pageContext.request.contextPath}/css/extremecomponents.css">
<link rel="stylesheet" type="text/css"
href="${pageContext.request.contextPath}/css/style.css">
</head>
<body>
<tiles:insert page="/inc/CurrentPosition.jsp" />
<tiles:insert page="/inc/ActionMessagesAndErrors.jsp" />
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td class="position">
<img src="../images/p.gif" alt="a" />
您当前的位置:油站管理->修改油站
</td>
<td align="right">
<img src="../images/return.gif" alt="a"
onclick="javascript:history.go(-1)" style="cursor:hand" />
</td>
</tr>
</table>
<hr>
<div class="form">
<html:form
action="${pageContext.request.contextPath}/StationAction.do?method=updateStation">
<table class="title" width="50%">
<tr>
<td>
修改油站
</td>
</tr>
</table>
<div class="formTable">
<table width="50%" cellpadding="0" cellspacing="0"
class="form-table">
<tr>
<td class="left">
油站名称:
</td>
<td class="right">
<input name="stationName" type="text"
value="${station.stationName} " size="30" maxlength=100>
<span class="STYLE1">*</span>
</td>
</tr>
<tr>
<td class="left">
加油站地址:
</td>
<td class="right">
<input name="stationAddress" type="text"
value="${station.stationAddress }" size="30" maxlength=100>
<span class="STYLE1">*</span>
</td>
</tr>
<tr>
<td class="left">
油站编号:
</td>
<td class="right">
<input type="code" name="code" value="${station.code }"
notNull="true" label="油站八位编码" dataType="integer" />
<span class="STYLE1">*</span>
</td>
</tr>
<tr>
<td class="left">
组织名称:
<td class="right">
<label>
<html:select property="orgId">
<html:options collection="orgs" property="orgId"
labelProperty="orgName" />
</html:select>
<span class="STYLE1">*</span>
</label>
</td>
</tr>
<tr>
<td class="left">
油站组别:
</td>
<td class="right">
<html:select property="groupId">
<html:options collection="groups" property="groupId"
labelProperty="groupName" />
</html:select>
<span class="STYLE1">*</span>
</td>
</tr>
<tr>
<td class="left">
油站接入方式:
</td>
<td class="right">
<label>
<html:select property="connectMethod">
<html:options collection="connectMethods"
property="connectMethod" labelProperty="name" />
</html:select>
</label>
<span class="STYLE1">*</span>
</td>
</tr>
<tr>
<td class="left">
联系人:
</td>
<td class="right">
<input name="contact" type="text" value="${station.contact }"
size="17" maxlength=100>
<span class="STYLE1">*</span>
</td>
</tr>
<tr>
<td class="left">
联系电话:
</td>
<td class="right">
<input name="contactTele" type="text"
value="${station.contactTele }" size="17" maxlength=100>
<span class="STYLE1">*</span>
</td>
</tr>
<tr>
<td class="left">
传真:
</td>
<td class="right">
<input name="fax" type="text" value="${station.fax }" size="17"
maxlength=100>
</td>
</tr>
<tr>
<td class="left">
运营方式:
</td>
<td class="right">
<html:select property="runType">
<html:options collection="types" property="runType"
labelProperty="name" />
</html:select>
<span class="STYLE1">*</span>
</td>
</tr>
<tr>
<td class="left">
油站图片:
</td>
<td class="right">
<input type="file" name="map" size="17" notNull="true"
value="${station.map }" label="图片名称" dataType="image" />
</td>
</tr>
<tr>
<td class="left" />
油站接入时间:
<td class="right" />
<label>
<input name="connectTime" type="text"
value="${station.connectTime }" size="10" maxlength=10
readonly="readonly" onKeyDown="kd()">
<img src="../images/time.gif" alt="选择日期" style="cursor:hand;"
onClick="fPopUpCalendarDlg(connectdate);">
</label>
<span class="STYLE1">*</span>
</td>
</tr>
<tr>
<td class="left" />
油站状态:
<td class="right" />
<label>
<html:select property="status">
<html:options collection="statuslist" property="status"
labelProperty="name" />
</html:select>
</label>
<span class="STYLE1">*</span>
</tr>
</table>
</div>
<div class="submitTable">
<table width="90%">
<tr>
<td class="buttonBar">
<input name="Submit1" type="submit" class="button"
onClick="validator(form)" value="提交">
<input name="Submit2" type="reset" class="button" value="重置">
</td>
</tr>
</table>
</div>
</html:form>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -