<%@ page language="C#" masterpagefile="~/member/MemberMasterPage.master" autoeventwireup="true" inherits="V5Shop.NewMember.User_UserOrder_Manage, V5Shop.Member" title="消费记录" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Register Src="UserControl/PageList.ascx" TagName="PageList" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
 
 <style>
    .selectedArea{font-weight: bold; background: url(images/list/tab-1.gif) no-repeat;
                    float: left; width: 76px; color: #111; line-height: 27px; margin-right: 3px;
                    height: 27px; text-align: center}
    .normalArea{background: url(images/list/tab-2.gif); float: left; margin: 3px 3px 0px 0px;
                    width: 76px; line-height: 24px; height: 24px; text-align: center}
 </style>
 
    <div style="float: left; width: 760px">
        <div style="padding:0 10px 10px 10px; line-height:30px">订单号：<asp:TextBox ID="txtOrder" runat="server"></asp:TextBox>　
	  商品名称：
	   <asp:TextBox ID="txtProduct" runat="server"></asp:TextBox>　
	    订单状态：<asp:DropDownList ID="ddlOrderStatus" runat="server">
            </asp:DropDownList>
	    <br />交易日期：从<asp:TextBox ID="txtStart" runat="server" Width="100px" CssClass="input2" /><img id="ImgDateStart" alt="打开日历" src="images/calendar1.gif" title="打开日历" /> 到
                     <asp:TextBox ID="txtEnd" runat="server" Width="100px" CssClass="input2" />
                    <img id="ImgDateEnd" alt="打开日历" src="images/calendar1.gif" title="打开日历" />
            <asp:Button ID="btnSearch" runat="server" Text="搜索" CssClass="input_bg" OnClick="btnSearch_Click" />
	  </div>
        <div>
            <img src="images/list/top-1.gif" /></div>
        <div style="border-right: #c5dce7 1px solid; padding-right: 10px; padding-left: 10px;
            padding-bottom: 10px; width: 739px; padding-top: 10px">
            <div style="padding-left: 20px; background: url(images/list/tab-bg.gif) repeat-x 50% bottom;
                height: 27px">
                <div class="normalArea" id="divOrderAll" runat="server">
                   <a href="User_UserOrder_Manage.aspx" style="text-decoration:none"> 所有订单</a></div>
                <div class="selectedArea" id="divOrder0" runat="server">
                   <a href="User_UserOrder_Manage.aspx?OrderStatus=0" style="text-decoration:none">  等待付款</a></div>
                <div class="normalArea" id="divOrder3" runat="server">
                   <a href="User_UserOrder_Manage.aspx?OrderStatus=3" style="text-decoration:none" >  确认收货</a></div>
                <div class="normalArea" id="divOrder5" runat="server">
                   <a href="User_UserOrder_Manage.aspx?OrderStatus=5" style="text-decoration:none" >  完成订单</a></div>
                &nbsp;</div>
            <div style="background: url(images/list/bg_2.gif) repeat-x; line-height: 30px; height: 30px">
                <table border="0" cellpadding="0" cellspacing="0" width="100%">
                    <tr>
                        <td align="center">
                            订单编号</td>
                        <td align="center" width="140">
                            下单日期
                        </td>
                        <td align="center" width="100">
                            金额
                        </td>
                        <td align="center" width="140">
                            <span>订单状态</span></td>
                        <td align="center" width="100">
                            操作</td>
                    </tr>
                </table>
            </div>
      
            <div style="border-top: #dedee0 1px solid; margin-top: 2px; background: #f3f3f3;
                line-height: 28px; border-bottom: #dedee0 1px solid; height: 28px">
                <input name="checkbox" type="checkbox" class="checkbox" id="CheckAllBox" onclick="CheckAll()" /> 
                全选
                <asp:Button ID="BtnDelete2" runat="server" Text="删除" CssClass="input_bg" OnClick="BtnDelete_Click" />
                <asp:Button ID="btnCancel" runat="server" Text="取消订单" CssClass="input_bg" OnClick="btnCancel_Click" /></div>
            <div class="list2_div1">
                <table border="0" cellpadding="0" cellspacing="0" width="100%">
                  <asp:Repeater ID="rpOrderList" runat="server"  >
		            <ItemTemplate>
			            <tr>
                        <td width="20">
                            
                                 <asp:CheckBox ID="chkChoose" runat="server" />
                          <asp:HiddenField ID="CheckBoxID"
						runat="server" Value='<%# Eval("Number") %>' />
                           
                        </td>
                        <td align="center" width="240">
                           <%# Eval("Number")%></td>
                        <td align="center" width="140">
                           <%# Eval("Date")%>
                        </td>
                        <td align="center" width="100">
                            <%# Eval("Price")%> 
                        </td>
                        <td align="center" width="180">
                           <span class='<%#Eval("StatusID").ToString().Equals("3")?"span_no_display":"span_display"%>' > <%# Eval("StateName")%> </span><span  style="color:Blue" class='<%# Eval("StatusID").ToString().Equals("3")?"span_display":"span_no_display"%>'>
                           
                           <a href="User_UserOrder_Manage.aspx?OrderNumber=<%# Eval("Number")%>">确认收货</a>    </span></td>
                        <td align="center" width="100">
                            <a href="User_UserOrder_Operate.aspx?OrderNumber=<%# Eval("Number")%>"><span style="color: #0000ff; text-decoration: underline">查看详情</span></a></td>
                    </tr>
		            </ItemTemplate>
	            </asp:Repeater>
                   
                </table>
            </div>
            <div style="border-top: #dedee0 1px solid; margin-top: 2px; background: #f3f3f3;
                line-height: 28px; border-bottom: #dedee0 1px solid; height: 28px;">
                <div style="float: left">
                    <input name="checkbox1" type="checkbox" class="checkbox" id="CheckAllBox2" onclick="CheckAll2()" /> 
                    全选
                   
                    <asp:Button ID="BtnDelete" runat="server" Text="删除" CssClass="input_bg" OnClick="BtnDelete_Click" />
                </div>
                <uc1:pagelist id="PageList1" runat="server" ></uc1:pagelist>
             
            </div>
           </div>
        <div>
            <img src="images/list/bottom-1.gif" /></div>
    </div>
     <asp:HiddenField ID="CheckedIDS" runat="server" Value="0" />
     
          <script language="javascript" type="text/javascript">
        Calendar.setup({
            inputField     :    "<%=txtStart.ClientID %>",
            ifFormat       :    "%Y-%m-%d", 
            button         :    "ImgDateStart",
            align          :    "Br",
            singleClick    :    true
        });
        Calendar.setup({
            inputField     :    "<%=txtEnd.ClientID%>",
            ifFormat       :    "%Y-%m-%d", 
            button         :    "ImgDateEnd",
            align          :    "Br",
            singleClick    :    true
        });
        </script>
        
          <asp:Label ID="lblParam" runat="server" Text="参数错误" Visible="false" ></asp:Label>
    <asp:Label ID="lblDelete" runat="server" Text="您确定要删除吗?" Visible="false" ></asp:Label>
    
    
    
     <asp:Label ID="lblComfirm" runat="server" Text="完成订单" Visible="false" ></asp:Label>
      <asp:Label ID="lblSend" runat="server" Text="已发货订单" Visible="false" ></asp:Label>
       <asp:Label ID="lblPay" runat="server" Text="待付款订单" Visible="false" ></asp:Label>
        <asp:Label ID="lblOrder" runat="server" Text="订单管理" Visible="false" ></asp:Label>
         <asp:Label ID="lblNodeleteL" runat="server" Text="不是未处理,用户取消,管理员取消 状态的订单无法删除" Visible="false" ></asp:Label>
          <asp:Label ID="lblNodeleteS" runat="server" Text="不是未处理状态的订单无法取消" Visible="false" ></asp:Label>
      
</asp:Content>

