?? inventoryadjust.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 + -