<%@ Register TagPrefix="uc1" TagName="MemberMenu" Src="Modules/MemberMenu.ascx" %>
<%@ Register TagPrefix="uc1" TagName="NavBar" Src="Modules/NavBar.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Header" Src="Modules/Header.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Helper" Src="Modules/Helper.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Footer" Src="../../Modules/Footer.ascx" %>
<%@ Page language="c#" Codebehind="MyOrders.aspx.cs" AutoEventWireup="false" Inherits="wqeshop.MyOrders" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<!--#include file="../../inc/head.inc"-->
<title><%=GetResourceString("MyOrders")%>-<%=config.SiteTitle%></title>
</head>
<body>
<form id="Form1" method="post" runat="server">
  <uc1:Header id="Header1" runat="server"></uc1:Header>
  <div class="twidth">
    <!--当前位置开始-->
    <div id="cnav">
      <div class="l"></div>
      <div class="r"></div>
      <div class="m"><%=GetResourceString("WhereYouAre")%><a href='/<%=System.Configuration.ConfigurationSettings.AppSettings["ShopFolder"]%><%if(config.html==""){%>Default.aspx<%}else{%>index.<%=config.html%><%}%>'><%=GetResourceString("Home")%></a> <font face="Times New Roman, Times, serif">>></font> <a href="MemberCenter.aspx"><%=GetResourceString("MemberCenter")%></a> → <%=GetResourceString("MyOrders")%></div>
    </div>
    <!--当前位置结束-->
    <div id="middle">
      <div class="middlel">
        <!--会员中心导航开始-->
        <uc1:MemberMenu id="MemberMenu1" runat="server"></uc1:MemberMenu>
        <!--会员中心导航结束-->
        <!--订单反馈开始-->
        <div class="mframe">
          <div class="tl"></div>
          <div class="tr"></div>
          <div class="tm"><span class="tt"><%=GetResourceString("MyOrders")%></span></div>
          <div class="wrapper"><div class="ml"></div>
          <div class="mr"></div>
          <div class="mm"><%=GetFeedback()%></div>
          </div><div class="bl"></div>
          <div class="br"></div>
          <div class="bm"></div>
        </div>
        <!--订单反馈结束-->
      </div>
      <div class="middler">
        <div class="mframe">
          <div class="tl"></div>
          <div class="tr"></div>
          <div class="tm"><span class="tt"><%=GetResourceString("MyOrders")%></span></div>
          <div class="wrapper"><div class="ml"></div>
          <div class="mr"></div>
          <div class="mm">
            <asp:datagrid id="dgOrderList" runat="server" AutoGenerateColumns="False" DataKeyField="OrderID" HorizontalAlign="Center">
              <ItemStyle CssClass="bgc2"></ItemStyle>
              <headerStyle CssClass="bgc1"></headerStyle>
              <Columns>
              <asp:TemplateColumn HeaderText="订单号">
                <headerStyle HorizontalAlign="Center"></headerStyle>
                <ItemStyle HorizontalAlign="Center" Height="20px" Width="8%"></ItemStyle>
                <ItemTemplate> <a href="#" onclick='printOrder(<%# DataBinder.Eval(Container.DataItem, "OrderID") %>)'> <%# DataBinder.Eval(Container.DataItem, "OrderNo") %> </a> </ItemTemplate>
              </asp:TemplateColumn>
              <asp:BoundColumn DataField="OrderTime" HeaderText="下定时间" DataFormatString="{0:yyyy-MM-dd}">
                <headerStyle HorizontalAlign="Center"></headerStyle>
                <ItemStyle HorizontalAlign="Center" Width="15%"></ItemStyle>
              </asp:BoundColumn>
              <asp:TemplateColumn HeaderText="总金额">
                <headerStyle HorizontalAlign="Center"></headerStyle>
                <ItemStyle HorizontalAlign="Center" Width="10%"></ItemStyle>
                <ItemTemplate> <%# DataBinder.Eval(Container.DataItem, "TotalPrice","{0:c}") %> </ItemTemplate>
              </asp:TemplateColumn>
              <asp:TemplateColumn HeaderText="实际应付款">
                <headerStyle HorizontalAlign="Center"></headerStyle>
                <ItemStyle HorizontalAlign="Center" Width="13%"></ItemStyle>
                <ItemTemplate> <font class="yfk"> <%# GetPay(DataBinder.Eval(Container.DataItem, "TotalPrice").ToString(),DataBinder.Eval(Container.DataItem, "AdvancePayment").ToString())%> </font> </ItemTemplate>
              </asp:TemplateColumn>
              <asp:TemplateColumn HeaderText="订单状态">
                <headerStyle HorizontalAlign="Center"></headerStyle>
                <ItemStyle HorizontalAlign="Center" Width="36%"></ItemStyle>
                <ItemTemplate> <%# GetStatus(DataBinder.Eval(Container.DataItem, "OrderID").ToString())%> </ItemTemplate>
              </asp:TemplateColumn>
              <asp:TemplateColumn HeaderText="操作">
                <headerStyle HorizontalAlign="Center"></headerStyle>
                <ItemStyle HorizontalAlign="Center" Width="20%"></ItemStyle>
                <ItemTemplate> <a href="#" onclick='printOrder(<%# DataBinder.Eval(Container.DataItem, "OrderID") %>)'> <%=GetResourceString("PollResult")%></a> <a href='OrderFeedback.aspx?OrderID=<%# DataBinder.Eval(Container.DataItem, "OrderID") %>&type=1'> <%=GetResourceString("LeaveWord")%></a> <a href='OrderFeedback.aspx?OrderID=<%# DataBinder.Eval(Container.DataItem, "OrderID") %>&type=2'> <%=GetResourceString("Cancel")%></a> </ItemTemplate>
              </asp:TemplateColumn>
              </Columns>
            </asp:datagrid>
            <script type="text/javascript">
						function printOrder(oid)
						{
							temp=window.open('OrderPrint.aspx?OrderID='+oid,'shopcat','width=700,height=650,scrollbars=yes');
							temp.focus();
						}
										</script>
          </div>
          </div><div class="bl"></div>
          <div class="br"></div>
          <div class="bm"></div>
        </div>
      </div>
    </div>
  </div>
</form>
<uc1:Helper id="Helper1" runat="server"></uc1:Helper>
<uc1:Footer id="Footer1" runat="server"></uc1:Footer>
</body>
</html>
