📄 storeinmodify.jsp
字号:
<%@ page contentType="text/html; charset=gb2312" language="java" errorPage="" %>
<%@page import = "java.util.*"%>
<%@page import = "model.store.hibernate.*"%>
<%
request.setCharacterEncoding("gb2312");
List clientList = (List)session.getAttribute("clientlist");
List productList = (List)session.getAttribute("productlist");
List storeroomList = (List)session.getAttribute("storeroomlist");
Storein storein = (Storein)session.getAttribute("storein");
%>
<%@ include file="..\taglibs.jsp" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>STORE SYSTEM</title>
</head>
<body>
<form name="form2" method="post" action="/EMIS/storeinmodify.do?id=<%=storein.getId()%>">
<html:errors/>
<span class="TitleColor"> </span>
<table width="503" height="273" border="0" align="center">
<tr bgcolor="#DFDFFF">
<td height="26" colspan="2"><div align="center">入库单信息管理--修改</div></td>
</tr>
<tr bgcolor="#FFFFCA">
<td height="18"><div align="right"><span class="TitleColor">入库单名称</span></div></td>
<td><span class="TitleColor">
<input name="name" type="text" value="<%=storein.getName()%>">
</span></td>
</tr>
<tr bgcolor="#FFFFCA">
<td height="23"><div align="right">库房名称</div></td>
<td><span class="TitleColor">
<select name="roomId" id="roomId">
<%
for (int i=0; i<storeroomList.size(); i++) {
Storeroom storeroom = (Storeroom)storeroomList.get(i);
String index = String.valueOf(storeroom.getId());
String name = String.valueOf(storeroom.getName());
if (name.equals(storein.getStoreroom().getName())) {
%>
<option value=<%=index%> selected><%=name%></option>
<%
}
else {
%>
<option value=<%=index%>><%=name%></option>
<%
}
}
%>
</select>
</span></td>
</tr>
<tr bgcolor="#FFFFCA">
<td height="23"><div align="right">货物名称</div></td>
<td><span class="TitleColor">
<select name="productId" id="productId">
<%
for (int i=0; i<productList.size(); i++) {
Product product = (Product)productList.get(i);
String index = String.valueOf(product.getId());
String name = String.valueOf(product.getName());
if (name.equals(storein.getProduct().getName())) {
%>
<option value=<%=index%> selected><%=name%></option>
<%
}
else {
%>
<option value=<%=index%>><%=name%></option>
<%
}
}
%>
</select>
</span></td>
</tr>
<tr bgcolor="#FFFFCA">
<td height="23"><div align="right">客户名称</div></td>
<td><span class="TitleColor">
<select name="clientId" id="clientId">
<%
for (int i=0; i<clientList.size(); i++) {
Client client = (Client)clientList.get(i);
String index = String.valueOf(client.getId());
String name = String.valueOf(client.getName());
if (name.equals(storein.getClient().getName())) {
%>
<option value=<%=index%> selected><%=name%></option>
<%
}
else {
%>
<option value=<%=index%>><%=name%></option>
<%
}
}
%>
</select>
</span></td>
</tr>
<tr bgcolor="#FFFFCA">
<td width="179" height="23"><div align="right">入库时间</div></td>
<td width="314"><span class="TitleColor">
<select name="inYear" id="inYear">
<%
String[] year = {
"2011", "2010", "2009",
"2008", "2007", "2006",
"2005", "2004", "2003",
"2002", "2001", "2000",
"1999", "1998", "1997",
"1996", "1995", "1994",
"1993", "1992", "1991",
};
String y = storein.getIntime().substring(0, 4);
for (int i=0; i<year.length; i++) {
if (year[i].equals(y)) {
%>
<option value=<%=year[i]%> selected><%=year[i]%></option>
<%
}
else {
%>
<option value=<%=year[i]%>><%=year[i]%></option>
<%
}
}
%>
</select>
年
<select name="inMonth" id="inMonth">
<%
String[] month = {
"01", "02", "03",
"04", "05", "06",
"07", "08", "09",
"10", "11", "12"
};
String m = storein.getIntime().substring(4, 6);
for (int i=0; i<month.length; i++) {
if (month[i].equals(m)) {
%>
<option value=<%=month[i]%> selected><%=month[i]%></option>
<%
}
else {
%>
<option value=<%=month[i]%>><%=month[i]%></option>
<%
}
}
%>
</select>
月
<select name="inDay" id="inDay">
<%
String[] day = {
"01", "02", "03",
"04", "05", "06",
"07", "08", "09",
"10", "11", "12",
"13", "14", "15",
"16", "17", "18",
"19", "20", "21",
"22", "23", "24",
"25", "26", "27",
"28", "29", "30",
"31"
};
String d = storein.getIntime().substring(6, 8);
for (int i=0; i<day.length; i++) {
if (day[i].equals(d)) {
%>
<option value=<%=day[i]%> selected><%=day[i]%></option>
<%
}
else {
%>
<option value=<%=day[i]%>><%=day[i]%></option>
<%
}
}
%>
</select>
日 </span></td>
</tr>
<tr bgcolor="#FFFFCA">
<td height="23"><div align="right">备注</div></td>
<td><textarea name="remarks" cols="50" rows="5" id="remarks"><%=storein.getRemarks()%></textarea></td>
</tr>
<tr bgcolor="#DFDFFF">
<td height="21" colspan="2"><div align="left">
<div align="center">
<input type="submit" name="Submit" value="修改">
</div>
</div></td>
</tr>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -