<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="OrdersManage_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
     <table align="center" border="1" bordercolordark="#003399" bordercolorlight="#ffffff"
                cellspacing="0" style="font-size: 12px; width: 854px; height: 24px">
                <tr>
                <td>定单编号</td>
                <td>客户姓名</td>
                <td>客户电话</td>
                <td>客户区域</td>
                <td>客户地址</td>
                <td>商品名</td>
                <td>单价</td>
                <td>数量</td>
                <td>应付金额</td>
                <td>实付金额</td>
                <td>下单时间</td>
                <td>付款时间</td>
                <td>定单状态</td>
                </tr>
                <%
                	Bll.OrdersBll ob = new Bll.OrdersBll();
					System.Data.SqlClient.SqlDataReader sr = ob.GetAllOrdersInfo();
					while (sr.Read())
				  {%>
				  <tr>
				  <td><%=sr[0].ToString() %></td>
				  <td><%=sr[1].ToString()%></td>
				  <td><%=sr[2].ToString()%></td>
				  <td><%=sr[3].ToString()%></td>
				  <td><%=sr[4].ToString()%></td>
				  <td><%=sr[5].ToString()%></td>
				  <td><%=sr[6].ToString()%></td>
				  <td><%=sr[7].ToString()%></td>
				  <td><%=sr[8].ToString()%></td>
				  <td><%=sr[9].ToString()%></td>
				  <td><%=sr[10].ToString()%></td>
				  <td><%=sr[11].ToString()%></td>
				  <td><%=sr[12].ToString()%></td>
				  </tr>
				 <% }
					%>
                </table>
    </div>
    </form>
</body>
</html>
