<%@ page language="C#" autoeventwireup="true" inherits="general_MyOffice_Query, CrmCommand" %>
<%@ Register TagPrefix="C1WebGrid" Namespace="C1.Web.C1WebGrid" Assembly="C1.Web.C1WebGrid.2" %>


<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
</head>
<body class ="bodycolor"  leftmargin="0" topmargin="0">
    <form id="form1" runat="server">
    <div>
     
        <table class="small" cellSpacing="1" cellPadding="1"  border="0" bgcolor=#000000 style="width: 409px">
            <tr>
                <td class="TableData">姓名:<asp:TextBox ID="TxtName" CssClass="BigInput" runat="server" Width="110px"></asp:TextBox>组类型:<asp:DropDownList
                    ID="DropGroup" runat="server">
                </asp:DropDownList> <asp:Button ID="Button7" runat="server" CssClass="BigButton" Height="26px" OnClick="Button7_Click"
                        Text="查找" Width="46px" /></td></tr>
                 <tr>
                <td class="TableData"> <C1WebGrid:C1WebGrid ID="C1WebGrid1" runat="server"  AllowSorting="True"
            AutoGenerateColumns="False" CallbackOptions="Paging, Selection, Sorting"
            DataKeyField="GroupID" HScrollBarStyle="Automatic" VScrollBarStyle=Always AllowColSizing=true  
            OnSortingCommand="C1WebGrid1_SortingCommand" SkinID="gridviewSkin"  width="642px" height=400px  >
            <Columns>
                <C1WebGrid:C1BoundColumn DataField="Name" HeaderText="姓名" Fixed=True SortExpression="Name">
                    <ItemStyle HorizontalAlign="Center" Width="150px" Wrap="True" />
                    <HeaderStyle HorizontalAlign="Center" />
                </C1WebGrid:C1BoundColumn>
               
                 <C1WebGrid:C1TemplateColumn HeaderText="性别"><ItemTemplate><%#Eval("Sex").ToString()=="1"?"女":"男" %></ItemTemplate></C1WebGrid:C1TemplateColumn>
                  <C1WebGrid:C1BoundColumn DataField="BirthDay" HeaderText="生日" DataFormatString="{0:d}"  SortExpression="BirthDay">
                </C1WebGrid:C1BoundColumn>
                <C1WebGrid:C1BoundColumn DataField="Company" HeaderText="公司名称"  SortExpression="Company">
                <ItemStyle Width="250px" />
                </C1WebGrid:C1BoundColumn>
                <C1WebGrid:C1BoundColumn DataField="Email" HeaderText="电子邮件"  SortExpression="Email">
                
                </C1WebGrid:C1BoundColumn>
                 <C1WebGrid:C1BoundColumn DataField="MobileTel" HeaderText="联系电话"  SortExpression="MobileTel">
                
                </C1WebGrid:C1BoundColumn>
                <C1WebGrid:C1BoundColumn DataField="Address" HeaderText="联系地址"  SortExpression="Address">
                
                </C1WebGrid:C1BoundColumn>

                        <C1WebGrid:C1TemplateColumn HeaderText="备注">
                <ItemStyle Width="250px" />
                <ItemTemplate>
                    <asp:Label     ID="Lkb" Text='<%# Server.HtmlDecode(Eval

("Remark").ToString()).Length > 20 ? Server.HtmlDecode(Eval

("Remark").ToString()).Substring(0, 19) + "..." : Server.HtmlDecode

(Eval("Remark").ToString())%>'  ToolTip='<%# Server.HtmlDecode(Eval

("Remark").ToString())%>' runat="server"></asp:Label>
 
                </ItemTemplate>
            </C1WebGrid:C1TemplateColumn>
                    
            	</Columns>
        </C1WebGrid:C1WebGrid></td></tr>
                </table>
    </div>
    </form>
</body>
</html>
