📄 ullageactupdate.jsp
字号:
<jsp:useBean id="global" class="src.com.MyGlobal" scope="session"/>
<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="operationInfoTra" class="src.wuyang.OperationInfoTra" scope="page"/>
<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>
<link rel="stylesheet" href="css.css" type="text/css">
</head>
<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" ><b><span class="textb"><br>
</span> </b>
<blockquote> <b><span class="textb"> <%
String ullageId = request.getParameter("ullageId");
if (request.getParameter("update")!=null) {
ullageProduct.setGlobal(global);
int rtcode = ullageProduct.updateAct();
if(rtcode < 0) {
%> <jsp:forward page="../pub/DBErr.jsp" > <jsp:param name="rtcode" value="<%= rtcode %>" />
</jsp:forward> <% }
}
ullage.load(ullageId);
department.load(ullage.getDeptId());
%>      <br>
</span></b>
<table width="88%" border="0">
<tr>
<td width="25%" height="2"><b><span class="textb">采购申请编号</span></b></td>
<td width="75%" height="2"><span class="textb"><%=ullage.getUllageId()%>
<input type="hidden" name="ullageId2" value="<%=ullage.getUllageId()%>">
</span></td>
</tr>
<tr>
<td width="25%"><b><span class="textb">申请人</span></b></td>
<td width="75%"><span class="textb"><%=ullage.getProposer()%></span></td>
</tr>
<tr>
<td width="25%"><b><span class="textb">申请部门</span></b></td>
<td width="75%"><span class="textb"><%=department.getDeptName()%></span></td>
</tr>
<tr>
<td width="25%" height="2"><b><span class="textb">实际使用金额</span></b></td>
<td width="75%" height="2"><span class="textb"><%=ullage.doubleFormat(ullage.getActMoney(),2)%></span></td>
</tr>
</table>
<table border="1" bordercolorlight="#000000" bordercolordark="#CCCCCC" width="88%" cellpadding="0" cellspacing="0" height="64">
<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" colspan="2">
<div align="center"><b>修改</b></div>
</tr>
<%
int num = ullageProduct.query("ullageId='"+ullageId+"'","");
for(int i = 0; i < num && (ullageProduct.next() > 0) ; i++) {
%>
<form method="post" action="UllageActUpdate.jsp?ullageId=<%=ullageId%>">
<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.getAppQuantity(),2)%></td>
<td class="textb" align="right"><%=ullageProduct.doubleFormat(ullageProduct.getAppPrice(),2)%></td>
<td class="textb">
<input type="text" name="actQuantity" value="<%=ullageProduct.doubleFormat(ullageProduct.getActQuantity(),2)%>" size="12" maxlength="12">
</td>
<td class="textb">
<input type="text" name="actPrice" value="<%=ullageProduct.doubleFormat(ullageProduct.getActPrice(),2)%>" size="12" maxlength="12">
</td>
<td >
<input type="submit" name="update" value="修改">
</td>
</tr>
</form>
<%
}
%>
</table>
</blockquote>
</td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -