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

<!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>
</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();"\>
	<asp:Button ID="Button1" runat="server" Text="添加租瓶信息" OnClick="Button1_Click" /><br />
        &nbsp;电话号:<asp:TextBox ID="Mobile" runat="server"></asp:TextBox>
		<asp:Button ID="Button2" runat="server" Text="查询" Width="77px" OnClick="Button2_Click" /></div>
    <div align="center">
		<asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False" BackColor="#DEBA84" BorderColor="#DEBA84" BorderStyle="None" BorderWidth="1px" CellPadding="3" Font-Size="12px" OnPageIndexChanging="GridView1_PageIndexChanging" OnRowEditing="GridView1_RowEditing" Width="910px" OnRowDeleting="GridView1_RowDeleting" PageSize="20" Height="1px" CellSpacing="2">
			<PagerSettings FirstPageText="首页" LastPageText="尾页" Mode="NextPreviousFirstLast"
				NextPageText="下一页" PreviousPageText="上一页" />
			<FooterStyle BackColor="#F7DFB5" ForeColor="#8C4510" />
			<Columns>
				<asp:BoundField DataField="l.id" HeaderText="编号" />
				<asp:BoundField DataField="c.client_name" HeaderText="客户姓名" />
				<asp:BoundField DataField="c.mobile" HeaderText="客户电话" />
				<asp:BoundField DataField="l.productName" HeaderText="产品名" />
				<asp:BoundField DataField="l.amount" HeaderText="数量" />
				<asp:BoundField DataField="l.foregift" HeaderText="押金" />
				<asp:BoundField DataField="l.month_hire" HeaderText="月租" />
				<asp:BoundField DataField="l.status" HeaderText="状态" />
				<asp:BoundField DataField="l.inser_data_time" HeaderText="开租时间" />
				<asp:BoundField DataField="l.over_data_time" HeaderText="退租时间" />
				<asp:BoundField DataField="day" HeaderText="租瓶天数" />
				<asp:BoundField DataField="money" HeaderText="应收租金" />
				<asp:CommandField HeaderText="退租" ShowEditButton="True" EditText="退租" />
				<asp:CommandField HeaderText="删除" ShowDeleteButton="True" />
			</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" />
		</asp:GridView>
    </div>
    </form>
</body>
</html>
