operationinfotraupdate.jsp

来自「(Java+SQL)-大型企业JAVA的ERP系统」· JSP 代码 · 共 54 行

JSP
54
字号
<jsp:useBean id="OperationInfoTra" class="src.wuyang.OperationInfoTra" 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 receiptId = request.getParameter("receiptId");
String mode = request.getParameter("mode");
System.out.println("mode="+ mode);
if (request.getParameter("update")!=null && mode.equals("update") ){ 
	OperationInfoTra.setGlobal(global);	
%>
<jsp:setProperty name="OperationInfoTra" property="*" />
<%
	int rtcode = OperationInfoTra.update();
	if(rtcode < 0) {
%>
<jsp:forward page="../pub/DBErr.jsp" > 
	<jsp:param name="rtcode" value="<%= rtcode %>" />
</jsp:forward>
<%  
	}  
}
	OperationInfoTra.load(receiptId);
	
%>
<html>
<form method="post" action="OperationInfoTraUpdate.jsp">
	<input type="hidden" name="receiptId" value="<%=OperationInfoTra.getReceiptId()%>">
	<input type="hidden" name="mode" value="update"/>
凭证编号   :<%=OperationInfoTra.getReceiptId()%> 
凭证类型   :<input type="text" name="receiptType "value=" <%=OperationInfoTra.getReceiptType()%>" />
 <br>
申请人   :<input type="text" name="proposer "value=" <%=OperationInfoTra.getProposer()%>" />
 <br>
部门编号   :<input type="text" name="deptId "value=" <%=OperationInfoTra.getDeptId()%>" />
 <br>
	<input type="submit" name="update" value="修改" />
	<input type="reset" value="重置" />
</form>
</html>

⌨️ 快捷键说明

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