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

📄 stockregionsave.jsp

📁 采用java三层构架技术开发的U/T 网络物流系统实现了对商品库存信息
💻 JSP
字号:
<%@ page language="java" contentType="text/html; charset=gb2312" pageEncoding="GB2312"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ page import="java.sql.*" %>
<%request.setCharacterEncoding("gb2312");%>
<%
	String loginname=(String)session.getAttribute("loginname");
	String ok=(String)session.getAttribute("ok");
	String loginpower=(String)session.getAttribute("loginpower");
	if(ok==null&&loginname==null)
 	{
  	   session.setAttribute("errors","对不起您还没有登陆,请先登陆!");
  	   response.sendRedirect("../../errors/errorpage.jsp");
 	}else if(!loginpower.equals("admin")){
 	
 	   session.setAttribute("errors","对不起您没有对商品位置的管理权限!");
  	   response.sendRedirect("../../errors/errorpage.jsp");
 	}

 %>
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  <meta   http-equiv='Expires'   content='-10'>   
  <meta   http-equiv='Pragma'     content='No-cache'>   
  <meta   http-equiv='Cache-Control',   'private'>
<title>商品所在库中位置信息窗口</title>
<style type="text/css">
<!--
body {
	background-color: #168AC2;
}
-->
</style>
<jsp:useBean id="dblink" class="com.logistic.data.DataConnect" scope="page"/>
<link href="<%=request.getContextPath()%>/cssjs/comcss.css" rel="stylesheet" type="text/css">
<script language="javascript" src="<%=request.getContextPath()%>/cssjs/comjs.js"></script>
</head>
<body>
<table width="478" height="202" border="1" align="center" cellpadding="1" cellspacing="0" bordercolor="#666699">
  <tr>
    <td width="129" height="25" align="center" class="style5">*标识项必须选择</td>
    <td width="339" align="center">
	<span class="style5">
	<% 
		String success=(String)session.getAttribute("success");
		if(success!=null){
	%>
	<script language="javascript">
    	alert("商品位置信息添加成功!");
    	location.href="<%=request.getContextPath()%>/viewpage/datainput/stockregionsave.jsp";
    </script> 
	<%
		session.removeAttribute("success");
		}
	%>
	</span>
	</td>
  </tr>
  <tr>
    <td height="175" colspan="2"><form action="/Logistic/stockregionsave" method="post" name="stockregion" id="stockregion">
      <table width="289" height="147" border="1" align="center" cellpadding="1" cellspacing="0" bordercolor="#666699">
        <tr align="center">
          <td colspan="3" class="style9">格式:库中位置-排号-座号</td>
          </tr>
        <tr>
          <td width="85" height="26" align="right" class="code">库中位置:</td>
          <td width="106"><select name="location" class="style9" id="location">
		    <option value="">库中位置</option>
		   <%
				String sqllocation="select *from goodslocationtable";
				Statement statlocation=dblink.getStmtread();
				ResultSet rslocation=statlocation.executeQuery(sqllocation);
				while(rslocation.next()){
				String locationname=rslocation.getString("LocationName");
				out.print("<option value="+locationname);
				out.print(">"+locationname+"</option>");
				}
				dblink.close();
			%>
          </select>
            <span class="style5">*</span></td>
          <td width="96">&nbsp;</td>
        </tr>
        <tr>
          <td height="28" align="right" class="code">库中排号:</td>
          <td><select name="rows" class="style9" id="rows">
            <option value="">库中排号</option>
            <%
				String sqlrows="select *from goodsrowstable";
				Statement statrows=dblink.getStmtread();
				ResultSet rsrows=statrows.executeQuery(sqlrows);
				while(rsrows.next()){
				String rowsname=rsrows.getString("RowsName");
				out.print("<option value="+rowsname);
				out.print(">"+rowsname+"</option>");
				}
				dblink.close();
			%>
          </select>
            <span class="style5">*</span></td>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <td height="29" align="right" class="code">库中座号:</td>
          <td><select name="seats" class="style9" id="seats">
		  	<option value="">库中座号</option>
			<%
				String sqlseats="select *from goodsseatstable";
				Statement statseats=dblink.getStmtread();
				ResultSet rsseats=statseats.executeQuery(sqlseats);
				while(rsseats.next()){
				String seatsname=rsseats.getString("SeatsName");
				out.print("<option value="+seatsname);
				out.print(">"+seatsname+"</option>");
				}
				dblink.close();
			%>
          </select>
            <span class="style5">*</span></td>
          <td>&nbsp;</td>
        </tr>
        <tr align="center">
          <td colspan="3"><input name="Submit" type="submit" class="buttonstyle" value="提交数据" onClick="return stockregion_check()">
            &nbsp;&nbsp;
            <input name="cancel" type="submit" class="buttonstyle" id="cancel" value="重置数据"></td>
          </tr>
      </table>
    </form></td>
  </tr>
</table>
<p class="code">&nbsp;</p>
</body>
</html>

⌨️ 快捷键说明

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