📄 insertallocatcountlist.jsp
字号:
<jsp:useBean id="global" class="src.com.MyGlobal" scope="session"/>
<jsp:useBean id="product" class="src.wuyang.Production" scope="page"/>
<jsp:useBean id="countList" class="src.wuyang.CountList" scope="page"/>
<jsp:useBean id="inventory" class="src.wuyang.Inventory" scope="page"/>
<jsp:setProperty name="countList" property="*" />
<% if (global.isLogined == false) {
%>
<jsp:forward page="../pub/DBErr.jsp" >
<jsp:param name="rtcode" value="-4" />
</jsp:forward>
<% }
%>
<html>
<head>
<title>仓库编码信息</title>
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language ="javascript" src='../pub/pub.js' type=text/javascript></script>
<link rel="stylesheet" href="css.css" type="text/css">
</head>
<body bgcolor=#949b93><table width="100%" border="1" height="90%" bordercolorlight="#616860" bordercolordark="#CCCCCC" bgcolor="#4c7171" cellpadding="0" cellspacing="0">
<tr>
<td valign="top">
<br><br><blockquote>
<script language="JavaScript">
function VerifyInput(e)
{
if(noFloat(e.quantity.value))
{
alert("请输入正确的数量");
e.quantity.focus();
return false;
}
}
</script>
<%! String strMarkNo;%>
<%
String mode = request.getParameter("mode");
String curMarkId = request.getParameter("curMarkId");
String allocatId = request.getParameter("allocatId");
String productId = request.getParameter("productId");
product.load(productId);
%>
<b><span class="textb">调拨申请单编号:<%=allocatId%> <br>
产品名称:<%=product.getProductName()%> <br>
产品规格:<%=product.getProductDesc()%> <br>
应发数量:<%=request.getParameter("qty")%><br>
单位:<%=product.getUnit()%> </span></b></span></b>
<table border="1" bordercolorlight="#000000" bordercolordark="#CCCCCC" cellpadding="0" cellspacing="0">
<tr bgcolor="#949b93">
<td class="text" width="46">
<div align="center"><b> 唛单号 </b></div>
</td>
<td class="text" width="151">
<div align="center"><b> 唛头 </b></div>
</td>
<td class="text" width="157">
<div align="center"><b> 数量 </b></div>
</td>
<td class="text" width="40">
<div align="center"><b> </b></div>
</td>
<td class="text" width="40">
<div align="center"><b> </b></div>
</td>
</tr>
<%
if(request.getParameter("delete")==null){
}
else{
String strMarkNo = request.getParameter("markNo");
countList.delete();
}
if(request.getParameter("update")==null){
}
else{
String strMarkNo = request.getParameter("markNo");
String quantity = request.getParameter("quantity");
countList.update(strMarkNo,quantity);
}
if (request.getParameter("insert")!=null && mode.equals("insert") ){
countList.setGlobal(global);
int rtcode = countList.insert();
if(rtcode >= 0) {
%>
<jsp:forward page="InsertAllocatCountList.jsp" >
<jsp:param name="success" value="ok" />
<jsp:param name="mode" value="ok" />
</jsp:forward>
<%
}else {
%>
<jsp:forward page="../pub/DBErr.jsp" >
<jsp:param name="rtcode" value="<%= rtcode %>" />
</jsp:forward>
<%
}
}
if (request.getParameter("success") != null ){
countList.query("markId="+curMarkId,"");
for (;countList.next()>0;) {
%>
<form method="post">
<input type="hidden" name="success" value="success">
<input type="hidden" name="markNo" value="<%=countList.getMarkNo()%>">
<tr>
<td class="textb" width="46"><%=countList.getMarkId()%></td>
<td class="textb" width="151"><%=countList.getMark()%> </td>
<td class="textb" width="157">
<input type="text" name="quantity" value="<%=countList.doubleFormat(countList.getQuantity(),2)%>">
</td>
<td class="textb" width="46">
<input type="submit" name="update" value="修改" />
</td>
<td class="textb" width="46">
<input type="submit" name="delete" value="删除" />
</td>
</tr>
</form>
<%
}
}
%>
<form method="POST" onsubmit="return VerifyInput(this);">
<input type="hidden" name="mode" value="insert"/>
<tr>
<td class="textb" width="46"><%=curMarkId%>
<input type="hidden" name="markId" value="<%=curMarkId%>" >
</td>
<td class="textb" width="151">
<input type="text" name="mark" >
</td>
<td class="textb" width="157">
<input type="text" name="quantity" >
</td>
<td class="textb" width="46">
<input type="submit" name="insert" value="增加" />
</td>
<td class="textb" width="46">
<input type="reset" name="reset" value="重置" />
</td>
</tr>
</form>
</table>
<form method="post" action="InsertAllocatInventory.jsp?allocatId=<%=request.getParameter("allocatId")%>&productId=<%=productId%>&curMarkId=<%=curMarkId%>">
<input type="submit" name="Ok" value="唛单增加结束" />
</form></blockquote>
</td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -