?? insertallocatproduct.jsp
字號:
<jsp:useBean id="AllocatProduct" class="src.wuyang.AllocatProduct" 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">
<link rel="stylesheet" href="../pub/style.css"></head>
<%! String mode;%>
<%
mode = request.getParameter("mode");
if (request.getParameter("insert")!=null && mode.equals("insert") ){
AllocatProduct.setGlobal(global);
%>
<jsp:setProperty name="AllocatProduct" property="*" />
<%
int rtcode = AllocatProduct.insert();
if(rtcode >= 0) {
%>
<jsp:forward page="insertAllocatProduct.jsp" >
<jsp:param name="mode" value="ok" />
</jsp:forward>
<%
}else {
%>
<jsp:forward page="../pub/DBErr.jsp" >
<jsp:param name="rtcode" value="<%= rtcode %>" />
</jsp:forward>
<%
}
}
if (mode!= null && mode.equals("ok")){
%>
記錄插入成功!!
<%
}
%>
<form method="post">
<input type="hidden" name="mode" value="insert"/>對應(yīng)調(diào)撥單編號 :<input type="text" name="allocatId" />
<br>相應(yīng)的產(chǎn)品編號 :<input type="text" name="productId" />
<br>件數(shù) :<input type="text" name="counting" />
<br>總數(shù) :<input type="text" name="quantity" />
<br>包裝 :<input type="text" name="pack" />
<br>含稅單價 :<input type="text" name="unitPrice" />
<br>實(shí)際發(fā)貨數(shù)量 :<input type="text" name="actQuantity" />
<br><input type="submit" name="insert" value="新增" /><input type="reset" value="重置" /></form></html>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -