<%@ Page Language="C#" Theme="Default" MasterPageFile="~/Main.Master" EnableViewState="true"
    AutoEventWireup="true" CodeBehind="DictTreeList.aspx.cs" Inherits="OAWeb.Sys.DictTreeList" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlace" runat="server">
    <style>
        .TableBorder td
        {
            padding: 5px;
        }
    </style>
    <table id="plc_profile" cellpadding="0" cellspacing="0" border="0">
        <tr>
            <td class="main_left">
                <div class="left_main">
                    <div class="left_nav">
                        <div class="left_nav_title">
                            <a href="/Users/PersonalInfo.aspx">
                                <img class="ico_grzl" src="/images/transparent.gif" /></a> 数据类型
                        </div>
                        <div class="user_info" style="padding-left: 20px; border: 0px;">
                            <asp:Repeater ID="rpTypeList" runat="server">
                                <ItemTemplate>
                                    <p>
                                        <a href='/sys/DictTreeList.aspx?Id=<%# Eval("Id") %>'><span class="h2 realname">
                                            <%# Eval("DictName") %></span></a>
                                    </p>
                                </ItemTemplate>
                            </asp:Repeater>
                            <p>
                            </p>
                        </div>
                    </div>
                </div>
            </td>
            <td class="main_center">

                    <table class="data_title" style="margin-top: 10px;">
                        <tr>
                            <td class="data_caption">
                                基础数据值
                            </td>
                        </tr>
                        <tr>
                            <td class="data-field">
                                <table width="60%">
                                    <tr>
                                        <td class="tb-editor" nowrap="nowrap">
                                            名称：<asp:TextBox ID="txtNewName" runat="server"></asp:TextBox>
                                            说明：
                                            <asp:TextBox ID="txtNewRemark" runat="server"></asp:TextBox>
                                            <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="快速添加" CssClass="btn_77px" />
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                    <asp:GridView runat="server" ID="grdvDict" AutoGenerateColumns="False" OnRowDataBound="grdvDict_RowDataBound"
                        Width="100%" OnRowCancelingEdit="grdvDict_RowCancelingEdit" OnRowDeleting="grdvDict_RowDeleting"
                        OnRowEditing="grdvDict_RowEditing" OnRowUpdating="grdvDict_RowUpdating" CellPadding="4"
                        ForeColor="#333333" GridLines="None">
                        <Columns>
                            <asp:TemplateField HeaderText="ID">
                                <ItemTemplate>
                                    <asp:Label ID="lblID" runat="server"></asp:Label>
                                </ItemTemplate>
                                <ItemStyle Width="60px" />
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="名称">
                                <EditItemTemplate>
                                    <asp:TextBox ID="txtName" runat="server"></asp:TextBox>
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="lblName" runat="server"></asp:Label>
                                </ItemTemplate>
                                <ItemStyle Width="120px" />
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="使用">
                                <EditItemTemplate>
                                    <asp:CheckBox ID="chkIsUse" runat="server" Text="使用" />
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="lblIsUse" runat="server"></asp:Label>
                                </ItemTemplate>
                                <ItemStyle Width="60px" />
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="默认项">
                                <EditItemTemplate>
                                    <asp:CheckBox ID="chkSelected" runat="server" />
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="lblSelected" runat="server"></asp:Label>
                                </ItemTemplate>
                                <ItemStyle Width="60px" />
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="排序">
                                <EditItemTemplate>
                                    <asp:TextBox ID="txtTaxis" runat="server" Width="60px"></asp:TextBox>
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="lblTaxis" runat="server"></asp:Label>
                                </ItemTemplate>
                                <ItemStyle Width="60px" />
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="说明">
                                <EditItemTemplate>
                                    <asp:TextBox ID="txtRemark" runat="server" Width="98%"></asp:TextBox>
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="lblRemark" runat="server"></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:CommandField ShowEditButton="True">
                                <ItemStyle Width="70px" />
                            </asp:CommandField>
                            <asp:CommandField ShowDeleteButton="True">
                                <ItemStyle Width="70px" />
                            </asp:CommandField>
                        </Columns>
                        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <RowStyle BackColor="#EFF3FB" />
                        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <AlternatingRowStyle BackColor="White" />
                    </asp:GridView>
            </td>
        </tr>
    </table>
</asp:Content>
