⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 materialouttable_insert.jsp

📁 JSP移动商品管理平台源代码.........
💻 JSP
字号:
<%@ page language="java" import="java.util.*" pageEncoding="gb2312" import="cmis.common.*" import="imis_mate.DAO.*" import="imis_mate.bean.*,common.*,imis_mate.common.*" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">

		<link rel="stylesheet" type="text/css" href="/Imis/imis_mate/css/style.css">
	</head>

	<body background="/Imis/imis_mate/images/bg_main.png">
		<script language="JavaScript" src="/Imis/imis_mate/js/checkdata.js"></script>
		<script language="JavaScript" src="/Imis/imis_mate/js/MaterialOutTable.js"></script>
		<script type="text/javascript"> 
		function insert() {
			form1.action = "/Imis/servlet/MaterialOutInsertServlet?pattern=insertAll"
			
		}
		function getvalue() {
		    document.form1.action = "/Imis/servlet/MaterialOutInsertServlet?pattern=getValue&&pag=insert";
		    document.form1.target = "_self";
		    document.form1.submit();
		}
		
	</script>
	<%
   		MateOutBaseBean mateOutBean = new MateOutBaseBean();
  	 	mateOutBean = (MateOutBaseBean)request.getAttribute("mate");
 	%>

		<table width="100%" border="0" background="/Imis/imis_mate/images/bg_main2.png" class=ziti>
			<tr class="tubiao">
				<td>
					物品出库信息录入
				</td>
			</tr>
		</table>



		<c:if test="${requestScope.success != null}">
			<h3>
				<div>
					&nbsp;&nbsp;&nbsp;
					<br>
					&nbsp;&nbsp;&nbsp;&nbsp;
					<span class="ziti">&nbsp; ${requestScope.success}</span>
				</div>
			</h3>

		</c:if>
		<c:if test="${requestScope.MaterialBuyBean==null}">
		</c:if>

		<br />
<form method="post" action="" name="form1"
						onSubmit="return checkValue()">
		<table width="100%">
			<tr>
				<td>
					
						<table align="center" width="326" border="0" class="ziti">
							<tr>
								<td width="31%" align="right">
									出库单编号
								</td>
								<td width="69%">
									<input name="outNo" type="text" class="text1" id="materialTypeNo" size="20" maxlength="30" value="${requestScope.mate.outNo}"/>
									<c:if test="${requestScope.MaterialTypeNoExisted != null}">
										<img src="../imis_mate/images/error.gif" />
										<font color="red">
											${requestScope.MaterialTypeNoExisted}</font>
									</c:if>
									<font color="#ff0000">*</font>
								</td>
							</tr>
							
							<tr>
								<td align="right" width="31%">
									出库人
								</td>
								<td>
									<input name="userCode" type="text" class="text1" id="attPerson" size="20" maxlength="30" value="${requestScope.mate.userCode}"/>
								</td>
							</tr>
							<tr>
								<td align="right" width="31%">
									使用单位
								</td>
								<td>
					      <select name="useDep" id="useDep"  class="text1">
						        <% 
								
							    int  deptId = 0;
								String deptName = null;
								DepartmentsBean describe1 = new DepartmentsBean();
								ArrayList list10 = describe1.getDepts();
								Iterator itr10 = list10.iterator();
						        while (itr10.hasNext()) {
						     	Hashtable ht = (Hashtable) itr10.next();  
								deptId      =  Integer.parseInt(ht.get("deptId").toString());
						       	deptName   =  ht.get("deptName").toString(); 
						       	
								if(mateOutBean!=null && mateOutBean.getUseDep()==deptId){%>
						
								<option value=<%=deptId%> selected><%=deptName%></option>
								
								<%}
								else
								{%>
								<option value=<%=deptId%>><%=deptName%></option>
								<%		
								}
								}
								%>
         
     			 </select>
								</td>
							</tr>
							<tr>
								<td align="right" width="31%">
									责任人
								</td>
								<td>
									<input name="managerBy" type="text" class="text1" id="managerBy" size="20" maxlength="30" value="${requestScope.mate.managerBy}"/>
								</td>
							</tr>
							<tr>
								<td align="right" width="31%">
									使用人
								</td>
								<td>
									<input name="useBy" type="text" class="text1" id="useBy" size="20" maxlength="30" value="${requestScope.mate.useBy}"/>
								</td>
							</tr>
							<tr>
								<td align="right" width="31%">
								建筑物代号
								</td>
								<td> 
<%--									<input name="buildingNu" type="text" class="text1" id="buildingNu" size="20" maxlength="30" />--%>
								<select name="buildingNu" id="buildingNu" class="text1" onchange="getvalue()">
										<option value="">无</option>
							         <% 
							         	MateOutBaseBean mbb = new MateOutBaseBean();
  										mbb = (MateOutBaseBean)request.getAttribute("mate");
										String buildingNu = null;
										String buildingName = null;
										HousBuildingAndRoom mate = new HousBuildingAndRoom();
										ArrayList list = mate.getBuildingList();
										Iterator itr = list.iterator();
								        while (itr.hasNext()) {
									     	Hashtable ht = (Hashtable) itr.next();  
											buildingNu = ht.get("BuildingNu").toString();
									       	buildingName = ht.get("BuildingName").toString();
										if(mbb!=null && mbb.getBuildingNu()!=null && mbb.getBuildingNu().equals(buildingNu)){%>
											<option value=<%=buildingNu%> selected><%=buildingName%></option>
											<%}
										else
											{%>
											<option value=<%=buildingNu%>><%=buildingName%></option>
											<%		
											}
											}
											%>
					  			</select>
								</td>
							</tr>
							<tr>
								<td align="right" width="31%">放置位置房间
								</td>
								<td>
<%--									<input name="roomNu" type="text" class="text1" id="roomNu"--%>
<%--										size="20" maxlength="30" />--%>
								<select name="roomNu" id="roomNu" class="text1">
										<option value="">无</option>
							         <% 
  										ArrayList roomList = (ArrayList)request.getAttribute("roomList");
										String RoomNu = null;
										if(roomList!=null && roomList.size() != 0) {
											Iterator itr2 = roomList.iterator();
								        while (itr2.hasNext()) {
									     	Hashtable ht = (Hashtable) itr2.next();  
											RoomNu = ht.get("RoomNu").toString();
										if(mbb!=null && mbb.getRoomNu()!=null && mbb.getRoomNu().equals(RoomNu)){%>
											<option value=<%=RoomNu%> selected><%=RoomNu%></option>
											<%}
										else
											{%>
											<option value=<%=RoomNu%>><%=RoomNu%></option>
											<%		
											}
											}}
											%>
					  			</select>
								</td>
							</tr>
							
							<tr>
								<td>
									<div align="right">
										出库原因
									</div>
								</td>
								<td align="left">
								<select name="outCause" class="text1">
									<option value="1"
										<c:if test="${requestScope.mate.outCause==1}">selected readonly="readonly"</c:if>>
										部门申请
									</option>
									<option value="2"
										<c:if test="${requestScope.mate.outCause==2}">selected readonly="readonly"</c:if>>
										采购退货
									</option>
									<option value="3"
										<c:if test="${requestScope.mate.outCause==3}">selected readonly="readonly"</c:if>>
										销毁
									</option>
									<option value="4"
										<c:if test="${requestScope.mate.outCause==4}">selected readonly="readonly"</c:if>>
										其他
									</option>
								</select>
								</td>
							</tr>
							<tr>
								<td align="right" width="31%">
									出库日期
								</td>
								<td>
									<input name="outDate" id="outDate" size="10" maxlength="10" type="text" class="text1" readonly="readonly" onMouseDown="javascript:setday(form1.outDate);" value="${requestScope.mate.outDate}"/>
									<%--      <Script class="text1">DateBox("outDate")</Script>--%>
									<font color="#ff0000">*</font>
								</td>
							</tr>
							<tr>
								<td width="31%">
									<div align="right">
										出库摘要
									</div>
								</td>
								<td align="left">
									<textarea name="reMark" cols="20" rows="4" id="reMark"
										class="textarea1">${requestScope.mate.reMark}</textarea>
								</td>
							</tr>
						</table>
			<tr>
				<td colspan="2">
					<iframe src="/Imis/imis_mate/MaterialOutDetail_Display.jsp"
						id="search" name="search" align="bottom" border="0"
						marginWidth="0" frameSpacing="0" marginHeight="0" frameBorder="0"
						noResize target="_blank" width="100%"  scrolling="auto"
						background="/Imis/imis_mate/images/bg_main.png">
					</iframe>
				</td>
			</tr>
			<tr align="center">
				<td colspan="2">
					<div align="center">
                      <input type="submit" name="Submit2" value="提  交" onClick="insert()"
							class="anniu" />						
                      <input type="reset" name="Submit" value="重  置" class="anniu" />
				  </div>
			 
				</td>
			</tr>
		</table>
		 </form>

	</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -