<%@ page language="VB" masterpagefile="~/MasterPage.master" autoeventwireup="false" inherits="RelatorioAnual, App_Web_3myatsi1" title="Cronos - Módulo web" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table border="0" cellpadding="0" cellspacing="0" style="width: 100%;"> <%--style="width: 100%; height: 50%;--%>
        <tr>
            <td colspan="3" style="height: 20px; background-color: #5d7b9d; text-align: left" >
                <asp:Label ID="RotuloFiltro" runat="server" Text="Filtro:" ForeColor= "White" ></asp:Label>
                <asp:DropDownList ID="txtFiltro" runat="server" BackColor="#D6E0EE" Font-Size="X-Small"  AutoPostBack="True">
                <asp:ListItem></asp:ListItem></asp:DropDownList>&nbsp;
                <asp:Label ID="LabelValor1" runat="server" Text="Valor: " ForeColor="White" Visible="False"></asp:Label>
                <asp:TextBox ID="txtFiltroValor1" runat="server" Font-Size="X-Small" Visible="False" Width="55px"></asp:TextBox>
                <asp:DropDownList ID="cboCampo1" runat="server" AutoPostBack="True" Font-Size="X-Small" Visible="False" Height="18"></asp:DropDownList>
                <asp:ImageButton ID="btnPesquisarCampo1" runat="server" ImageUrl="~/Imagens/LupaMais.png" ToolTip="Pesquisar" Visible="False" />
                <asp:ImageButton ID="btnOcultarPesquisarCampo1" runat="server" ImageUrl="~/Imagens/LupaMenos.png" ToolTip="Ocultar pesquisa" Visible="False" />&nbsp;
                <asp:TextBox ID="txtFiltroData1" runat="server" Font-Size="X-Small" Visible="False" Width="55px"></asp:TextBox>
                <asp:Label ID="LabelValor2" runat="server" Text="Valor: " ForeColor="White" Visible="False"></asp:Label>
                <asp:TextBox ID="txtFiltroValor2" runat="server" Font-Size="X-Small" Width="55px" Visible="False"></asp:TextBox>
                <asp:DropDownList ID="cboCampo2" runat="server" AutoPostBack="True" Font-Size="X-Small" Visible="False"> </asp:DropDownList>
                <asp:ImageButton ID="btnPesquisarCampo2" runat="server" ImageUrl="~/Imagens/LupaMais.png" ToolTip="Pesquisar" Visible="False" />
                <asp:ImageButton ID="btnOcultarPesquisarCampo2" runat="server" ImageUrl="~/Imagens/LupaMenos.png" ToolTip="Ocultar pesquisa" Visible="False" />&nbsp;
                <asp:TextBox ID="txtFiltroData2" runat="server" Font-Size="X-Small"  Width="55px" Visible="False"></asp:TextBox>
                <asp:Label ID="LabelValor3" runat="server" Text="Valor: " ForeColor="White" Visible="False"></asp:Label>
                <asp:TextBox ID="txtFiltroValor3" runat="server" Font-Size="X-Small" Width="55px" Visible="False"></asp:TextBox>
                <asp:DropDownList ID="cboCampo3" runat="server" AutoPostBack="True" Font-Size="X-Small" Visible="False"></asp:DropDownList>
                <asp:ImageButton ID="btnPesquisarCampo3" runat="server" ImageUrl="~/Imagens/LupaMais.png" ToolTip="Pesquisar" Visible="False" />
                <asp:ImageButton ID="btnOcultarPesquisarCampo3" runat="server" ImageUrl="~/Imagens/LupaMenos.png" ToolTip="Ocultar pesquisa" Visible="False" />&nbsp;
                <asp:TextBox ID="txtFiltroData3" runat="server" Font-Size="X-Small" Visible="False" Width="55px"></asp:TextBox>
                <asp:ImageButton ID="Pesquisar3" runat="server" ImageUrl="~/Imagens/Lupa2.png" ToolTip="Executar filtro" OnClientClick="target=''" Width="24px" Visible="False"/>
                <asp:Label ID="LabelValor4" runat="server" Text="Valor: " ForeColor="White" Visible="False"></asp:Label>
                <asp:TextBox ID="txtFiltroValor4" runat="server" Font-Size="X-Small" Width="55px" Visible="False"></asp:TextBox>
                <asp:DropDownList ID="cboCampo4" runat="server" AutoPostBack="True" Font-Size="X-Small" Visible="False"></asp:DropDownList>
                <asp:ImageButton ID="btnPesquisarCampo4" runat="server" ImageUrl="~/Imagens/LupaMais.png" ToolTip="Pesquisar" Visible="False" />
                <asp:ImageButton ID="btnOcultarPesquisarCampo4" runat="server" ImageUrl="~/Imagens/LupaMenos.png" ToolTip="Ocultar pesquisa" Visible="False" />&nbsp;
                <asp:TextBox ID="txtFiltroData4" runat="server" Font-Size="X-Small" Visible="False" Width="55px"></asp:TextBox>
                <asp:ImageButton ID="Pesquisar4" runat="server" ImageUrl="~/Imagens/Lupa2.png" ToolTip="Executar filtro" OnClientClick="target=''" Width="24px" Visible="False"/>
                <asp:Label ID="LabelValor5" runat="server" Text="Valor: " ForeColor="White" Visible="False"></asp:Label>
                <asp:TextBox ID="txtFiltroValor5" runat="server" Font-Size="X-Small" Width="55px" Visible="False"></asp:TextBox>
                <asp:DropDownList ID="cboCampo5" runat="server" AutoPostBack="True" Font-Size="X-Small" Visible="False"></asp:DropDownList>
                <asp:ImageButton ID="btnPesquisarCampo5" runat="server" ImageUrl="~/Imagens/LupaMais.png" ToolTip="Pesquisar" Visible="False" />
                <asp:ImageButton ID="btnOcultarPesquisarCampo5" runat="server" ImageUrl="~/Imagens/LupaMenos.png" ToolTip="Ocultar pesquisa" Visible="False" />&nbsp;
                <asp:TextBox ID="txtFiltroData5" runat="server" Font-Size="X-Small" Visible="False" Width="55px"></asp:TextBox>
                <asp:ImageButton ID="Pesquisar5" runat="server" ImageUrl="~/Imagens/Lupa2.png" ToolTip="Executar filtro" OnClientClick="target=''" Width="24px" Visible="False"/>
                <asp:Label ID="LabelValor6" runat="server" Text="Valor: " ForeColor="White"  Visible="False"></asp:Label>
                <asp:TextBox ID="txtFiltroValor6" runat="server" Font-Size="X-Small" Width="55px" Visible="False"></asp:TextBox>
                <asp:DropDownList ID="cboCampo6" runat="server" AutoPostBack="True" Font-Size="X-Small" Visible="False"></asp:DropDownList>
                <asp:ImageButton ID="btnPesquisarCampo6" runat="server" ImageUrl="~/Imagens/LupaMais.png" ToolTip="Pesquisar" Visible="False" />
                <asp:ImageButton ID="btnOcultarPesquisarCampo6" runat="server" ImageUrl="~/Imagens/LupaMenos.png" ToolTip="Ocultar pesquisa" Visible="False" />&nbsp;
                <asp:TextBox ID="txtFiltroData6" runat="server" Font-Size="X-Small" Visible="False" Width="55px"></asp:TextBox>
                <asp:ImageButton ID="Pesquisar6" runat="server" ImageUrl="~/Imagens/Lupa2.png" ToolTip="Executar filtro" OnClientClick="target=''" Width="24px" Visible="False"/>           
            </td>
            <td colspan="3" style="height: 20px; background-color: #5d7b9d; text-align: Right" >
                <asp:ImageButton ID="lnkInserir" runat="server" ImageUrl="~/Imagens/Add.png" ToolTip="Inserir novo registo." Width="30px"/>
                <asp:ImageButton ID="btnImportarPrevisao" runat="server" ImageUrl="~/Imagens/Importar4.png" ToolTip="Importar previsão das receitas e despesas do ano anterior." Width="30px"/>
                <asp:ImageButton ID="btnMovimentos" runat="server" ImageUrl="~/Imagens/Movimentos.png" PostBackUrl="~/Condominios/Movimentos.aspx" ToolTip="Movimentos Receitas / Despesas" OnClientClick="target=''" Width="30px"/>
                <asp:ImageButton ID="btnTabelasAuxiliares" runat="server" ImageUrl="~/Imagens/Tabelas.png" ToolTip="Configurar tabelas auxiliares" Width="30px" Visible="True"/>
                <%--<asp:ImageButton ID="btnOpenOffice" runat="server" ImageUrl="~/Imagens/OpenOffice.png" ToolTip="Exportar para Csv / Open Office" Width="30px"/>--%>
                <%--<asp:ImageButton ID="btnExcel" runat="server" ImageUrl="~/Imagens/Excel.png" ToolTip="Exportar para Excel" Width="30px"/>--%>
                <%--<asp:ImageButton ID="btnWord" runat="server" ImageUrl="~/Imagens/Word.png" ToolTip="Exportar para Word" Width="30px"/>--%>
                <asp:ImageButton ID="btnImprimir" runat="server" ImageUrl="~/Imagens/print.gif" ToolTip="Imprimir" OnClientClick="target=''" Width="30px"/>
            </td>

        </tr>
        <tr>
            <td colspan="6" 
                style="height: 20px; background-color: White; text-align: center" 
                align="left"> 
                <asp:Label ID="lblMsg" runat="server" Visible="False" BackColor="White"></asp:Label>&nbsp;
                <asp:Label ID="lblFiltroContador" runat="server" Visible="False" BackColor="White"></asp:Label>&nbsp;
                <asp:Label ID="lblAccao" runat="server" Visible="False" BackColor="White"></asp:Label>&nbsp;
                <asp:Label ID="lblDataInicioAno" runat="server" Visible="False" BackColor="White"></asp:Label>&nbsp;
                <asp:Label ID="lblDataFimAno" runat="server" Visible="False" BackColor="White"></asp:Label>&nbsp;
                <asp:Label ID="lblAno" runat="server" Visible="False" BackColor="White"></asp:Label>&nbsp;
                <asp:Label ID="lblTipo" runat="server" Visible="False" BackColor="White"></asp:Label>&nbsp;
                <asp:Label ID="lblTipoMovimento" runat="server" Visible="False" BackColor="White"></asp:Label>&nbsp;
                <asp:Label ID="lblOrigemDados" runat="server" Visible="False" BackColor="White"></asp:Label>&nbsp;
            </td>
        </tr>

        <tr>
            <td colspan="6" style="text-align: center">  
            <asp:Panel ID="pnlEdit" runat="server" Visible="False" Width="100%">
                <table border="0" cellpadding="0" cellspacing="0" style="border-right: black 1px solid;
                        border-top: black 1px solid; border-left: black 1px solid; width: 100%; border-bottom: black 1px solid;
                        background-color: #d6e0ee">
                    <tr>
                        <td style="height: 20px; background-color: #d6e0ee; text-align: center">
                            <asp:Label ID="TituloEditarDados" runat="server" Font-Bold="True" Font-Size="X-Small" ForeColor="Blue" Text="Inserir / Editar Dados"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                    <td style="height: 20px; background-color: #d6e0ee; text-align: center">
                        <asp:Label ID="RotuloData" runat="server" Text="Data:"></asp:Label>&nbsp;
                        <asp:TextBox ID="txtData" runat="server" BorderColor="Black" BorderWidth="1px" Font-Size="X-Small" Width="60px"></asp:TextBox>&nbsp;&nbsp;
                        <asp:Label ID="RotuloCodigoMaterialDescricao" runat="server" Text="Descrição:"></asp:Label>&nbsp;
                        <asp:DropDownList ID="cboCodigoMaterialDescricao" runat="server" Font-Size="X-Small" 
                            AutoPostBack="True"></asp:DropDownList>&nbsp;
                        <asp:ImageButton ID="btnCodigoMaterialDescricao" runat="server" ImageUrl="~/Imagens/EditMais.png" 
                            ToolTip="Acrescentar nova descrição." Width="16px" Visible="False" />&nbsp;
                        <asp:TextBox ID="txtCodigoMaterialDescricao" runat="server" BorderColor="Black" BorderWidth="1px" 
                            Font-Size="X-Small" Width="200px" Visible="False" ></asp:TextBox>&nbsp;
                        <asp:ImageButton ID="btnNovoCodigoMaterialDescricaoGravar" runat="server" 
                            ImageUrl="~/Imagens/Ok.png" ToolTip="Gravar nova descrição." Visible="False" />&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:Label ID="RotuloCondomino" runat="server" Text="Condómino:" Visible="False"></asp:Label>&nbsp;
                        <asp:DropDownList ID="cboNumeroEmpregado" runat="server" Font-Size="X-Small" Visible="False"></asp:DropDownList>&nbsp;&nbsp;
                        <asp:Label ID="RotuloDespesa" runat="server" Text="Despesa:"></asp:Label>&nbsp;
                        <asp:TextBox ID="txtDespesa" runat="server" BorderColor="Black" BorderWidth="1px" Font-Size="X-Small" Width="47px"></asp:TextBox>&nbsp;&nbsp;
                        <asp:Label ID="RotuloReceita" runat="server" Text="Receita:"></asp:Label>&nbsp;
                        <asp:TextBox ID="txtReceita" runat="server" BorderColor="Black" BorderWidth="1px" Font-Size="X-Small" Width="47px"></asp:TextBox>&nbsp;&nbsp;
                        <asp:Label ID="RotuloPagamentosAnual" runat="server" Text="Anual:"></asp:Label>&nbsp;
                        <asp:TextBox ID="txtPagamentosAnual" runat="server" BorderColor="Black" BorderWidth="1px" Font-Size="X-Small" Width="47px"></asp:TextBox>&nbsp;&nbsp;
                        <%--<asp:LinkButton ID="lnkGravar" runat="server">Gravar</asp:LinkButton>&nbsp;&nbsp;--%>
                        <asp:Label ID="RotuloInserir" runat="server" Text="Inserir" ForeColor="#336699"></asp:Label>
                        <asp:ImageButton ID="btnNovoRegisto" runat="server" 
                            ImageUrl="~/Imagens/Add2.png" ToolTip="Inserir Novo registo." />&nbsp;&nbsp;
                        <asp:Label ID="RotuloAlterar" runat="server" Text="Alterar" ForeColor="#336699" ></asp:Label>
                        <asp:ImageButton ID="btnAlterarRegisto" runat="server" 
                            ImageUrl="~/Imagens/Edit2.png" ToolTip="Alterar registo." Width="16px" />&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:LinkButton ID="lnkCancelar" runat="server">Sair</asp:LinkButton>
                        <br /><br />
                    </td>
                    </tr>

                    <tr>
                    <td colspan="6">
                        <asp:GridView ID="grdDadosEdit" runat="server" CellPadding="4" ForeColor="#333333" 
                                    GridLines="Vertical" Width="100%" AllowPaging="True" PageSize="4" 
                                    AutoGenerateColumns="False">
                        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                        <Columns>
                            <asp:CommandField SelectText="" ShowSelectButton="True" ButtonType="Image" 
                                SelectImageUrl="~/Imagens/Edit2.png" 
                                DeleteImageUrl="~/Imagens/Delete2.png" ShowDeleteButton="True" />
                            <asp:BoundField DataField="Data" HeaderText="Data" />
                            <asp:BoundField DataField="Descricao" HeaderText="Descrição" />
                            <asp:BoundField DataField="Despesa" HeaderText="Despesa" />
                            <asp:BoundField DataField="Receita" HeaderText="Receita" />
                            <asp:BoundField DataField="Saldo" HeaderText="Saldo" />
                            <%--<asp:TemplateField HeaderText="doc.">
                                <ItemTemplate>
                                    <table cellpadding="0" cellspacing="0" class="style3">
                                        <tr>
                                        <td>
                                            <asp:imagebutton ID="btnPdf" runat="server"  
                                                Height="12px" OnClick="btnVerPdf_Click" ImageUrl="~/Imagens/pdf.png" ToolTip="Baixar documento 'Pdf'." Width="12px" />
                                            <asp:imagebutton ID="btnAnexarPdf" runat="server"  
                                                Height="12px" OnClick="btnAnexarPdf_Click" ImageUrl="~/Imagens/Edit2.png" ToolTip="Anexar documento 'Pdf'." Width="12px" />
                                            <asp:imagebutton ID="btnEliminarPdf" runat="server"  
                                                Height="12px" OnClick="btnEliminarPdf_Click" ImageUrl="~/Imagens/Delete2.png" ToolTip="Eliminar documento 'pdf'." Width="12px" />
                                        </td>
                                        </tr>
                                    </table>
                                </ItemTemplate>
                            </asp:TemplateField>--%>

                            <asp:BoundField DataField="Movimento" HeaderText="" />
                            <asp:BoundField DataField="Contador" HeaderText="" />
                            <asp:BoundField DataField="CodigoMaterial" HeaderText="" />
                            <asp:BoundField DataField="QuantidadeEntrada" HeaderText="" />
                            <asp:BoundField DataField="QuantidadeSaida" HeaderText="" />
                            <asp:BoundField DataField="Tipo" HeaderText="" />
                            <asp:BoundField DataField="IdObjecto" HeaderText="" />
                            <asp:BoundField DataField="NumeroEmpregado" HeaderText="" />
                        </Columns>
                        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                        <EditRowStyle BackColor="#999999" />
                        <PagerSettings Visible="true"  Position="Bottom" Mode="NextPreviousFirstLast" FirstPageImageUrl="~\Imagens/SetaPrimeiro.png" PreviousPageImageUrl="~\Imagens/SetaEsquerda.png" NextPageImageUrl="~\Imagens/SetaDireita.png" LastPageImageUrl="~\Imagens/SetaUltimo.png" />
                        <PagerStyle BackColor="#F7F6F3" ForeColor="#5D7B9D" Font-Size="Small" HorizontalAlign="Center" />
                        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                        </asp:GridView>
                        <br /><%--<br />--%>
                    </td>
                    </tr>

                    </table>
                </asp:Panel>
            </td>
        </tr>

        <tr>
        <td colspan="6" style="text-align: center">
            <asp:Panel ID="pnlTabelasAuxiliares" runat="server" Visible="False" Width="100%">
            <table border="0" cellpadding="0" cellspacing="0" style="border-right: black 1px solid;
                    border-top: black 1px solid; border-left: black 1px solid; width: 100%; border-bottom: black 1px solid;
                    background-color: #d6e0ee">
                <tr>
                    <td style="height: 20px; background-color: #d6e0ee; text-align: center">
                        <asp:Label ID="RotuloTabela" runat="server" Font-Size="X-Small" Text="Tabela:"></asp:Label>&nbsp;&nbsp;
                        <asp:DropDownList ID="cboTabela" runat="server" AutoPostBack="True" 
                            Font-Size="X-Small" Width="200px" Height="20px"> </asp:DropDownList>
                    </td>
                </tr> 
                <tr>
                    <td style="height: 30px; background-color: #d6e0ee; text-align: center">
                        <br /> 
                        <asp:Label ID="RotuloCodigoTabelaAuxiliar" runat="server" Text="Código:"></asp:Label>&nbsp;
                        <asp:TextBox ID="txtTabelaAuxiliarCodigo" runat="server" BorderColor="Black" BorderWidth="1px" 
                            Font-Size="X-Small" Width="100px"></asp:TextBox>&nbsp;
                        <asp:Label ID="RotuloNumero" runat="server" Text="Número:"></asp:Label>&nbsp;
                        <asp:TextBox ID="txtNumero" runat="server" BorderWidth="1px" Font-Size="X-Small" Width="30px"></asp:TextBox>&nbsp;
                        <asp:Label ID="RotuloDescricao" runat="server" Text="Descrição:"></asp:Label>&nbsp;
                        <asp:TextBox ID="txtDescricaoTabelaAuxiliar" runat="server" BorderColor="Black" BorderWidth="1px" 
                            Font-Size="X-Small" Width="235px"></asp:TextBox>&nbsp;

                        <asp:LinkButton ID="lnkTabelaAuxiliarGravar" runat="server">Gravar</asp:LinkButton>&nbsp;&nbsp;
                        <asp:ImageButton ID="btnTabelaAuxiliarNovoFiltro" runat="server" 
                            ImageUrl="~/Imagens/Add2.png" ToolTip="Novo filtro." />&nbsp;&nbsp;
                        <asp:ImageButton ID="btnTabelaAuxiliarAlterarFiltro" runat="server" 
                            ImageUrl="~/Imagens/Edit2.png" ToolTip="Alterar filtro." Width="16px" />&nbsp;&nbsp;
                        <asp:LinkButton ID="lnkTabelaAuxiliarSair" runat="server">Sair</asp:LinkButton>
                        <br /> <br />
                        <asp:Label ID="RotuloOrdenacao" runat="server" Text="Ordenação dos dados:" Visible="False"></asp:Label>&nbsp;
                        <asp:DropDownList ID="cboCampo1Ordenacao" runat="server" Font-Size="X-Small" 
                                    Visible="False"> </asp:DropDownList>&nbsp;
                        <br />  <br />

                        <asp:GridView ID="grdDadosTabelasAuxiliares" runat="server" CellPadding="4" HorizontalAlign="Center" 
                                PageSize="4" Width="702px" Visible="False" RowStyle-HorizontalAlign="Left">
                            <Columns>
                                <asp:CommandField SelectText="" ShowSelectButton="True" ButtonType="Image" 
                                    SelectImageUrl="~/Imagens/Edit2.png" 
                                    DeleteImageUrl="~/Imagens/Delete2.png" ShowDeleteButton="True" />
                            </Columns>
                            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                            <EditRowStyle BackColor="#999999" />
                            <PagerSettings Visible="true"  Position="Bottom" Mode="NextPreviousFirstLast" FirstPageImageUrl="~/Imagens/SetaPrimeiro.png" PreviousPageImageUrl="~/Imagens/SetaEsquerda.png" NextPageImageUrl="~/Imagens/SetaDireita.png" LastPageImageUrl="~/Imagens/SetaUltimo.png" />
                            <PagerStyle BackColor="#F7F6F3" ForeColor="#5D7B9D" Font-Size="Small" HorizontalAlign="Center" />
                            <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                            <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                            <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                        </asp:GridView>
                </td>
                </tr>


                <tr>
                <td>
                    <asp:GridView ID="grdDadosOpcoesFiltros" runat="server"  
                            AutoGenerateColumns="False" CellPadding="4" HorizontalAlign="Center" 
                                PageSize="4" Width="600px">
                    <Columns>
                        <asp:CommandField SelectText="" ShowSelectButton="True" ButtonType="Image" SelectImageUrl="~/Imagens/Edit2.png" 
                                    DeleteImageUrl="~/Imagens/Delete2.png" ShowDeleteButton="True" />
                        <asp:BoundField DataField="Descricao" HeaderText="Filtro" />
                        <asp:TemplateField HeaderText="Activo">
                            <ItemTemplate>
                                <asp:CheckBox ID="chkFiltroActivo" runat="server" AutoPostBack="True" OnCheckedChanged="chkFiltroActivo_Clicked" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="Filtro" HeaderText="" />
                        <asp:BoundField DataField="Activo" HeaderText="" />
                    </Columns>
                    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                    <EditRowStyle BackColor="#999999" />
                    <PagerSettings Visible="true"  Position="Bottom" Mode="NextPreviousFirstLast" FirstPageImageUrl="~/Imagens/SetaPrimeiro.png" PreviousPageImageUrl="~/Imagens/SetaEsquerda.png" NextPageImageUrl="~/Imagens/SetaDireita.png" LastPageImageUrl="~/Imagens/SetaUltimo.png" />
                    <PagerStyle BackColor="#F7F6F3" ForeColor="#5D7B9D" Font-Size="Small" HorizontalAlign="Center" />
                    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                    <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                    </asp:GridView>

                    <br />  
                    <asp:Label ID="RotuloContador" runat="server" Text="Ordem:" Visible="False"></asp:Label>&nbsp;
                    <asp:TextBox ID="txtContador" runat="server" BorderWidth="1px" Font-Size="X-Small" 
                                Width="25px" Visible="False"></asp:TextBox>&nbsp;
                    <asp:TextBox ID="txtParenteses1" runat="server" BorderWidth="1px" Font-Size="X-Small" 
                                Width="10px" Visible="False"></asp:TextBox>&nbsp;
                    <asp:Label ID="RotulocboCamposOpcoesFiltros" runat="server" Text="Campo:" Visible="False"></asp:Label>&nbsp;
                    <asp:DropDownList ID="cboCamposOpcoesFiltros" runat="server" Font-Size="X-Small" 
                                Visible="False"> </asp:DropDownList>&nbsp;
                    <asp:Label ID="RotuloOperador" runat="server" Text="Operador:" Visible="False"></asp:Label>&nbsp;
                    <asp:DropDownList ID="cboOperadores" runat="server" Font-Size="X-Small" 
                                Visible="False"> </asp:DropDownList>&nbsp;
                    <asp:Label ID="RotuloValorOpcoesFiltros" runat="server" Text="Valor:" Visible="False"></asp:Label>&nbsp;
                    <asp:TextBox ID="txtValorOpcoesFiltros" runat="server" BorderWidth="1px" Font-Size="X-Small" 
                                Width="80px" Visible="False"></asp:TextBox>&nbsp;
                    <asp:TextBox ID="txtParenteses2" runat="server" BorderWidth="1px" Font-Size="X-Small" 
                                Width="10px" Visible="False"></asp:TextBox>&nbsp;
                    <asp:Label ID="RotuloCondicao" runat="server" Text="Condição:" Visible="False"></asp:Label>&nbsp;
                    <asp:DropDownList ID="cboCondicao" runat="server" Font-Size="X-Small" 
                                Visible="False"> </asp:DropDownList>&nbsp;&nbsp;
                    <asp:ImageButton ID="btnNovoCampo" runat="server" 
                        ImageUrl="~/Imagens/Add2.png" ToolTip="Inserir Novo registo." Visible="False" />&nbsp;
                    <asp:ImageButton ID="btnAlterarCampo" runat="server" 
                        ImageUrl="~/Imagens/Edit2.png" ToolTip="Alterar filtro." Width="16px" Visible="False" />
                    <br /> <br />

                    <asp:GridView ID="grdDadosOpcoesFiltrosCampos" runat="server"  
                            AutoGenerateColumns="False" CellPadding="4" HorizontalAlign="Center" 
                                PageSize="4" Width="800px" Visible="False">
                    <Columns>
                        <asp:CommandField SelectText="" ShowSelectButton="True" ButtonType="Image" SelectImageUrl="~/Imagens/Edit2.png" 
                                    DeleteImageUrl="~/Imagens/Delete2.png" ShowDeleteButton="True" />
                        <asp:BoundField DataField="Descricao" HeaderText="Filtro" />
                        <asp:BoundField DataField="Contador" HeaderText="Ordem"/>
                        <asp:BoundField DataField="Parenteses1" HeaderText=" " />
                        <asp:TemplateField HeaderText="Campo">
                        <ItemTemplate>
                            <asp:DropDownList ID="dropOpcoesCampos" runat="server" AutoPostBack="True" 
                                Font-Size="X-Small" CssClass="drop" Height="15px" onload="dropOpcoesCampos_Load" 
                                onselectedindexchanged="dropOpcoesCampos_SelectedIndexChanged" >
                            </asp:DropDownList>
                            </span>
                        </ItemTemplate>                            
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Operador">
                            <ItemTemplate>
                            <asp:DropDownList ID="DropOperacao" runat="server" AutoPostBack="True" 
                                Font-Size="X-Small" CssClass="drop" Height="15px" onload="DropOperacao_Load" 
                                onselectedindexchanged="DropOperacao_SelectedIndexChanged">
                            </asp:DropDownList>
                            </span>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="Valor" HeaderText="Valor" />
                        <asp:BoundField DataField="Parenteses2" HeaderText=" " />
                        <asp:TemplateField HeaderText="Condição">
                            <ItemTemplate>
                            <asp:DropDownList ID="DropConjuncao" runat="server" AutoPostBack="True" 
                                Font-Size="X-Small" CssClass="drop" Height="15px" onload="DropConjuncao_Load" 
                                onselectedindexchanged="DropConjuncao_SelectedIndexChanged">
                            </asp:DropDownList>
                            </span>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="Tipo" HeaderText="" />
                        <asp:BoundField DataField="Filtro2" HeaderText="" />
                        <asp:BoundField DataField="Opcao2" HeaderText=""/>
                        <asp:BoundField DataField="Campo2" HeaderText=""/>
                        <asp:BoundField DataField="Contador2" HeaderText=""/>
                        <asp:BoundField DataField="NumeroEmpregado2" HeaderText=""/>
                        <asp:BoundField DataField="Condicao" HeaderText=""/>
                        <asp:BoundField DataField="Conjuncao" HeaderText=""/>
                    </Columns>
                    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                    <EditRowStyle BackColor="#999999" />
                    <PagerSettings Visible="true"  Position="Bottom" Mode="NextPreviousFirstLast" FirstPageImageUrl="~/Imagens/SetaPrimeiro.png" PreviousPageImageUrl="~/Imagens/SetaEsquerda.png" NextPageImageUrl="~/Imagens/SetaDireita.png" LastPageImageUrl="~/Imagens/SetaUltimo.png" />
                    <PagerStyle BackColor="#F7F6F3" ForeColor="#5D7B9D" Font-Size="Small" HorizontalAlign="Center" />
                    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                    <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                    </asp:GridView>
                    <br />
                </td>
                </tr>

            </table>
            </asp:Panel>
        </td>
        </tr>

        <tr>
        <td colspan="6" style="text-align: center">
            <asp:Panel ID="pnlDados" runat="server" Visible="true" Width="100%">
            <table border="0" cellpadding="0" cellspacing="0" style="border-right: black 1px solid;
                    border-top: black 1px solid; border-left: black 1px solid; width: 100%; border-bottom: black 1px solid;
                    background-color: #d6e0ee">

        <tr>
            <td align="left" colspan="3" style="height: 20px; background-color: #5d7b9d; text-align: left">
                <asp:Label ID="lblTituloRelatorio" runat="server" Font-Bold="True" Font-Size="X-Small" ForeColor="Yellow" Text="Relatório de Administração relativo a"></asp:Label>
                <asp:Label ID="lblAnoRelatorio" runat="server" Font-Bold="True" Font-Size="X-Small" ForeColor="Yellow" ></asp:Label>
            </td>
            <td >
            </td>
            <td align="left" colspan="3" style="height: 20px; background-color: #5d7b9d; text-align: left">
                <asp:Label ID="lblTituloPrevisao" runat="server" Font-Bold="True" Font-Size="X-Small" ForeColor="Yellow" Text="Previsão das receitas e despesas para o ano"></asp:Label>
                <asp:Label ID="lblAnoPrevisao" runat="server" Font-Bold="True" Font-Size="X-Small" ForeColor="Yellow" ></asp:Label>
            </td>
        </tr>

        <tr>
            <td colspan="3" style="text-align: left">
                <br />
                <asp:GridView ID="grdDadosRelatorio" runat="server" CellPadding="4" ForeColor="#333333" 
                            GridLines="Vertical" Width="100%" AllowPaging="True" PageSize="30" 
                            AutoGenerateColumns="False" Height="100%">
                <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                <Columns>
                    <%--<asp:CommandField SelectText="&gt;" ShowSelectButton="True" ButtonType="Image" SelectImageUrl="~/Imagens/Selecao.png" />--%>
                    <%--<asp:CommandField SelectText="" ShowSelectButton="True" ButtonType="Image" 
                        SelectImageUrl="~/Imagens/Edit2.png" 
                        DeleteImageUrl="~/Imagens/Delete2.png" ShowDeleteButton="True" />--%>
                    <asp:TemplateField HeaderText="">
                        <ItemTemplate>
                            <table cellpadding="0" cellspacing="0" class="style3">
                                <tr>
                                <td>
                                    <asp:imagebutton ID="btnEliminarMovimento" runat="server"   
                                        Height="12px" OnClick="btnEliminarMovimento_Click" ImageUrl="~/Imagens/Delete2.png" ToolTip="Eliminar registo." Width="12px" />
                                    <asp:imagebutton ID="btnEditarMovimento" runat="server"   
                                        Height="12px" OnClick="btnEditarMovimento_Click" ImageUrl="~/Imagens/Edit2.png" ToolTip="Editar registo." Width="12px" />
                                </td>
                                </tr>
                            </table>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="Descricao" HeaderText="Descrição" />
                    <asp:BoundField DataField="Totais" HeaderText="" />
                    <asp:BoundField DataField="Despesa" HeaderText="Despesa" ItemStyle-HorizontalAlign="Right" />
                    <asp:BoundField DataField="Receita" HeaderText="Receita" ItemStyle-HorizontalAlign="Right" />
                    <asp:BoundField DataField="Tipo" HeaderText="" />
                    <asp:BoundField DataField="TipoMovimento" HeaderText="" />
                    <asp:BoundField DataField="CodigoMaterial" HeaderText="" />
                    <asp:BoundField DataField="Data" HeaderText="" />
                </Columns>
                <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                <EditRowStyle BackColor="#999999" />
                <PagerSettings Visible="true"  Position="Bottom" Mode="NextPreviousFirstLast" FirstPageImageUrl="~\Imagens/SetaPrimeiro.png" PreviousPageImageUrl="~\Imagens/SetaEsquerda.png" NextPageImageUrl="~\Imagens/SetaDireita.png" LastPageImageUrl="~\Imagens/SetaUltimo.png" />
                <PagerStyle BackColor="#F7F6F3" ForeColor="#5D7B9D" Font-Size="Small" />
                <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                </asp:GridView>
                <br />
                <asp:GridView ID="grdDadosContaPrazo" runat="server" CellPadding="4" ForeColor="#333333" 
                            GridLines="Vertical" Width="100%" AllowPaging="True" PageSize="4" 
                            AutoGenerateColumns="False" Height="100%">
                <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                <Columns>
                    <%--<asp:CommandField SelectText="&gt;" ShowSelectButton="True" ButtonType="Image" SelectImageUrl="~/Imagens/Selecao.png" />--%>
                    <asp:CommandField SelectText="" ShowSelectButton="True" ButtonType="Image" 
                        SelectImageUrl="~/Imagens/Edit2.png" 
                        DeleteImageUrl="~/Imagens/Delete2.png" ShowDeleteButton="True" />
                    <asp:BoundField DataField="Descricao" HeaderText="Informação adicional                                                 " />
                    <%--<asp:BoundField DataField="Totais" HeaderText="       " />--%>
                    <%--<asp:BoundField DataField="Despesa" HeaderText="       " />--%>
                    <asp:BoundField DataField="Receita" HeaderText="Receita" ItemStyle-HorizontalAlign="Right" />
                    <asp:BoundField DataField="Data" HeaderText="" />
                    <asp:BoundField DataField="Codigo" HeaderText="" />
                </Columns>
                <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                <EditRowStyle BackColor="#999999" />
                <PagerSettings Visible="true"  Position="Bottom" Mode="NextPreviousFirstLast" FirstPageImageUrl="~\Imagens/SetaPrimeiro.png" PreviousPageImageUrl="~\Imagens/SetaEsquerda.png" NextPageImageUrl="~\Imagens/SetaDireita.png" LastPageImageUrl="~\Imagens/SetaUltimo.png" />
                <PagerStyle BackColor="#F7F6F3" ForeColor="#5D7B9D" Font-Size="Small" HorizontalAlign="center" />
                <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                </asp:GridView>
            </td>
            <td>
            </td>
            <td colspan="3" style="text-align: left">
                <br />
                <asp:GridView ID="grdDadosPrevisao" runat="server" CellPadding="4" ForeColor="#333333" 
                            GridLines="Vertical" Width="100%" AllowPaging="True" PageSize="20" 
                            AutoGenerateColumns="False" Height="100%">
                <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                <Columns>
                    <asp:CommandField SelectText="" ShowSelectButton="True" ButtonType="Image" 
                        SelectImageUrl="~/Imagens/Edit2.png" 
                        DeleteImageUrl="~/Imagens/Delete2.png" ShowDeleteButton="True" />
                    <asp:BoundField DataField="Descricao" HeaderText="Descrição" />
                    <asp:BoundField DataField="Totais" HeaderText="" />
                    <asp:BoundField DataField="Despesa" HeaderText="Despesa" ItemStyle-HorizontalAlign="Right"/>
                    <asp:BoundField DataField="Receita" HeaderText="Receita" ItemStyle-HorizontalAlign="Right"/>
                    <asp:BoundField DataField="Tipo" HeaderText="" />
                    <asp:BoundField DataField="Codigo" HeaderText="" />
                    <asp:BoundField DataField="Data" HeaderText="" />
                </Columns>
                <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                <EditRowStyle BackColor="#999999" />
                <PagerSettings Visible="true"  Position="Bottom" Mode="NextPreviousFirstLast" FirstPageImageUrl="~\Imagens/SetaPrimeiro.png" PreviousPageImageUrl="~\Imagens/SetaEsquerda.png" NextPageImageUrl="~\Imagens/SetaDireita.png" LastPageImageUrl="~\Imagens/SetaUltimo.png" />
                <PagerStyle BackColor="#F7F6F3" ForeColor="#5D7B9D" Font-Size="Small" HorizontalAlign="Center" />
                <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                </asp:GridView>
                <br />
                <asp:GridView ID="grdDadosPagamentos" runat="server" CellPadding="4" ForeColor="#333333" 
                            GridLines="Vertical" Width="100%" AllowPaging="True" PageSize="10" 
                            AutoGenerateColumns="False" Height="100%">
                <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                <Columns>
                    <%--<asp:CommandField SelectText="" ShowSelectButton="True" ButtonType="Image" 
                        SelectImageUrl="~/Imagens/Edit2.png" 
                        DeleteImageUrl="~/Imagens/Delete2.png" ShowDeleteButton="True" />--%>
                     <asp:TemplateField HeaderText="">
                        <ItemTemplate>
                            <table cellpadding="0" cellspacing="0" class="style3">
                                <tr>
                                <td>
                                    <asp:imagebutton ID="btnPagamentosEliminarMovimento" runat="server"   
                                        Height="12px" OnClick="btnPagamentosEliminarMovimento_Click" ImageUrl="~/Imagens/Delete2.png" ToolTip="Eliminar registo." Width="12px" />
                                    <asp:imagebutton ID="btnPagamentosEditarMovimento" runat="server"   
                                        Height="12px" OnClick="btnPagamentosEditarMovimento_Click" ImageUrl="~/Imagens/Edit2.png" ToolTip="Editar registo." Width="12px" />
                                </td>
                                </tr>
                            </table>
                        </ItemTemplate>
                    </asp:TemplateField>
                   <asp:BoundField DataField="Descricao" HeaderText="Pagamentos a efectuar pelos condóminos" />
                    <asp:BoundField DataField="Anual" HeaderText="Anual" ItemStyle-HorizontalAlign="Right"/>
                    <asp:BoundField DataField="Prestacao" HeaderText="Prestação" ItemStyle-HorizontalAlign="Right"/>
                    <asp:BoundField DataField="Codigo" HeaderText="" />
                    <asp:BoundField DataField="Data" HeaderText="" />
                </Columns>
                <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                <EditRowStyle BackColor="#999999" />
                <PagerSettings Visible="true"  Position="Bottom" Mode="NextPreviousFirstLast" FirstPageImageUrl="~\Imagens/SetaPrimeiro.png" PreviousPageImageUrl="~\Imagens/SetaEsquerda.png" NextPageImageUrl="~\Imagens/SetaDireita.png" LastPageImageUrl="~\Imagens/SetaUltimo.png" />
                <PagerStyle BackColor="#F7F6F3" ForeColor="#5D7B9D" Font-Size="Small" HorizontalAlign="Center" />
                <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                </asp:GridView>
                <%--<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />--%>
            </td>
        </tr>
        </table>
        </asp:Panel>
        </td>
        </tr>
        <tr> <td style="height: 10px; background-color: White;"> </td> </tr>

    </table>
</asp:Content>

