<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="OrderBulete.aspx.cs" Inherits="web.Supply.OrderBulete" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<HEAD>
		<title>OrderList</title><meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
	    <link href="css/css.css" rel="stylesheet" type="text/css" />
    <link href="css/css_list.css" rel="stylesheet" type="text/css" />
     <style type="text/css">
    .head {background-image: url(img/labelbg.gif);background-repeat: repeat-x;}
    </style>


	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></HEAD>
	
	<body rightmargin="0" leftmargin="0" topmargin="0" >
	
		<form id="Form1" method="post" runat="server" >
  <table width="100%" height="550" align="center" cellpadding="0" cellspacing="0">
    <tr>
      <td valign="top"> 
        <div class="top1">
          <table width="100%" align="center" cellpadding="0" cellspacing="0" background="img/labelbg.gif" bgcolor="#EDF6FF">
            <tr>
		      <td width="2%" height="37" class="tl"></td>
		<td width="94%" class="tm"><span class="tt">下载管理 &gt;&gt;下载列表<asp:Label id="lblTitleInfo" runat="server"></asp:Label></span></td>
		      <td width="1%" class="tm2"><span class="tt"></span></td>
		<td width="3%" class="tr"></td>
	</tr>
</table>
</div>
        <div class="mframe1"> 
          <table width="99%" border="0" align="right" cellpadding="0" cellspacing="0">
            <tr>
      <td class="ml"></td>
    <td  class="mm" align="left" valign="top">

<table width="100%" align="center" cellpadding="0"  cellspacing="0">
                  <tr>
		
		            <td width="90%" bgcolor="#FFFFFF" class="mm1"> <br>
                      <table width="100%" align="center" cellPadding="0" cellSpacing="0" bgcolor="#FFFFFF">
                        <tr height="25">
	                      <td align="right" style="height: 29px">关键字：</td>
	    <td style="height: 29px"><asp:dropdownlist id="ddlKeyType" Runat="server">
		    <asp:ListItem Selected="True" Value="dderNo">编号</asp:ListItem>
	
		    </asp:dropdownlist>
            <asp:textbox id="txtKeyword" CssClass="input" runat="server" Height="16px"></asp:textbox>
		</td>
	</tr>
	<tr height="25">
		                  <td height="23" align="right">状态：</td>
		<td><asp:dropdownlist id="ddlConfirmed" Runat="server">
			    <asp:ListItem Selected="True" Value="All">是否已确认</asp:ListItem>
			    <asp:ListItem Value="1">已确认</asp:ListItem>
			    <asp:ListItem Value="0">未确认</asp:ListItem>
			</asp:dropdownlist><asp:dropdownlist id="ddlPayed" Runat="server" Visible="False">
			    <asp:ListItem Selected="True" Value="All">是否已付款</asp:ListItem>
			    <asp:ListItem Value="2">已付款</asp:ListItem>
			    <asp:ListItem Value="0">未付款</asp:ListItem>
			</asp:dropdownlist>
			<asp:dropdownlist id="ddlShipped" Runat="server" Visible="false">
			    <asp:ListItem Selected="True" Value="All">是否已送餐</asp:ListItem>
			    <asp:ListItem Value="2">已送餐</asp:ListItem>
			    <asp:ListItem Value="0">未送餐</asp:ListItem>
			</asp:dropdownlist><asp:dropdownlist id="ddlFinished" Runat="server">
				<asp:ListItem Selected="True" Value="All">是否已归档</asp:ListItem>
				<asp:ListItem Value="1">已归档</asp:ListItem>
				<asp:ListItem Value="0">未归档</asp:ListItem>
			</asp:dropdownlist><asp:dropdownlist id="ddlCancelled" Runat="server">
			    <asp:ListItem Selected="True" Value="All">是否已取消</asp:ListItem>
				<asp:ListItem Value="1">已取消</asp:ListItem>
				<asp:ListItem Value="0">未取消</asp:ListItem>
			</asp:dropdownlist>
		</td>
	</tr>
	<tr height="25">
		                  <td height="21" align="right">时间：</td>
		<td>从<asp:textbox id="txtDateFrom" CssClass="input" runat="server"></asp:textbox>到<asp:textbox id="txtDateTo" CssClass="input" runat="server"></asp:textbox>(请填写正确的时间格式,比如:2005/05/07,2008-5-7)</td>
	</tr>
	<tr height="25">
		<td align="right"></td>
		<td><asp:button id="btnSearch"  runat="server" Text="搜索"></asp:button></td>
	</tr>
</table>
                      <table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
                        <tr>
    <td height="35">
	
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<INPUT id="Hidden1" type="hidden" name="Hidden1" runat="server">
	<asp:Button id="bt_print" runat="server"  Text="打印下载"></asp:Button>
     </td>
  </tr>
</table>
            <asp:datagrid id="dgdderList" 
			    runat="server" 
				HeaderStyle-CssClass="summary-title" 
				HorizontalAlign="Center"
				Width="100%" 
				DataKeyField="OrderID" 
				AutoGenerateColumns="False" 
				PagerStyle-Mode="NumericPages" 
				AllowPaging="True" BorderWidth="1px" BorderColor="#E0E0E0">
			<HeaderStyle Font-Bold="False" CssClass="head" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" Height="27px" BackColor="#EDF6FF"></HeaderStyle>
			<Columns>
		
			<asp:TemplateColumn HeaderText="编号">
			<HeaderStyle HorizontalAlign="Center" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" Width="40px" BackColor="#EDF6FF" Wrap="False"></HeaderStyle>
			<ItemStyle HorizontalAlign="Center" Width="70px" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" Wrap="False"></ItemStyle>
			<ItemTemplate>
			<%# DataBinder.Eval(Container.DataItem, "OrderNo") %>
			</ItemTemplate>
                <FooterStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                    Font-Underline="False" Wrap="False" />
			</asp:TemplateColumn>
			
			<asp:BoundColumn DataField="OrderTime" HeaderText="下载时间" DataFormatString="{0:d}">
			<ItemStyle HorizontalAlign="Center" Width="70px" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" Wrap="False"></ItemStyle>
                <HeaderStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                    Font-Underline="False" HorizontalAlign="Center" Width="90px" BackColor="#EDF6FF" Wrap="False" />
                <FooterStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                    Font-Underline="False" Wrap="False" />
			</asp:BoundColumn>
			

			<asp:TemplateColumn HeaderText="下载会员">
			<HeaderStyle HorizontalAlign="Center" BackColor="#EDF6FF" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" Width="70px" Wrap="False"></HeaderStyle>
			<ItemStyle HorizontalAlign="Center" Width="90px" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" Wrap="False"></ItemStyle>
			<ItemTemplate>
			<%#GetMemberName(DataBinder.Eval(Container.DataItem, "MemberID").ToString()) == "anonymous" ? "<font color='FF6600'>非会员直接下载</font>" :"<a href='member.aspx?name="+ GetMemberName(DataBinder.Eval(Container.DataItem, "MemberID").ToString()) +"'> "+ GetMemberName(DataBinder.Eval(Container.DataItem, "MemberID").ToString())+"</a>"%>
			</ItemTemplate>
                <FooterStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                    Font-Underline="False" Wrap="False" />
			</asp:TemplateColumn>
		<asp:TemplateColumn HeaderText="下载手机">
			<HeaderStyle HorizontalAlign="Center" BackColor="#EDF6FF" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" Width="70px" Wrap="False"></HeaderStyle>
			<ItemStyle HorizontalAlign="Center" Width="90px" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" Wrap="False"></ItemStyle>
			<ItemTemplate>
              <%# DataBinder.Eval(Container.DataItem, "BuyerPhone") %>		

	</ItemTemplate>
                <FooterStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                    Font-Underline="False" Wrap="False" />
			</asp:TemplateColumn>
		
			<asp:TemplateColumn HeaderText="状态">
			<HeaderStyle HorizontalAlign="Center" BackColor="#EDF6FF" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" Width="100px" Wrap="False"></HeaderStyle>
			<ItemStyle HorizontalAlign="Center" Width="100px" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" Wrap="False"></ItemStyle>
			<ItemTemplate>
			<%# GetStatus(DataBinder.Eval(Container.DataItem, "OrderID").ToString())%>
			</ItemTemplate>
                <FooterStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                    Font-Underline="False" Wrap="False" />
			</asp:TemplateColumn>
			<asp:TemplateColumn>
			<HeaderStyle HorizontalAlign="Center" BackColor="#EDF6FF" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" Wrap="False"></HeaderStyle>
			<ItemStyle HorizontalAlign="Center" Width="30px" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" Wrap="False"></ItemStyle>
			              <ItemTemplate> <a href='OrderModify.aspx?OrderID=<%# DataBinder.Eval(Container.DataItem, "OrderID") %>'>管理</a> 
                          </ItemTemplate>
                <FooterStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                    Font-Underline="False" Wrap="False" />
			</asp:TemplateColumn>
			
			</Columns>
			<PagerStyle Mode="NumericPages" Height="28px"></PagerStyle>
                <EditItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                    Font-Underline="False" Wrap="False" />
                <SelectedItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                    Font-Underline="False" Wrap="False" />
                <AlternatingItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
                    Font-Strikeout="False" Font-Underline="False" Wrap="False" />
                <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                    Font-Underline="False" Wrap="False" />
			</asp:datagrid>
<TABLE width="100%" align="center" cellPadding="0" cellSpacing="0" background="images/MainBg.gif" id="tablePage">
                        <TR>
		<TD vAlign="middle"><asp:label id="lblPager" Runat="server"></asp:label></TD>
		<TD vAlign="middle" align="right"><INPUT id="controlID" type="hidden" name="controlID" runat="server">
			<asp:textbox id="txtPage" Runat="server" Width="30px" BorderColor="Black" BackColor="White" BorderWidth="1px"></asp:textbox>&nbsp;&nbsp;
			<asp:button id="btnJump" Runat="server" Text=" Go "></asp:button>
		</TD>
	</TR>
</TABLE>
		</td>
		
		
	</tr>
</table>

<table width="100%" align="center" cellspacing="0" cellpadding="0">
	<tr>
		<td class="bl"></td>
		<td class="bm">&nbsp;</td>
		<td class="br"></td>
	</tr>
</table>
</td>

  </tr>
</table>
        </div>
    </td>
  </tr>
</table>
		</form>
	</body>
</HTML>
