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

📄 company_list.jsp

📁 本程序主要实现对管理系统的初步管理
💻 JSP
字号:
<%@ page contentType="text/html; charset=GBK"%>
<%@page import="java.util.ArrayList"%>
<%@page import="org.ads123.goodsmanagers.dto.CompanyInfo"%>
<html>
  <head>
    <title>公司情况信息</title>
  </head>
  <%
  	ArrayList<CompanyInfo> defaultList = (ArrayList)session.getAttribute("allCompanyist");
  	ArrayList<String> companyNameList = (ArrayList)session.getAttribute("companyName");
  	ArrayList<String> houseno_list = (ArrayList)session.getAttribute("houseNoList");
  	ArrayList<CompanyInfo> ListByC_name = (ArrayList)request.getAttribute("comanyInfoListByC_name");
  	ArrayList<CompanyInfo> ListByR_no = (ArrayList)request.getAttribute("comanyInfoListByR_no");
  	
  	ArrayList<CompanyInfo> comapanyList = null;
  	if(ListByC_name != null){
  		comapanyList = ListByC_name;
  	}else if(ListByR_no != null){
  		comapanyList = ListByR_no;
  	}else{
  		comapanyList = defaultList;
  	}
  %>
  <body bgcolor="green">
  	<center>
		<br><br>
		<font color="yellow" face="华文彩云" size="6">公司情况信息列表</font><br>
  		<form action="<%=request.getContextPath() %>/Controller?act=company_list" method="post">
  			<input type="radio" name="company_condition" value="Company_name"/>按<font color="white">公司名称</font>查询
  			---------------请选择公司名称
  			<select name="C_name">
  			<%
  				for(String companylist:companyNameList){
  			%>
  				<option value="<%=companylist %>"><%=companylist %></option>
  			<%
  				}
  			%>
  			</select>
  			<br>
  			<input type="radio" name="company_condition" value="Rent_no"/>按<font color="white">仓库号</font>查询
  			-----请选择公司所租用的仓库编号
  			<select name="R_no">
  			<%
  				for(String housenolist: houseno_list){
  			%>
  						<option value="<%=housenolist %>"><%=housenolist %></option>
  			<%
  				}
  			%>
  			</select>
  			<br><br>
  			<table border="1" bordercolor="pink" align="center" width="90%" cellpadding="1" cellspacing="1">
  				<tr height="50">
  					<td>公司编号</td>
  					<td>公司名称</td>	
  					<td>经理</td>
  					<td>联系方式</td>
  					<td>公司地址</td>
  					<td>经营模式</td>
  					<td>所属行业</td>	
  					<td>经手人</td>
  					<td>所租用仓库</td>
  					<td>仓库存储货物名称</td>
  					<td>仓库已用空间</td>
  					<td>仓库未用空间</td>
  				</tr>
  				<%
  					for(CompanyInfo list: comapanyList){
  				%>
  					<tr height="30">
  						<td><%=list.getC_no() %></td><td><%=list.getC_name() %></td><td><%=list.getC_lead() %></td><td><%=list.getC_conn() %></td><td><%=list.getC_add() %></td><td><%=list.getC_mode() %></td><td><%=list.getC_ind() %></td>
  						<td><%=list.getM_name() %></td><td><%=list.getR_no() %></td><td><%=list.getG_name() %></td><td><%=list.getR_use() %></td><td><%=list.getR_nouse() %></td>
  					</tr>
  				<%
  					}
  				%>
  			</table>
  			<br>
  			<input type="submit" value="按条件查询公司信息"/>
  			<br><br>
  			<a href="<%=request.getContextPath() %>/Controller?act=returns"><font color="yellow">返回操作界面</font></a>
  		</form>
  	</center>
  </body>
</html>

⌨️ 快捷键说明

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