📄 ullageaccountidupdate.jsp
字号:
<%@ taglib prefix="task" uri="/jsp/tld/WuYangTag.tld" %>
<jsp:useBean id="global" class="src.com.MyGlobal" scope="session"/>
<jsp:useBean id="ullage" class="src.wuyang.Ullage" scope="page"/>
<jsp:useBean id="employee" class="src.wuyang.Employee" scope="page"/>
<jsp:useBean id="ullageProduct" class="src.wuyang.UllageProduct" scope="page"/>
<jsp:useBean id="department" class="src.wuyang.Department" scope="page"/>
<jsp:setProperty name="ullage" property="ullageId" />
<jsp:setProperty name="ullageProduct" property="*" />
<% if (global.isLogined == false) {
%>
<jsp:forward page="../pub/DBErr.jsp" >
<jsp:param name="rtcode" value="-4" />
</jsp:forward>
<% }
%>
<html>
<head>
<title>易耗品领用</title>
<script language ="javascript" src='../pub/pub.js' type=text/javascript></script>
<link rel="stylesheet" href="css.css" type="text/css">
</head>
<script language="JavaScript">
function VerifyInput(e)
{
if(noFloat(e.actGetQuantity.value))
{
alert("请输入正确数量");
e.actGetQuantity.focus();
return false;
}
}
</script>
<body bgcolor="#949B93" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" border="1" height="90%" cellspacing="0" cellpadding="0" align="center" bordercolorlight="#616860" bordercolordark="#CCCCCC" bgcolor="#4c7171" >
<tr>
<td valign="top" >
<br><%
String ullageId = request.getParameter("ullageId");
if (request.getParameter("update")!=null) {
ullageProduct.setGlobal(global);
int rtcode = ullageProduct.updateAccountId();
if(rtcode < 0) {
%> <jsp:forward page="../pub/DBErr.jsp" > <jsp:param name="rtcode" value="<%= rtcode %>" />
</jsp:forward> <% }
}
ullage.load(ullageId);
department.load(ullage.getDeptId());
employee.load(ullage.getProposer());
%>
<table width="100%" border="0">
<tr>
<td width="16%">
<div align="right"><b><span class="textb">采购申请编号:</span></b></div>
</td>
<td width="84%"><span class="textb"><%=ullage.getUllageId()%></span></td>
</tr>
<tr>
<td width="16%">
<div align="right"><b><span class="textb">申请人:</span></b></div>
</td>
<td width="84%"><span class="textb"><%=employee.getEmpName()%></span></td>
</tr>
<tr>
<td width="16%">
<div align="right"><b><span class="textb">申请部门:</span></b></div>
</td>
<td width="84%"><span class="textb"><%=department.getDeptName()%></span></td>
</tr>
</table>
<b><span class="textb"><br>
<table width="100%" border="1" bordercolorlight="#000000" bordercolordark="#CCCCCC" cellpadding="0" cellspacing="0">
<caption align = "center" class="textb"><b>领用产品列表</b></caption>
<tr>
<td class="text" bgcolor="#949b93">
<div align="center"><b>产品名称</b></div>
</td>
<td class="text" bgcolor="#949b93">
<div align="center"><b>规格/型号</b></div>
</td>
<td class="text" bgcolor="#949b93">
<div align="center"><b>实际数量</b></div>
</td>
<td class="text" bgcolor="#949b93">
<div align="center"><b>已领用数量</b></div>
</td>
<td class="text" bgcolor="#949b93">
<div align="center"><b>可领用数量</b></div>
</td>
<td class="text" bgcolor="#949b93">
<div align="center"><b>领用数量</b></div>
</td>
<td class="text" bgcolor="#949b93">
<div align="center"><b>领用人</b></div>
</td>
<td class="text" bgcolor="#949b93">
<div align="center"><b>领用</b></div>
</td>
</tr>
<%
int num = ullageProduct.query("ullageId='"+ullageId+"'","");
for(int i = 0; i < num && (ullageProduct.next() > 0) ; i++) {
%>
<form method="post" action="UllageAccountIdUpdate.jsp" onsubmit="return VerifyInput(this);">
<input type="hidden" name="no" value="<%=ullageProduct.getNo()%>"/>
<input type="hidden" name="ullageId" value="<%=ullageId%>"/>
<tr>
<td class="textb"><%=ullageProduct.getProductName()%></td>
<td class="textb"><%=ullageProduct.getProductType()%></td>
<td class="textb" align="right"><%=ullageProduct.doubleFormat(ullageProduct.getActQuantity(),2)%></td>
<td class="textb" align="right"><%=ullageProduct.doubleFormat(ullageProduct.getActGetQuantity(),2)%></td>
<td class="textb" align="right"><%=ullageProduct.doubleFormat((ullageProduct.getActQuantity()-ullageProduct.getActGetQuantity()),2)%></td>
<td class="textb">
<div align="center">
<input type="text" name="actGetQuantity" value="0" size="12" maxlength="12">
</div>
</td>
<td>
<div align="center">
<select name="comment">
<task:deptEmployee showType="select" deptId="<%=ullage.getDeptId()%>"/>
</select>
</div>
</td>
<td>
<div align="center">
<input type="submit" name="update" value="领用">
</div>
</td>
</tr>
</form>
<%
}
%>
</table>
</span></b></td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -