<%@ Page Language="C#" AutoEventWireup="true" CodeFile="PrintOrderBill.aspx.cs" Inherits="OrdersManage_PrintOrderBill" %>

<!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 runat="server">
    <title>无标题页</title>
     <style type="text/css" media="print">
    .divNotPrint
    {
		display:none;
    }
    </style>
    <script type="text/javascript" src="/js/print.js"></script>
    <script language="javascript" type="text/javascript">
     function bind()
     {
        document.getElementById('Area').value = document.getElementById('DropDownList1').value;
     }
    </script>
</head>
<body>
<form id="form1" runat="server">
	<object style="display:none;" classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2" id="webPrintObject"></object>
	<div class="divNotPrint" style="margin:5px; border:solid 2px gray; padding:3px;">
	<input type="button" style="width: 146px; height: 31px" value="直接打印" onclick="printPage();"\>&nbsp;
	<input type="button" style="width: 146px; height: 31px" value="打印预览" onclick="printPreview();"\>
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
	&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;
	<input type="button" value="清空页码" onclick="pagesetup_null();"\>
	<input type="button" value="恢复页吗" onclick="pagesetup_default();"\>
	<input type="button" value="打印设置" onclick="printSetup();"\>
	<br />
	<br />
		按区域查询:<asp:TextBox ID="Area" runat="server"></asp:TextBox>&nbsp;<asp:DropDownList ID="DropDownList1"
			runat="server" Width="137px">
		</asp:DropDownList>&nbsp;&nbsp;
		<br />
		按 天 查询:<asp:TextBox ID="Day" runat="server"></asp:TextBox>
        <span style="color: #cc3333">2009-04-15</span><br />
		按 月 查询:<asp:TextBox ID="Month" runat="server"></asp:TextBox>
        <span style="color: #ff3333">2009-04-01</span><br />
		按范围查询: 开始时间<asp:TextBox ID="StartTime" runat="server"></asp:TextBox><span style="color: #ff3300">2009-04-15</span>
		结束时间<asp:TextBox ID="OverTime" runat="server"></asp:TextBox><span style="color: #ff3300">2009-04-18</span><asp:Button ID="Button4" runat="server" Text="查询" Width="93px" OnClick="Button4_Click" />
		</div>
	<div style="text-align:center; font-size:16px; font-weight:bold;">
		兰 炼
        日 清 单
</div>
<div style="border-bottom:solid 1px gray; margin:5px 0px;">
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; 操作员:
	<%=Convert.ToString(Session["username"])%>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;制表日期: <%=DateTime.Now %>
</div>
    
    <div align="center">
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" BackColor="#DEBA84" BorderColor="#DEBA84" BorderStyle="None" BorderWidth="1px" CellPadding="3" PageSize="15" AllowPaging="True" Font-Size="12px" Height="98px" OnPageIndexChanging="GridView1_PageIndexChanging" Width="930px" CellSpacing="2">
		<FooterStyle BackColor="#F7DFB5" ForeColor="#8C4510" />
		<Columns>
			<asp:BoundField DataField="ca.name" HeaderText="客户区域" />
			<asp:BoundField DataField="c.address" HeaderText="客户地址" />
			<asp:BoundField DataField="c.mobile" HeaderText="客户电话" />
			<asp:BoundField DataField="o.aount" HeaderText="数量" />
			<asp:BoundField DataField="o.TACK_BOTTLEER" HeaderText="取瓶" />
			<asp:BoundField DataField="o.DELI_BOTTLEER" HeaderText="送瓶" />
			<asp:BoundField DataField="o.price" HeaderText="价格" />
			<asp:BoundField DataField="o.fact_money" HeaderText="收款" />
			<asp:BoundField DataField="o.insert_date_time" HeaderText="下单时间" />
			<asp:BoundField DataField="o.TACK_NUMBER" HeaderText="欠瓶" />
			<asp:BoundField DataField="o.mome" HeaderText="备注" />
		</Columns>
		<RowStyle BackColor="#FFF7E7" ForeColor="#8C4510" />
		<SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="White" />
		<PagerStyle ForeColor="#8C4510" HorizontalAlign="Center" />
		<HeaderStyle BackColor="#A55129" Font-Bold="True" ForeColor="White" />
        <PagerSettings FirstPageText="首页" LastPageText="尾页"
            NextPageText="下一页" PreviousPageText="上一页" />
		</asp:GridView>
    </div>
    </form>
</body>
</html>
