<%@ page contentType="text/html; charset=gbk" language="java" %>
<%@ taglib uri='/WEB-INF/tlds/MediaStore_template.tld' prefix='mstemplate' %>

<%@ page import="mediastore.web.global.*"%>
<%@ page import="mediastore.web.form.*"%>
<%@ page import="java.text.*"%>
<%@ page import="java.util.*"%>


<html>
<head>
<title>Media Store</title>
<meta http-equiv="Content-Type" content="text/html; charset=gbk">
<link rel="stylesheet" href="./css/style.css" type="text/css">

</head>
<body background='./images/bgall.gif'>
<table width="98%" align="center">
  <tr>
  	<td>


<table width="768" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr> 
    <td width="5" rowspan="4" class="trtable"></td>
    <td width="6" bgcolor="#214984" height="1"></td>
    <td rowspan="4" bgcolor="#214984" width="1" height="1"></td>
    <td bgcolor="#214984" class="10p" colspan="2" height="1"></td>
    <td rowspan="4" width="1" bgcolor="#214984" height="1"></td>
    <td bgcolor="#214984" width="5" height="1"></td>
    <td width="5" rowspan="4" class="trtable"></td>
  </tr>
  <tr> 
    <td width="6"></td>
    <td width="379" height="20" class="mainhead">售货明细</td>
    <td class="mainhead" width="379" height="20">&nbsp;</td>
    <td width="5"></td>
  </tr>
<tr> 
    <td width="6"></td>
    <td valign="top" colspan="2"> 
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
        
        <tr> 
          <td height="100" align="center" valign="top">   
          
<%
	ExportItemsViewFB eivfb = (ExportItemsViewFB)request.getAttribute(Globals.REQUEST_EXPORTITEMSVIEW);
	List gegiList = eivfb.getGegiList();
%>

    	<form name="form1" method="post" action="" >

    	<IMG src="images/line1.gif" border=0>
    	<br>
	<TABLE width="100%" border="1" cellpadding="3" cellspacing="0" bordercolor="#FFFFFF" class="mailtable">  
		<%//
			if(gegiList.size()>0)
			{
		%>
		<tr bgcolor="#C2CEDC">
		<th></th>
		<th>货物标识</th>
		<th>货物名称</th>
		<th>数量</th>
		<th>单价</th>
		<th>售货人</th>
		<th>录入时间</th>
		<th>状态</th>
		</tr>
		<%//
			}
		%>
		
		<%//
		NumberFormat nf = NumberFormat.getNumberInstance();
		nf.setMaximumFractionDigits(2);
		
	    	int index = 0;
	      	GoodsExportGoodsInfo tmpInfo = null;
	      	
	      	for (index=0; index<gegiList.size(); index++)
		{
	      		tmpInfo = (GoodsExportGoodsInfo)gegiList.get(index);
	      	%>
	        <tr <%if((index%2)==1){%>bgcolor="#CAE4F4"<%}%> >
		<td align='center' width=2%><a href="<%= request.getContextPath() + "/goodsInfoView.do?goodsid=" + tmpInfo.getGoodsId() %>" target='goodsinfo'><IMG src="images/goods.gif" border=0 alt='查看货物信息'></a></td>
	        <td align='center'><%= tmpInfo.getGoodsId() %></td>
	        <td align='center'><%= tmpInfo.getGoodsName() %></td>
		<td align='center'><%= tmpInfo.getExportAmount() %></td>
		<td align='center'><%= nf.format(tmpInfo.getExportUnitPrice()) %></td>
		<td align='center'><%= tmpInfo.getSalesPerson() %></td>
		<td align='center'>
		<%
			String tmptime = tmpInfo.getCreateTime();
			if(tmptime==null)tmptime="";
			if(tmptime.length()>=19)
			{
		%>
				<%= tmptime.substring(0,19) %>
		<%
			}
		%>
		</td>
		<td align='center'>
		<%
			if(tmpInfo.getConfirmFlage().equals("0"))
			{
		%>
			<font color=#E61577>临时单</font>
		<%//
			}else{
		%>
			<font color=#007168>确认单</font>
		<%//
			}
		%>
		</td>
	        </tr>
	        <%//
	
	      	}//--for
	        %>
	</TABLE>
	</form>

	<br>
    	<br>
	

    	

	<a href="javascript:this.close()">关闭</a>

	</td>
        </tr>
        <tr> 
          <td valign="middle" align="center">&nbsp;</td>
        </tr>

      </table>
      
    </td>
    <td width="5"></td>
  </tr>
  <tr> 
    <td width="6"></td>
    <td colspan="2" class="mainhead">&nbsp;</td>
    <td width="5"></td>
  </tr>
  <tr> 
    <td colspan="8" bgcolor="#214984" height="2"></td>
  </tr>
</table>


</td>
  </tr>
</table>
</body>

</html>

