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

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>OrderList</title><meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
		<LINK href="images/adminstyle.css" type="text/css" rel="stylesheet">
		<style type="text/css">
body {margin:0px; height:768px}
</style>
			<script language="javascript">
			function ChangeManager(cid)
			{
				alret("haha");
			}
			function CheckDelBox(box)    
			{
					for (var i=0;i<document.Form1.elements.length;i++)
				{
					var e = document.Form1.elements[i];
					if ( (e.type=='checkbox') )
					{
			            
							var o=e.name.lastIndexOf('deleteCheckbox');
			                
							if(o!=-1)
							{
								e.checked = box.checked;
							}
			        
					}
				}
			}
			</script>
					<script language="JavaScript">
<!--
//By Dicky 2005-2-17 11:16:49
function Window_Load(Flag)
{

if (Flag == 0)
{

  parent.document.all['Loading'].style.display = 'block';
  parent.document.all['Loading'].style.width = '500';
   parent.document.all['Loading'].style.height = '60';
  //show the window
}
else
{
  parent.document.all['Loading'].style.display = 'none';
  
  //hide the window
}
}
function Button1_onclick() {
history.go(-1);
}

//-->
</script>
 <script language="javascript" type="text/javascript" src="inc/My97DatePicker/WdatePicker.js"></script>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></HEAD>
	
	<body rightmargin="0" leftmargin="0" topmargin="0" onload="Window_Load(1);">
	
		<form id="Form1" method="post" runat="server" onsubmit="Window_Load(0);">
  <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: 31px">关键字：</td>
	    <td style="height: 31px"><asp:dropdownlist id="ddlKeyType" Runat="server">
		    <asp:ListItem Selected="True" Value="dderNo">下载编号</asp:ListItem>
		    <asp:ListItem Value="Name">会员帐户</asp:ListItem>
		    </asp:dropdownlist>
            <asp:textbox id="txtKeyword" CssClass="input" runat="server" Height="20px"></asp:textbox>&nbsp;
            状态：<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" onClick="WdatePicker()"></asp:textbox>到<asp:textbox id="txtDateTo" CssClass="input" runat="server" onClick="WdatePicker()"></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">
	<asp:button id="btnUpdateManagers" runat="server"  Text="更新跟单员" Visible="false"></asp:button>
	<asp:Button id="btnDelete" runat="server"   Text="删除下载"></asp:Button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<INPUT id="Hidden1" type="hidden" name="Hidden1" runat="server">
	<asp:Button id="bt_print" runat="server"  Text="打印下载"></asp:Button>
        <input id="Button1" type="button" value="返回" onclick="return Button1_onclick()" /></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="35px" BackColor="#EDF6FF"></HeaderStyle>
			<Columns>
			<asp:TemplateColumn>
			<ItemStyle HorizontalAlign="Center" Width="20px" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False"></ItemStyle>
			<HeaderTemplate>
			<input type="checkbox" id="checkDel" onClick="CheckDelBox(this)" />
			</HeaderTemplate>
			<ItemTemplate>
			<asp:CheckBox id="deleteCheckbox" runat="server" AutoPostBack="False"></asp:CheckBox>
			</ItemTemplate>
                <HeaderStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                    Font-Underline="False" HorizontalAlign="Center" BackColor="#EDF6FF" />
			</asp:TemplateColumn>
			<asp:TemplateColumn HeaderText="跟单员" Visible="false">
			<ItemTemplate>
			<asp:DropDownList ID="ddlManagers" Runat="server"></asp:DropDownList>
			</ItemTemplate>
                <HeaderStyle Font-Bold="True" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                    Font-Underline="False" HorizontalAlign="Center" Width="60px" BackColor="#EDF6FF" Wrap="False" />
                <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                    Font-Underline="False" HorizontalAlign="Center" Width="60px" Wrap="False" />
                <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" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" Width="100px" BackColor="#EDF6FF" 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>
			<%# 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:TemplateColumn HeaderText="所属店铺">
			<HeaderStyle HorizontalAlign="Center" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" Width="180px" BackColor="#EDF6FF" Wrap="False"></HeaderStyle>
			<ItemStyle HorizontalAlign="Center" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" Wrap="False" Width="180px"></ItemStyle>
			<ItemTemplate>
			<a href="../company/company_<%# DataBinder.Eval(Container.DataItem, "sjid").ToString() %>.html" target="_blank"><%# GetComName(DataBinder.Eval(Container.DataItem, "sjid").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: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="200px" Wrap="False"></HeaderStyle>
			<ItemStyle HorizontalAlign="Center" Width="200px" 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>
