📄 add_in_plan.jsp
字号:
<%@ page language="java" import="java.util.*"
contentType="text/html; charset=GBK"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../css/style1.css" rel="stylesheet">
<link href="<%=request.getContextPath()%>/css/style_2.css"
rel="stylesheet">
</HEAD>
<body>
<script language="javascript">
<!--
function checkinit(){
//正则表达式
//金额
var reMoney = /^\d+\.?\d+$/;
//数据
var reNum = /^\d+$/;
if(form1.name.value==""){
window.alert("请填写名称");
form1.name.value="";
form1.name.focus();
return false;
}
if(!reNum.test(form1.number.value)){
window.alert("请填写好数量");
form1.number.value="";
form1.number.focus();
return false;
}
if(!reMoney.test(form1.money.value)){
window.alert("请填写好金额");
form1.money.value="";
form1.money.focus();
return false;
}
if(form1.dime.value==""){
window.alert("请填写折旧情况");
form1.dime.value="";
form1.dime.focus();
return false;
}
if(form1.type.value==""){
window.alert("请填写类型");
form1.type.value="";
form1.type.focus();
return false;
}
if(form1.unit.value==""){
window.alert("请填写计量单位");
form1.unit.value="";
form1.unit.focus();
return false;
}
if(form1.boss.value==""){
window.alert("请填写供应商");
form1.boss.value="";
form1.boss.focus();
return false;
}
}
-->
</script>
<table width="90%" border="0" align="center">
<tr>
<td height="24" align="left" valign="bottom" scope="col">
物资入库清单
</td>
</tr>
</table>
<HR>
<form action="<%=path%>/servlet/Add_Delete_in_out_swate_planServlet"
method="post" name="form1" target="bottomFrame">
<table width="100%" border="0" cellpadding="0" cellspacing="0"
align="center">
<tr>
<td width="15%" rowspan="5" align="center" scope="col"></td>
<td height="25" colspan="6" align="right" scope="col"></td>
<td width="15%" rowspan="5" align="center" scope="col"></td>
</tr>
<tr align="center">
<td width="10%" height="25" align="right" scope="col">
物资名称
</td>
<td width="2%" rowspan="4" scope="col"></td>
<td width="20%" align="left" scope="col">
<input type="hidden" name="editPlan" value="">
<input type="text" size="20" name="name">
<input type="hidden" name="planing" value="入库">
</td>
<td width="10%" align="right" scope="col">
所属类别
</td>
<td width="2%" rowspan="4" scope="col"></td>
<td width="21" align="left" scope="col">
<select name="type">
<option value="">
--请选择--
</option>
<c:if test="${! empty types}">
<c:forEach items="${types}" var="type">
<option value="${type.typeName}">
${type.typeName}
</option>
</c:forEach>
</c:if>
</select>
</td>
</tr>
<tr align="center">
<td height="25" align="right" scope="col">
数量
</td>
<td align="left" scope="col">
<input type="text" size="15" name="number">
</td>
<td align="right" scope="col">
计量单位
</td>
<td align="left" scope="col">
<select name="unit">
<option value="">
--请选择--
</option>
<c:if test="${! empty units}">
<c:forEach items="${units}" var="unit">
<option value="${unit.unitName}">
${unit.unitName}
</option>
</c:forEach>
</c:if>
</select>
</td>
</tr>
<tr align="center">
<td height="25" align="right" scope="col">
金额
</td>
<td align="left" scope="col">
<input type="text" size="20" name="money">
</td>
<td align="right" scope="col">
供应商
</td>
<td align="left" scope="col">
<select name="boss">
<option value="">
--请选择--
</option>
<c:if test="${! empty bosses}">
<c:forEach items="${bosses}" var="boss">
<option value="${boss.name}">
${boss.name}
</option>
</c:forEach>
</c:if>
</select>
</td>
</tr>
<tr align="center">
<td height="25" align="right" scope="col">
折旧情况
</td>
<td align="left" scope="col">
<select name="dime">
<option value="">
--请选择--
</option>
<option value="新">
新
</option>
<option value="旧">
旧
</option>
</select>
</td>
<td scope="col"></td>
<td scope="col"></td>
</tr>
<tr align="center">
<td height="25" colspan="8" bgcolor="#E7E8FE" scope="col">
<input type="submit" name="sumbit" value=" 添 加 "
onClick="return checkinit()">
<input type="reset" name="sumbit2" value=" 清 空 ">
</td>
</tr>
</table>
</form>
</body>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -