📄 purchproductupdate.jsp
字号:
<jsp:useBean id="PurchProduct" class="src.wuyang.PurchProduct" 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>产品信息</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="../pub/style.css">
</head>
<%
String purchId = request.getParameter("purchId");
String mode = request.getParameter("mode");
System.out.println("mode="+ mode);
if (request.getParameter("update")!=null && mode.equals("update") ){
PurchProduct.setGlobal(global);
%>
<jsp:setProperty name="PurchProduct" property="*" />
<%
int rtcode = PurchProduct.update();
if(rtcode < 0) {
%>
<jsp:forward page="../pub/DBErr.jsp" >
<jsp:param name="rtcode" value="<%= rtcode %>" />
</jsp:forward>
<%
}
}
PurchProduct.load(purchId);
%>
<html>
<form method="post" action="PurchProductUpdate.jsp">
<input type="hidden" name="purchId" value="<%=PurchProduct.getPurchId()%>">
<input type="hidden" name="mode" value="update"/>
采购单编号 :<%=PurchProduct.getPurchId()%>
产品编号 :<input type="text" name="productId "value=" <%=PurchProduct.getProductId()%>" />
<br>
件数 :<input type="text" name="counting "value=" <%=PurchProduct.getCounting()%>" />
<br>
数量 :<input type="text" name="quantity "value=" <%=PurchProduct.getQuantity()%>" />
<br>
包装 :<input type="text" name="pack "value=" <%=PurchProduct.getPack()%>" />
<br>
单价 :<input type="text" name="unitPrice "value=" <%=PurchProduct.getUnitPrice()%>" />
<br>
实际数量 :<input type="text" name="actQuantity "value=" <%=PurchProduct.getActQuantity()%>" />
<br>
<input type="submit" name="update" value="修改" />
<input type="reset" value="重置" />
</form>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -