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

📄 huodannoofinventoryupdate.jsp

📁 (Java+SQL)-大型企业JAVA的ERP系统
💻 JSP
字号:
<jsp:useBean id="inventory" class="src.wuyang.Inventory" 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>添加货单号至inventory</title>
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="../pub/style.css">
<script language ="javascript" src='../pub/pub.js' type=text/javascript></script>
</head>
<body>
<script language="JavaScript">
function VerifyInput(e)
{	
	if(isEmpty(e.huodanNo.value))	
	{    
		alert("请输入货单号");
		e.huodanNo.focus();  
		return false;
	}
}
</script>	

<%	
	String receiptId=request.getParameter("receiptId");
	String strReceiptType=request.getParameter("receiptType");
	String huodanNo=request.getParameter("huodanNo");	
	String productId=request.getParameter("productId");
	int receiptType = 1;
	if(strReceiptType.equals("0")){
		receiptType = 0;	
	}
	if(strReceiptType.equals("1")){
		receiptType = 1;	
	}
	if(strReceiptType.equals("2")){
		receiptType = 2;	
	}
	
	System.out.println("H***");
	System.out.println("receiptId = "+receiptId);
	System.out.println("receiptType = "+receiptType);
	System.out.println("productId = "+productId);
	
	
	inventory.setGlobal(global);
	inventory.setReceiptId(receiptId);	
	inventory.setReceiptType(receiptType);
	inventory.setProductId(productId);
%>
<jsp:setProperty name="inventory" property="huodanNo" />
<%
    //System.out.println("receiptId"+inventory.getReceiptId());
    //System.out.println("receiptType"+inventory.getReceiptType());
    //System.out.println("huodanNo"+inventory.getHuodanNo());
	int rtcode = inventory.update();

	if(rtcode < 0) {
%>
<jsp:forward page="../pub/DBErr.jsp" > 
	<jsp:param name="rtcode" value="<%= rtcode %>" />
</jsp:forward>
<%  
	}else{  

%>
<jsp:forward page="InsertDelivInfo.jsp" > 
	<jsp:param name="receiptId" value="<%= inventory.getReceiptId()%>" />
	<jsp:param name="receiptType" value="<%= inventory.getReceiptType()%>" />
	<jsp:param name="huodanNo" value="<%= inventory.getHuodanNo()%>" />
</jsp:forward>
<%
    }
%>


</body>
</html>


















		





⌨️ 快捷键说明

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