<%@ page language="java" contentType="text/html;charset=gb2312"%>
<%@ page import = "javax.servlet.http.HttpServletRequest"%>
<%@ page import = "java.sql.ResultSet"%>
<%@ page import = "java.util.*"%>
<%@ page import = "mx.VO.*"%>
<title>配送单</title>
<style type="text/css">
<!--
body {
background-image: url(../image/200171916152.jpg);
}
-->
</style>
<body>
<br>
<br>
<br>
<form action="invoiceAdd.do?mx=aaad">
<table border="10" align="center" cellpadding="1" cellspacing="4" bgcolor="#FFCC99">
<%
ArrayList balist = (ArrayList)request.getAttribute("balist");
ArrayList bflist = (ArrayList)request.getAttribute("bflist");
ArrayList bcolist = (ArrayList)request.getAttribute("bcolist");
ArrayList bcelist = (ArrayList)request.getAttribute("bcelist");
ArrayList carlist = (ArrayList)request.getAttribute("carlist");
ArrayList drilist = (ArrayList)request.getAttribute("drilist");
if(bcolist!=null&&bcolist.size()>0){
for(int i=0;i<bcolist.size();i++){
ConsignorVO cmv = (ConsignorVO)bcolist.get(i);
int consignor_id = cmv.getConsignor_id();
String consignor_name=cmv.getConsignor_name();
String consignor_sex=cmv.getConsignor_sex();
String consignor_identityCard=cmv.getConsignor_identityCard();
String consignor_telephone=cmv.getConsignor_telephone();
String consignor_postalcode=cmv.getConsignor_postalcode();
String consignor_address=cmv.getConsignor_address();
%>
<tr bgcolor="#66CCFF" valign="middle" align="center">
<td>发货人ID:</td> <td><%=consignor_id%></td> <td>发货人姓名:</td> <td><%=consignor_name%></td>
<td>发货人性别:</td> <td><%=consignor_sex%></td> <td>身份证号码:</td> <td><%=consignor_identityCard%></td></tr>
<tr bgcolor="#66CCFF" valign="middle" align="center">
<td>电话号码:</td> <td><%=consignor_telephone%></td> <td>邮政编码:</td> <td><%=consignor_postalcode%></td>
<td>发货地址:</td> <td><%=consignor_address%></td>
<%
}
}
if(bflist!=null&&bflist.size()>0){
for(int i=0;i<bflist.size();i++){
FreightVO fmv = (FreightVO)bflist.get(i);
int freight_id = fmv.getFreight_id();
String freight_name=fmv.getFreight_name();
String freight_type=fmv.getFreight_type();
String freight_weight=fmv.getFreight_weight();
String freight_price=fmv.getFreight_price();
Date freight_enrolDate=fmv.getFreight_enrolDate();
String freight_remark=fmv.getFreight_remark();
%>
<td>货物ID:</td> <td><%=freight_id%></td> </tr>
<tr bgcolor="#66CCFF" valign="middle" align="center">
<td>货物名称:</td> <td><%=freight_name%></td><td>货物类型:</td> <td><%=freight_type%></td>
<td>货物重量:</td> <td><%=freight_weight%></td> <td>货物价值:</td> <td><%=freight_price%></td> </tr>
<tr bgcolor="#66CCFF" valign="middle" align="center">
<td>登入日期:</td> <td><%=freight_enrolDate%></td> <td>货物备注:</td> <td><%=freight_remark%></td>
<%
}
}
if(bcelist!=null&&bcelist.size()>0){
for(int i=0;i<bcelist.size();i++){
ConsigneeVO cemv = (ConsigneeVO)bcelist.get(i);
int consignee_id = cemv.getConsignee_id();
String consignee_name=cemv.getConsignee_name();
String consignee_sex=cemv.getConsignee_sex();
String consignee_company=cemv.getConsignee_company();
String consignee_telephone=cemv.getConsignee_telephone();
String consignee_address=cemv.getConsignee_address();
String consignee_postalcode=cemv.getConsignee_postalcode();
%>
<td>收货人ID:</td> <td><%=consignee_id%></td> <td>收货人姓名:</td> <td><%=consignee_name%></td> </tr>
<tr bgcolor="#66CCFF" valign="middle" align="center">
<td>收货人性别:</td> <td><%=consignee_sex%></td> <td>收货人公司:</td> <td><%=consignee_company%></td>
<td>电话号码:</td> <td><%=consignee_telephone%></td> <td>邮政编码:</td> <td><%=consignee_postalcode%></td>
</tr>
<tr bgcolor="#66CCFF" valign="middle" align="center">
<td colspan="4">收货地址:</td> <td colspan="4"><%=consignee_address%></td>
<tr></tr>
<%
}
}
if(balist!=null&&balist.size()>0){
for(int i=0;i<balist.size();i++){
BargainVO bamv = (BargainVO)balist.get(i);
int bargain_id = bamv.getBargain_id();
String transport_costs=bamv.getTransport_costs();
String indemnity=bamv.getIndemnity();
String bargain_remark=bamv.getBargain_remark();
%>
<tr bgcolor="#66CCFF" valign="middle" align="center">
<td>运输费用:</td> <td ><%=transport_costs%></td> <td>担保费用:</td> <td ><%=indemnity%></td>
<td>合同说明:</td> <td colspan="3"><%=bargain_remark%></td> </tr>
<tr bgcolor="#CCFF99" valign="middle" align="center">
<td colspan="8">合同号:<input name="bargain_id" value="<%=bargain_id%>">*禁止修改*</td>
</tr>
<tr bgcolor="#CCFF99" valign="middle" align="center">
<td colspan="8">车辆选择</td>
</tr>
<tr bgcolor="#CCFF99" valign="middle" align="center">
<td colspan="8">
<select name="car_id">
<%
}
}
if(carlist!=null&&carlist.size()>0){
for(int v=0;v<carlist.size();v++){
CarVO camv = (CarVO)carlist.get(v);
int car_id = camv.getCar_id();
String car_name=camv.getCar_name();
String car_numbers=camv.getCar_numbers();
String car_type=camv.getCar_type();
int car_load=camv.getCar_load();
int car_work=camv.getCar_work();
%>
<option value="<%=car_id%>">
车辆ID:<%=car_id%> 车辆名称:<%=car_name%> 车牌号:<%=car_numbers%>
车辆类型:<%=car_type%> 载重量:<%=car_load%> 工作状态:<%=car_work%>
</option>
<%
}
}
%>
</select>
</td>
</tr>
<tr bgcolor="#CCFF99" valign="middle" align="center">
<td colspan="8">驾驶员选择</td>
</tr>
<tr bgcolor="#CCFF99" valign="middle" align="center">
<td colspan="8">
<select name="driver_id">
<%
if(drilist!=null&&drilist.size()>0){
for(int b=0;b<drilist.size();b++){
DriverVO drimv = (DriverVO)drilist.get(b);
int driver_id = drimv.getDriver_id();
String driver_name=drimv.getDriver_name();
String driver_drivingNumbers=drimv.getDriver_drivingNumbers();
String driver_telephone=drimv.getDriver_telephone();
String driver_job=drimv.getDriver_job();
int driver_work=drimv.getDriver_work();
%>
<option value="<%=driver_id%>">
驾驶员ID:<%=driver_id%> 驾驶员姓名:<%=driver_name%> 驾驶证号:<%=driver_drivingNumbers%>
电话号码:<%=driver_telephone%> 工作类型:<%=driver_job%> 工作状态:<%=driver_work%>
</option>
<%
}
}
%>
</select>
</td>
</tr>
<tr bgcolor="#CCFF99" valign="middle" align="center">
<td>起点:</td><td><input type="text" name="jumping_offPoint"></td>
<td>终点:</td><td><input type="text" name="end_point"></td>
<td>备注:</td><td colspan="3"><input type="text" name="invoice_remark"></td>
</tr>
<tr bgcolor="#CCFF99" valign="middle" align="center">
<td colspan="8"><input type="submit" value="提交"></td>
</tr>
</table>
</form>
</body>