<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ClientStepTop.aspx.cs" Inherits="Pages_Client_ClientStepTop" %>
<%@ Register TagPrefix="Client" TagName="ClientList" Src="../../Controls/Client/ClientListControl.ascx" %>

<!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 style="margin:12px; margin-top:0px; margin-bottom:0px;">
    <table border=1 width=100%>
        <tr>
            <td width=60>客户名称</td><td width=120><asp:TextBox ID=txtClientName runat=server /></td>
            <td width=60>主联系人</td><td width=80><asp:TextBox ID=txtCantactName runat=server /></td>
            <td width=60>省份</td><td width=80><asp:DropDownList ID=ddlProvince runat=server OnTextChanged=ddlProvince_TextChanged AutoPostBack=true /></td>
            <td width=60>地区</td><td width=80><asp:DropDownList ID=ddlCity runat=server /></td>
            <td width=60>业务员</td><td width=80><asp:DropDownList ID=ddlSales runat=server /></td>
            <td><asp:Button ID=Button1 runat=server Text="查询" OnClick="Button1_Click" /></td>
        </tr>
    </table>
</div>
<div style="margin:12px; margin-top:0px;">
    <asp:GridView ID="GridView1" runat="server"         
             OnSelectedIndexChanged=GridView1_SelectedIndexChanged
             OnPageIndexChanging=GridView1_PageIndexChanging
             PagerSettings-Position=Bottom
             PagerStyle-HorizontalAlign=Right PageSize=6
              >
        <Columns>
            <asp:TemplateField HeaderText="序号" ItemStyle-HorizontalAlign=center ItemStyle-Font-Bold=true >
                <ItemTemplate>
                    <%#Container.DataItemIndex+1%>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField Visible=false>
                <HeaderTemplate><asp:CheckBox ID=CheckBox1 runat=server /></HeaderTemplate>
                <ItemTemplate>
                    <asp:CheckBox ID=CheckBox2 runat=server />
                </ItemTemplate>
            </asp:TemplateField>            
            <asp:TemplateField HeaderText="客户名称">
                <ItemTemplate>
                    <asp:LinkButton ID="LinkButton1" runat="server" CommandName="Select" 
                        Text='<%# Bind("客户名称") %>'></asp:LinkButton>                     
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="详细地址" HeaderText="详细地址" Visible=false />
            <asp:BoundField DataField="主联系人" HeaderText="主联系人" />
            <asp:BoundField DataField="部门" HeaderText="部门" />
            <asp:BoundField DataField="职务" HeaderText="职务" />
            <asp:BoundField DataField="客户电话" HeaderText="客户电话" />
            <asp:BoundField DataField="客户传真" HeaderText="客户传真" Visible=false />
            <asp:BoundField DataField="联系手机" HeaderText="联系手机" />
            <asp:BoundField DataField="电子邮箱" HeaderText="电子邮箱" />
            <asp:TemplateField HeaderText="业务员">
                <ItemTemplate>                        
                    <%#CRM.Common.InitData.GetSalesName(Eval("业务员").ToString()) %>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="添加日期" HeaderText="最后联系日期" HtmlEncode=false DataFormatString="{0:yyyy-MM-dd}" />
            <%--<asp:BoundField DataField="创建日期" HeaderText="创建日期" HtmlEncode=false DataFormatString="{0:yyyy-MM-dd}" />--%>
<%--            <asp:CommandField ShowSelectButton=True HeaderText="选择" ButtonType=Image SelectImageUrl="../../images/icon/edit.gif" Visible=False >
                <ItemStyle HorizontalAlign="Center" />
            </asp:CommandField>            
            <asp:CommandField ShowDeleteButton=True HeaderText="删除" ButtonType=Image DeleteImageUrl="../../images/icon/del.gif" Visible=False>
                <ItemStyle HorizontalAlign="Center" />
            </asp:CommandField>--%>
        </Columns>
        <SelectedRowStyle BackColor="Silver" />
        <AlternatingRowStyle BackColor="#E0E0E0" />
        <PagerStyle HorizontalAlign="Right" />
    </asp:GridView>
</div>
    </form>
</body>
</html>
