<%@ Page Title="" Language="C#" MasterPageFile="~/Master/Cecam.Master" AutoEventWireup="true" CodeBehind="wfTela.aspx.cs"
    Inherits="Cecam.PortalTransparencia.Web.Pages.wfTela" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cphConteudo" runat="server">
    <div class="cabecalho">
        Telas
    </div>
    <asp:UpdatePanel ID="uppTela" runat="server">
        <ContentTemplate>
            <dx:ASPxRoundPanel ID="rpnGridTela" runat="server" HeaderText="Exibição" SkinID="Grupo">
                <PanelCollection>
                    <dx:PanelContent>
                        <ccn:TreeList ID="trlTela" runat="server" KeyFieldName="Id" ParentFieldName="IdPai" DataSourceID="customObjectDataSource">
                            <SettingsSelection Enabled="false" Recursive="true" />
                            <SettingsBehavior AutoExpandAllNodes="true" />
                            <Columns>
                                <ccn:TreeCommandEditColumn />
                                <ccn:TreeDataColumn FieldName="Id" Visible="false" />
                                <ccn:TreeDataColumn Caption="Nome" FieldName="Nome" Width="70%" AllowEdit="false" />
                                <ccn:TreeDataComboBoxColumn Caption="Exibição" FieldName="ExibicaoAtual" Width="20%" AllowEdit="true" ValueField="Key"
                                    TextField="Text" OnDataSearch="cbxExibicao_DataSearch" DefaultItem=" " />
                            </Columns>
                        </ccn:TreeList>
                        <ccn:CustomObjectDataSource ID="customObjectDataSource" runat="server" OnDataSearch="customObjectDataSource_DataSearch" />
                    </dx:PanelContent>
                </PanelCollection>
            </dx:ASPxRoundPanel>
            <ul class="botoes">
                <li>
                    <ccn:Button ID="btnSalvar" runat="server" SkinID="Salvar" OnClick="btnSalvar_Click" ValidationGroup="Tela" />
                </li>
                <li>
                    <ccn:Button ID="btnCancelar" runat="server" SkinID="Cancelar" OnClick="btnCancelar_Click" />
                </li>
            </ul>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>