www.pudn.com > Java_web_shipin_gongsi-.rar > updateFh.jsp, change:2011-05-15,size:3326b


<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%> 
<%@  page import="dao.*,bean.*" %> 
<% 
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 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 style="background-color:#4E3D2D; color: #FFFFFF"> 
  	<% String dz=""; %> 
 <%    
   request.setCharacterEncoding("UTF-8");   
   String id=request.getParameter("id");   
   		if(id==null||"".equals(id)){   
   		out.println("没有相关发货信息!");  
   		}else{   
   			FhDao dao=new FhDao();   
   			Fh t=dao.getFhInfoById(id);   
   			if(t!=null){   
%>  
<form method="post" action="fh/doUpdateFhInfo.jsp?id=<%=t.getId() %>"> 
				<table width="60%"> 
				<tr> 
						<td scope="col" width="20%"> 
							发货单编号	</td> 
						<td scope="col"> 
							<input type="text" name="id" value="<%=t.getId() %>" readonly/></td> 
					</tr> 
					<tr> 
						<td scope="col"> 
							发货状态	</td> 
						<td scope="col"> 
							<select name="zt"> 
								<option value="是">是</option> 
								<option value="否">否</option> 
							</select></td> 
					</tr> 
					<tr> 
						<td scope="col"> 
							零售商信息</td> 
						<td scope="col"> 
						<select name="lssid"> 
							<% LssDao recruitdao=new LssDao(); 
	ArrayList<Lss> list=recruitdao.getAllLss(); 
	Iterator<Lss> it=list.iterator(); 
	while(it.hasNext()){ 
	Lss r=it.next(); 
%>	 
<option value="<%=r.getId() %>"><%=r.getId() %>,<%=r.getLssxm() %>,<%=r.getDz() %></option> 
 
<% 
	dz=r.getDz();	 
	} 
  %> 
</select>   
  </td> 
		</tr> 
					<tr> 
						<td scope="col"> 
							商品编号</td> 
						<td scope="col"> 
						<select name="spid"> 
							<% SpDao spdao=new SpDao(); 
	ArrayList<Sp> listSp=spdao.getAllSp(); 
	Iterator<Sp> itSp=listSp.iterator(); 
	while(itSp.hasNext()){ 
	Sp r=itSp.next(); 
%>	 
<option value="<%=r.getId() %>"><%=r.getId() %><%=r.getSpm() %></option> 
<%	 
	} 
  %> 
</select>   
  </td> 
		</tr> 
		 
 
				<tr> 
						<td scope="col"> 
							数量	</td> 
						<td scope="col"> 
							<input type="text" name="sl"  value="<%=t.getSl() %>" /></td> 
					</tr> 
				<tr> 
						<td scope="col"> 
							发货时间	</td> 
						<td scope="col"> 
							<input type="text" name="sj"  value="<%=t.getSj() %>" /></td> 
					</tr> 
				<tr> 
						<td scope="col" colspan="2"> 
							备注	</td>						 
					</tr> 
				<tr> 
						<td scope="col" colspan="2"> 
							<pre><textarea rows="10" cols="50" name="bz"><%=t.getBz() %></textarea></pre></td>						 
					</tr> 
 
				</table> 
				<input type="hidden" name="lssdz" value="<%=dz %>"/> 
<input type="submit" value="修改"/>	 
</form>		 
 <% 	} 
 	 
   		} 
   %> 
  </body> 
</html>