📄 elec_fee_info_modify.jsp
字号:
<%@ page language="java" import="java.util.*" pageEncoding="gb2312"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<link rel="stylesheet" type="text/css"
href="/Imis/imis_elec/css/style.css">
<title>电价信息修改</title>
<%-- <script type="text/javascript" src="/Imis/imis_elec/js/ElecFeeInfoCheck.js"></script>--%>
<script type="text/javascript">
function checkValue() {
var priceUnit = document.form1.PriceUnit.value;
if (priceUnit!=""){
var regp = /(^[\d]{1,6}|^[\d]{1,6})($|[\.][\d]{0,4}$)/;
if (priceUnit.match(regp) == null || priceUnit.match(regp1) == null )
{
document.form1.PriceUnit.focus();
alert("电价如果是浮点数,整数位最多6位, 小数位最多4位 \n如果是整数,最多6位");
return false;
}
}
if (priceUnit=="") {
alert("电价不能为空!");
document.form1.PriceUnit.focus();
return false;
}
var memo = document.form1.Memo.value;
if (memo.length > 100){
alert("输入备注长度超出,限定为50个中文字符或者100个英文字符。");
document.form1.Memo.focus();
return false;
}
return true;
}
</script>
</head>
<body BGCOLOR=#FFFFFF LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0
MARGINHEIGHT=0 scrolling="auto"
background="/Imis/imis_elec/images/bg_main.png">
<%-- <h3 align="center">电价信息管理</h3>--%>
<form method="post"
action="/Imis/servlet/Elec_Fee_info?pattern=getElec_Fee_info&page=modify">
<table align="center" width="100%" border="0" class="ziti">
<tr>
<td width="100%" height="20" valign="center" align="left"
colspan="2" background="/Imis/imis_elec/images/bg_main2.png">
<font color="black">电价信息管理</font>
</td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td width="37%" align="right">
用电类型:
</td>
<td width="63%">
<select name="elecUseType" id="elecUseType" class="text1">
<option value="1" selected>
非居民照明
</option>
<option value="2">
居民照明
</option>
<option value="3">
商业用电
</option>
<option value="4">
非商业用电
</option>
<option value="5">
工业用电
</option>
<option value="6">
非工业用电
</option>
</select>
</td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td></td>
<td align="left">
<input type="submit" name="Submit" value="查 询" class="anniu" />
</td>
</tr>
</table>
</form>
<c:if test="${requestScope.ElecUseTypeUnexisted!=null}">
<hr>
<font color="red"><h2 align="left">
${requestScope.ElecUseTypeUnexisted}
</h2>
</font>
</c:if>
<c:if test="${requestScope.Elec_Fee_info!=null}">
<form name="form1" method="post"
action="/Imis/servlet/Elec_Fee_info?pattern=modify">
<table align="center" width="460" border="0" class="ziti">
<tr>
<td width="30%" align="right">
电 价 ID:
</td>
<td width="75%">
<input type="text" name="FeeId"
value="${requestScope.Elec_Fee_info.feeId}" readonly="readonly"
class="text1" size="5" />
<font color="red"> *</font>
</td>
</tr>
<tr>
<td align="right">
用电类型:
</td>
<td>
<input type="text" name="ElecUseType"
value="${requestScope.Elec_Fee_info.elecUseType}"
readonly="readonly" class="text1" size="5" />
(1:非居民照明 2:居民照明 3:商业用电 4:非商业用电 5:工业用电 6:非工业用电)
<%-- <select name="ElecUseType" id="ElecUseType" class="text1"/>--%>
<%-- <option value="1" <c:if test="${requestScope.Elec_Fee_info.elecUseType==1}">selected</c:if>>非居民</option>--%>
<%-- <option value="2" <c:if test="${requestScope.Elec_Fee_info.elecUseType==2}">selected</c:if>>居民</option>--%>
<%-- <option value="3" <c:if test="${requestScope.Elec_Fee_info.elecUseType==3}">selected</c:if>>其他</option>--%>
<%-- --%>
<%-- </select> --%>
<font color="red"> *</font>
</td>
</tr>
<tr>
<td align="right">
单 价:
</td>
<td>
<input type="text" name="PriceUnit"
value="${requestScope.Elec_Fee_info.priceUnit}" class="text1"
size="12" />
<font color="red"> *</font>
</td>
</tr>
<tr>
<td align="right">
备 注:
</td>
<td>
<textarea name="Memo" rows="4" cols="25" class="text1">${requestScope.Elec_Fee_info.memo}</textarea>
</td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td></td>
<td align="left">
<input type="submit" name="Submit" value="修 改" class="anniu"
onClick="return checkValue()" />
</td>
</tr>
</table>
</form>
</c:if>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -