📄 insertullageproduct.jsp
字号:
<jsp:useBean id="ullageProduct" class="src.wuyang.UllageProduct" scope="page"/>
<jsp:useBean id="global" class="src.com.MyGlobal" scope="session"/>
<% if (global.isLogined == false) {
%>
<jsp:forward page="../pub/DBErr.jsp" >
<jsp:param name="rtcode" value="-4" />
</jsp:forward>
<% }
%>
<html>
<head>
<title>易耗品采购申请单填写</title>
<script language ="javascript" src='../pub/pub.js' type=text/javascript></script>
<link rel="stylesheet" href="css.css" type="text/css">
</head>
<body bgcolor="#949B93" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" border="1" height="90%" cellspacing="0" cellpadding="0" align="center" bordercolorlight="#616860" bordercolordark="#CCCCCC" bgcolor="#4c7171" >
<tr>
<td valign="top" >
<br><br>
<b><span class="textb">
<script language="JavaScript">
function VerifyInput(e)
{
if(isEmpty(e.productName.value))
{
alert("请输入产品名称");
e.productName.focus();
return false;
}
if(noFloat(e.appQuantity.value))
{
alert("请输入正确的数量");
e.appQuantity.focus();
return false;
}
if(noFloat(e.appPrice.value))
{
alert("请输入正确的预计单价");
e.appPrice.focus();
return false;
}
}
</script>
<%
String mode = request.getParameter("mode");
String ullageId = request.getParameter("ullageId");
if (request.getParameter("insert")!=null && mode.equals("insert") ){
ullageProduct.setGlobal(global);
%>
<jsp:setProperty name="ullageProduct" property="*" />
<%
int rtcode =ullageProduct.insert();
if(rtcode >=0) {
%>
<jsp:forward page="InsertUllageProduct.jsp" >
<jsp:param name="mode" value="ok" />
<jsp:param name="ullageId" value="<%=ullageId%>"/>
</jsp:forward>
<%
}else {
%>
<jsp:forward page="../pub/DBErr.jsp" >
<jsp:param name="rtcode" value="<%=rtcode %>" />
</jsp:forward>
<%
}
}
if (mode!=null && mode.equals("ok")){
%>
成功插入记录!!
<%
}
%>
</span> </b>
<form method="post" action="InsertUllageProduct.jsp" onsubmit="return VerifyInput(this);"> <blockquote>
<table width="300" border="0">
<tr>
<td class="textb"> <b>
<input type="hidden" name="mode" value="insert"/>
采购申请编码:</b></td>
<td class="textb"> <%=ullageId%>
<input type="hidden" name="ullageId" value="<%=ullageId%>">
</td>
</tr>
<tr>
<td class="textb"><b>产品名称:</b></td>
<td class="textb">
<input type="text" name="productName" />
</td>
</tr>
<tr>
<td class="textb"><b>规格/型号: </b></td>
<td class="textb">
<input type="text" name="productType" />
</td>
</tr>
<tr>
<td class="textb"><b>数量: </b></td>
<td class="textb">
<input type="text" name="appQuantity" />
</td>
</tr>
<tr>
<td class="textb"><b>预计单价:</b></td>
<td class="textb">
<input type="text" name="appPrice" />
</td>
</tr>
<tr>
<td class="textb"><b>备注: </b></td>
<td class="textb">
<input type="text" name="comment" />
</td>
</tr>
<tr>
<td colspan="2">
<div align="center"> <br>
<input type="submit" name="insert" value="增加" />
<input type="reset" name="reset" value="重置" />
</div>
<div align="center"></div>
</td>
</tr>
</table>
<p> </p></blockquote>
</form>
</td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -