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

<!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>
</head>
<body>
    <form id="form1" runat="server">
    <div align="center">
     <table style="width: 700px">
    <tr>
     <td align="left" style="font-size: 12px; width: 600px; color: red; height: 16px">业务数据→客户管理</td>
     </tr>
    </table><asp:Button ID="Button1" runat="server" Text="添加新客户" OnClick="Button1_Click" />
		&nbsp; &nbsp; &nbsp; 请输入手机号 :
		<asp:TextBox ID="mobile" runat="server"></asp:TextBox>
		<asp:Button ID="Button2" runat="server" OnClick="Button2_Click" Text="查询" Width="63px" /><br />
		<asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False"
			BackColor="White" BorderColor="#3366CC" BorderStyle="None" BorderWidth="1px"
			CellPadding="4" Font-Size="12px" Width="700px" Height="279px" OnPageIndexChanging="GridView1_PageIndexChanging" PageSize="20" OnRowDeleting="GridView1_RowDeleting" OnRowEditing="GridView1_RowEditing">
			<PagerSettings FirstPageText="首页" LastPageText="尾页" NextPageText="下一页" PreviousPageText="上一页" Mode="NextPreviousFirstLast" />
			<FooterStyle BackColor="#99CCCC" ForeColor="#003399" />
			<Columns>
				<asp:BoundField DataField="c.id" HeaderText="编号" />
				<asp:BoundField DataField="c.client_name" HeaderText="客户姓名" />
				<asp:BoundField DataField="ct.name" HeaderText="客户类型" />
				<asp:BoundField DataField="ca.name" HeaderText="客户区域" />
				<asp:BoundField DataField="c.mobile" HeaderText="电话" />
				<asp:BoundField DataField="c.address" HeaderText="地址" />
				<asp:BoundField DataField="c.insert_date_time" HeaderText="注册时间" />
                <asp:CommandField HeaderText="删除" ShowDeleteButton="True" />
                <asp:CommandField HeaderText="修改" ShowEditButton="True" />
			</Columns>
			<SelectedRowStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" Wrap="True" />
			<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>
