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

📄 inventoryadjust.jsp

📁 (Java+SQL)-大型企业JAVA的ERP系统
💻 JSP
字号:
<%@ taglib prefix="list" uri="/jsp/tld/WuYangTag.tld" %>
<jsp:useBean id="product" class="src.wuyang.Production" scope="page"/>
<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"/>
<jsp:setProperty name="locationstate" property="*" />

<% 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">
<link rel="stylesheet" href="css.css">
</head>
<script language="JavaScript">
<!--

function AddLocation() {
	open("LocationId.jsp","LocationList","scrollbars=yes,width=250,height=200")
}
// -->
</script>
<% String url = "";
   String locationId = request.getParameter("locationId");
   String wearhouseId = request.getParameter("wearhouseId");
   String productId = request.getParameter("productId");
   
   if (request.getParameter("confirm") != null){
   	locationstate.setGlobal(global);
   	System.out.println("--------------------1");
	int rtcode = locationstate.adjust(request);
   	System.out.println("--------------------2");
	if(rtcode >= 0){  
		url = "AdjustInventory.jsp";
	}else{ 
		url = "../pub/DBErr.jsp?rtcode=-102";
	}
	response.sendRedirect(url);	
 }
   locationstate.query("locationId='"+locationId+"' and wearhouseId='"+wearhouseId+"' and productId='"+productId+"'","");
   locationstate.next();
   wearhouse.load(locationstate.getWearhouseId());
   product.load(locationstate.getProductId());

%>

<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="InventoryAdjust.jsp">
        <blockquote> 
          <table width="300" border="0" cellspacing="0" cellpadding="0">
          <input type="hidden" name="locationId1" value="<%=locationId%>" />
          <input type="hidden" name="wearhouseId1" value="<%=wearhouseId%>" />
          <input type="hidden" name="productId" value="<%=productId%>" />
            <tr> 
              <td class="textb"><b> 仓库名称:</b></td>
              <td class="text"><%=wearhouse.getWearhouseName()%></td>
            </tr>
            <tr> 
              <td class="textb"><b> 货位编码:</b></td>
              <td class="text"><%=locationId%></td>
            </tr>
            <tr> 
              <td class="textb"><b> 产品名称:</b></td>
              <td class="text"><%=product.getProductName()%></td>
            </tr>
            <tr> 
              <td class="textb"><b> 规格/型号:</b></td>
              <td class="text"><%=product.getProductDesc()%></td>
            </tr>
            <tr> 
              <td class="textb"><b> 现有数量:</b></td>
              <td class="text"><%=locationstate.getQuantity()%></td>
            </tr>
            <tr> 
              <td class="textb"><b> 现有件数:</b></td>
              <td class="text"><%=locationstate.getCounting()%></td>
            </tr>
            <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 class="textb"><b> 转入数量:</b></td>
              <td><input type="text" name="quantity" /></td>
            </tr>
            <tr> 
              <td class="textb"><b> 转入件数:</b></td>
              <td><input type="text" name="counting" /></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 + -