📄 warehousemodify.jsp
字号:
<%@ page language="java" contentType="text/html; charset=gb2312" pageEncoding="GB2312"%>
<%@ page import="com.logistic.business.WareHouseManager" %>
<%@ page import="com.logistic.model.WareHouseInfo" %>
<%@ page import="java.sql.*" %>
<%request.setCharacterEncoding("gb2312");%>
<%
String wid=(String)request.getParameter("wid");
System.out.print(wid);
WareHouseInfo wi=null;
if(wid==null){
session.setAttribute("errors","对不起您没有权限对warehousemdoify.jsp页面进行操作!");
response.sendRedirect("../../errors/errorpage.jsp");
}else{
WareHouseManager wm=new WareHouseManager();
wi=wm.WareHouseSearchById(wid);
if(wi==null){
session.setAttribute("errors","仓库信息获取失败!");
response.sendRedirect("../../errors/errorpage.jsp");
}
}
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GB2312">
<title>Insert title here</title>
<style type="text/css">
<!--
body {
background-color: #168AC2;
}
-->
</style>
<link href="<%=request.getContextPath()%>/cssjs/comcss.css" rel="stylesheet" type="text/css">
<script language="javascript" src="<%=request.getContextPath()%>/cssjs/comjs.js"></script>
<jsp:useBean id="dblink" class="com.logistic.data.DataConnect" scope="page"/>
</head>
<body>
<%
String success=(String)session.getAttribute("success");
if(success!=null){
%>
<script language="javascript">
alert("仓库库信息修改成功!");
location.href="<%=request.getContextPath()%>/viewpage/showpage/adminwarehouseinfo.jsp";
</script>
<%
session.removeAttribute("success");
}
%>
<table width="539" height="189" border="1" align="center" cellpadding="1" cellspacing="0" bordercolor="#666699">
<tr>
<td width="65" height="23" align="center" class="style9">编号:</td>
<td width="66" align="center" class="code"><%=wid %></td>
<td width="398" align="center"><span class="style5">*标识项必须填写</span></td>
</tr>
<tr>
<td height="164" colspan="3"><form action="" method="post" name="warehouse" id="warehouse">
<table width="396" border="1" align="center" cellpadding="1" cellspacing="0" bordercolor="#666699">
<tr>
<td width="83" height="25" align="right" class="style9">仓库名称:</td>
<td width="303" colspan="2"><input name="warehousename" type="text" class="style9" id="warehousename" size="20" maxlength="20" value="<%=wi.getWarehousename() %>">
<span class="style5"> *
<input type="hidden" name="wid" value="<%=wid%>">
</span></td>
</tr>
<tr>
<td height="25" align="right" class="style9">仓库负责人:</td>
<td colspan="2"><select name="chargeid" class="style9" id="chargeid">
<%
String sqlcharge="select *from employeeinfotable where JobsId='1007'";
Statement statcharge=dblink.getStmtread();
ResultSet rscharge=statcharge.executeQuery(sqlcharge);
while(rscharge.next()){
String chargeid=rscharge.getString("EmployeeId");
String chargename=rscharge.getString("EmployeeName");
out.print("<option value="+chargeid);
if(wi.getChargeid().equals(chargeid)){
out.print(" selected ");
}
out.print(">"+chargename+"</option>");
}
dblink.close();
%>
</select>
<span class="style5">*</span></td>
</tr>
<tr>
<td height="27" align="right" class="style9">仓库位置:</td>
<td colspan="2"><input name="warehouseadd" type="text" class="style9" id="warehouseadd" size="40" maxlength="100" value="<%=wi.getWarehouseadd() %>">
<span class="style5"> *</span></td>
</tr>
<tr align="center">
<td height="30" colspan="3"><input name="Submit" type="submit" class="buttonstyle" value="提交数据" onClick="warehouseinfo_check()">
<input name="cancel" type="reset" class="buttonstyle" id="cancel" value="重置数据"></td>
</tr>
</table>
</form></td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -