<%@ Page Language="C#" MasterPageFile="~/webUser/MasterPage.master" AutoEventWireup="true" CodeBehind="orderList.aspx.cs" EnableViewState="false" Inherits="ZYDN.Web.webUser.orderHistory" Title="我购买的商品" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Content1" runat="server">
<form runat="server" id="form1" name="form1">
 <div class="maxTitle">
                历史订单
            </div>
    <asp:Repeater ID="Repeater1" runat="server">
  
     
        <HeaderTemplate>
        <table cellpadding="0" cellspacing="0" width="100%">
            <tr class="titleLeft">
                <td>
                    订单编号
                </td>
                <td>
                    订单类型
                </td>
                <td>
                    商家名称
                </td>
                <td>
                    商品名称
                </td>
                <td>
                    单价
                </td>
                <td>
                    数量
                </td>
                <td>
                    总价
                </td>
                <td>
                    订购时间
                </td>
                <td>
                    修改状态时间
                </td>
                <td>
                    订单状态
                </td>
            </tr>
    </HeaderTemplate>


    <AlternatingItemTemplate>
        <tr style="background-color:#F4F9FD">
                <td>
                   <%# string.IsNullOrEmpty(Eval("TypeName").ToString()) ? Eval("OrderID") : "<a href='orderInfo2.aspx?orderid=" + Eval("ID") + "&menuindex=4'>" + Eval("OrderID") + "</a>"%>
                </td>
                <td>
                    <%# Eval("TypeName")%>
                </td>
                <td>
                    <%# Eval("SellerName")%>
                </td>
                <td>
                   <%# Eval("CommodityName")%>
                </td>
                <td>
                    <%# Eval("Price")%>
                </td>
                <td>
                   <%# Eval("CommodityNum")%>
                </td>
                <td>
                    <%# Eval("Total")%>
                </td>
                <td>
                    <%# Eval("CreateTime","{0:d}")%>
                </td>
                <td>
                    <%# Eval("UpdateStateTime", "{0:d}")%>
                </td>
                <td id="orderState" name="orderState">
                    <%# Eval("OrderState")%>
                </td>
            </tr>
    </AlternatingItemTemplate>
    <ItemTemplate>
        <tr>
                <td>
                    <%# string.IsNullOrEmpty(Eval("TypeName").ToString()) ? Eval("OrderID") : "<a href='orderInfo2.aspx?orderid=" + Eval("ID") + "&menuindex=4'>" + Eval("OrderID") + "</a>"%>
                </td>
                <td>
                    <%# Eval("TypeName")%>
                </td>
                <td>
                    <%# Eval("SellerName")%>
                </td>
                <td>
                   <%# Eval("CommodityName")%>
                </td>
                <td>
                    <%# Eval("Price")%>
                </td>
                <td>
                   <%# Eval("CommodityNum")%>
                </td>
                <td>
                    <%# Eval("Total")%>
                </td>
                <td>
                    <%# Eval("CreateTime","{0:d}")%>
                </td>
                <td>
                    <%# Eval("UpdateStateTime", "{0:d}")%>
                </td>
                <td id="orderState" name="orderState">
                    <%# Eval("OrderState")%>
                </td>
            </tr>
    </ItemTemplate>
    <FooterTemplate>
        </table>
    </FooterTemplate>
    </asp:Repeater>
        <div style="width: 100%; clear: both; height: 5px;">
        </div>
        <asp:Button ID="pageUp" runat="server" Text="上一页" CausesValidation="False" Enabled="False"
            UseSubmitBehavior="False" OnClick="pageUp_Click" />
        <asp:Button ID="pageDown" runat="server" Text="下一页" CausesValidation="False" UseSubmitBehavior="False" OnClick="pageDown_Click" />
        <asp:Label ID="pageLabel" runat="server" Text=""></asp:Label>
    &nbsp;&nbsp;
    
</form>
<% changeOrderState(); %>
</asp:Content>
