📄 materialouttable_insert_bysearch.jsp
字号:
<%@ page contentType="text/html; charset=gb2312" language="java"
import="java.sql.*,java.util.*" errorPage="error.jsp"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="display" uri="http://displaytag.sf.net"%>
<%--<%--%>
<%--String path = request.getContextPath();--%>
<%--String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";--%>
<%--%>--%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<head>
<%-- <base href="<%=basePath%>">--%>
<link rel="stylesheet" type="text/css"
href="/Imis/imis_mate/css/style.css"></link>
<script language="JavaScript" type="text/JavaScript">
function checkValue(x) {
var outCount ;
var nowCount;
nowCount = document.getElementById("nowCount"+x).value;
outCount = document.getElementById("outCount"+x).value;
if(!checkMemo(outCount)){
document.getElementById("outCount"+x).focus();
alert("出库数量必须是数字!");
<%-- return false;--%>
}else
if(outCount>nowCount){
document.getElementById("outCount"+x).focus();
window.alert("出库数量大于库存数量!请重输!");
<%-- return false;--%>
}
<%-- document.getElementById("outCount463").focus();--%>
<%-- return true;--%>
}
function checkMemo(outCount) {
if (outCount!=""){
var regp = /^\d{1,9}$/;
if (outCount.match(regp) == null)
{
return false;
}
}
return true;
}
</script>
<title>入库信息查询显示</title>
</head>
<html>
<body background="/Imis/imis_mate/images/bg_main.png" class="ziti">
<form name="form1" method="post"
action="/Imis/servlet/MaterialOutInsertServlet?pattern=outInsert">
<table width="100%" border="0">
<%-- <tr>--%>
<%-- <td><img border="0" src="/Imis/imis_mate/images/logomain.gif" width="934" height="65"></td>--%>
<%-- </tr>--%>
<tr>
<td class="chaxun">
库存信息
</td>
</tr>
<tr>
<td>
</td>
</tr>
<tr>
<td>
</td>
</tr>
<tr>
<td>
</td>
</tr>
<tr>
<td>
<c:if test="${sessionScope.mateOutInsertSearchList!=null}">
<display:table name="sessionScope.mateOutInsertSearchList"
id="MaterialBean" pagesize="15"
requestURI="/Imis/imis_mate/MaterialOutTable_Insert_bysearch.jsp"
border="0" align="center" class="ziti">
<display:column property="materialTypeName" title="物品名称"
width="200" align="center" bgcolor="#FFFFFF"
headerClass="chaxun" />
<display:column property="materialTypeNoToString" title="物品类型"
width="200" align="center" bgcolor="#FFFFFF"
headerClass="chaxun" />
<display:column property="maModel" title="型号" width="200"
align="center" bgcolor="#FFFFFF" headerClass="chaxun" />
<display:column property="maBrand" title="品牌" width="200"
align="center" bgcolor="#FFFFFF" headerClass="chaxun" />
<display:column property="maMadeIn" title="产地" width="200"
align="center" bgcolor="#FFFFFF" headerClass="chaxun" />
<display:column property="priceUnit" title="入库单价" width="200"
align="center" bgcolor="#FFFFFF" headerClass="chaxun" />
<display:column property="nowCount" title="库存数量" width="200"
align="center" bgcolor="#FFFFFF" headerClass="chaxun"/>
<display:column property="inFromToString" title="入库来源"
width="200" align="center" bgcolor="#FFFFFF"
headerClass="chaxun" />
<display:column property="inDate" title="入库日期" width="200"
align="center" bgcolor="#FFFFFF" headerClass="chaxun" />
<%-- <display:column property="materialNo" href="details.jsp" paramId="paramId" paramProperty="materialNo" width="200"
align="center" bgcolor="#FFFFFF" headerClass="chaxun"/>--%>
<display:column title="出库" paramId="buyId" width="200"
align="center" bgcolor="#FFFFFF" headerClass="chaxun">
<div align="center">
<input name="${MaterialBean.materialNo}" type="text"
class="text1" id="outCount${MaterialBean.materialNo}"
value="0" size="4" maxlength="10"
onChange="checkValue(${MaterialBean.materialNo})" />
<input name="${MaterialBean.materialNo}" type="hidden"
id="nowCount${MaterialBean.materialNo}"
value="${MaterialBean.nowCount}" /></div>
</display:column>
<display:setProperty name="paging.banner.placement"
value="bottom" />
<display:setProperty name="sort.behavior" value="list" />
<display:setProperty name="paging.banner.include_first_last"
value="" />
</display:table>
</c:if>
</td>
</tr>
</table>
<%
if (((ArrayList) request.getSession().getAttribute(
"mateOutInsertSearchList")).size() != 0) {
%>
<table>
<tr>
<td width="44%">
</td>
<td width="7%">
<input type="submit" name="Submit" value="提 交" class="anniu"
onclick="return checkValue()">
</td>
<td width="41%">
<input type="reset" name="reset" value="重 置" class="anniu">
</td>
<td width="8%">
</td>
</tr></table>
<%
}
%>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -