<%@ page contentType="text/html;charset=UTF-8" %>
<%@ page import="java.util.*" %>
<%@ page import="net.sz600.tool.*" %>
<%@ page import="net.sz600.database.*" %>
<%@ page import="net.sz600.database.other.*" %>
<%@ page import="net.sz600.system.SzProperties" %>
<%@ page import="net.sz600.system.SzPageHelp" %>
<%@ page import="net.sz600.assess.*" %>
<%@ include file="/sessionInfo.jsp"%>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="<%=strSkin_SESSION%>/css2007.css" rel="stylesheet" type="text/css">
<script language="javascript" src="../../share/js/commonTool.js"></script>
</head>
<%
    //获取提交的参数
    String sPage = SzConvert.toZeroStr(request.getParameter("page"));
    String sSearch = SzConvert.strWriteData(request.getParameter("txtSearch"));
    String sNumber = SzConvert.strWriteData(request.getParameter("txtNumber"));
    String sName = SzConvert.strWriteData(request.getParameter("txtName"));
    String sState = SzConvert.strWriteData(request.getParameter("txtState"));
    String sKEY = SzConvert.toZeroStr(request.getParameter("KEY"));

    String sSortField = SzConvert.toSpaceStr(request.getParameter("txtSortField")); 
    int iSortOrder    = Integer.parseInt(SzConvert.toZeroStr(request.getParameter("txtSortOrder"))); 
   
    int iColumnCount = 28;
    String sTable = "ecs_order_info";
	  String sField = "order_sn,order_status,consignee,mobile,address,add_time,pay_name,pay_time"	//8
	  							+ ",shipping_name,shipping_time,invoice_no,referer"	//4
	  							+ ",inv_type,inv_payee,inv_content,to_buyer,how_oos,pack_name,card_name,card_message,to_buyer"	//9
	  							+ ",consignee,email,address,zipcode,tel,mobile,sign_building"; //7
	  String sCond = "order_id=" + sKEY;
	  //goods_amount,order_amount,order_status
	  SzDataReaderEcs dr = new SzDataReaderEcs();
		
		String str[] = dr.readInfoArray(1, sTable, sField, sCond, iColumnCount);
    int i = 0;
    
    String s_id[] = {"","0","1","2","3","4"};
    String s_name[] = {"全部","未确认","确认","已取消","无效","退货"};
    

%>
<!-----上面的工具栏------>
<form name="formUpdate" method="post">
  <input type="hidden" name="page" value="<%=sPage%>">
  <input type="hidden" name="txtSearch" value="<%=sSearch%>">
  <input type="hidden" name="txtNumber" value="<%=sNumber%>">
  <input type="hidden" name="txtName" value="<%=sName%>">
  <input type="hidden" name="txtState" value="<%=sState%>">
  <input type="hidden" name="KEY" value="<%=sKEY%>">
  <%@ include file="/share/title.jsp"%>
<table width="100%">
  <tr>
    <td>
    	<%
				out.println( SzPageHelp.backButton() );
      %>         
    </td>
  </tr>
</table>

<table width="750" border="1" bordercolorlight="#C0C0C0" bordercolordark="#FFFFFF" class="tableClass" cellpadding="3" cellspacing="0">
<tr>
 <td class="trClassTitle_c" colspan=4>基本信息</td>
</tr>
<tr>
 <td class="tdClassTitle">订单号</td>
 <td><%=str[0] %></td>
 <td class="tdClassTitle">订单状态</td>
 <td><%=str[1] %></td> 
</tr>

<tr>
 <td class="tdClassTitle">购货人</td>
 <td><%=str[2] %>[TEL:<%=str[3]%>]<BR><%=str[4]%></td>
 <td class="tdClassTitle">下单时间</td>
 <td><%=str[5] %></td> 
</tr>


<tr>
 <td class="tdClassTitle">支付方式</td>
 <td><%=str[6] %></td>
 <td class="tdClassTitle">付款时间</td>
 <td><%=str[7] %></td> 
</tr>


<tr>
 <td class="tdClassTitle">配送方式</td>
 <td><%=str[8] %></td>
 <td class="tdClassTitle">发货时间</td>
 <td><%=str[9] %></td> 
</tr>


<tr>
 <td class="tdClassTitle">发货单号</td>
 <td><%=str[10] %></td>
 <td class="tdClassTitle">订单来源</td>
 <td><%=str[11] %></td> 
</tr>

<tr>
 <td class="trClassTitle_c" colspan=4>其他信息</td>
</tr>
<tr>
 <td class="tdClassTitle">发票类型</td>
 <td><%=str[12] %></td>
 <td class="tdClassTitle">发票抬头</td>
 <td><%=str[13] %></td> 
</tr>
<tr>
 <td class="tdClassTitle">发票内容</td>
 <td colspan="3"><%=str[14] %></td>
</tr>
<tr>
 <td class="tdClassTitle">客户给供应商的留言</td>
 <td colspan="3"><%=str[15] %></td>
</tr>
<tr>
 <td class="tdClassTitle">缺货处理</td>
 <td colspan="3"><%=str[16] %></td>
</tr>
<tr>
 <td class="tdClassTitle">包装</td>
 <td><%=str[17] %></td>
 <td class="tdClassTitle">贺卡</td>
 <td><%=str[18] %></td> 
</tr>
<tr>
 <td class="tdClassTitle">贺卡祝福语</td>
 <td colspan="3"><%=str[19] %></td>
</tr>
<tr>
 <td class="tdClassTitle">供应商给客户的留言</td>
 <td colspan="3"><%=str[20] %></td>
</tr>

<tr>
 <td class="trClassTitle_c" colspan=4>收货人信息</td>
</tr>
<tr>
 <td class="tdClassTitle">收货人</td>
 <td><%=str[21] %></td>
 <td class="tdClassTitle">电子邮件</td>
 <td><%=str[22] %></td> 
</tr>
<tr>
 <td class="tdClassTitle">地址</td>
 <td><%=str[23] %></td>
 <td class="tdClassTitle">邮编</td>
 <td><%=str[24] %></td> 
</tr>
<tr>
 <td class="tdClassTitle">电话</td>
 <td><%=str[25] %></td>
 <td class="tdClassTitle">手机</td>
 <td><%=str[26] %></td> 
</tr>
<tr>
 <td class="tdClassTitle">公司名称</td>
 <td colspan="3"><%=str[27] %></td>
</tr>


<tr>
 <td class="trClassTitle_c" colspan=4></td>
</tr>



</form>


<!-----这里包含要提交的内容--->
<form name="formHidden" method="post">
  <input type="hidden" name="page" value="<%=sPage%>">
  <input type="hidden" name="txtSearch" value="<%=sSearch%>">
  <input type="hidden" name="txtNumber" value="<%=sNumber%>">
  <input type="hidden" name="txtName" value="<%=sName%>">
  <input type="hidden" name="txtState" value="<%=sState%>">
  <input type="hidden" name="KEY" value="<%=sKEY%>">
  <input type="hidden" name="txtSortField" value="<%=sSortField%>"> 
  <input type="hidden" name="txtSortOrder" value="<%=iSortOrder%>">  
</form>
<script language="javascript">

</script>

