⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 insertoperationinfotra.jsp

📁 (Java+SQL)-大型企业JAVA的ERP系统
💻 JSP
字号:
<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>
<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") ){
 OperationInfoTra.setGlobal(global);
 %>
 <jsp:setProperty name="OperationInfoTra" property="*" />
 <%
 int rtcode = OperationInfoTra.insert();
 if(rtcode >= 0) {
 %>
 <jsp:forward page="insertOperationInfoTra.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"/>凭证编号   :<input type="text" name="receiptId" />
 <br>凭证类型   :<input type="text" name="receiptType" />
 <br>申请人   :<input type="text" name="proposer" />
 <br>部门编号   :<input type="text" name="deptId" />
 <br><input type="submit" name="insert" value="新增" /><input type="reset" value="重置" /></form></html>

⌨️ 快捷键说明

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