<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="resultadoDespesa.aspx.cs"
    Inherits="PortalTransparencia.resultadoDespesa" MasterPageFile="~/Site2.Master" %>

<%@ Register Assembly="DevExpress.Web.ASPxGridView.v11.1, Version=11.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v11.1, Version=11.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%@ Register Src="~/Relatorios/wucRelatorio.ascx" TagName="wucRelatorio" TagPrefix="uc3" %>
<%@ Register Assembly="Cecam.Framework.Controls" Namespace="Cecam.Framework.Controls" TagPrefix="cc1" %>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="container">
        <div class="limite">
            <div class="box">
                <h2 class="titulo" style="color: #000000">Resultados</h2>
                <asp:MultiView runat="server" ID="mltRelatorio" ActiveViewIndex="0" OnActiveViewChanged="mltRelatorio_ActiveViewChanged">
                    <asp:View runat="server" ID="viewFiltro">
                        <ul class="form">
                            <p>
                                <dx:ASPxGridView ID="gv1" runat="server" Visible="false"
                                    ClientInstanceName="gv1"
                                    AutoGenerateColumns="false"
                                    Width="100%"
                                    EnableRowsCache="False"
                                    EnableCallBacks="False"
                                    OnCustomButtonCallback="gv1_CustomButtonCallback" OnHtmlCommandCellPrepared="gv1_HtmlCommandCellPrepared"
                                    OnHtmlRowPrepared="gv1_HtmlRowPrepared">
                                    <Columns>
                                        <ccm:CommandColumn ButtonType="Link" ButtonId="Nota" Caption="Notas" Visible="true"></ccm:CommandColumn>
                                        <dx:GridViewDataColumn Caption="" FieldName="DT_EMPENHO" Visible="false"></dx:GridViewDataColumn>
                                        <dx:GridViewDataColumn Caption="" FieldName="cd_pedido" Visible="false"></dx:GridViewDataColumn>
                                        <dx:GridViewDataColumn Caption="" FieldName="DS_PROCESSO" Visible="false"></dx:GridViewDataColumn>
                                        <dx:GridViewDataColumn Caption="" FieldName="CD_FICHA" Visible="false"></dx:GridViewDataColumn>
                                        <dx:GridViewDataColumn Caption="" FieldName="DS_BANCO" Visible="false"></dx:GridViewDataColumn>
                                        <dx:GridViewDataColumn Caption="" FieldName="DS_AGENCIA" Visible="false"></dx:GridViewDataColumn>
                                        <dx:GridViewDataColumn Caption="" FieldName="DS_DIG_AGENCIA" Visible="false"></dx:GridViewDataColumn>
                                        <dx:GridViewDataColumn Caption="" FieldName="DS_CONTA" Visible="false"></dx:GridViewDataColumn>
                                        <dx:GridViewDataColumn Caption="" FieldName="DS_DIG_CONTA" Visible="false"></dx:GridViewDataColumn>
                                        <dx:GridViewDataColumn Caption="" FieldName="DS_ENDERECO" Visible="false"></dx:GridViewDataColumn>
                                        <dx:GridViewDataColumn Caption="" FieldName="DS_UF" Visible="false"></dx:GridViewDataColumn>
                                        <dx:GridViewDataColumn Caption="" FieldName="DS_CEP" Visible="false"></dx:GridViewDataColumn>
                                        <dx:GridViewDataColumn Caption="" FieldName="DS_LOCAL_ENTREGA" Visible="false"></dx:GridViewDataColumn>
                                        <dx:GridViewDataColumn Caption="" FieldName="DS_PRAZO_ENTREGA" Visible="false"></dx:GridViewDataColumn>
                                        <dx:GridViewDataColumn Caption="" FieldName="DS_VALIDADE" Visible="false"></dx:GridViewDataColumn>
                                        <dx:GridViewDataColumn Caption="" FieldName="CD_ORGAO" Visible="false"></dx:GridViewDataColumn>
                                        <dx:GridViewDataColumn Caption="" FieldName="NM_ORGAO" Visible="false"></dx:GridViewDataColumn>
                                        <dx:GridViewDataColumn Caption="" FieldName="CD_UNIDADEORCAMENTARIA" Visible="false"></dx:GridViewDataColumn>
                                        <dx:GridViewDataColumn Caption="" FieldName="NM_UNIDADEORCAMENTARIA" Visible="false"></dx:GridViewDataColumn>
                                        <dx:GridViewDataColumn Caption="" FieldName="CD_UNIDADEEXECUTORA" Visible="false"></dx:GridViewDataColumn>
                                        <dx:GridViewDataColumn Caption="" FieldName="NM_UNIDADEEXECUTORA" Visible="false"></dx:GridViewDataColumn>
                                        <dx:GridViewDataColumn Caption="" FieldName="CD_FUNCAO" Visible="false"></dx:GridViewDataColumn>
                                        <dx:GridViewDataColumn Caption="" FieldName="CD_SUBFUNCAO" Visible="false"></dx:GridViewDataColumn>
                                        <dx:GridViewDataColumn Caption="" FieldName="CD_PROGRAMA" Visible="false"></dx:GridViewDataColumn>
                                        <dx:GridViewDataColumn Caption="" FieldName="CD_ACAO" Visible="false"></dx:GridViewDataColumn>
                                        <dx:GridViewDataColumn Caption="" FieldName="NM_ACAO" Visible="false"></dx:GridViewDataColumn>
                                        <dx:GridViewDataColumn Caption="" FieldName="NM_ACAO" Visible="false"></dx:GridViewDataColumn>
                                        <dx:GridViewDataColumn Caption="" FieldName="CD_CATEGORIA" Visible="false"></dx:GridViewDataColumn>
                                        <dx:GridViewDataColumn Caption="" FieldName="NM_CATEGORIA" Visible="false"></dx:GridViewDataColumn>
                                        <dx:GridViewDataColumn Caption="" FieldName="CD_ATUACAO" Visible="false"></dx:GridViewDataColumn>
                                        <dx:GridViewDataColumn Caption="" FieldName="CD_RECURSO" Visible="false"></dx:GridViewDataColumn>
                                        <dx:GridViewDataColumn Caption="" FieldName="NM_RECURSO" Visible="false"></dx:GridViewDataColumn>
                                        <dx:GridViewDataColumn Caption="" FieldName="CD_ATIVONAOFINANCEIRO" Visible="false"></dx:GridViewDataColumn>
                                        <dx:GridViewDataColumn Caption="" FieldName="DS_ATIVONAOFINANCEIRO" Visible="false"></dx:GridViewDataColumn>
                                        <dx:GridViewDataColumn Caption="" FieldName="CD_PASSIVONAOFINANCEIRO" Visible="false"></dx:GridViewDataColumn>
                                        <dx:GridViewDataColumn Caption="" FieldName="DS_PASSIVONAOFINANCEIRO" Visible="false"></dx:GridViewDataColumn>
                                        <dx:GridViewDataColumn Caption="" FieldName="VL_DOTACAOATUAL" Visible="false"></dx:GridViewDataColumn>
                                        <dx:GridViewDataColumn Caption="" FieldName="VL_EMPENHADOANTERIOR" Visible="false"></dx:GridViewDataColumn>
                                        <dx:GridViewDataColumn Caption="" FieldName="VL_EMPENHADO" Visible="false"></dx:GridViewDataColumn>
                                        <dx:GridViewDataColumn Caption="" FieldName="VL_SALDO" Visible="false"></dx:GridViewDataColumn>
                                        <dx:GridViewDataColumn Caption="" FieldName="VL_COTA1" Visible="false"></dx:GridViewDataColumn>
                                        <dx:GridViewDataColumn Caption="" FieldName="VL_COTA2" Visible="false"></dx:GridViewDataColumn>
                                        <dx:GridViewDataColumn Caption="" FieldName="VL_COTA3" Visible="false"></dx:GridViewDataColumn>
                                        <dx:GridViewDataColumn Caption="" FieldName="VL_COTA4" Visible="false"></dx:GridViewDataColumn>
                                        <dx:GridViewDataColumn Caption="" FieldName="VL_COTA5" Visible="false"></dx:GridViewDataColumn>
                                        <dx:GridViewDataColumn Caption="" FieldName="VL_COTA6" Visible="false"></dx:GridViewDataColumn>
                                        <dx:GridViewDataColumn Caption="" FieldName="VL_COTA7" Visible="false"></dx:GridViewDataColumn>
                                        <dx:GridViewDataColumn Caption="" FieldName="VL_COTA8" Visible="false"></dx:GridViewDataColumn>
                                        <dx:GridViewDataColumn Caption="" FieldName="VL_COTA9" Visible="false"></dx:GridViewDataColumn>
                                        <dx:GridViewDataColumn Caption="" FieldName="VL_COTA10" Visible="false"></dx:GridViewDataColumn>
                                        <dx:GridViewDataColumn Caption="" FieldName="VL_COTA11" Visible="false"></dx:GridViewDataColumn>
                                        <dx:GridViewDataColumn Caption="" FieldName="VL_COTA12" Visible="false"></dx:GridViewDataColumn>

                                        <dx:GridViewDataColumn Caption="Empenho" FieldName="CD_EMPENHO"></dx:GridViewDataColumn>
                                        <dx:GridViewDataColumn Caption="CPF/CNPJ" FieldName="NR_CPFCNPJ" Width="15%"></dx:GridViewDataColumn>
                                        <dx:GridViewDataColumn Caption="Fornecedor" FieldName="NM_FORNECEDOR"></dx:GridViewDataColumn>
                                        <dx:GridViewDataColumn Caption="Descrição" FieldName="DS_HISTORICO"></dx:GridViewDataColumn>
                                        <dx:GridViewDataColumn Caption="Funcional" FieldName="DS_FUNCIONALPROGRAMATICA"></dx:GridViewDataColumn>
                                        <dx:GridViewDataColumn Caption="Mod. Lic." FieldName="TP_MODALIDADE"></dx:GridViewDataColumn>
                                        <dx:GridViewDataColumn Caption="Licitação" FieldName="NR_LICITACAO"></dx:GridViewDataColumn>
                                        <dx:GridViewDataTextColumn Caption="Valor Empenhado (R$)" FieldName="VL_EMPENHADO" PropertiesTextEdit-DisplayFormatString="{0:#,##0.00}"></dx:GridViewDataTextColumn>
                                    </Columns>
                                    <TotalSummary>
                                        <dx:ASPxSummaryItem FieldName="VL_EMPENHADO" DisplayFormat="Valor Total : {0:#,##0.00}" Tag="." SummaryType="Sum" />
                                    </TotalSummary>
                                    <Settings ShowFooter="True" />
                                    <SettingsPager PageSize="15">
                                        <Summary AllPagesText="Páginas: {0} - {1} ({2} itens)" Text="Página {0} de {1} ({2} itens)" />
                                    </SettingsPager>
                                </dx:ASPxGridView>
                            </p>
                            <p>
                                <dx:ASPxGridView ID="gv2" runat="server" Visible="false"
                                    ClientInstanceName="gv2"
                                    AutoGenerateColumns="false"
                                    Width="100%"
                                    EnableRowsCache="False"
                                    EnableCallBacks="False">
                                    <Columns>
                                        <dx:GridViewDataColumn Caption="Empenho" FieldName="CD_EMPENHO"></dx:GridViewDataColumn>
                                        <dx:GridViewDataColumn Caption="CPF/CNPJ" FieldName="NR_CPFCNPJ" Width="15%"></dx:GridViewDataColumn>
                                        <dx:GridViewDataColumn Caption="Fornecedor" FieldName="NM_FORNECEDOR"></dx:GridViewDataColumn>
                                        <dx:GridViewDataColumn Caption="Descrição" FieldName="DS_HISTORICO"></dx:GridViewDataColumn>
                                        <dx:GridViewDataColumn Caption="Funcional" FieldName="DS_FUNCIONALPROGRAMATICA"></dx:GridViewDataColumn>
                                        <dx:GridViewDataColumn Caption="Mod. Lic." FieldName="TP_MODALIDADE"></dx:GridViewDataColumn>
                                        <dx:GridViewDataColumn Caption="Licitação" FieldName="NR_LICITACAO"></dx:GridViewDataColumn>
                                        <dx:GridViewDataTextColumn Caption="Valor Liquídado (R$)" FieldName="VL_LIQUIDADO" PropertiesTextEdit-DisplayFormatString="{0:#,##0.00}"></dx:GridViewDataTextColumn>
                                    </Columns>
                                    <TotalSummary>
                                        <dx:ASPxSummaryItem FieldName="VL_LIQUIDADO" DisplayFormat="Valor Total : {0:#,##0.00}" Tag="." SummaryType="Sum" />
                                    </TotalSummary>
                                    <Settings ShowFooter="True" />
                                    <SettingsPager PageSize="15">
                                        <Summary AllPagesText="Páginas: {0} - {1} ({2} itens)" Text="Página {0} de {1} ({2} itens)" />
                                    </SettingsPager>
                                </dx:ASPxGridView>
                            </p>
                            <p>
                                <dx:ASPxGridView ID="gv3" runat="server" Visible="false"
                                    ClientInstanceName="gv3"
                                    AutoGenerateColumns="false"
                                    Width="100%"
                                    EnableRowsCache="False"
                                    EnableCallBacks="False">
                                    <Columns>
                                        <dx:GridViewDataColumn Caption="Empenho" FieldName="CD_EMPENHO"></dx:GridViewDataColumn>
                                        <dx:GridViewDataColumn Caption="CPF/CNPJ" FieldName="NR_CPFCNPJ" Width="15%"></dx:GridViewDataColumn>
                                        <dx:GridViewDataColumn Caption="Fornecedor" FieldName="NM_FORNECEDOR"></dx:GridViewDataColumn>
                                        <dx:GridViewDataColumn Caption="Descrição" FieldName="DS_HISTORICO"></dx:GridViewDataColumn>
                                        <dx:GridViewDataColumn Caption="Funcional" FieldName="DS_FUNCIONALPROGRAMATICA"></dx:GridViewDataColumn>
                                        <dx:GridViewDataColumn Caption="Mod. Lic." FieldName="TP_MODALIDADE"></dx:GridViewDataColumn>
                                        <dx:GridViewDataColumn Caption="Licitação" FieldName="NR_LICITACAO"></dx:GridViewDataColumn>
                                        <dx:GridViewDataTextColumn Caption="Valor Pago (R$)" FieldName="VL_PAGO" PropertiesTextEdit-DisplayFormatString="{0:#,##0.00}"></dx:GridViewDataTextColumn>
                                    </Columns>
                                    <TotalSummary>
                                        <dx:ASPxSummaryItem FieldName="VL_PAGO" DisplayFormat="Valor Total : {0:#,##0.00}" Tag="." SummaryType="Sum" />
                                    </TotalSummary>
                                    <Settings ShowFooter="True" />
                                    <SettingsPager PageSize="15">
                                        <Summary AllPagesText="Páginas: {0} - {1} ({2} itens)" Text="Página {0} de {1} ({2} itens)" />
                                    </SettingsPager>
                                </dx:ASPxGridView>
                            </p>
                            <p>
                                <asp:Label runat="server" ID="lblMsg" Visible="false"></asp:Label>
                            </p>
                            <li class="botoes">
                                <asp:Button runat="server" ID="btnEnviar" CssClass="btazul" Text="voltar" Style="margin-right: 0px"
                                    OnClick="btnVoltar_Onclick" />
                            </li>
                        </ul>
                    </asp:View>
                    <asp:View runat="server" ID="viewRelatorio">
                        <ul>
                            <li>

                                <asp:Button runat="server" ID="btnBack" CssClass="btazul" Text="voltar" Style="margin-right: -480px"
                                    OnClick="btnVoltarGrid_Onclick" />
                            </li>
                        </ul>
                        <br />
                        <br />
                        <br />
                        <ul class="form">
                            <li>
                                <fieldset>
                                    <uc3:wucRelatorio ID="wucRelatorioPreview" runat="server" />
                                </fieldset>
                            </li>
                        </ul>
                    </asp:View>
                </asp:MultiView>
                <%--<dx:ASPxPopupControl ID="popUpAgenda" ClientInstanceName="popUpAgenda" runat="server"
                    Width="1500px" Height="1500px" Modal="true" PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter"
                    AllowDragging="True" DragElement="Header" AutoUpdatePosition="True" CloseAction="CloseButton"
                    DisappearAfter="0" HeaderText="Agenda">
                    <ContentCollection>
                        <dx:PopupControlContentControl ID="PopupControlContentControl9" runat="server" SupportsDisabledAttribute="True">
                            <ul class="form3col">
                                <li>
                                    <fieldset>
                                        <uc3:wucRelatorio ID="wucRelatorioPreview" runat="server" />
                                    </fieldset>
                                </li>
                            </ul>
                        </dx:PopupControlContentControl>
                    </ContentCollection>
                </dx:ASPxPopupControl>--%>
            </div>
            <div class="box">
            </div>
        </div>
    </div>
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
