62 lines
1.4 KiB
Plaintext
62 lines
1.4 KiB
Plaintext
<%@ page contentType="text/html; charset=GBK" %>
|
|
<html><head>
|
|
<title>库存查询</title>
|
|
<link rel="stylesheet" type="text/css" href="css/sm.css">
|
|
<script type="text/javascript" src="script/ajax.js"></script>
|
|
</head>
|
|
<body>
|
|
<table><tr><td>
|
|
<form name="cxtj" onsubmit="return check(false);">
|
|
<table align="left"><tr>
|
|
<td>以<select name="field"">
|
|
<option value="kwbh">库位号</option>
|
|
<option value="tpbh">托盘号</option>
|
|
<option value="lpxx">批 号</option>
|
|
</select>
|
|
<td>起始符<input name=input type=text size=9 maxlength=20>
|
|
<td><input name=submit type=submit value="查">
|
|
</td></tr></table></form>
|
|
</td></tr>
|
|
<tr><td>
|
|
<div id="kcmx"></div>
|
|
</td></tr></table>
|
|
<script language="javascript">
|
|
function check(onstart)
|
|
{
|
|
var cxtj = document.forms["cxtj"];
|
|
var input = cxtj.input.value;
|
|
if (onstart || input.length == 0)
|
|
{
|
|
focusInput(cxtj.input);
|
|
return false;
|
|
}
|
|
else
|
|
{
|
|
var argument = new Array("field", cxtj.field.value, "input", input);
|
|
postRequest("kccx.jsp", argument, successQuery);
|
|
var tblDjmxDiv = document.getElementById("kcmx");
|
|
tblDjmxDiv.innerHTML = "";
|
|
}
|
|
return false;
|
|
}
|
|
|
|
//查询确认 回调函数
|
|
function successQuery(result, req)
|
|
{
|
|
finishProcess();
|
|
|
|
var cxtj = document.forms["cxtj"];
|
|
var input = cxtj.input;
|
|
input.select();
|
|
focusInput(input);
|
|
//列出查询结果
|
|
var tblDjmxDiv = $("kcmx");
|
|
tblDjmxDiv.innerHTML = req.responseText;
|
|
}
|
|
check(true);
|
|
</script>
|
|
</body>
|
|
</html>
|
|
|
|
|