⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 adjustinventory.jsp

📁 (Java+SQL)-大型企业JAVA的ERP系统
💻 JSP
字号:
<%@ taglib prefix="list" uri="/jsp/tld/WuYangTag.tld" %>
<jsp:useBean id="wearhouse" class="src.wuyang.Wearhouse" scope="page"/>
<jsp:useBean id="location" class="src.wuyang.ProductLocation" scope="page"/>
<jsp:useBean id="locationstate" class="src.wuyang.LocationState" 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>
<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">
</head>
<script language="JavaScript">
<!--

function AddLocation() {
	open("LocationId.jsp","LocationList","scrollbars=yes,width=250,height=200")
	}

function VerifyInput(e)
	{
	if(isEmpty(e.wearhouseId.value))
		{    
		alert("请输入选择仓库");
		e.wearhouseId.focus();  
		return false;
		}  
	if(isEmpty(e.locationId.value))
		{    
		alert("请输入货位编号");
		e.locationId.focus();  
		return false;
		}  
	}
// -->
</script>
<% String url = "";
   String locationId = request.getParameter("locationId");
   String wearhouseId = request.getParameter("wearhouseId");
   if (request.getParameter("confirm") != null){
	int rtcode = locationstate.query("locationId='"+locationId+"' and wearhouseId='"+wearhouseId+"'","");
	if(rtcode >= 0){  
		url = "InventoryProductList.jsp?locationId=" + locationId + "&wearhouseId=" + wearhouseId;
	}else{ 
		url = "../pub/DBErr.jsp?rtcode=-102";
	}
	response.sendRedirect(url);	
 }
%>
<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>
<form method="post" name="insert" action="AdjustInventory.jsp" onsubmit="return VerifyInput(this);">
        <blockquote> 
          <table width="300" border="0" cellspacing="0" cellpadding="0">
            <tr> 
              <td class="textb"><b> 仓库名称:</b></td>
              <td> 
                <select name="wearhouseId">
                  <list:wearhouse showType="select"/> 
                </select>
              </td>
            </tr>
            <tr> 
              <td class="textb"><b>货位编号:</b></td>
              <td> 
                <input type="text" name="locationId" /><input type="button" value=">>" onclick="AddLocation()"/>
              </td>
            </tr>
            <tr> 
              <td colspan="2" class="textb"> 
                <div align="center"> <b><br>
                  <input type="submit" name="confirm" value="确认" />
                  <input type="reset" value="重置" name="reset" />
                  </b></div>
              </td>
            </tr>
          </table>
        </blockquote>
</form>
</td>
</tr>
</table>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -