📄 ullageratifier.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>
<link rel="stylesheet" href="css.css" type="text/css">
</head>
<%
int type = Integer.parseInt(request.getParameter("type"));
String mode = request.getParameter("mode");
String ullageId = request.getParameter("ullageId");
String str0;
String str[]={"初始","部门审核通过","销售部审核通过","总经理审核通过","审核未通过","领用","发票","完成"};
if (request.getParameter("update")!=null){
%>
<jsp:setProperty name="ullage" property="*" />
<%
/*
相应单子状态
0 初始
1 部门经理审核通过
2 销售部审核通过
3 总经理审核通过
9 审核未通过
*/
ullage.setGlobal(global);
int agree = Integer.parseInt(request.getParameter("agree"));
int rtcode=ullage.updateRatifier(global.empId,agree,type);
if(rtcode>=0){
if (type==1)
str0="DeptRatifier.jsp";
else
str0="ManagerRatifier2.jsp";
}else
str0="../pub/DBErr.jsp?rtcode=" + rtcode;
response.sendRedirect(str0);
}
ullage.load(ullageId);
department.load(ullage.getDeptId());
ullageProduct.query("ullageId='"+ullageId+"'","");
ullageProduct.next();
%>
<body bgcolor=#949b93>
<table width="100%" border="1" height="90%" bordercolorlight="#616860" bordercolordark="#CCCCCC" bgcolor="#4c7171" cellpadding="0" cellspacing="0">
<tr>
<td valign="top" class="textb">
<blockquote>
<br>
<br>
<table width="49%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="textb" width="125">
<div align="right"><b>采购申请编号:</b></div>
</td>
<td width="218" class="textb">
<div align="left"><%=ullage.getUllageId()%>
<input type="hidden" name="ullageId2" value="<%=ullage.getUllageId()%>">
</div>
</td>
</tr>
<tr>
<td class="textb" width="125">
<div align="right"><b>申请人:</b></div>
</td>
<td width="218" class="textb"><%=ullage.getProposer()%></td>
</tr>
<tr>
<td class="textb" width="125">
<div align="right"><b>申请部门:</b></div>
</td>
<td width="218" class="textb"><%=department.getDeptName()%></td>
</tr>
<tr>
<td class="textb" width="125">
<div align="right"><b>预计总价:</b></div>
</td>
<td width="218" class="textb"><%=ullage.doubleFormat(ullage.getAppMoney(),2)%></td>
</tr>
<tr>
<td class="textb" width="125">
<div align="right"><b>当前状态:</b></div>
</td>
<td width="218" class="textb"><%=str[ullage.getUllageState()]%></td>
</tr>
</table>
<br>
<p>
<table border="1" bordercolorlight="#000000" bordercolordark="#CCCCCC" cellpadding="0" cellspacing="0" width="87%">
<tr bgcolor="#949b93">
<caption align = "center"><b class="textb">采购产品列表<br>
</b></caption>
<tr class="text" bgcolor="#949b93">
<td class="text">
<div align="center"><b>产品名称</b></div>
</td>
<td class="text">
<div align="center"><b>规格/型号</b></div>
</td>
<td class="text">
<div align="center"><b>数量</b></div>
</td>
<td class="text">
<div align="center"><b>预计单价</b></div>
</td>
<td class="text">
<div align="center"><b>备注</b></div>
</td>
</tr>
<% do{ %>
<tr class="textb">
<td class="textb"><%=ullageProduct.getProductName()%></td>
<td class="textb"><%=ullageProduct.getProductType()%></td>
<td class="textb" align="right"><%=ullageProduct.doubleFormat(ullageProduct.getAppQuantity(),2)%></td>
<td class="textb" align="right"><%=ullageProduct.doubleFormat(ullageProduct.getAppPrice(),2)%></td>
<td class="textb"><%=ullageProduct.getComment()%> </td>
</tr>
<% }while(ullageProduct.next()>0);%>
</table>
<p>
<form method="post" action="UllageRatifier.jsp">
<input type="hidden" name="mode" value="audit" />
<input type="hidden" name="type" value="<%=type%>" />
<input type="hidden" name="ullageId" value="<%=ullageId%>" />
审核意见:
<select name="agree">
<option value="1" >同意 </option>
<option value="2" >不同意 </option>
</select>
<br>
批注:<input type="text" name="comment" value="<%=ullage.getComment()%>">
<p>
<input type="submit" name="update" value="审核">
</form>
</blockquote>
</td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -