<%@ Page Title="" Language="C#" MasterPageFile="~/Dialog/DialogMaster.Master" AutoEventWireup="true"
    CodeBehind="ClueClassList.aspx.cs" Inherits="OAWeb.crm.clues.ClueClassList" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <style type="text/css">
        .table_list th, .table_list td
        {
            text-align: left;
        }
    </style>
    <div style="width: 700px; height: 470px; padding: 10px">
        <table class="data_title" cellspacing="3">
            <tr>
                <td class="data_field">
                    分类名：
                    <asp:TextBox ID="txtFullName" runat="server" CssClass="text_box width200"></asp:TextBox>
                    &nbsp;<asp:Button ID="btnSearch" runat="server" Text=" 查 询 " CssClass="btn_77px"/>
                    &nbsp;<asp:Button ID="btnNew" runat="server" Text="新增" CssClass="btn_77px" OnClientClick="return OpenDialog('/crm/clues/ClueClassEdit.aspx','新增分类');" />
                </td>
            </tr>
        </table>
        <div class="list">
            <asp:GridView ID="gvData" runat="server" AutoGenerateColumns="False" DataKeyNames="Id"
                GridLines="None" OnRowDataBound="gvData_RowDataBound" CellPadding="0" CssClass="table_list"
                EnableModelValidation="True">
                <RowStyle HorizontalAlign="Left" />
                <Columns>
                    <asp:BoundField DataField="FullName" HeaderText="分类名">
                        <HeaderStyle HorizontalAlign="Left" />
                        <ItemStyle HorizontalAlign="Left" />
                    </asp:BoundField>
                    <asp:BoundField DataField="SortCode" HeaderText="排序"></asp:BoundField>
                    <asp:TemplateField HeaderText="操作">
                        <ItemTemplate>
                            <asp:LinkButton ID="lbtnEdit" runat="server">编辑</asp:LinkButton>
                            <asp:LinkButton ID="lbtnDelete" runat="server">删除</asp:LinkButton>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
        </div>
    </div>
    <script type="text/javascript">
        $(document).ready(function () {
            $(".tr01").click(function () {
                var item = $(".table_list").find($(this).attr("value"));
                if (item.is(":hidden")) {
                    item.show();
                }
                else {
                    item.hide();
                }
            })
        });
    </script>
</asp:Content>
