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

<!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>
    <script language="javascript" type="text/javascript">
    function loction()
    {
		window.location.href='~/OrdersManage/PrintOrderBill.aspx';
    }
    function bind()
    {
		document.getElementById('Area').value = document.getElementById('DropDownList1').value;
    }
    function bind1()
    {
		document.getElementById('DayNumber').value = document.getElementById('DropDownList2').value;
    }
    </script>
</head>
<body text="#00">
    <form id="form1" runat="server">
	<div align="center">
     <table style="width: 948px">
    <tr>
     <td align="left" style="font-size: 12px; width: 600px; color: red; height: 16px">业务数据→定单管理</td>
     </tr>
    </table>
    <div style="margin:5px; border:solid 2px gray; padding:2px; width:938px">
    统计信息:&nbsp; 定气统计：<asp:Label ID="Label1" runat="server" Text="0"></asp:Label>
		&nbsp; &nbsp; 送气统计：<asp:Label ID="Label3" runat="server" Text="0"></asp:Label>
		&nbsp; &nbsp; 未送气统计：<asp:Label ID="Label2" runat="server" Text="0"></asp:Label>
		&nbsp;&nbsp;&nbsp; 收款统计：<asp:Label ID="Label4" runat="server" Text="0"></asp:Label>
        <%--		&nbsp; 今日未收款：<asp:Label ID="Label5" runat="server" Text="0"></asp:Label><br />--%>
		&nbsp;
        <asp:Button ID="Button2" runat="server" OnClick="Button2_Click" Text="数据打印" /><br />
		&nbsp;按区域查询:<asp:TextBox ID="Area" runat="server"
			Width="127px"></asp:TextBox>&nbsp;&nbsp;<asp:DropDownList ID="DropDownList1" runat="server"
				Width="103px">
			</asp:DropDownList><br />
        &nbsp;&nbsp;&nbsp; 按天查询:<asp:TextBox ID="Day" runat="server"></asp:TextBox>&nbsp;
        <span style="color: #cc3333">2009-04-15<br />
        </span>&nbsp;
		按月查询:<asp:TextBox ID="Month" runat="server"></asp:TextBox><span style="color: #cc3333">2009-04-01<br />
        </span>&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;
        开始时间:<asp:TextBox
			ID="StartTime" runat="server" Width="111px"></asp:TextBox>
        <span style="color: #cc3333">2009-04-15</span>&nbsp; &nbsp;&nbsp; 
		结束时间:<asp:TextBox ID="OverTime" runat="server" Width="109px"></asp:TextBox>
		&nbsp;&nbsp;&nbsp; <span style="color: #cc3333">2009-04-18</span><br />
        电话号:<asp:TextBox ID="Mobile" runat="server" Width="201px"></asp:TextBox><br />
		&nbsp; &nbsp; 地址:<asp:TextBox ID="Address" runat="server" Width="201px"></asp:TextBox><br />
        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 超时查询:<asp:TextBox ID="DayNumber" runat="server" Width="99px"></asp:TextBox>
		<asp:DropDownList ID="DropDownList2" runat="server" Width="69px">
		<asp:ListItem Text="15" Value="15"></asp:ListItem>
		<asp:ListItem Text="20" Value="20"></asp:ListItem>
		<asp:ListItem Text="25" Value="25"></asp:ListItem>
		<asp:ListItem Text="30" Value="30"></asp:ListItem>
		<asp:ListItem Text="35" Value="35"></asp:ListItem>
		<asp:ListItem Text="40" Value="40"></asp:ListItem>
		<asp:ListItem Text="45" Value="45"></asp:ListItem>
		<asp:ListItem Text="50" Value="50"></asp:ListItem>
		<asp:ListItem Text="55" Value="55"></asp:ListItem>
		<asp:ListItem Text="60" Value="60"></asp:ListItem>
		<asp:ListItem Text="65" Value="65"></asp:ListItem>
		<asp:ListItem Text="70" Value="70"></asp:ListItem>
		<asp:ListItem Text="75" Value="75"></asp:ListItem>
		<asp:ListItem Text="80" Value="80"></asp:ListItem>
		<asp:ListItem Text="85" Value="85"></asp:ListItem>
		<asp:ListItem Text="90" Value="90"></asp:ListItem>
		</asp:DropDownList>
		<asp:Button
			ID="Button5" runat="server"  Text="查询" Width="93px" OnClick="Button5_Click" />
        <asp:CheckBox ID="NotDelivery" runat="server" Text="未送气" />
		<asp:CheckBox ID="CheckBox1" runat="server" Text="未付款" />
        <asp:CheckBox ID="CheckBox2" runat="server" Text="欠款" />
        <asp:CheckBox ID="CheckBox3" runat="server" Text="欠瓶" /></div>
     <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False" BackColor="White" BorderColor="#3366CC" BorderStyle="None" BorderWidth="1px" CellPadding="4" Font-Size="12px" OnPageIndexChanging="GridView1_PageIndexChanging" Width="948px" OnRowDeleting="GridView1_RowDeleting" OnRowEditing="GridView1_RowEditing">
		 <PagerSettings FirstPageText="首页" LastPageText="尾页"
			 NextPageText="下一页" PreviousPageText="上一页" />
		 <FooterStyle BackColor="#99CCCC" ForeColor="#003399" />
		 <Columns>
			 <asp:BoundField DataField="o.id" HeaderText="定单编号" />
			 <asp:BoundField DataField="o.no" HeaderText="定单号" Visible="False" />
			 <asp:BoundField DataField="c.mobile" HeaderText="客户电话" />
			 <asp:BoundField DataField="ca.name" HeaderText="客户区域" />
			 <asp:BoundField DataField="c.address" HeaderText="客户地址" />
			 <asp:BoundField DataField="p.name" HeaderText="商品名" />
			 <asp:BoundField DataField="o.price" HeaderText="单价" />
			 <asp:BoundField DataField="o.aount" HeaderText="购买数量" />
			 <asp:BoundField DataField="o.cope_money" HeaderText="应付金额" />
			 <asp:BoundField DataField="o.fact_money" HeaderText="实付金额" />
			 <asp:BoundField DataField="o.insert_date_time" HeaderText="下单时间" />
			 <asp:BoundField DataField="o.payment_date_time" HeaderText="付款时间" />
			 <asp:BoundField DataField="o.TACK_BOTTLEER" HeaderText="取瓶人" />
			 <asp:BoundField DataField="o.DELI_BOTTLEER" HeaderText="送瓶人" />
			 <asp:BoundField DataField="o.BOTTLE" HeaderText="应急瓶" />
             <asp:BoundField DataField="o.TACK_NUMBER" HeaderText="欠瓶" />
             <asp:BoundField DataField="o.MOME" HeaderText="备注" />
			 <asp:CommandField HeaderText="删除" ShowDeleteButton="True" />
			 <asp:CommandField EditText="操作" HeaderText="操作" ShowEditButton="True" />
		 </Columns>
		 <SelectedRowStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
		 <PagerStyle BackColor="#99CCCC" ForeColor="#003399" HorizontalAlign="Left" />
		 <HeaderStyle BackColor="#003399" Font-Bold="True" ForeColor="#CCCCFF" />
		 <RowStyle BackColor="White" ForeColor="#003399" />
	</asp:GridView>
    </div>
    </form>
</body>
</html>
