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

📄 ullageratifierupdate.jsp

📁 (Java+SQL)-大型企业JAVA的ERP系统
💻 JSP
字号:
<jsp:useBean id="ullage" class="src.wuyang.Ullage" scope="page"/>
<jsp:useBean id="ullageProduct" class="src.wuyang.UllageProduct" scope="page"/>
<jsp:useBean id="department" class="src.wuyang.Department" 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>
</head>
<%
	String mode = request.getParameter("mode");
	String ullageId = request.getParameter("ullageId");	
	String str[]={"初始","部门经理审核通过","销售部审核通过","总经理审核通过","审核未通过"};	
	
	if (mode!=null && mode.equals("audit")){
%>
<jsp:setProperty name="ullage" property="*" /> 
<%
/*
	相应单子状态
	0  初始
	1  部门经理审核通过
	2  销售部审核通过
	3  总经理审核通过
	9  审核未通过
*/	
	int agree = Integer.parseInt(request.getParameter("agree"));
	int rtcode=ullage.updateRatifier(2,agree);
	if (rtcode>=0){
%>
<jsp:forward page="ManagerRatifier.jsp" /> 
<%
	}
}	
	
	int count = ullage.load(ullageId);
	if (count<=0) 
		response.sendRedirect("../pub/DBErr.jsp?rtcode=-103");
	ullageProduct.load(ullageId);	
	department.load(ullage.getDeptId());	
%>	
<body>

 采购申请编号:<%=ullage.getUllageId()%><input type="hidden" name="ullageId" value="<%=ullage.getUllageId()%>">
 <br> 
 申请人:<%=ullage.getProposer()%>
 <br> 
 申请部门:<%=department.getDeptName()%> 
 <br> 
 预计总价:<%=ullage.getAppMoney()%> 
 <br>
 当前状态:<%if(ullage.getUllageState()==9){%>
 					审核未通过
 		  <%  }else{ %>
          <%=str[ullage.getUllageState()]%>
          <%
               }  
          %>
 <p> 
<table border="1">
<caption align = "center">采购产品列表</caption>
 <tr>	 
	 <td>产品名称</td>
	 <td>规格/型号</td>	 
	 <td>数量</td>
	 <td>预计单价</td>
	 <td>备注</td>
 </tr>	 
<% do{   %>
 <tr>
	<td><%=ullageProduct.getProductName()%></td>
	<td><%=ullageProduct.getProductType()%></td>
	<td><%=ullageProduct.getAppQuantity()%></td>
	<td><%=ullageProduct.getAppPrice()%></a></td>
	<td><%=ullageProduct.getComment()%></td>
 </tr>
<% }while(ullageProduct.next()>0);%>
</table>
<p> 
<form method="post" action="UllageRatifierUpdate.jsp">  
<input type="hidden" name="mode" value="audit" />
<input type="hidden" name="ratifier" value="<%=global.loginName%>">
<input type="hidden" name="ullageId" value="<%=ullageId%>" />
高层审核意见:
	<select name="agree">
			<option value="1" <%if(ullage.getUllageState()==9){%>selected<%}%>>同意
			<option value="2" <%if(ullage.getUllageState()!=9){%>selected<%}%>>不同意
	</select>
<br>	
批注:<input type="text" name="comment" value="<%=ullage.getComment()%>"> 
<p>
<input type="submit" name="update" value="审核">
</form>
</body>
</html>







⌨️ 快捷键说明

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