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

<%@ Register Src="~/UserControls/ucDownload.ascx" TagPrefix="uc" TagName="Download" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cphConteudo" runat="server">
    <div class="cabecalho">
        Precatórios
    </div>
    <asp:UpdatePanel ID="uppCadastroArquivo" runat="server">
        <ContentTemplate>
            <dx:ASPxRoundPanel ID="ASPxRoundPanel2" runat="server" ShowHeader="false">
                <PanelCollection>
                    <dx:PanelContent>
                        <ul class="form1col">
                            <li style="float: right; width: 35%;">
                                <span class="titulo">Pesquisa:</span>
                                <ccn:TextBox runat="server" ID="txtPesquisa" Width="50%" />
                                <ccn:Button runat="server" ID="btnPesquisar" OnClick="btnPesquisar_Click" SkinID="Pesquisar" Style="margin-top: -3px;" />
                            </li>
                            <li>
                                <ccn:TreeList runat="server" ID="tltArquivos" KeyFieldName="Id" ParentFieldName="IdPai" DataSourceID="customDataSource" SkinID="Edicao"
                                    OnDataRowCreated="tltArquivos_DataRowCreated" Styles-Cell-Wrap="True">
                                    <Columns>
                                        <ccn:TreeDataColumn FieldName="Id" Visible="false" />
                                        <ccn:TreeDataColumn FieldName="IdPai" Visible="false" />
                                        <ccn:TreeDataColumn FieldName="Index" Visible="false" />
                                        <ccn:TreeDataTextColumn FieldName="NomeResumo" Caption="Nome" Width="90%" />
                                        <dx:TreeListTextColumn Width="5%" CellStyle-HorizontalAlign="Center">
                                            <DataCellTemplate>
                                                <ccn:Button runat="server" ID="btnDownload" OnClick="btnDownload_Click" HorizontalAlign="Center"
                                                    VerticalAlign="Middle" BackgroundImage-ImageUrl="~/UI/img/ico-exportar.png" Width="16px" Height="16px" />
                                            </DataCellTemplate>
                                        </dx:TreeListTextColumn>
                                    </Columns>
                                </ccn:TreeList>
                            </li>
                        </ul>
                    </dx:PanelContent>
                </PanelCollection>
            </dx:ASPxRoundPanel>
            <uc:Download ID="ucFormatoDownload" runat="server" Titulo="Download" OnSucess="ucFormatoDownload_Sucess" />
        </ContentTemplate>
    </asp:UpdatePanel>
    <ccn:CustomObjectDataSource ID="customDataSource" runat="server" OnDataSearch="customDataSource_DataSearch" />
</asp:Content>