📄 outupdate.jsp
字号:
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html lang="true">
<head>
<html:base/>
<title>更新通知单信息</title>
<link rel="stylesheet" type="text/css" href="../common/css/common.css" />
<script type="text/javascript">
function checkSum(sum){
var a=/^\d+(\.[0-9]{2})?$/;
var b=/^\d+(\.[0-9]{1})?$/;
var s=sum;
var tf=true;
if(!(a.test(s)||b.test(s))){
alert(" 请输入带1或2位小数的数字或者正整数,整数不能超过9位!!!");
tf=false;
}else{
if(s>999999999){
tf=false;
alert("录入金额输入的数字过大,请从新输入!!!");
}
}
return tf;
}
function Ok(){
var sum = document.outBean.fee.value;
var result=checkSum(sum);
return result;
}
</script>
<%
String type =(String)session.getAttribute("userClass");
if (!type.equals("1")) {
session.setAttribute("notLogin", true);
out.print("<script language=javascript>window.location.href='/TeleReport/jsp/login.jsp';</script>");
}
%>
</head>
<body>
<div style="position:absolute;margin:15px,0px,0px,0px;width:1085px;">
<html:form action="/jsp/updateOut" onsubmit = "return Ok()">
<table >
<tr>
<td class="item">
产品:
</td>
<td class="item_value">
<html:select property="prodId">
<html:optionsCollection property="productList" label="prodName" value="prodId"/>
</html:select>
</td>
</tr>
<tr>
<td class="item">
出账类型:
</td>
<td class="item_value">
<html:select property="outTypeId">
<html:optionsCollection property="outTypeList" label="outTypeName" value="outTypeId"/>
</html:select>
</td>
</tr>
<tr>
<td class="item">
金额:
</td>
<td class="itemvalue">
<html:text property="fee" />
</td>
</tr>
<tr>
<td>
</td>
<td>
<input type="submit" value="确认" class="button" />
<input type="reset" value="取消" class = "button">
</td>
</tr>
</table>
</html:form>
</div>
</body>
</html:html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -