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

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
		<meta name="CODE_LANGUAGE" Content="C#">
		<meta name="vs_defaultClientScript" content="JavaScript">
		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
		<script language="javascript">
		function onprint()
		{
		  window.print();
		  }
		</script>
		<style>
		TD { FONT-SIZE: 12px }
		</style>
	</HEAD>
	<body MS_POSITIONING="GridLayout" onload="onprint()">
		<form id="Form1" method="post" runat="server">
			<table class="tableBorder" cellSpacing="0" cellPadding="0" width="100%" align="center"
				border="0">
				<tr>
					<td>
						<asp:DataGrid id="dgOrderList" runat="server" AutoGenerateColumns="False" DataKeyField="OrderID"
							Width="100%" BorderWidth="1px" BorderColor="Black">
							<Columns>
								<asp:TemplateColumn HeaderText="跟单员" Visible="false">
									<ItemStyle Width="50px" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center"></ItemStyle>
									<ItemTemplate>
										<%# GetMember(DataBinder.Eval(Container.DataItem, "OrderID").ToString()) %>
									</ItemTemplate>
                                    <HeaderStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                                        Font-Underline="False" HorizontalAlign="Center" />
								</asp:TemplateColumn>
								<asp:TemplateColumn HeaderText="下载编号">
									<HeaderStyle HorizontalAlign="Center" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False"></HeaderStyle>
									<ItemStyle HorizontalAlign="Center" Width="50px" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False"></ItemStyle>
									<ItemTemplate>
										<%# DataBinder.Eval(Container.DataItem, "OrderNo") %>
									</ItemTemplate>
								</asp:TemplateColumn>
								<asp:BoundColumn DataField="OrderTime" HeaderText="下载时间" DataFormatString="{0:yyyy-MM-dd HH:mm}">
									<ItemStyle HorizontalAlign="Center" Width="100px"></ItemStyle>
								</asp:BoundColumn>
								<asp:TemplateColumn HeaderText="所属店铺">
									<HeaderStyle HorizontalAlign="Center" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False"  Width="240px"></HeaderStyle>
									<ItemStyle HorizontalAlign="Left" Width="240px"></ItemStyle>
									<ItemTemplate>
								
						<%# GetComName(DataBinder.Eval(Container.DataItem, "sjid").ToString()) %>

									
									</ItemTemplate>
								</asp:TemplateColumn>
								
								
							
								<asp:TemplateColumn HeaderText="下载会员">
									<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
									<ItemStyle HorizontalAlign="Center" Width="40px"></ItemStyle>
									<ItemTemplate>
										<%# GetMemberName(DataBinder.Eval(Container.DataItem, "MemberID").ToString()) %>
									</ItemTemplate>
								</asp:TemplateColumn>
						
								<asp:TemplateColumn HeaderText="使用手机">
									<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
									<ItemStyle HorizontalAlign="Center" Width="90px"></ItemStyle>
									<ItemTemplate>
										<%# DataBinder.Eval(Container.DataItem, "ReceiverPhone") %>
									</ItemTemplate>
								</asp:TemplateColumn>
								<asp:TemplateColumn HeaderText="状态">
									<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
									<ItemStyle HorizontalAlign="Center" Width="100px"></ItemStyle>
									<ItemTemplate>
										<%# GetStatus(DataBinder.Eval(Container.DataItem, "OrderID").ToString())%>
									</ItemTemplate>
								</asp:TemplateColumn>
							</Columns>
                            <ItemStyle HorizontalAlign="Center" />
                            <HeaderStyle ForeColor="ForestGreen" Height="35px" HorizontalAlign="Center" />
						</asp:DataGrid>
					</td>
				<tr>
				</tr>
			</table>
		</form>
	</body>
</HTML>
