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