<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/User/Main.Master"
    EnableViewState="true" CodeBehind="OrderList.aspx.cs" Inherits="OAWeb.User.OrderList" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Register Src="/UserControls/UserLeft.ascx" TagName="TaskNav" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlace" runat="server">
<style>
th
{
	text-align:center;
}
</style>
    <div class="w main">
        <div class="right">
            <table class="data_title" cellspacing="3"  style=" border:none ">
                <tr>
                    <td class="data_caption" style="vertical-align: middle;">
                        我的订单
                    </td>
                </tr>
                <tr style="display:none">
                    <td class="data_field">
                       
                        <br />
                        <span style="display: none">
                            <asp:DropDownList ID="ddlField" runat="server">
                                <asp:ListItem Value="OrderSN">订单号</asp:ListItem>
                                <asp:ListItem Value="CRM_Orders.CustomerName">客户名称</asp:ListItem>
                            </asp:DropDownList>
                            <asp:TextBox ID="txtKeyword" runat="server" CssClass="text_box"></asp:TextBox><asp:Button
                                ID="btnSearch" runat="server" Text="查  询" class="btn_77px" />
                        </span>
                    </td>
                </tr>
            </table>
            <div style=" margin-bottom:20px; margin-top:20px">
            <select style=" margin-right:15px;">
            <option>一个月内订单</option>
            <option>历史订单</option>
            </select> 
            <%=LoadLinkOP()%></div>
           
            <div class="list">
                <asp:GridView ID="gvData" runat="server" AutoGenerateColumns="False" DataKeyNames="Id"
                    GridLines="None" CellPadding="0" CssClass="table_list" EnableModelValidation="True"
                    OnRowDataBound="gvData_RowDataBound">
                    <RowStyle HorizontalAlign="Left" />
                    <HeaderStyle HorizontalAlign="Center" />
                    <Columns>
                        <asp:TemplateField HeaderText="订单号">
                            <ItemTemplate>
                                <asp:HyperLink ID="hypView" runat="server" Text='<%# Eval("OrderSN") %>'></asp:HyperLink>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="商品">
                            <ItemTemplate>
                                <div id="DivProduct" runat="server">
                                </div>
                            </ItemTemplate>
                            <ItemStyle Width="300px"  HorizontalAlign="Left" />
                        </asp:TemplateField>
                        <asp:BoundField DataField="OrderTotal" HeaderText="订单金额" DataFormatString="￥{0:f2}">
                        </asp:BoundField>
                        <asp:BoundField DataField="OrderDate" HeaderText="下单时间"></asp:BoundField>
                        <asp:TemplateField HeaderText="收货人" Visible="false">
                            <ItemTemplate>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField HeaderText="交易状态" />
                        <asp:TemplateField HeaderText="操作">
                            <ItemTemplate>
                                <a href='/User/OrderView.aspx?Id=<%# Eval("Id") %>&ref=/User/OrderList.aspx'>详细</a> 
                                <a href="/User/Pay.aspx">付款</a>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
                <div class="pager-bar">
                    <webdiyer:AspNetPager ID="pager" runat="server" CssClass="anpager" currentpagebuttonclass="cpb"
                        PageSize="10" NextPageText="下一页" LastPageText="页 尾" FirstPageText="第一页" PrevPageText="上一页"
                        ShowBoxThreshold="10" SubmitButtonText="跳 转" UrlPaging="True">
                    </webdiyer:AspNetPager>
                </div>
            </div>
        </div>
        <div class="left">
            <uc1:TaskNav ID="TaskNav1" runat="server" />
        </div>
    </div>
</asp:Content>
