<%@ Page Language="C#" MasterPageFile="~/UserCenter/userCenterMaster.master" AutoEventWireup="true" CodeFile="OrderList.aspx.cs" Inherits="UserCenter_OrderList" Title="Untitled Page" %>

<%@ Register Src="../Controls/UserCenterLink.ascx" TagName="UserCenterLink" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlace" Runat="Server">
    <uc1:UserCenterLink ID="UserCenterLink1" runat="server" />
    <div id="OrderList" style="margin:5px;width:555px;">
    <asp:Label ID="lblMsg" runat="server" ForeColor="#C00000"></asp:Label>
    <asp:GridView ID="gvOrderList" runat="server" AllowPaging="True" AllowSorting="True"
        AutoGenerateColumns="False" Width="100%" GridLines="Horizontal" OnPageIndexChanging="gvOrderList_PageIndexChanging" PageSize="20">
        <Columns>
            <asp:HyperLinkField DataNavigateUrlFields="OrderID" DataNavigateUrlFormatString="~/UserCenter/showOrder.aspx?OrderID={0}"
                DataTextField="OrderID" HeaderText="订单ID" NavigateUrl="~/UserCenter/showOrder.aspx"
                Target="_blank" />
            <asp:BoundField DataField="SumPrice" DataFormatString="{0:c}" HeaderText="总费用" HtmlEncode="False" />
            <asp:BoundField DataField="HasPayedPrice" DataFormatString="{0:c}" HeaderText="已付费用"
                HtmlEncode="False" />
            <asp:BoundField DataField="HasNotPayedPrice" DataFormatString="{0:c}" HeaderText="未付费用"
                HtmlEncode="False" />
            <asp:TemplateField HeaderText="订单状态">
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("TipName") %>'></asp:TextBox>
                </EditItemTemplate>
                <ItemStyle CssClass="msg" />
                <ItemTemplate>
                  <%# Eval("TipName") %>(<%#Eval("UpdateStaticDate") %>)
                </ItemTemplate>
                <HeaderStyle HorizontalAlign="Left" />
            </asp:TemplateField>
            <asp:BoundField DataField="OrderDate" HeaderText="下单时间" />
        </Columns>
    </asp:GridView>
        </div>
</asp:Content>

