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

<asp:Content ID="Content1" ContentPlaceHolderID="cphConteudo" runat="server">
    <div class="cabecalho">
        Transferência de Arquivos
    </div>
    <asp:UpdatePanel ID="uppCadastroArquivo" runat="server">
        <ContentTemplate>
            <dx:ASPxRoundPanel ID="ASPxRoundPanel1" runat="server" ShowHeader="false">
                <PanelCollection>
                    <dx:PanelContent>
                        <ul class="form1col">
                            <li>
                                <span class="titulo">Tela:</span>
                                <ccn:ComboBox runat="server" ID="cbxTela" OnDataSearch="cbxTela_DataSearch" Width="50%" TextField="Text" ValueField="Key"
                                    OnValueChanged="cbxTela_ValueChanged" AutoPostBack="true" ValidationGroup="Arquivo" IsRequired="true">
                                </ccn:ComboBox>
                            </li>
                        </ul>
                    </dx:PanelContent>
                </PanelCollection>
            </dx:ASPxRoundPanel>
            <dx:ASPxRoundPanel ID="ASPxRoundPanel2" runat="server" HeaderText="Arquivos" SkinID="Grupo">
                <PanelCollection>
                    <dx:PanelContent>
                        <ul class="form1col">
                            <li>
                                <ccn:TreeList runat="server" ID="tltOrigem" KeyFieldName="Id" ParentFieldName="IdPai" DataSourceID="customDataSourceOrigem"
                                    SkinID="Edicao" OnDataIniting="tltOrigem_DataIniting" Styles-Cell-Wrap="True" OnDataBound="tltOrigem_DataBound">
                                    <SettingsSelection Enabled="true" />
                                    <Columns>
                                        <ccn:TreeDataColumn FieldName="Id" Visible="false" />
                                        <ccn:TreeDataColumn FieldName="IdPai" Visible="false" />
                                        <ccn:TreeDataColumn FieldName="Index" Visible="false" />
                                        <ccn:TreeDataTextColumn FieldName="Nome" Caption="Nome" Width="90%" />
                                    </Columns>
                                </ccn:TreeList>
                            </li>
                        </ul>
                    </dx:PanelContent>
                </PanelCollection>
            </dx:ASPxRoundPanel>
            <dx:ASPxRoundPanel ID="ASPxRoundPanel3" runat="server" HeaderText="Destino" SkinID="Grupo">
                <PanelCollection>
                    <dx:PanelContent>
                        <ul class="form1col">
                            <li>
                                <ccn:TreeList runat="server" ID="tltDestino" KeyFieldName="Id" ParentFieldName="IdPai" DataSourceID="customDataSourceDestino"
                                    SkinID="Edicao" Styles-Cell-Wrap="True" OnDataBound="tltDestino_DataBound" OnDataRowCreated="tltDestino_DataRowCreated">
                                    <Columns>
                                        <ccn:TreeDataColumn FieldName="Id" Visible="false" />
                                        <ccn:TreeDataColumn FieldName="IdPai" Visible="false" />
                                        <ccn:TreeDataColumn FieldName="Index" Visible="false" />
                                        <ccn:TreeDataTextColumn FieldName="Nome" Caption="Nome" Width="90%" />
                                        <dx:TreeListTextColumn Width="5%">
                                            <DataCellTemplate>
                                                <ccn:RadioButton ID="rblAtual" runat="server" OnCheckedChanged="rblAtual_CheckedChanged"
                                                    AutoPostBack="true" Checked='<%#Bind("IsSelecionado")%>' />
                                            </DataCellTemplate>
                                        </dx:TreeListTextColumn>
                                    </Columns>
                                </ccn:TreeList>
                            </li>
                        </ul>
                    </dx:PanelContent>
                </PanelCollection>
            </dx:ASPxRoundPanel>
            <ul class="botoes">
                <li>
                    <ccn:Button ID="btnSalvar" SkinID="Salvar" runat="server" OnClick="btnSalvar_Click" ValidationGroup="Arquivo" />
                </li>
                <li>
                    <ccn:Button ID="btnCancelar" SkinID="Cancelar" runat="server" OnClick="btnCancelar_Click" />
                </li>
            </ul>
        </ContentTemplate>
    </asp:UpdatePanel>
    <ccn:CustomObjectDataSource ID="customDataSourceOrigem" runat="server" OnDataSearch="customDataSourceOrigem_DataSearch" />
    <ccn:CustomObjectDataSource ID="customDataSourceDestino" runat="server" OnDataSearch="customDataSourceDestino_DataSearch" />
    <ccn:LoadingProgress ID="LoadingProgress" runat="server" AssociatedUpdatePanelID="uppCadastroArquivo" Text="Aguarde..." />
</asp:Content>