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

📄 stockoutadd.jsp

📁 老牌java开发的物流管理系统 详细的我也没有怎么看 好像是恒基的
💻 JSP
字号:
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="com.wl.dao.EmployeeinfoDAO"%>
<%@ page import="com.wl.entity.EmployeeInfo"%>
<%@ page import="com.wl.dao.GoodsInfoDAO"%>
<%@ page import="com.wl.entity.GoodsInfo"%>
<%@ page import="com.wl.dao.CommcateDAO"%>

<%@ page import="com.wl.dao.TypeDAO"%>
<%@ page import="com.wl.entity.Type"%>
<jsp:directive.page import="com.wl.entity.GoodsType"/>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>My JSP 'stockoutadd.jsp' starting page</title>

		<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="styles.css">
	-->

	</head>
	<body>
		<form action="insertstockout.do" method="post">
			<table border="1" width="640" align="center">
				<tr>
					<td colspan="4" align="center" height="40">
						出库单信息录入
					</td>
				</tr>
				<tr>
					<td>出库编号:</td>
					<td><input type="text" name="stockoutid" size="10" maxlength="20" />
					<font color="red"><b>*</b> </font> &nbsp;&nbsp;
						<font size="2">带* 的为必填信息</font>
					</td>
					<td>出库日期:</td>
					<td><input type="text" name="date" size="10" maxlength="20" />
					<font color="red"><b>*</b> </font> &nbsp;&nbsp;</td>
				</tr>
				<tr>
					<td>
						负责人:
					</td>
					<td>
						<select name="stockoutcharge">
							<option value="">
								
							</option>
							<%
								EmployeeinfoDAO edao = new EmployeeinfoDAO();
								edao.selectEmployeeInfo();
								List<EmployeeInfo> list = new ArrayList<EmployeeInfo>();
								list = edao.selectEmployeeInfo();
								Iterator<EmployeeInfo> it = list.iterator();
								while (it.hasNext()) {
									EmployeeInfo employeeinfo = (EmployeeInfo) it.next();
									int employeeid = employeeinfo.getId();
									String employeename = employeeinfo.getEmployeeName();
									out.print("<option value=" + employeeid);
									out.print(">" + employeename + "</option>");
								}
							%>
						</select>
						&nbsp;&nbsp;
						<font color="red"><b>*</b> </font> &nbsp;&nbsp;
					</td>
					<td>
						商品名称:
					</td>
					<td>
						<select name="goodsname">
						  	<option value="">
							
							</option>
							<%
								GoodsInfoDAO gdao = new GoodsInfoDAO();
								List<GoodsInfo> goodslist = new ArrayList<GoodsInfo>();
								goodslist = gdao.selectAllGoodsInfo();
								Iterator<GoodsInfo> it1 = goodslist.iterator();
								while (it1.hasNext()) {
									GoodsInfo goodsinfo = (GoodsInfo) it1.next();
									int goodsid = goodsinfo.getId();
									String goodsname = goodsinfo.getGoodsName();
									out.print("<option value=" + goodsid);
									out.print(">" + goodsname + "</option>");
								}
							%>
						</select>
						&nbsp;&nbsp;
						<font color="red"><b>*</b> </font>
					</td>
				</tr>
				<tr>
					<td>
						出库数量:
					</td>
					<td>
						<input type="text" name="stockoutnum" size="10" maxlength="20" />
					</td>
					<td>
						商品类别:
					</td>
					<td>
						<select name="goodstype">
							<option value="">
							
							</option>
							<%
								CommcateDAO cdao = new CommcateDAO();
								List<GoodsType> commcatelist = new ArrayList<GoodsType>();
								commcatelist = cdao.selectCommcate();
								Iterator<GoodsType> it2 = commcatelist.iterator();
								while (it2.hasNext()) {
									GoodsType commcate = (GoodsType) it2.next();
									String commcateid = commcate.getCommodityId();
									String commodityname = commcate.getCommodityName();
									out.print("<option value=" + commcateid);
									out.print(">" + commodityname + "</option>");
								}
							%>
						</select>
					</td>
				</tr>
				<tr>
					<td>
						商品型号:
					</td>
					<td>
						<select name="type">
							<option value="">
							
							</option>
							<%
								TypeDAO typedao = new TypeDAO();
								List<Type> typelist = new ArrayList<Type>();
								typelist = typedao.selectAllType();
								Iterator<Type> it3 = typelist.iterator();
								while (it3.hasNext()) {
									Type type = (Type) it3.next();
									int id = type.getId();
									String typename = type.getTypeName();
									out.print("<option value =" + id);
									System.out.println("********************"+id);
									out.print(">" + typename + "</option>");
								}
							%>
						</select>
						&nbsp;&nbsp;
						<font color="red"><b>*</b> </font>
					</td>
					<td>
						收货人:
					</td>
					<td>
						<select name="preson">
								<option value="">
							
							</option>
							<%
								edao.selectEmployeeInfo();
								list = edao.selectEmployeeInfo();
								it = list.iterator();
								while (it.hasNext()) {
									EmployeeInfo employeeinfo = (EmployeeInfo) it.next();
									String employeename = employeeinfo.getEmployeeName();
									out.print("<option value=" + employeename);
									out.print(">" + employeename + "</option>");
								}
							%>
						</select>
						&nbsp;&nbsp;
						<font color="red"><b>*</b> </font>
					</td>
				</tr>
				<tr>
					<td colspan="4" align="center">
						商品出库单备注信息(填写在下面空白处)
					<td>
				</tr>
				<tr>
					<td colspan="4">
						<textarea name="remarkinfo" cols="80" rows="7"></textarea>
					</td>
				</tr>
				<tr>
					<td colspan="4" align="center">
						<input type="submit" name="ok" value="确认提交" />
						&nbsp;&nbsp;&nbsp;&nbsp;
						<input type="reset" name="no" value="重写填写" />
					</td>
				</tr>
				<tr>
					<td colspan="4"></td>
				</tr>
			</table>
		</form>
	</body>
</html>

⌨️ 快捷键说明

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