?? insertslipproduct.jsp
字號(hào):
<jsp:useBean id="SlipProduct" class="src.wuyang.SlipProduct" 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") ){
SlipProduct.setGlobal(global);
%>
<jsp:setProperty name="SlipProduct" property="*" />
<%
int rtcode = SlipProduct.insert();
if(rtcode >= 0) {
%>
<jsp:forward page="insertSlipProduct.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"/>銷(xiāo)售單編號(hào) :<input type="text" name="slipId" />
<br>產(chǎn)品編號(hào) :<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>單價(jià) :<input type="text" name="unitPrice" />
<br>實(shí)際數(shù)量 :<input type="text" name="actQuantity" />
<br><input type="submit" name="insert" value="新增" /><input type="reset" value="重置" /></form></html>
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -