<%@ Page Language="C#" MasterPageFile="MasterPage.Master" AutoEventWireup="true" CodeBehind="Order.aspx.cs" Inherits="SocoShop.Web.Admin.Order" %>
<%@ Import Namespace="SocoShop.Business" %>
<%@ Register Namespace="SkyCES.EntLib" Assembly="SkyCES.EntLib" TagPrefix="SkyCES"%>
<asp:Content ID="MasterContent" ContentPlaceHolderID="ContentPlaceHolder" runat="server">
<script language="javascript" src="/Admin/js/calendar.js" type="text/javascript"></script>
<div class="position"><img src="/Admin/Style/Images/PositionIcon.png"  alt=""/>订单列表</div>	
<ul class="search">
    <li>
        订单状态：<asp:DropDownList ID="OrderStatus" runat="server">
		        <asp:ListItem Value="">所有</asp:ListItem>
		        <asp:ListItem Value="1">待付款</asp:ListItem>
		        <asp:ListItem Value="2">待审核</asp:ListItem>
		        <asp:ListItem Value="3">无效</asp:ListItem>
		        <asp:ListItem Value="4">配货中</asp:ListItem>
		        <asp:ListItem Value="5">已发货</asp:ListItem>
		        <asp:ListItem Value="6">已收货</asp:ListItem>
		        <asp:ListItem Value="7">已退货</asp:ListItem>
		        </asp:DropDownList>
        订单号：<SkyCES:TextBox CssClass="input" ID="OrderNumber" runat="server" Width="100px"/>		
		收货人：<SkyCES:TextBox CssClass="input" ID="Consignee" runat="server" Width="100px"/>
		下单时间：从<SkyCES:TextBox CssClass="input" ID="StartAddDate" runat="server" RequiredFieldType="日期时间"  onfocus="cdr.show(this);"/> 到 <SkyCES:TextBox CssClass="input" ID="EndAddDate" runat="server" RequiredFieldType="日期时间"  onfocus="cdr.show(this);"/> 
	    <asp:Button CssClass="button" ID="SearchButton" Text=" 搜 索 " runat="server"  OnClick="SearchButton_Click" />
    </li>
</ul>
<div class="listBlock">
    <ul>
        <li <%if(intOrderStatus==int.MinValue){%>class="listOn"<%} %> onclick="window.location='Order.aspx'">所有订单</li>
        <li <%if(intOrderStatus==1){%>class="listOn"<%} %> onclick="window.location='Order.aspx?OrderStatus=1'">待付款</li>
        <li <%if(intOrderStatus==2){%>class="listOn"<%} %> onclick="window.location='Order.aspx?OrderStatus=2'">待审核</li>
        <li <%if(intOrderStatus==3){%>class="listOn"<%} %> onclick="window.location='Order.aspx?OrderStatus=3'">无效</li>
        <li <%if(intOrderStatus==4){%>class="listOn"<%} %> onclick="window.location='Order.aspx?OrderStatus=4'">配货中</li>
        <li <%if(intOrderStatus==5){%>class="listOn"<%} %> onclick="window.location='Order.aspx?OrderStatus=5'">已发货</li>
        <li <%if(intOrderStatus==6){%>class="listOn"<%} %> onclick="window.location='Order.aspx?OrderStatus=6'">已收货</li>
        <li <%if(intOrderStatus==7){%>class="listOn"<%} %> onclick="window.location='Order.aspx?OrderStatus=7'">已退货</li>
    </ul>	
</div>
<ul class="listHead">
	<li style="width:5%">ID</li>
	<li style="width:20%; text-align:left;text-indent:8px;">订单号</li>     
	<li style="width:10%">订单金额</li>
	<li style="width:10%">收货人</li>
	<li style="width:25%">收货地址</li>
	<li style="width:10%">审核状态</li> 	       
	<li style="width:15%">下单时间</li>      
	<li style="width:5%">管理</li>          
</ul>
<asp:Repeater ID="RecordList" runat="server">
	<ItemTemplate>	     
        	<ul class="listMain" onmousemove="ChangeColor(this,'#FFFDD7')" onmouseout="ChangeColor(this,'#FFF')">
			<li style="width:5%"><%# Eval("ID") %></li>
			<li style="width:20%; text-align:left;text-indent:8px;"><%# Eval("OrderNumber") %></li>     
	        <li style="width:10%"><%# Convert.ToDecimal(Eval("ProductMoney")) - Convert.ToDecimal(Eval("FavorableMoney")) + Convert.ToDecimal(Eval("ShippingMoney")) + Convert.ToDecimal(Eval("OtherMoney"))%></li>   
	        <li style="width:10%"><%# Eval("Consignee")%></li>
	        <li style="width:25%"><%# Eval("Address")%></li> 
	        <li style="width:10%"><%# OrderBLL.ReadOrderStatus(Convert.ToInt32(Eval("OrderStatus")))%></li> 	         
	        <li style="width:15%"><%# Eval("AddDate") %></li>   
			<li style="width:5%;"><a href='OrderDetail.aspx?ID=<%# Eval("ID") %>'>查看</a></li>				        
		</ul>
        </ItemTemplate>
</asp:Repeater>
<div class="listPage"><SkyCES:CommonPager ID="MyPager" runat="server" /></div>
</asp:Content>
