📄 inquery.jsp
字号:
<%@ page language="java" pageEncoding="GBK"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>进库后台查询</title>
<style>
input{
border:1px solid red;
}
table{
border-collapse:collapse;
}
</style>
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
<script>
function changePage(obj){
if(obj.value == '首页'){
document.all("currpage").value = 1;
document.all("query").submit();
}else if(obj.value == '上一页'){
document.all("currpage").value = document.all("ppage").value;
document.all("query").submit();
}else if(obj.value == '下一页'){
document.all("currpage").value = document.all("npage").value;
document.all("query").submit();
}else{
document.all("currpage").value = document.all("allpage").value;
document.all("query").submit();
}
}
function delMap(obj){
var dbid = obj.delMapid;
if(confirm("是否确定删除料品编号为:" + dbid + "料品!")){
var formobj = document.all("query");
document.all("delbid").value = dbid;
formobj.action = "InMapAction.delete.do";
formobj.submit();
}
}
function modMap(obj){
var mbid = obj.modMapid;
var formobj = document.all("query");
document.all("modoiid").value = mbid;
formobj.action = "InMapAction.get.do";
formobj.submit();
}
</script>
</head>
<body>
<br>
<font color="blue" size="4"> 料品入库查询</font>
<hr color="gray" width="100%" />
${message}
<font color=red>${error}</font>
<form action="InMapAction.query.do" name="query" method="post">
进 库 单 号:
<input name="oiid" value="${param.oiid}">
<c:if test="${param.state=='1'}">
<input type="hidden" name="state" value="1">
</c:if>
<c:if test="${param.state!='1'}">
状态:<select name="state">
<option>
<c:if test="${param.state=='新单'||param.state=='1'}"></c:if>
新单
</option>
<option><c:if test="${param.state=='已审核'}"></c:if>
已审核
</option>
</select>
</c:if>
<br>
进库日期开始:
<input name="outindatebegin" value="${param.outindatebegin}">
结束:
<input name="outindateend" value="${param.outindateend}">
<input name="outintype" type="hidden" value="i">
<input type="submit" value="查询">
<br>
<a href="inmapadd.jsp">去进库新加页</a>
<table border="1" id="tab" width="70%">
<tr>
<th>
序号
</th>
<th>
进库单号
</th>
<th>
状态
</th>
<th>
进库日期
</th>
<th>
总数量
</th>
<th>
操作员
</th>
<th>
描述
</th>
<th>
操作
</th>
</tr>
<c:forEach items="${po.list}" var="iomap" varStatus="status">
<tr>
<td>
${(po.currpage-1)*po.pagesize + status.count}
</td>
<td>
${iomap.oiid}
</td>
<td>
${iomap.state}
</td>
<td>
${iomap.outindate}
</td>
<td>
${iomap.outinsumnum}
</td>
<td>
${iomap.outinman}
</td>
<td>
${iomap.outindes}
</td>
<td>
<input type="button" value="详情" modMapid="${iomap.oiid}"
onclick="modMap(this)">
<input type="button" value="删除" delMapid="${iomap.oiid}"
onclick="delMap(this)">
</td>
</tr>
</c:forEach>
</table>
<br>
<input type="hidden" name="ppage" value="${po.ppage}">
<input type="hidden" name="currpage" value="${po.currpage}">
<input type="hidden" name="npage" value="${po.npage}">
<input type="hidden" name="allpage" value="${po.allpage}">
<input type="hidden" name="addcount" value="0">
<input type="hidden" name="delbid">
<input type="hidden" name="modoiid">
总记录条数:${po.allcount} 每页显示:${po.pagesize} 总页数:${po.allpage}
<input type="button" value="首页" onclick="changePage(this)">
<input type="button" value="上一页" onclick="changePage(this)">
当前页:${po.currpage}
<input type="button" value="下一页" onclick="changePage(this)">
<input type="button" value="末页" onclick="changePage(this)">
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -