<%@ page language="VB" masterpagefile="~/MasterPage.master" autoeventwireup="false" inherits="pontopessoal, App_Web_wf4nvyqh" title="Cronos - Módulo web" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table border="0" cellpadding="0" cellspacing="0" style="width: 100%;" >
        <tr>
            <td align="left" colspan="2" style="height: 20px; background-color: #5d7b9d; text-align: center">
                <asp:Label ID="Label5" runat="server" Font-Bold="True" Font-Size="X-Small" ForeColor="Yellow" Text="Ponto de Pessoal"></asp:Label></td>
        </tr>
        <tr>
            <td 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"></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:ImageButton ID="btnEditPesquisaCampo1" runat="server" ImageUrl="~/Imagens/Edit2.png" ToolTip="Alterar Ordenação Pesquisa" Visible="False" />
                <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:ImageButton ID="btnEditPesquisaCampo2" runat="server" ImageUrl="~/Imagens/Edit2.png" ToolTip="Alterar Ordenação Pesquisa" Visible="False" />
                <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:ImageButton ID="btnEditPesquisaCampo3" runat="server" ImageUrl="~/Imagens/Edit2.png" ToolTip="Alterar Ordenação Pesquisa" Visible="False" />
                <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:ImageButton ID="btnEditPesquisaCampo4" runat="server" ImageUrl="~/Imagens/Edit2.png" ToolTip="Alterar Ordenação Pesquisa" Visible="False" />
                <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:ImageButton ID="btnEditPesquisaCampo5" runat="server" ImageUrl="~/Imagens/Edit2.png" ToolTip="Alterar Ordenação Pesquisa" Visible="False" />
                <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:ImageButton ID="btnEditPesquisaCampo6" runat="server" ImageUrl="~/Imagens/Edit2.png" ToolTip="Alterar Ordenação Pesquisa" Visible="False" />
                <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 style="height: 20px; background-color: #5d7b9d; text-align: Right" >
                <asp:ImageButton ID="btnProcessar" runat="server" ImageUrl="~/Imagens/Proc.Ico" EnableTheming="False" ToolTip="Reprocessar." OnClientClick="target=''" Width="30px"/>
                <asp:ImageButton ID="btnInserir" runat="server" ImageUrl="~/Imagens/Add.png" ToolTip="Inserir registo de ponto." OnClientClick="target=''" Width="30px"/>
                <asp:ImageButton ID="lnkAlterardePara" runat="server" ImageUrl="~/Imagens/Edit.png" ToolTip="Alteração em bloco (Acrescentar/Diminuir 1 Hora)" Width="30px" Visible="False"/>
                <asp:ImageButton ID="lnkEliminar" runat="server" ImageUrl="~/Imagens/Delete.png" ToolTip="Eliminação em bloco" OnClientClick="target=''" Width="30px" Visible="False"/>
                <asp:ImageButton ID="btnImportacaoFicheiroPonto" runat="server" ImageUrl="~/Imagens/Importar2.png" EnableTheming="False" ToolTip="Importar registos de ponto de (Ficheiro *.dat, *.txt, *.csv ou *.mdb)." OnClientClick="target=''" Width="30px"/>
                <asp:ImageButton ID="btnImportar" runat="server" ImageUrl="~/Imagens/Importar.png" ToolTip="Importar ponto de cartões não definidos." OnClientClick="target=''" Width="30px"  Visible="False"/>
                <%--<asp:ImageButton ID="lnkTrabalhoPrevistoEfectuado" runat="server" ImageUrl="~/Imagens/Calendario1.png" PostBackUrl="PontoPessoalHorario.aspx" ToolTip="Horário / Ponto" Width="30px"/>--%>
                <%--<asp:ImageButton ID="lnkControlo2CentroCustoCategoria" runat="server" ImageUrl="~/Imagens/Calendario1.png" PostBackUrl="~/Controlo2CentroCustoCategoria.aspx" ToolTip="Controlo por centro de custo / categoria" Width="30px"/>--%>
                <asp:ImageButton ID="btnBH" runat="server" ImageUrl="~/Imagens/BancoHoras.png" ToolTip="BH - Pedir Ausência" OnClientClick="target=''" Width="30px" Visible="False" /> 
                <%--<asp:ImageButton ID="btnPontoIndividual" runat="server" ImageUrl="~/Imagens/Relogio.png" ToolTip="Ponto individual." OnClientClick="target=''" Width="30px"/>--%> 
                <asp:ImageButton ID="btnTotais" runat="server" ImageUrl="~/Imagens/Totais.png" PostBackUrl="PontoPessoalTotais.aspx" ToolTip="Consulta de totais" OnClientClick="target=''" Width="30px"/>
                <asp:ImageButton ID="btnTabelasAuxiliares" runat="server" ImageUrl="~/Imagens/Tabelas.png" ToolTip="Configurar tabelas auxiliares" OnClientClick="target=''" Width="30px" Visible="True"/>
                <asp:ImageButton ID="btnOpenOffice" runat="server" ImageUrl="~/Imagens/OpenOffice.png" ToolTip="Exportar para Csv / Open Office" OnClientClick="target=''" Width="30px"/>
                <asp:ImageButton ID="btnExcel" runat="server" ImageUrl="~/Imagens/Excel.png" ToolTip="Exportar para Excel." OnClientClick="target=''" Width="30px"/>
                <asp:ImageButton ID="btnWord" runat="server" ImageUrl="~/Imagens/Word.png" ToolTip="Exportar para Word." OnClientClick="target=''" Width="30px"/>
                <%--<asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/Imagens/Calendario1.png" PostBackUrl="~/Calendario/Feriados.aspx" ToolTip="Configuração Feriados" Width="30px"/>--%>
                <%--<asp:ImageButton ID="ImageButton2" runat="server" ImageUrl="~/Imagens/Calendario1.png" PostBackUrl="~/Calendario/Calendario.aspx" ToolTip="Configuração Feriados" Width="30px"/>--%>
                <%--<asp:ImageButton ID="btnImprimir" runat="server" ImageUrl="~/Imagens/print.gif" PostBackUrl="~/relatorios/rptPonto.aspx" Width="30px"/>--%>
                <asp:ImageButton ID="btnMail" runat="server" ImageUrl="~/Imagens/Mail.png" ToolTip="Enviar ausências não justificadas ou falhas de ponto por E-Mail" Width="30px" Visible="False"/>
                <asp:ImageButton ID="btnMailImpressao" runat="server" ImageUrl="~/Imagens/Mail1.png" ToolTip="Enviar Impressão por E-Mail" Width="30px" Visible="True"/>
                <%--<asp:ImageButton ID="btnImprimir" runat="server" ImageUrl="~/Imagens/print.gif" ToolTip="Imprimir relatório." OnClientClick="target='_blank'" Width="30px"/>--%> <%--'Nova Página--%>
                <asp:ImageButton ID="btnImprimir" runat="server" ImageUrl="~/Imagens/print.gif" ToolTip="Imprimir" Width="30px"/>
            </td>
        </tr>
        <tr>
            <td colspan="2" 
                style="height: 20px; background-color: White; text-align: Center " 
                align="center"> 
                <asp:Label ID="lblMsg" runat="server" Visible="False" BackColor="White"></asp:Label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:LinkButton ID="lnkAlterarNotaPara" runat="server" Visible="False">Alterar p/ código:</asp:LinkButton>&nbsp;
                <asp:TextBox ID="txtAlterarNotaDe" runat="server" BorderColor="Black" BorderWidth="1px" Font-Size="X-Small" Width="38px" Visible="False"></asp:TextBox>
                <asp:TextBox ID="txtAlterarNotaPara" runat="server" BorderColor="Black" BorderWidth="1px" Font-Size="X-Small" Width="38px" Visible="False"></asp:TextBox>
                <asp:LinkButton ID="EmailbtnMailEnvioReconfirmar" runat="server" Visible="False">Confirmar</asp:LinkButton>&nbsp;&nbsp;
                <asp:LinkButton ID="EmailbtnMailEnvioReconfirmarBH" runat="server" Visible="False">Confirmar</asp:LinkButton>&nbsp;&nbsp;
                <asp:Label ID="lblIndex" runat="server" Visible="False">NumeroEmpregado</asp:Label>&nbsp;
                <asp:Label ID="lblSqlFiltro" runat="server" Visible="False" BackColor="White"></asp:Label>&nbsp;
                <asp:Label ID="lblSqlFiltroRelogios" 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="lblDataInicio" runat="server" Visible="False" BackColor="White"></asp:Label>&nbsp;
                <asp:Label ID="lblDataFim" runat="server" Visible="False" BackColor="White"></asp:Label>&nbsp;
                <asp:Label ID="lblEmpregadoEmEdicao" runat="server" Visible="False" BackColor="White"></asp:Label>&nbsp;
                <asp:Label ID="lblAccao" runat="server" Visible="False"></asp:Label>&nbsp;
                <asp:Label ID="lblPessoalCentrosCusto" runat="server" Visible="False"></asp:Label>&nbsp;
                <asp:Label ID="lblEsta_Opcao" runat="server" Visible="False"></asp:Label> 
                <asp:Label ID="lblEvento" runat="server" BackColor="White" Visible="False"></asp:Label>
                <asp:LinkButton ID="lnkConfirmarEliminacao" runat="server" Visible="False">Confirmar</asp:LinkButton>&nbsp;&nbsp;
                <asp:LinkButton ID="lnkCancelarEliminacao" runat="server" Visible="False">Cancelar</asp:LinkButton>
                <asp:Label ID="lblOcultarExtrasFaltasWeb" runat="server" Visible="False"></asp:Label>&nbsp;
                <asp:Label ID="lblBHSaldo" runat="server" Font-Size="Small" ForeColor="Red" Visible="False"></asp:Label>
                <asp:Label ID="lblBHSaldoSinal" runat="server" Font-Size="Small" ForeColor="Red" Visible="False"></asp:Label>
                <asp:Label ID="lblBHFaltaPeriodo" runat="server" Font-Size="Small" ForeColor="Red" Visible="False"></asp:Label>
                <asp:Label ID="lblNumeroEmpregado" runat="server" Visible="False" BackColor="White"></asp:Label>&nbsp;
                <asp:Label ID="lblTodosHorarios" runat="server" Visible="False" BackColor="White"></asp:Label>&nbsp;
                <asp:Label ID="lblSqlMaxPontos" runat="server" Visible="False" BackColor="White"></asp:Label>&nbsp;
                <asp:Label ID="lblPeriodicidadeCompensacao" runat="server" Visible="False" BackColor="White"></asp:Label>&nbsp;
                
            </td>
            <td 
                style="height: 20px; background-color: White; text-align: Center "> 
                <%--<asp:Timer ID="Timer1" runat="server">
                </asp:Timer>--%>
            </td>
        </tr>

        <tr >
            <td colspan="2" style="text-align: center">
            <asp:Panel ID="pnlEdit" runat="server" Visible="False" Width="100%" HorizontalAlign="Center">
                <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 colspan="34" 
                            style="height: 20px; background-color: #d6e0ee; text-align: center" >
                            <asp:Label ID="RotuloEmpregado" runat="server" Text="Empregado:"></asp:Label>&nbsp;
                            <asp:DropDownList ID="cboNumeroEmpregado" runat="server" Enabled="False" Font-Size="X-Small">
                            </asp:DropDownList>&nbsp;
                            <asp:ImageButton ID="btnIndex" runat="server" 
                                ImageUrl="~/Imagens/Edit2.png" ToolTip="Alterar ordenação." Width="16px" />&nbsp;&nbsp;
                            <asp:Label ID="RotuloDataProc" runat="server" Text="Data proc.:"></asp:Label>&nbsp;
                            <asp:TextBox ID="txtDataProc" runat="server" BorderColor="Black" BorderWidth="1px" 
                                Enabled="False" Font-Size="X-Small" Width="60px" Wrap="False"></asp:TextBox>&nbsp;&nbsp;
                            <asp:Label ID="RotuloDataHora" runat="server" Text="Data Hora:"></asp:Label>&nbsp;
                            <asp:TextBox ID="txtData" runat="server" BorderColor="Black" BorderWidth="1px" 
                                Enabled="False" Font-Size="X-Small" Width="60px" Wrap="False" 
                                style="margin-left: 0px"></asp:TextBox>&nbsp;
                            <asp:TextBox ID="txtHora" runat="server" BorderColor="Black" BorderWidth="1px" 
                                Enabled="False" Font-Size="X-Small" Width="38px" Wrap="False"></asp:TextBox>&nbsp;
                            <asp:TextBox ID="txtHora2" runat="server" BorderColor="Black" BorderWidth="1px" 
                                Enabled="True" Font-Size="X-Small" Width="38px" Wrap="False" 
                                Visible="False"></asp:TextBox>&nbsp;
                            <asp:ImageButton ID="btnNovoRegisto" runat="server" 
                                ImageUrl="~/Imagens/Add2.png" ToolTip="Novo registo de ponto." 
                                Visible="False" />&nbsp;&nbsp;
                            <asp:ImageButton ID="btnEliminar" runat="server" 
                                ImageUrl="~/Imagens/Delete2.png" ToolTip="Eliminar" Visible="False" />&nbsp;&nbsp;&nbsp;&nbsp;
                            <asp:ImageButton ID="btnAnularEliminacao" runat="server" 
                                ImageUrl="~/Imagens/Anular.png" 
                                ToolTip="Anular eliminação de registos de ponto." Visible="False" />&nbsp;&nbsp;
                            <asp:LinkButton ID="lnkGravar" runat="server">Gravar</asp:LinkButton>&nbsp;&nbsp;
                            <asp:LinkButton ID="lnkCancelar" runat="server">Cancelar edição</asp:LinkButton>&nbsp;&nbsp;
                            <asp:Label ID="lblDataHoraOriginal" runat="server" Visible="False"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="10" 
                            style="height: 20px; background-color: #d6e0ee; text-align: center" 
                            align="center">
                            <asp:Label ID="RotuloEmpregadoImportar" runat="server" Text="Empregado:"></asp:Label>&nbsp;
                            <asp:DropDownList ID="cboNumeroEmpregadoImportar" runat="server" Enabled="False" Font-Size="X-Small">
                            </asp:DropDownList>&nbsp;
                            <asp:ImageButton ID="btnIndex2" runat="server" 
                                ImageUrl="~/Imagens/Edit2.png" ToolTip="Alterar ordenação." Width="16px" />&nbsp;&nbsp;
                            <asp:DropDownList ID="cboNomeImportar" runat="server" Enabled="False" Font-Size="X-Small" Visible="False">
                            </asp:DropDownList>&nbsp;&nbsp;&nbsp;&nbsp;
                            <asp:Label ID="RotuloCartaoImportar" runat="server" Text="Importar ponto do cartão nº"></asp:Label>&nbsp;
                            <asp:DropDownList ID="cboCartaoImportar" runat="server" Enabled="False" Font-Size="X-Small">
                            </asp:DropDownList>&nbsp;&nbsp;
                            <asp:LinkButton ID="lnkGravarImportar" runat="server">Gravar</asp:LinkButton>&nbsp;&nbsp;
                            <asp:LinkButton ID="lnkCancelarImportar" runat="server">Cancelar</asp:LinkButton>&nbsp;&nbsp;
                            <br /> <br />
                        </td>
                    </tr>
                </table>
            </asp:Panel>

            <asp:Panel ID="pnlEditAlterarDePara" runat="server" Width="100%" Visible="False" 
                    HorizontalAlign="Center">
                <table border="0" cellpadding="0" cellspacing="0" style="width: 100%; background-color: #a6cdcc">
                    <tr>
                        <td colspan="34" style="height: 20px; background-color: #d6e0ee;" align="left">
                            <asp:Label ID="RotuloCampoAlterarDePara" runat="server" Text="Seleccionar Campo:"></asp:Label>&nbsp;
                            <asp:DropDownList ID="cboCampoAlterarDePara" runat="server" AutoPostBack="True" 
                                Font-Size="X-Small" >
                            </asp:DropDownList>&nbsp;&nbsp;
                        </td>
                    </tr> 
                    <tr>
                        <td colspan="34" style="height: 20px; background-color: #d6e0ee; text-align: center">
                        <asp:Label ID="RotuloAlterarDe" runat="server" Text="Alterar de: " ></asp:Label>&nbsp;
                        <asp:TextBox ID="txtAlterarDe" runat="server" BorderColor="Black" 
                                BorderWidth="1px" Font-Size="X-Small" Width="38px" Visible="False"></asp:TextBox>&nbsp;&nbsp;
                        <asp:DropDownList ID="cboAlterarDe" runat="server" Font-Size="X-Small" 
                                Width="195px" Visible="False"></asp:DropDownList>&nbsp;&nbsp;
                        <asp:Label ID="RotuloAlterarPara" runat="server" Text="Para: " ></asp:Label>&nbsp;
                        <asp:TextBox ID="TxtAlterarPara" runat="server" BorderColor="Black" 
                                BorderWidth="1px" Font-Size="X-Small" Width="38px" Visible="False"></asp:TextBox>&nbsp;&nbsp;
                        <asp:DropDownList ID="cboAlterarPara" runat="server" Font-Size="X-Small" 
                                Width="195px" Visible="False"></asp:DropDownList>&nbsp;&nbsp; 
                        <asp:Label ID="RotuloFuncao" runat="server" Text="Para todos os registos seleccionados." ></asp:Label>&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:LinkButton ID="lnkConfirmarAlterarDePara" runat="server" Visible="False">Confirmar</asp:LinkButton>&nbsp;&nbsp;
                        <asp:ImageButton ID="lnkAlterarDeParaReporHoraOriginal" runat="server" ImageUrl="~/Imagens/Anular.png" ToolTip="Repor hora original." Visible="False" />&nbsp;&nbsp;
                        <asp:LinkButton ID="lnkSairAlterarDePara" runat="server" Visible="False">Sair</asp:LinkButton>
                        <br /> <br />
                        </td>
                    </tr>
                </table>
            </asp:Panel>
            </td>
        </tr>


       <tr align="center">
            <td colspan="2" style="text-align: center" align="center">
             <asp:Panel ID="pnlEmailImpressao" runat="server" Visible="False" Width="100%" 
                    HorizontalAlign="Center">
                <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 colspan="34" style="height: 20px; background-color: #d6e0ee; text-align: center">
                        <br />
                        <asp:Label ID="TituloEMailImpressao" runat="server" Font-Size="X-Small" 
                            Text="Envio de Impressão por correio eletrónico"></asp:Label>&nbsp;
                        <br />
                        <br />
                        <asp:Label ID="EmailImpressaoRotuloPara" runat="server" Height="18px" Text="Para:"></asp:Label>&nbsp;
                        <asp:TextBox ID="EmailImpressaotxtPara" runat="server" BorderColor="Black" 
                            BorderWidth="1px" Font-Size="X-Small" Width="320px"></asp:TextBox>
                        <asp:TextBox ID="TextBox5" runat="server" BorderColor="#d6e0ee" 
                        BorderWidth="1px" Font-Size="X-Small" Width="0px" Wrap="True" BackColor="#d6e0ee"></asp:TextBox>&nbsp;&nbsp;
                        <asp:ImageButton ID="btnEmailImpressaoServidorSmtp" runat="server" 
                            ImageUrl="~/Imagens/Config2.png" 
                            ToolTip="Configuração do Servidor de envio de correio" />
                        &nbsp;&nbsp;
                        <asp:ImageButton ID="EmailImpressaobtnMailConfirmar" runat="server" ImageUrl="~/Imagens/Mail.png" 
                            ToolTip="Confirmar Envio de E-Mail" Width="16px" />
                        &nbsp;
                        <asp:LinkButton ID="EmailImpressaobtnSair" runat="server">Sair</asp:LinkButton>
                        <br /><br />

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

             <asp:Panel ID="pnlEmail" runat="server" Visible="False" Width="100%" 
                    HorizontalAlign="Center">
                <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 colspan="34" style="height: 20px; background-color: #d6e0ee; text-align: center">
                        <br />
                        <asp:Label ID="TituloEMail" runat="server" Font-Size="X-Small" 
                            Text="Envio de correio eletrónico"></asp:Label>
                        <%--<asp:Label ID="lblEvento" runat="server" BackColor="White" Visible="False"></asp:Label>--%>
                        &nbsp;
                        <br />
                        <br />
                        <asp:Label ID="EmailRotuloDe" runat="server" Height="18px" 
                            Text="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;De:"></asp:Label>
                        &nbsp;
                        <asp:TextBox ID="EmailtxtDe" runat="server" BorderColor="Black" 
                            BorderWidth="1px" Font-Size="X-Small" Width="320px"></asp:TextBox>
                        <asp:TextBox ID="TextBox2" runat="server" BorderColor="#d6e0ee" 
                        BorderWidth="1px" Font-Size="X-Small" Width="0px" Wrap="True" BackColor="#d6e0ee"></asp:TextBox>&nbsp;&nbsp;
                        <asp:ImageButton ID="btnEmailServidorSmtp" runat="server" 
                            ImageUrl="~/Imagens/Config2.png" 
                            ToolTip="Configuração do Servidor de envio de correio" />
                        &nbsp;&nbsp;
                        <asp:ImageButton ID="EmailbtnMailConfirmar" runat="server" ImageUrl="~/Imagens/Mail.png" 
                            ToolTip="Confirmar Envio de E-Mail" Width="16px" />
                        &nbsp;
                        <asp:LinkButton ID="EmailbtnSair" runat="server">Sair</asp:LinkButton>
                        <br /> <br />
                        <asp:Label ID="EmailRotulocc" runat="server" Height="18px" 
                            Text="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Cc:"></asp:Label>&nbsp;
                        <asp:TextBox ID="txtEmailcc" runat="server" BorderColor="Black" 
                            BorderWidth="1px" Font-Size="X-Small" Width="320px" Wrap="True"></asp:TextBox>
                        &nbsp;
                        <asp:CheckBox ID="ChkEmailResponsavel" runat="server" Text="Responável" 
                            TextAlign="Left" />
                        <asp:TextBox ID="TextBox1" runat="server" BorderColor="#d6e0ee" 
                        BorderWidth="1px" Font-Size="X-Small" Width="0px" Wrap="True" BackColor="#d6e0ee"></asp:TextBox>
                        <br /> <br />
                        <asp:Label ID="EmailRotuloAssunto" runat="server" Height="18px" 
                            Text="&nbsp;Assunto:" ></asp:Label>&nbsp;
                        <asp:TextBox ID="EmailtxtAssunto" runat="server" BorderColor="Black" 
                            BorderWidth="1px" Font-Size="X-Small" Width="400px" Wrap="True"></asp:TextBox>
                        &nbsp;
                        <br /><br />
                        <asp:Label ID="RotuloEmailTrabalho" runat="server" Height="18px" 
                            Text="E-mail Trabalho:" Visible="False"></asp:Label>&nbsp;
                        <asp:TextBox ID="txtEmailTrabalho" runat="server" BorderColor="Black" 
                            BorderWidth="1px" Font-Size="X-Small" Width="360px" Wrap="False" Visible="False"></asp:TextBox>
                        <asp:TextBox ID="TextBox3" runat="server" BorderColor="#d6e0ee" 
                        BorderWidth="1px" Font-Size="X-Small" Width="0px" Wrap="True" BackColor="#d6e0ee"></asp:TextBox>
                        <br /><br />
                        <asp:Label ID="RotuloEmailResponsavel" runat="server" Height="18px" 
                            Text="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;E-mail Responsável:" Visible="False"></asp:Label>&nbsp;
                        <asp:TextBox ID="txtEmailResponsavel" runat="server" BorderColor="Black" 
                            BorderWidth="1px" Font-Size="X-Small" Width="360px" Wrap="False" Visible="False"></asp:TextBox>
                        &nbsp;
                        <asp:LinkButton ID="lnkEmailTrabalhoGravar" runat="server" Visible="False">Gravar</asp:LinkButton>
                        &nbsp;
                        <asp:LinkButton ID="lnkEmailTrabalhoSair" runat="server" Visible="False">Sair</asp:LinkButton>
                        <br /><br />
                        <asp:GridView ID="grdDadosEmail" runat="server" AutoGenerateColumns="False" 
                            CellPadding="4" HorizontalAlign="Center" PageSize="4" Width="1000px">
                            <Columns>
                                <asp:CommandField ButtonType="Image" DeleteImageUrl="~/Imagens/Delete2.png" 
                                    SelectImageUrl="~/Imagens/Edit2.png" SelectText="" ShowDeleteButton="True" 
                                    ShowSelectButton="True" HeaderText="_______"  HeaderStyle-ForeColor="#5D7B9D" />
                                <asp:BoundField DataField="NumeroEmpregado" HeaderText="Núm." />
                                <asp:BoundField DataField="Nome" HeaderText="Nome" />
                                <asp:BoundField DataField="EmailResponsavel" HeaderText="Cc. responsável" />
                                <asp:BoundField DataField="EmailTrabalho" HeaderText="E-mail Trabalho" />
                                <asp:BoundField DataField="Mensagem" HeaderText="Mensagem" />
                                <asp:BoundField DataField="Anexo" HeaderText="Anexo" />
                                <asp:BoundField DataField="Responsavel" HeaderText="" />
                            </Columns>
                            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                            <EditRowStyle BackColor="#999999" />
                            <PagerSettings FirstPageImageUrl="~/Imagens/SetaPrimeiro.png" 
                                LastPageImageUrl="~/Imagens/SetaUltimo.png" Mode="NextPreviousFirstLast" 
                                NextPageImageUrl="~/Imagens/SetaDireita.png" Position="Bottom" 
                                PreviousPageImageUrl="~/Imagens/SetaEsquerda.png" Visible="true" />
                            <PagerStyle BackColor="#F7F6F3" Font-Size="Small" ForeColor="#5D7B9D" 
                                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>

            <asp:Panel ID="pnlEmailConfiguracao" runat="server" Width="100%" Visible="False">
                <table border="0" cellpadding="0" cellspacing="0" style="width: 100%; background-color: #a6cdcc">
                    <tr>
                    <td colspan="34" style="height: 20px; background-color: #d6e0ee; text-align: center">
                        <asp:Label ID="Label1" runat="server" Font-Size="X-Small" Text="Configuração do servidor de envio de correio"></asp:Label>
                        <br /> <br />
                        <asp:Label ID="RotuloConfiguracaoSmtp" runat="server" Height="18px" Text="Servidor de envio de correio (Smtp):" ></asp:Label>&nbsp;
                        <asp:TextBox ID="txtConfiguracaoSmtp" runat="server" BorderColor="Black" BorderWidth="1px" 
                            Font-Size="X-Small" Width="200px" Wrap="False"></asp:TextBox>&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:Label ID="RotuloConfiguracaoPortaSmtp" runat="server" Height="18px" Text="Porta (Smtp):" ></asp:Label>&nbsp;
                        <asp:TextBox ID="txtConfiguracaoPortaSmtp" runat="server" BorderColor="Black" BorderWidth="1px" 
                            Font-Size="X-Small" Width="30px" Wrap="False"></asp:TextBox>&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:Label ID="RotuloConfiguracaoDe" runat="server" Height="18px" Text="De:" ></asp:Label>&nbsp;
                        <asp:TextBox ID="txtConfiguracaoDe" runat="server" BorderColor="Black" BorderWidth="1px" 
                            Font-Size="X-Small" Width="200px" Wrap="False"></asp:TextBox>&nbsp;&nbsp;&nbsp;&nbsp;
                        <br /> <br />
                        <asp:Label ID="RotuloConfiguracaoUserName" runat="server" Height="18px" Text="User name:" ></asp:Label>&nbsp;
                        <asp:TextBox ID="txtConfiguracaoUserName" runat="server" BorderColor="Black" BorderWidth="1px" 
                            Font-Size="X-Small" Width="200px" Wrap="False"></asp:TextBox>&nbsp;
                        <asp:Label ID="RotuloConfiguracaoPassWord" runat="server" Height="18px" Text="PassWord:" ></asp:Label>&nbsp;
                        <asp:TextBox ID="TxtPassWord0" runat="server" BorderColor="Black" 
                            BorderWidth="0px" Font-Size="X-Small" Width="0px" TextMode="Password"></asp:TextBox>
                        <asp:TextBox ID="txtConfiguracaoPassWord" runat="server" BorderColor="Black" 
                            BorderWidth="1px" Font-Size="X-Small" Width="200px" TextMode="Password"></asp:TextBox>&nbsp;&nbsp;&nbsp;
                        <asp:LinkButton ID="lnkConfiguracaoGravar" runat="server">Gravar</asp:LinkButton>&nbsp;
                        <asp:LinkButton ID="lnkConfiguracaoSair" runat="server">Sair</asp:LinkButton>
                        <br /> <br />
                    </td>
                    </tr>
                </table>
            </asp:Panel>
            </td>
        </tr>

        <tr align="center">
            <td colspan="2" style="text-align: center" align="center">
            <asp:Panel ID="PnlImportacaoFicheiroPonto" runat="server" Visible="False" Width="100%" HorizontalAlign="Center">
                <table border="0" cellpadding="0" cellspacing="0" style="width: 100%; background-color: #a6cdcc">
                <tr>
                    <td colspan="34" style="height: 20px; background-color: #d6e0ee; text-align: center">
                        <br />
                        <asp:Label ID="RotuloDataUltimaRecolha" runat="server" Text="Data da última recolha:"></asp:Label>&nbsp;
                        <asp:TextBox ID="txtDataInicio" runat="server" BorderColor="Black" BorderWidth="1px" 
                            Enabled="True" Font-Size="X-Small" Width="60px" Wrap="False"></asp:TextBox>&nbsp;&nbsp;
                        <br /> <br />
                        <asp:Label ID="RotuloFileUploadFicheiroPonto" runat="server" Text="Importar ficheiro de registos de ponto.:"></asp:Label>&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:DropDownList ID="cboFicheiroImportacao" runat="server" AutoPostBack="True" 
                            Font-Size="X-Small" > </asp:DropDownList>
                        <asp:ImageButton ID="btnConfigurarImportacao" runat="server"  ImageUrl="~/Imagens/Config2.png" ToolTip="Configuração de Importações"/>&nbsp;&nbsp;
                        <asp:FileUpload ID="FileUploadFicheiroPonto" runat="server" ToolTip="Ficheiro" 
                            BackColor="#F7F6F3" CssClass="icon" Font-Size="Small" Width="600px" 
                            Visible="True" />&nbsp;&nbsp;&nbsp;&nbsp;
                            <asp:LinkButton ID="lnkConfirmarImportacaoFicheiro" runat="server">Confirmar Importação</asp:LinkButton>&nbsp;&nbsp;
                            <asp:LinkButton ID="lnkCancelarImportacaoFicheiro" runat="server">Cancelar</asp:LinkButton>&nbsp;&nbsp;
                        <br /> <br />
                            <%--<asp:Label ID="Label4" runat="server" Text="Empregado:"></asp:Label>&nbsp;
                            <asp:DropDownList ID="DropDownList1" runat="server" Enabled="False" Font-Size="X-Small">
                            </asp:DropDownList>&nbsp;
                            <asp:ImageButton ID="ImageButton1" runat="server" 
                                ImageUrl="~/Imagens/Edit2.png" ToolTip="Alterar ordenação." Width="16px" />&nbsp;&nbsp;--%>
                    </td>
                </tr>
                </table>
                <br /> 
                <asp:Panel ID="pnlConfigurarTabelaImportacao" runat="server" Visible="False" Width="100%" >
                    <table border="0" cellpadding="0" cellspacing="0" style="width: 100%; background-color: #a6cdcc">
                    <tr>
                        <td colspan="36" style="height: 20px; background-color: #d6e0ee; text-align: center">
                        <br /> 
                        <asp:Label ID="RotuloOrdemFicheiro" runat="server" Text="Ordenação:" 
                            Visible="True"></asp:Label>&nbsp;
                        <asp:TextBox ID="txtOrdemFicheiro" runat="server" BorderWidth="1px" 
                            Font-Size="X-Small" Width="30px" Visible="True"></asp:TextBox>&nbsp;
                        <asp:Label ID="RotuloTabelaImportacao" runat="server" Text="Tabela:" 
                            Visible="True"></asp:Label>&nbsp;
                        <asp:DropDownList ID="cboCodigoTabelaImportacao" runat="server" Font-Size="X-Small" 
                            Visible="True" AutoPostBack="True"></asp:DropDownList>&nbsp;
                        <asp:Label ID="RotuloFicheiroImportacao" runat="server" Text="Descrição Importação:" 
                            Visible="True"></asp:Label>&nbsp;
                        <asp:TextBox ID="txtFicheiroImportacao" runat="server" BorderWidth="1px" 
                            Font-Size="X-Small" Width="80px" Visible="True"></asp:TextBox>&nbsp;
                        <asp:Label ID="RotuloSeparadorColunas" runat="server" Text="Separador colunas:" 
                            Visible="True"></asp:Label>&nbsp;
                        <asp:TextBox ID="txtSeparadorColunas" runat="server" BorderWidth="1px" 
                            Font-Size="X-Small" Width="30px" Visible="True"></asp:TextBox>&nbsp;&nbsp;
                        <asp:ImageButton ID="btnFicheiroImportacaoNovoRegisto" runat="server" 
                            ImageUrl="~/Imagens/Add2.png" ToolTip="Nova Importação." />&nbsp;&nbsp;
                        <asp:LinkButton ID="lnkTabelaImportacaoGravar" runat="server" Visible="True">Gravar</asp:LinkButton>&nbsp;&nbsp;
                        <asp:LinkButton ID="lnkTabelaImportacaoCancelar" runat="server" Visible="True">Cancelar</asp:LinkButton>
                        <br /> <br />
                        </td>
                    </tr>
                    </table>
                </asp:Panel>
                <asp:Panel ID="pnlConfigurarTabelaImportacaoSub" runat="server" Visible="False" Width="100%" HorizontalAlign="Center">
                    <table border="0" cellpadding="0" cellspacing="0" style="width: 100%; background-color: #a6cdcc">
                    <tr>
                        <td colspan="36" style="height: 20px; background-color: #d6e0ee; text-align: center">
                        <br /> 
                        <asp:Label ID="RotuloOrdenacaoCampo" runat="server" Text="Ordenação:" 
                            Visible="True"></asp:Label>&nbsp;
                        <asp:TextBox ID="txtOrdenacaoCampo" runat="server" BorderWidth="1px" 
                            Font-Size="X-Small" Width="30px" Visible="True"></asp:TextBox>&nbsp;
                        <asp:Label ID="RotuloCampoImportacao" runat="server" Text="Campo:" 
                            Visible="True"></asp:Label>&nbsp;
                        <asp:DropDownList ID="cboCodigoCampoImportacao" runat="server" Font-Size="X-Small" 
                            Width="100px" Visible="True"></asp:DropDownList>&nbsp;
                        <asp:Label ID="RotuloColuna" runat="server" Text="Posição / Nº Coluna:" Visible="True"></asp:Label>&nbsp;
                        <asp:TextBox ID="txtColunaNumero" runat="server" BorderColor="Black" BorderWidth="1px" 
                            Font-Size="X-Small" Width="30px" Visible="True"></asp:TextBox>&nbsp;
                        <asp:Label ID="RotuloValorFixo" runat="server" Text="Valor Fixo / Cálculado:" 
                            Visible="True"></asp:Label>&nbsp;
                        <asp:TextBox ID="txtValorFixo" runat="server" BorderColor="Black" BorderWidth="1px" 
                            Font-Size="X-Small" Width="150px" Visible="True"></asp:TextBox>
                        <asp:LinkButton ID="lnkTabelaImportacaoSubGravar" runat="server" Visible="True">Gravar</asp:LinkButton>&nbsp;&nbsp;
                        <asp:LinkButton ID="lnkTabelaImportacaoSubCancelar" runat="server" Visible="True">Cancelar</asp:LinkButton>
                        <br />  <br />
                        </td>
                    </tr>
                    </table>
                </asp:Panel>
                <asp:GridView ID="grdDadosImportacaoTabelas" runat="server" CellPadding="4" HorizontalAlign="Center" 
                        PageSize="4" Width="800px">
                    <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>
                <br />
            </asp:Panel>

            <asp:Panel ID="pnlEditDia" runat="server" Width="100%" Visible="False" HorizontalAlign="Center">
                <table border="0" cellpadding="0" cellspacing="0" style="width: 100%; background-color: #a6cdcc">
                    <tr>
                        <td colspan="10" style="height: 20px; background-color: #d6e0ee; text-align: center">
                            <br />
                            <asp:Label ID="RotuloEmpregadoDia" runat="server" Text="Empregado:"></asp:Label>&nbsp;&nbsp;
                            <asp:DropDownList ID="cboNumeroEmpregadoDia" runat="server" Enabled="False" Font-Size="X-Small"> </asp:DropDownList>&nbsp;&nbsp;
                            <asp:ImageButton ID="btnIndex3" runat="server" ImageUrl="~/Imagens/Edit2.png" 
                                ToolTip="Alterar ordenação." Width="16px" Visible="False" />&nbsp;&nbsp;&nbsp;&nbsp;
                            <asp:Label ID="RotuloNotasPonto" runat="server" Text="Notas:"></asp:Label>&nbsp;&nbsp;
                            <asp:DropDownList ID="cboNotasPonto" runat="server" Font-Size="X-Small" 
                                AutoPostBack="True"></asp:DropDownList>&nbsp;
                            <asp:ImageButton ID="btnNotasPonto" runat="server" ImageUrl="~/Imagens/EditMais.png" 
                                ToolTip="Acrescentar novo registo de notas." Width="16px" Visible="True" />&nbsp;
                            <asp:TextBox ID="txtNotasPonto" runat="server" BorderColor="Black" BorderWidth="1px" 
                                Font-Size="X-Small" Width="200px" Visible="False" ></asp:TextBox>&nbsp;
                            <asp:ImageButton ID="btnNotasGravarJustificacaoExtras" runat="server" 
                                ImageUrl="~/Imagens/Ok.png" ToolTip="Gravar novo registo de notas." 
                                Visible="False" />
                            <asp:Label ID="lblDataProcDiaOriginal" runat="server" Visible="False"></asp:Label>&nbsp;
                            <asp:ImageButton ID="btnAnularEliminacaoDia" runat="server" 
                                ImageUrl="~/Imagens/Anular.png" 
                                ToolTip="Anular eliminação de registos de ponto." />&nbsp;&nbsp;
                            <asp:ImageButton ID="btnEliminarDiaTodosRegistos" runat="server" 
                                ImageUrl="~/Imagens/Delete2.png" ToolTip="Eliminar todos os registos deste dia." />&nbsp;&nbsp;&nbsp;&nbsp;
                            <%--<asp:LinkButton ID="lnkGravarDia" runat="server" Visible="False">Gravar</asp:LinkButton>&nbsp;&nbsp;--%>
                            <asp:LinkButton ID="lnkCancelarDia" runat="server">Cancelar edição</asp:LinkButton>
                            <br />
                        </td>
                    </tr>
                </table>
            </asp:Panel>
            <asp:Panel ID="pnlEditNotasPonto" runat="server" Width="100%" Visible="False" HorizontalAlign="Center">
                <table border="0" cellpadding="0" cellspacing="0" style="width: 100%; background-color: #a6cdcc">
                    <tr>
                        <td colspan="10" style="height: 20px; background-color: #d6e0ee; text-align: center">
                            <br />
                            <asp:DropDownList ID="cboEditNumeroEmpregado" runat="server" Enabled="False" Font-Size="X-Small"> </asp:DropDownList>&nbsp;&nbsp;
                            <asp:Label ID="RotuloEditNotasPonto" runat="server" Text="Notas:"></asp:Label>&nbsp;&nbsp;
                            <asp:DropDownList ID="cboEditNotasPonto" runat="server" Font-Size="X-Small" 
                                AutoPostBack="True"></asp:DropDownList>&nbsp;
                            <asp:ImageButton ID="btnEditNotasPonto" runat="server" ImageUrl="~/Imagens/EditMais.png" 
                                ToolTip="Acrescentar novo registo de notas." Width="16px" />&nbsp;
                            <asp:TextBox ID="txtEditNotasPonto" runat="server" BorderColor="Black" BorderWidth="1px" 
                                Font-Size="X-Small" Width="200px" Visible="False" ></asp:TextBox>&nbsp;
                            <asp:ImageButton ID="btnEditNotasGravarJustificacaoExtras" runat="server" 
                                ImageUrl="~/Imagens/Ok.png" ToolTip="Gravar novo registo de notas." 
                                Visible="False" />
                            <asp:ImageButton ID="btnEditNotasBaixarPdf" runat="server" 
                                ImageUrl="~/Imagens/Pdf.png" ToolTip="Baixar documento 'Pdf'." />&nbsp;&nbsp;
                            <asp:ImageButton ID="btnEditNotasEliminarPdf" runat="server" 
                                ImageUrl="~/Imagens/Delete2.png" ToolTip="Eliminar documento 'pdf'." />&nbsp;&nbsp;
                            <asp:LinkButton ID="lnkEditGravarNotasPonto" runat="server">Gravar / Sair</asp:LinkButton>
                            <br />
                        </td>
                    </tr>
                    <tr>
                        <td colspan="34" style="height: 20px; background-color: #d6e0ee; text-align: center">
                            <br />
                            <asp:Label ID="RotuloFileUploadEditNotasPonto" runat="server" Text="Anexar documento 'pdf':"></asp:Label>&nbsp;
                            <asp:FileUpload ID="FileUploadEditNotasPonto" runat="server" ToolTip="Documento" 
                                BackColor="#F7F6F3" CssClass="icon" Font-Size="Small" Width="600px" />
                            <br /> <br />
                        </td>
                    </tr>
                </table>
            </asp:Panel>

            <asp:Panel ID="pnlEditDiaSub1" runat="server" Width="100%" Visible="False" HorizontalAlign="Center">
                <table border="0" cellpadding="0" cellspacing="0" style="width: 100%; background-color: #a6cdcc">
                    <tr>
                        <td colspan="10" 
                            style="height: 20px; background-color: #d6e0ee; text-align: center">&nbsp;&nbsp;
                            <asp:ImageButton ID="btnDiaMenosDia1" runat="server" 
                                ImageUrl="~/Imagens/EditMenos.png" ToolTip="Alterar Data processamento para dia anterior." 
                                Visible="False" />&nbsp;&nbsp;
                            <asp:TextBox ID="txtDataProcDia1" runat="server" BorderColor="Black" 
                                BorderWidth="1px" Font-Size="X-Small" Width="60px" Wrap="False" 
                                Visible="False" ToolTip="Data de processamento"></asp:TextBox>&nbsp;&nbsp;
                            <asp:ImageButton ID="btnDiaMaisDia1" runat="server" 
                                ImageUrl="~/Imagens/EditMais.png" ToolTip="Alterar Data processamento para dia seguinte." 
                                Visible="False" />&nbsp;&nbsp;&nbsp;&nbsp;
                            <asp:TextBox ID="txtDataDia1" runat="server" BorderColor="Black" 
                                BorderWidth="1px" Font-Size="X-Small" Width="60px" Wrap="False" 
                                style="margin-left: 0px" Visible="False" 
                                ToolTip="Data do registo de ponto"></asp:TextBox>&nbsp;
                            <asp:TextBox ID="txtHoraDia1" runat="server" BorderColor="Black" BorderWidth="1px" 
                                Font-Size="X-Small" Width="38px" Wrap="False"></asp:TextBox>&nbsp;&nbsp;
                            <asp:ImageButton ID="btnAlterarRegistoDia1" runat="server" 
                                ImageUrl="~/Imagens/Edit2.png" ToolTip="Gravar alteração do registo de ponto." 
                                Visible="False" />&nbsp;&nbsp;
                            <asp:ImageButton ID="btnGravarDia1" runat="server" 
                                ImageUrl="~/Imagens/Ok.png" ToolTip="Gravar novo registo de ponto." />
                            <asp:ImageButton ID="btnEliminarDia1" runat="server" 
                                ImageUrl="~/Imagens/Delete2.png" ToolTip="Eliminar registo de ponto." />
                            <asp:ImageButton ID="btnAnularAlteracaoDia1" runat="server" 
                                ImageUrl="~/Imagens/Anular.png" ToolTip="Anular alteração efectuada" />
                            <asp:Label ID="lblDataHoraDiaOriginal1" runat="server" Visible="False"></asp:Label>&nbsp;
                            <asp:Label ID="lblAlinhar1" runat="server" ForeColor="#D6E0EE">___</asp:Label>&nbsp;
                            <asp:Label ID="lblAlinhar1_2" runat="server" ForeColor="#D6E0EE">___</asp:Label>&nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td colspan="10" 
                            style="height: 20px; background-color: #d6e0ee; text-align: center">&nbsp;&nbsp;
                            <asp:ImageButton ID="btnDiaMenosDia2" runat="server" 
                                ImageUrl="~/Imagens/EditMenos.png" ToolTip="Alterar Data processamento para dia anterior." 
                                Visible="False" />&nbsp;&nbsp;
                            <asp:TextBox ID="txtDataProcDia2" runat="server" BorderColor="Black" BorderWidth="1px" 
                                Font-Size="X-Small" Width="60px" Wrap="False" ToolTip="Data de processamento"></asp:TextBox>&nbsp;&nbsp;
                            <asp:ImageButton ID="btnDiaMaisDia2" runat="server" 
                                ImageUrl="~/Imagens/EditMais.png" ToolTip="Alterar Data processamento para dia seguinte." 
                                Visible="False" />&nbsp;&nbsp;&nbsp;&nbsp;
                            <asp:TextBox ID="txtDataDia2" runat="server" BorderColor="Black" 
                                BorderWidth="1px" Font-Size="X-Small" Width="60px" Wrap="False" 
                                style="margin-left: 0px" ToolTip="Data do registo de ponto"></asp:TextBox>&nbsp;
                            <asp:TextBox ID="txtHoraDia2" runat="server" BorderColor="Black" 
                                BorderWidth="1px" Font-Size="X-Small" Width="38px" Wrap="False"></asp:TextBox>&nbsp;&nbsp;
                            <asp:ImageButton ID="btnAlterarRegistoDia2" runat="server" 
                                ImageUrl="~/Imagens/Edit2.png" ToolTip="Gravar alteração do registo de ponto." 
                                Visible="False" />&nbsp;&nbsp;
                            <asp:ImageButton ID="btnGravarDia2" runat="server" 
                                ImageUrl="~/Imagens/Ok.png" ToolTip="Gravar registo de ponto." />
                            <asp:ImageButton ID="btnEliminarDia2" runat="server" 
                                ImageUrl="~/Imagens/Delete2.png" ToolTip="Eliminar registo de ponto." />
                            <asp:ImageButton ID="btnAnularAlteracaoDia2" runat="server" 
                                ImageUrl="~/Imagens/Anular.png" ToolTip="Anular alteração efectuada" />
                            <asp:Label ID="lblDataHoraDiaOriginal2" runat="server"  Visible="False"></asp:Label>&nbsp;
                            <asp:Label ID="lblAlinhar2" runat="server" ForeColor="#D6E0EE">___</asp:Label>&nbsp;
                            <asp:Label ID="lblAlinhar2_2" runat="server" ForeColor="#D6E0EE">___</asp:Label>&nbsp;
                        </td>
                    </tr>                    
                    <tr>
                        <td colspan="10" 
                            style="height: 20px; background-color: #d6e0ee; text-align: center">&nbsp;&nbsp;
                            <asp:ImageButton ID="btnDiaMenosDia3" runat="server" 
                                ImageUrl="~/Imagens/EditMenos.png" ToolTip="Alterar Data processamento para dia anterior." 
                                Visible="False" />&nbsp;&nbsp;
                            <asp:TextBox ID="txtDataProcDia3" runat="server" BorderColor="Black" 
                                BorderWidth="1px" Font-Size="X-Small" Width="60px" Wrap="False" ToolTip="Data de processamento"></asp:TextBox>&nbsp;&nbsp;
                            <asp:ImageButton ID="btnDiaMaisDia3" runat="server" 
                                ImageUrl="~/Imagens/EditMais.png" ToolTip="Alterar Data processamento para dia seguinte." 
                                Visible="False" />&nbsp;&nbsp;&nbsp;&nbsp;
                            <asp:TextBox ID="txtDataDia3" runat="server" BorderColor="Black" 
                                BorderWidth="1px" Font-Size="X-Small" Width="60px" Wrap="False" 
                                style="margin-left: 0px" ToolTip="Data do registo de ponto"></asp:TextBox>&nbsp;
                            <asp:TextBox ID="txtHoraDia3" runat="server" BorderColor="Black" 
                                BorderWidth="1px" Font-Size="X-Small" Width="38px" ></asp:TextBox>&nbsp;&nbsp;
                            <asp:ImageButton ID="btnAlterarRegistoDia3" runat="server" 
                                ImageUrl="~/Imagens/Edit2.png" ToolTip="Gravar alteração do registo de ponto." 
                                Visible="False" />&nbsp;&nbsp;
                            <asp:ImageButton ID="btnGravarDia3" runat="server" 
                                ImageUrl="~/Imagens/Ok.png" ToolTip="Gravar registo de ponto." />
                            <asp:ImageButton ID="btnEliminarDia3" runat="server" 
                                ImageUrl="~/Imagens/Delete2.png" ToolTip="Eliminar registo de ponto." />
                            <asp:ImageButton ID="btnAnularAlteracaoDia3" runat="server" 
                                ImageUrl="~/Imagens/Anular.png" ToolTip="Anular alteração efectuada" />
                            <asp:Label ID="lblDataHoraDiaOriginal3" runat="server"  Visible="False"></asp:Label>&nbsp;
                            <asp:Label ID="lblAlinhar3" runat="server" ForeColor="#D6E0EE">___</asp:Label>&nbsp;
                            <asp:Label ID="lblAlinhar3_2" runat="server" ForeColor="#D6E0EE">___</asp:Label>&nbsp;
                        </td>
                    </tr>                    
                    <tr>
                        <td colspan="10" 
                            style="height: 20px; background-color: #d6e0ee; text-align: center">&nbsp;&nbsp;
                            <asp:ImageButton ID="btnDiaMenosDia4" runat="server" 
                                ImageUrl="~/Imagens/EditMenos.png" ToolTip="Alterar Data processamento para dia anterior." 
                                Visible="False" />&nbsp;&nbsp;
                            <asp:TextBox ID="txtDataProcDia4" runat="server" BorderColor="Black" 
                                BorderWidth="1px" Font-Size="X-Small" Width="60px" Wrap="False" ToolTip="Data de processamento"></asp:TextBox>&nbsp;&nbsp;
                            <asp:ImageButton ID="btnDiaMaisDia4" runat="server" 
                                ImageUrl="~/Imagens/EditMais.png" ToolTip="Alterar Data processamento para dia seguinte." 
                                Visible="False" />&nbsp;&nbsp;&nbsp;&nbsp;
                            <asp:TextBox ID="txtDataDia4" runat="server" BorderColor="Black" 
                                BorderWidth="1px" Font-Size="X-Small" Width="60px" Wrap="False" 
                                style="margin-left: 0px" ToolTip="Data do registo de ponto"></asp:TextBox>&nbsp;
                            <asp:TextBox ID="txtHoraDia4" runat="server" BorderColor="Black" 
                                BorderWidth="1px" Font-Size="X-Small" Width="38px" Wrap="False"></asp:TextBox>&nbsp;&nbsp;
                            <asp:ImageButton ID="btnAlterarRegistoDia4" runat="server" 
                                ImageUrl="~/Imagens/Edit2.png" ToolTip="Gravar alteração do registo de ponto." 
                                Visible="False" />&nbsp;&nbsp;
                            <asp:ImageButton ID="btnGravarDia4" runat="server" 
                                ImageUrl="~/Imagens/Ok.png" ToolTip="Gravar registo de ponto." />
                            <asp:ImageButton ID="btnEliminarDia4" runat="server" 
                                ImageUrl="~/Imagens/Delete2.png" ToolTip="Eliminar registo de ponto." />
                            <asp:ImageButton ID="btnAnularAlteracaoDia4" runat="server" 
                                ImageUrl="~/Imagens/Anular.png" ToolTip="Anular alteração efectuada" />
                            <asp:Label ID="lblDataHoraDiaOriginal4" runat="server"  Visible="False"></asp:Label>&nbsp;
                            <asp:Label ID="lblAlinhar4" runat="server" ForeColor="#D6E0EE">___</asp:Label>&nbsp;
                            <asp:Label ID="lblAlinhar4_2" runat="server" ForeColor="#D6E0EE">___</asp:Label>&nbsp;
                        </td>
                    </tr>                    
                </table>
            </asp:Panel>

            <asp:Panel ID="pnlEditDiaSub2" runat="server" Width="100%" Visible="False" HorizontalAlign="Center">
                <table border="0" cellpadding="0" cellspacing="0" style="width: 100%; background-color: #a6cdcc">
                    <tr>
                        <td colspan="10" 
                            style="height: 20px; background-color: #d6e0ee; text-align: center">&nbsp;&nbsp;
                            <asp:ImageButton ID="btnDiaMenosDia5" runat="server" 
                                ImageUrl="~/Imagens/EditMenos.png" ToolTip="Alterar Data processamento para dia anterior." 
                                Visible="False" />&nbsp;&nbsp;
                            <asp:TextBox ID="txtDataProcDia5" runat="server" BorderColor="Black" 
                                BorderWidth="1px" Font-Size="X-Small" Width="60px" Wrap="False" ToolTip="Data de processamento"></asp:TextBox>&nbsp;&nbsp;
                            <asp:ImageButton ID="btnDiaMaisDia5" runat="server" 
                                ImageUrl="~/Imagens/EditMais.png" ToolTip="Alterar Data processamento para dia seguinte." 
                                Visible="False" />&nbsp;&nbsp;&nbsp;&nbsp;
                            <asp:TextBox ID="txtDataDia5" runat="server" BorderColor="Black" 
                                BorderWidth="1px" Font-Size="X-Small" Width="60px" Wrap="False" 
                                style="margin-left: 0px" ToolTip="Data do registo de ponto"></asp:TextBox>&nbsp;
                            <asp:TextBox ID="txtHoraDia5" runat="server" BorderColor="Black" 
                                BorderWidth="1px" Font-Size="X-Small" Width="38px" Wrap="False"></asp:TextBox>&nbsp;&nbsp;
                            <asp:ImageButton ID="btnAlterarRegistoDia5" runat="server" 
                                ImageUrl="~/Imagens/Edit2.png" ToolTip="Gravar alteração do registo de ponto." 
                                Visible="False" />&nbsp;&nbsp;
                            <asp:ImageButton ID="btnGravarDia5" runat="server" 
                                ImageUrl="~/Imagens/Ok.png" ToolTip="Gravar registo de ponto." />
                            <asp:ImageButton ID="btnEliminarDia5" runat="server" 
                                ImageUrl="~/Imagens/Delete2.png" ToolTip="Eliminar registo de ponto." />
                            <asp:ImageButton ID="btnAnularAlteracaoDia5" runat="server" 
                                ImageUrl="~/Imagens/Anular.png" ToolTip="Anular alteração efectuada" />
                            <asp:Label ID="lblDataHoraDiaOriginal5" runat="server"  Visible="False"></asp:Label>&nbsp;
                            <asp:Label ID="lblAlinhar5" runat="server" ForeColor="#D6E0EE">___</asp:Label>&nbsp;
                            <asp:Label ID="lblAlinhar5_2" runat="server" ForeColor="#D6E0EE">___</asp:Label>&nbsp;
                        </td>
                    </tr>                    
                    <tr>
                        <td colspan="10" 
                            style="height: 20px; background-color: #d6e0ee; text-align: center">&nbsp;&nbsp;
                            <asp:ImageButton ID="btnDiaMenosDia6" runat="server" 
                                ImageUrl="~/Imagens/EditMenos.png" ToolTip="Alterar Data processamento para dia anterior." 
                                Visible="False" />&nbsp;&nbsp;
                            <asp:TextBox ID="txtDataProcDia6" runat="server" BorderColor="Black" 
                                BorderWidth="1px" Font-Size="X-Small" Width="60px" Wrap="False" 
                                Visible="False" ToolTip="Data de processamento"></asp:TextBox>&nbsp;&nbsp;
                            <asp:ImageButton ID="btnDiaMaisDia6" runat="server" 
                                ImageUrl="~/Imagens/EditMais.png" ToolTip="Alterar Data processamento para dia seguinte." 
                                Visible="False" />&nbsp;&nbsp;&nbsp;&nbsp;
                            <asp:TextBox ID="txtDataDia6" runat="server" BorderColor="Black" 
                                BorderWidth="1px" Font-Size="X-Small" Width="60px" Wrap="False" 
                                style="margin-left: 0px" Visible="False" ToolTip="Data do registo de ponto"></asp:TextBox>&nbsp;
                            <asp:TextBox ID="txtHoraDia6" runat="server" BorderColor="Black" 
                                BorderWidth="1px" Font-Size="X-Small" Width="38px" Wrap="False" 
                                Visible="False"></asp:TextBox>&nbsp;&nbsp;
                            <asp:ImageButton ID="btnAlterarRegistoDia6" runat="server" 
                                ImageUrl="~/Imagens/Edit2.png" ToolTip="Gravar alteração do registo de ponto." 
                                Visible="False" />&nbsp;&nbsp;
                            <asp:ImageButton ID="btnGravarDia6" runat="server" 
                                ImageUrl="~/Imagens/Ok.png" ToolTip="Gravar registo de ponto." />
                            <asp:ImageButton ID="btnEliminarDia6" runat="server" 
                                ImageUrl="~/Imagens/Delete2.png" ToolTip="Eliminar registo de ponto." />
                            <asp:ImageButton ID="btnAnularAlteracaoDia6" runat="server" 
                                ImageUrl="~/Imagens/Anular.png" ToolTip="Anular alteração efectuada" />
                            <asp:Label ID="lblDataHoraDiaOriginal6" runat="server"  Visible="False"></asp:Label>&nbsp;
                            <asp:Label ID="lblAlinhar6" runat="server" ForeColor="#D6E0EE">___</asp:Label>&nbsp;
                            <asp:Label ID="lblAlinhar6_2" runat="server" ForeColor="#D6E0EE">___</asp:Label>&nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td colspan="10" 
                            style="height: 20px; background-color: #d6e0ee; text-align: center" 
                            >&nbsp;&nbsp;
                            <asp:ImageButton ID="btnDiaMenosDia7" runat="server" 
                                ImageUrl="~/Imagens/EditMenos.png" ToolTip="Alterar Data processamento para dia anterior." 
                                Visible="False" />&nbsp;&nbsp;
                            <asp:TextBox ID="txtDataProcDia7" runat="server" BorderColor="Black" BorderWidth="1px" 
                                Font-Size="X-Small" Width="60px" Wrap="False" ToolTip="Data de processamento"></asp:TextBox>&nbsp;&nbsp;
                            <asp:ImageButton ID="btnDiaMaisDia7" runat="server" 
                                ImageUrl="~/Imagens/EditMais.png" ToolTip="Alterar Data processamento para dia seguinte." 
                                Visible="False" />&nbsp;&nbsp;&nbsp;&nbsp;
                            <asp:TextBox ID="txtDataDia7" runat="server" BorderColor="Black" 
                                BorderWidth="1px" Font-Size="X-Small" Width="60px" Wrap="False" 
                                style="margin-left: 0px" ToolTip="Data do registo de ponto"></asp:TextBox>&nbsp;
                            <asp:TextBox ID="txtHoraDia7" runat="server" BorderColor="Black" 
                                BorderWidth="1px" Font-Size="X-Small" Width="38px" Wrap="False"></asp:TextBox>&nbsp;&nbsp;
                            <asp:ImageButton ID="btnAlterarRegistoDia7" runat="server" 
                                ImageUrl="~/Imagens/Edit2.png" ToolTip="Gravar alteração do registo de ponto." 
                                Visible="False" />&nbsp;&nbsp;
                            <asp:ImageButton ID="btnGravarDia7" runat="server" 
                                ImageUrl="~/Imagens/Ok.png" ToolTip="Gravar registo de ponto." />
                            <asp:ImageButton ID="btnEliminarDia7" runat="server" 
                                ImageUrl="~/Imagens/Delete2.png" ToolTip="Eliminar registo de ponto." />
                            <asp:ImageButton ID="btnAnularAlteracaoDia7" runat="server" 
                                ImageUrl="~/Imagens/Anular.png" ToolTip="Anular alteração efectuada" />
                            <asp:Label ID="lblDataHoraDiaOriginal7" runat="server" Visible="False"></asp:Label>&nbsp;
                            <asp:Label ID="lblAlinhar7" runat="server" ForeColor="#D6E0EE">___</asp:Label>&nbsp;
                            <asp:Label ID="lblAlinhar7_2" runat="server" ForeColor="#D6E0EE">___</asp:Label>&nbsp;
                        </td>
                    </tr>                    
                    <tr>
                        <td colspan="10" 
                            style="height: 20px; background-color: #d6e0ee; text-align: center">&nbsp;&nbsp;
                            <asp:ImageButton ID="btnDiaMenosDia8" runat="server" 
                                ImageUrl="~/Imagens/EditMenos.png" ToolTip="Alterar Data processamento para dia anterior." 
                                Visible="False" />&nbsp;&nbsp;
                            <asp:TextBox ID="txtDataProcDia8" runat="server" BorderColor="Black" 
                                BorderWidth="1px" Font-Size="X-Small" Width="60px" Wrap="False" ToolTip="Data de processamento"></asp:TextBox>&nbsp;&nbsp;
                            <asp:ImageButton ID="btnDiaMaisDia8" runat="server" 
                                ImageUrl="~/Imagens/EditMais.png" ToolTip="Alterar Data processamento para dia seguinte." 
                                Visible="False" />&nbsp;&nbsp;&nbsp;&nbsp;
                            <asp:TextBox ID="txtDataDia8" runat="server" BorderColor="Black" 
                                BorderWidth="1px" Font-Size="X-Small" Width="60px" Wrap="False" 
                                style="margin-left: 0px" ToolTip="Data do registo de ponto"></asp:TextBox>&nbsp;
                            <asp:TextBox ID="txtHoraDia8" runat="server" BorderColor="Black" 
                                BorderWidth="1px" Font-Size="X-Small" Width="38px" Wrap="False"></asp:TextBox>&nbsp;&nbsp;
                            <asp:ImageButton ID="btnAlterarRegistoDia8" runat="server" 
                                ImageUrl="~/Imagens/Edit2.png" ToolTip="Gravar alteração do registo de ponto." 
                                Visible="False" />&nbsp;&nbsp;
                            <asp:ImageButton ID="btnGravarDia8" runat="server" 
                                ImageUrl="~/Imagens/Ok.png" ToolTip="Gravar registo de ponto." />
                            <asp:ImageButton ID="btnEliminarDia8" runat="server" 
                                ImageUrl="~/Imagens/Delete2.png" ToolTip="Eliminar registo de ponto." />
                            <asp:ImageButton ID="btnAnularAlteracaoDia8" runat="server" 
                                ImageUrl="~/Imagens/Anular.png" ToolTip="Anular alteração efectuada" />
                            <asp:Label ID="lblDataHoraDiaOriginal8" runat="server" Visible="False"></asp:Label>&nbsp;
                            <asp:Label ID="lblAlinhar8" runat="server" ForeColor="#D6E0EE">___</asp:Label>&nbsp;
                            <asp:Label ID="lblAlinhar8_2" runat="server" ForeColor="#D6E0EE">___</asp:Label>&nbsp;
                        </td>
                    </tr>                    
                </table>
            </asp:Panel>

            <asp:Panel ID="pnlEditDiaSub3" runat="server" Width="100%" Visible="False" HorizontalAlign="Center">
                <table border="0" cellpadding="0" cellspacing="0" style="width: 100%; background-color: #a6cdcc">
                    <tr>
                        <td colspan="10" 
                            style="height: 20px; background-color: #d6e0ee; text-align: center">&nbsp;&nbsp;
                            <asp:ImageButton ID="btnDiaMenosDia9" runat="server" 
                                ImageUrl="~/Imagens/EditMenos.png" ToolTip="Alterar Data processamento para dia anterior." 
                                Visible="False" />&nbsp;&nbsp;
                            <asp:TextBox ID="txtDataProcDia9" runat="server" BorderColor="Black" 
                                BorderWidth="1px" Font-Size="X-Small" Width="60px" Wrap="False" ToolTip="Data de processamento"></asp:TextBox>&nbsp;&nbsp;
                            <asp:ImageButton ID="btnDiaMaisDia9" runat="server" 
                                ImageUrl="~/Imagens/EditMais.png" ToolTip="Alterar Data processamento para dia seguinte." 
                                Visible="False" />&nbsp;&nbsp;&nbsp;&nbsp;
                            <asp:TextBox ID="txtDataDia9" runat="server" BorderColor="Black" 
                                BorderWidth="1px" Font-Size="X-Small" Width="60px" Wrap="False" 
                                style="margin-left: 0px" ToolTip="Data do registo de ponto"></asp:TextBox>&nbsp;
                            <asp:TextBox ID="txtHoraDia9" runat="server" BorderColor="Black" 
                                BorderWidth="1px" Font-Size="X-Small" Width="38px" Wrap="False"></asp:TextBox>&nbsp;&nbsp;
                            <asp:ImageButton ID="btnAlterarRegistoDia9" runat="server" 
                                ImageUrl="~/Imagens/Edit2.png" ToolTip="Gravar alteração do registo de ponto." 
                                Visible="False" />&nbsp;&nbsp;
                            <asp:ImageButton ID="btnGravarDia9" runat="server" 
                                ImageUrl="~/Imagens/Ok.png" ToolTip="Gravar registo de ponto." />
                            <asp:ImageButton ID="btnEliminarDia9" runat="server" 
                                ImageUrl="~/Imagens/Delete2.png" ToolTip="Eliminar registo de ponto." />
                            <asp:ImageButton ID="btnAnularAlteracaoDia9" runat="server" 
                                ImageUrl="~/Imagens/Anular.png" ToolTip="Anular alteração efectuada" />
                            <asp:Label ID="lblDataHoraDiaOriginal9" runat="server" Visible="False"></asp:Label>&nbsp;
                            <asp:Label ID="lblAlinhar9" runat="server" ForeColor="#D6E0EE">___</asp:Label>&nbsp;
                            <asp:Label ID="lblAlinhar9_2" runat="server" ForeColor="#D6E0EE">___</asp:Label>&nbsp;
                        </td>
                    </tr>                    
                    <tr>
                        <td colspan="10" 
                            style="height: 20px; background-color: #d6e0ee; text-align: center">&nbsp;&nbsp;
                            <asp:ImageButton ID="btnDiaMenosDia10" runat="server" 
                                ImageUrl="~/Imagens/EditMenos.png" ToolTip="Alterar Data processamento para dia anterior." 
                                Visible="False" />&nbsp;&nbsp;
                            <asp:TextBox ID="txtDataProcDia10" runat="server" BorderColor="Black" 
                                BorderWidth="1px" Font-Size="X-Small" Width="60px" Wrap="False" ToolTip="Data de processamento"></asp:TextBox>&nbsp;&nbsp;
                            <asp:ImageButton ID="btnDiaMaisDia10" runat="server" 
                                ImageUrl="~/Imagens/EditMais.png" ToolTip="Alterar Data processamento para dia seguinte." 
                                Visible="False" />&nbsp;&nbsp;&nbsp;&nbsp;
                            <asp:TextBox ID="txtDataDia10" runat="server" BorderColor="Black" 
                                BorderWidth="1px" Font-Size="X-Small" Width="60px" Wrap="False" 
                                style="margin-left: 0px" ToolTip="Data do registo de ponto"></asp:TextBox>&nbsp;
                            <asp:TextBox ID="txtHoraDia10" runat="server" BorderColor="Black" 
                                BorderWidth="1px" Font-Size="X-Small" Width="38px" Wrap="False"></asp:TextBox>&nbsp;&nbsp;
                            <asp:ImageButton ID="btnAlterarRegistoDia10" runat="server" 
                                ImageUrl="~/Imagens/Edit2.png" ToolTip="Gravar alteração do registo de ponto." 
                                Visible="False" />&nbsp;&nbsp;
                            <asp:ImageButton ID="btnGravarDia10" runat="server" 
                                ImageUrl="~/Imagens/Ok.png" ToolTip="Gravar registo de ponto." />
                            <asp:ImageButton ID="btnEliminarDia10" runat="server" 
                                ImageUrl="~/Imagens/Delete2.png" ToolTip="Eliminar registo de ponto." />
                            <asp:ImageButton ID="btnAnularAlteracaoDia10" runat="server" 
                                ImageUrl="~/Imagens/Anular.png" ToolTip="Anular alteração efectuada" />
                            <asp:Label ID="lblDataHoraDiaOriginal10" runat="server" Visible="False"></asp:Label>&nbsp;
                            <asp:Label ID="lblAlinhar10" runat="server" ForeColor="#D6E0EE">___</asp:Label>&nbsp;
                            <asp:Label ID="lblAlinhar10_2" runat="server" ForeColor="#D6E0EE">___</asp:Label>&nbsp;
                        </td>
                    </tr>                    
                    <tr>
                        <td colspan="10" 
                            style="height: 20px; background-color: #d6e0ee; text-align: center">&nbsp;&nbsp;
                            <asp:ImageButton ID="btnDiaMenosDia11" runat="server" 
                                ImageUrl="~/Imagens/EditMenos.png" ToolTip="Alterar Data processamento para dia anterior." 
                                Visible="False" />&nbsp;&nbsp;
                            <asp:TextBox ID="txtDataProcDia11" runat="server" BorderColor="Black" 
                                BorderWidth="1px" Font-Size="X-Small" Width="60px" Wrap="False" 
                                Visible="False" ToolTip="Data de processamento"></asp:TextBox>&nbsp;&nbsp;
                            <asp:ImageButton ID="btnDiaMaisDia11" runat="server" 
                                ImageUrl="~/Imagens/EditMais.png" ToolTip="Alterar Data processamento para dia seguinte." 
                                Visible="False" />&nbsp;&nbsp;&nbsp;&nbsp;
                            <asp:TextBox ID="txtDataDia11" runat="server" BorderColor="Black" 
                                BorderWidth="1px" Font-Size="X-Small" Width="60px" Wrap="False" 
                                style="margin-left: 0px" Visible="False" ToolTip="Data do registo de ponto"></asp:TextBox>&nbsp;
                            <asp:TextBox ID="txtHoraDia11" runat="server" BorderColor="Black" 
                                BorderWidth="1px" Font-Size="X-Small" Width="38px" Wrap="False" 
                                Visible="False"></asp:TextBox>&nbsp;&nbsp;
                            <asp:ImageButton ID="btnAlterarRegistoDia11" runat="server" 
                                ImageUrl="~/Imagens/Edit2.png" ToolTip="Gravar alteração do registo de ponto." 
                                Visible="False" />&nbsp;&nbsp;
                            <asp:ImageButton ID="btnGravarDia11" runat="server" 
                                ImageUrl="~/Imagens/Ok.png" ToolTip="Gravar registo de ponto." />
                            <asp:ImageButton ID="btnEliminarDia11" runat="server" 
                                ImageUrl="~/Imagens/Delete2.png" ToolTip="Eliminar registo de ponto." />
                            <asp:ImageButton ID="btnAnularAlteracaoDia11" runat="server" 
                                ImageUrl="~/Imagens/Anular.png" ToolTip="Anular alteração efectuada" />
                            <asp:Label ID="lblDataHoraDiaOriginal11" runat="server" Visible="False"></asp:Label>&nbsp;
                            <asp:Label ID="lblAlinhar11" runat="server" ForeColor="#D6E0EE">___</asp:Label>&nbsp;
                            <asp:Label ID="lblAlinhar11_2" runat="server" ForeColor="#D6E0EE">___</asp:Label>&nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td colspan="10" 
                            style="height: 20px; background-color: #d6e0ee; text-align: center">&nbsp;&nbsp;
                            <asp:ImageButton ID="btnDiaMenosDia12" runat="server" 
                                ImageUrl="~/Imagens/EditMenos.png" ToolTip="Alterar Data processamento para dia anterior." 
                                Visible="False" />&nbsp;&nbsp;
                            <asp:TextBox ID="txtDataProcDia12" runat="server" BorderColor="Black" BorderWidth="1px" 
                                Font-Size="X-Small" Width="60px" Wrap="False" ToolTip="Data de processamento"></asp:TextBox>&nbsp;&nbsp;
                            <asp:ImageButton ID="btnDiaMaisDia12" runat="server" 
                                ImageUrl="~/Imagens/EditMais.png" ToolTip="Alterar Data processamento para dia seguinte." 
                                Visible="False" />&nbsp;&nbsp;&nbsp;&nbsp;
                            <asp:TextBox ID="txtDataDia12" runat="server" BorderColor="Black" 
                                BorderWidth="1px" Font-Size="X-Small" Width="60px" Wrap="False" 
                                style="margin-left: 0px" ToolTip="Data do registo de ponto"></asp:TextBox>&nbsp;
                            <asp:TextBox ID="txtHoraDia12" runat="server" BorderColor="Black" 
                                BorderWidth="1px" Font-Size="X-Small" Width="38px" Wrap="False"></asp:TextBox>&nbsp;&nbsp;
                            <asp:ImageButton ID="btnAlterarRegistoDia12" runat="server" 
                                ImageUrl="~/Imagens/Edit2.png" ToolTip="Gravar alteração do registo de ponto." 
                                Visible="False" />&nbsp;&nbsp;
                            <asp:ImageButton ID="btnGravarDia12" runat="server" 
                                ImageUrl="~/Imagens/Ok.png" ToolTip="Gravar registo de ponto." />&nbsp;&nbsp;
                            <asp:ImageButton ID="btnEliminarDia12" runat="server" 
                                ImageUrl="~/Imagens/Delete2.png" ToolTip="Eliminar registo de ponto." />&nbsp;&nbsp;
                            <asp:ImageButton ID="btnAnularAlteracaoDia12" runat="server" 
                                ImageUrl="~/Imagens/Anular.png" ToolTip="Anular alteração efectuada" />
                            <asp:Label ID="lblDataHoraDiaOriginal12" runat="server" Visible="False"></asp:Label>&nbsp;
                            <asp:Label ID="lblAlinhar12" runat="server" ForeColor="#D6E0EE">___</asp:Label>&nbsp;
                            <asp:Label ID="lblAlinhar12_2" runat="server" ForeColor="#D6E0EE">___</asp:Label>&nbsp;
                        </td>
                    </tr>                    
                </table>
            </asp:Panel>
            <asp:Panel ID="pnlEditNotasFaltasExtras" runat="server" Width="100%" Visible="False" HorizontalAlign="Center">
                <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 colspan="34" style="height: 20px; background-color: #d6e0ee; text-align: center">
                            <br />
                            <asp:Label ID="RotuloNotasFaltasExtras" runat="server" Text="Notas:"></asp:Label>&nbsp;
                            <asp:TextBox ID="txtNotasFaltasExtras" runat="server" BorderColor="Black" BorderWidth="1px" 
                                Font-Size="X-Small" Width="500px" ></asp:TextBox>&nbsp;&nbsp;
                            <asp:ImageButton ID="btnEliminarPdf" runat="server" 
                                ImageUrl="~/Imagens/Delete2.png" ToolTip="Eliminar documento 'pdf'." Visible="True" />&nbsp;&nbsp;
                            <%--<asp:ImageButton ID="btnPdf" runat="server" 
                                ImageUrl="~/Imagens/Pdf.png" ToolTip="Anexar documento 'pdf'." Visible="True" />&nbsp;&nbsp;--%>
                            <asp:LinkButton ID="lnkGravarNotasFaltasExtras" runat="server">Gravar / Sair</asp:LinkButton>
                            <br />
                        </td>
                    </tr>
                    <tr>
                        <td colspan="34" style="height: 20px; background-color: #d6e0ee; text-align: center">
                            <br />
                            <asp:Label ID="RotuloFileUploadFaltasExtras" runat="server" Text="Anexar documento 'pdf':"></asp:Label>&nbsp;
                            <asp:FileUpload ID="FileUploadFaltasExtras" runat="server" ToolTip="Documento" 
                                BackColor="#F7F6F3" CssClass="icon" Font-Size="Small" Width="600px" 
                                Visible="False" />
                            <asp:LinkButton ID="lnkGravarPdfFaltasExtras" runat="server">Gravar / Sair</asp:LinkButton>&nbsp;&nbsp;
                            <br /> <br />
                        </td>
                    </tr>
                </table>
            </asp:Panel>

            <asp:Panel ID="pnlEditKmViaturaPropria" runat="server" Width="100%" Visible="False" HorizontalAlign="Center">
                <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 colspan="34" style="height: 20px; background-color: #d6e0ee; text-align: center">
                            <br />
                            <asp:Label ID="RotuloKmNumeroEmpregado" runat="server" Text="Empregado:"></asp:Label>&nbsp;
                            <asp:DropDownList ID="cboKmNumeroEmpregado" runat="server" Enabled="False" Font-Size="X-Small">
                            </asp:DropDownList>&nbsp;
                            <asp:Label ID="RotuloKmData" runat="server" Text="Data:"></asp:Label>&nbsp;
                            <asp:TextBox ID="txtKmData" runat="server" BorderColor="Black" BorderWidth="1px" 
                                Enabled="False" Font-Size="X-Small" Width="60px" Wrap="False"></asp:TextBox>&nbsp;&nbsp;
                            <asp:Label ID="RotuloKmViaturaPropria" runat="server" Text="Km em viatura própria:"></asp:Label>&nbsp;
                            <asp:TextBox ID="txtKmViaturaPropria" runat="server" BorderColor="Black" BorderWidth="1px" 
                                Font-Size="X-Small" Width="20px" ></asp:TextBox>&nbsp;&nbsp;
                            <asp:LinkButton ID="lnkKmViaturaPropriaGravar" runat="server">Gravar</asp:LinkButton>&nbsp;&nbsp;
                            <asp:LinkButton ID="lnkKmViaturaPropriaCancelar" runat="server">Cancelar</asp:LinkButton>&nbsp;&nbsp;
                            <br /><br />
                        </td>
                    </tr>
                </table>
            </asp:Panel>

            <asp:Panel ID="pnlEditHorario" runat="server" Width="100%" Visible="False" HorizontalAlign="Center">
                <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 colspan="34" style="height: 20px; background-color: #d6e0ee; text-align: center">
                            <br />
                            <asp:Label ID="RotuloHorarioNumeroEmpregado" runat="server" Text="Empregado:"></asp:Label>&nbsp;
                            <asp:TextBox ID="txtHorarioEmpregado" runat="server" BorderColor="Black" BorderWidth="1px" Enabled="False" Font-Size="X-Small" Width="160px" Wrap="False"></asp:TextBox>&nbsp;&nbsp;
                            <asp:Label ID="RotuloHorarioData" runat="server" Text="Data:"></asp:Label>&nbsp;
                            <asp:TextBox ID="txtHorarioData" runat="server" BorderColor="Black" BorderWidth="1px" Enabled="False" Font-Size="X-Small" Width="60px" Wrap="False"></asp:TextBox>&nbsp;&nbsp;
                            <asp:Label ID="RotuloHorario" runat="server" Text="Horario:"></asp:Label>&nbsp;
                            <asp:DropDownList ID="cboHorario" runat="server" Font-Size="X-Small"></asp:DropDownList>&nbsp;
                            <asp:ImageButton ID="btnHorariosEmpregado" runat="server" ImageUrl="~/Imagens/LupaMenos.png" ToolTip="Horários automáticos / Ou já associados." Visible="False" />
                            <asp:ImageButton ID="btnTodosHorarios" runat="server" ImageUrl="~/Imagens/LupaMais.png" ToolTip="Todos os horários activos." />&nbsp;&nbsp;&nbsp;
                            <asp:LinkButton ID="lnkHorarioGravar" runat="server">Gravar</asp:LinkButton>&nbsp;&nbsp;
                            <asp:LinkButton ID="lnkHorarioCancelar" runat="server">Cancelar</asp:LinkButton>&nbsp;&nbsp;
                            <br /><br />
                        </td>
                    </tr>
                </table>
            </asp:Panel>

            <asp:Panel ID="pnlEditFaltasExtras" runat="server" Width="100%" Visible="False" HorizontalAlign="Center">
                <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 colspan="34" style="height: 20px; background-color: #d6e0ee; text-align: center">
                            <asp:Label ID="RotuloFaltasExtrasDataInicio" runat="server" Text="Data Início:" Width="66px"></asp:Label>&nbsp;
                            <asp:TextBox ID="txtFaltasExtrasDataInicio" runat="server" BorderColor="Black" BorderWidth="1px"
                                Font-Size="X-Small" Width="60px" AutoPostBack="True" ></asp:TextBox>&nbsp;&nbsp;
                            <asp:TextBox ID="txtFaltasExtrasHoraInicio" runat="server" BorderColor="Black" BorderWidth="1px" 
                                Enabled="True" Font-Size="X-Small" Width="38px" Wrap="False"></asp:TextBox>&nbsp;&nbsp;
                            <asp:Label ID="RotuloFaltasExtrasHoraInicio2" runat="server" 
                                Text="Hora início 2ª ausência:" Visible="False"></asp:Label>&nbsp;
                            <asp:TextBox ID="txtFaltasExtrasHoraInicio2" runat="server" BorderColor="Black" 
                                BorderWidth="1px" Font-Size="X-Small"
                                Width="38px" Visible="False"></asp:TextBox>&nbsp;&nbsp;
                            <asp:Label ID="RotuloFaltasExtrasDataFim" runat="server" Text="Data Fim:"></asp:Label>&nbsp;
                            <asp:TextBox ID="txtFaltasExtrasDataFim" runat="server" BorderColor="Black" BorderWidth="1px"
                                Font-Size="X-Small" Width="60px" AutoPostBack="True"></asp:TextBox>&nbsp;&nbsp;
                            <asp:TextBox ID="txtFaltasExtrasHoraFim" runat="server" BorderColor="Black" BorderWidth="1px" 
                                    Enabled="True" Font-Size="X-Small" Width="38px" Wrap="False"></asp:TextBox>
                            <asp:ImageButton ID="btnFaltasExtrasCalcularHoras" runat="server" 
                                ImageUrl="~/Imagens/Edit2.png" ToolTip="Recalcular horas" Width="16px" />&nbsp;&nbsp;&nbsp;&nbsp;
                            <asp:Label ID="RotuloFaltasExtrasHoras" runat="server" Text="Horas:"></asp:Label>&nbsp;
                            <asp:TextBox ID="txtFaltasExtrasHoras" runat="server" BorderColor="Black" BorderWidth="1px" Font-Size="X-Small"
                                Width="38px"></asp:TextBox>&nbsp;&nbsp;
                            <asp:Label ID="RotuloFaltasExtrasCriarSegundaAusencia" runat="server" Text="Criar 2ª ausência"></asp:Label>&nbsp;
                            <asp:ImageButton ID="btnFaltasExtrasCriarSegundaAusencia" runat="server" 
                                ImageUrl="~/Imagens/Edit2.png" ToolTip="Criar 2ª ausência" />&nbsp;&nbsp;
                            <asp:Label ID="RotuloFaltasExtrasHoras2" runat="server" Text="Horas 2ª ausência:" 
                                Visible="False"></asp:Label>&nbsp;
                            <asp:TextBox ID="txtFaltasExtrasHoras2" runat="server" BorderColor="Black" 
                                BorderWidth="1px" Font-Size="X-Small"
                                Width="38px" Visible="False"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="34" style="height: 20px; background-color: #d6e0ee; text-align: center">
                            <asp:Label ID="RotuloFaltasExtrasCodigo" runat="server" Text="Cód. falta:"></asp:Label>&nbsp;
                            <asp:DropDownList ID="cboFaltasExtrasFaltaCodigo" runat="server" Font-Size="X-Small"></asp:DropDownList>&nbsp;&nbsp;
                            <asp:Label ID="RotuloFaltasExtrasJustificacao2" runat="server" Text="Justificação 2ª ausência:" Visible="False"></asp:Label>&nbsp;
                            <asp:DropDownList ID="cboFaltasExtrasFaltaCodigo2" runat="server" Font-Size="X-Small" 
                                Width="195px" Visible="False"></asp:DropDownList>&nbsp;&nbsp;
                            <asp:DropDownList ID="cboFaltasExtrasEscalaoCodigo" runat="server" Font-Size="X-Small" Enabled="True">
                            </asp:DropDownList>&nbsp;
                            <asp:LinkButton ID="lnkGravarFaltas" runat="server" Visible="False">Gravar</asp:LinkButton>&nbsp;&nbsp;
                            <asp:LinkButton ID="lnkGravarExtras" runat="server" Visible="False">Gravar</asp:LinkButton>&nbsp;&nbsp;
                            <asp:LinkButton ID="lnkCancelarFaltasExtras" runat="server" Visible="False">Cancelar</asp:LinkButton>
                            </td>
                    </tr>
                </table>
            </asp:Panel>
            </td>
        </tr>

        <tr align="center">
        <td  colspan="3" style="text-align: center" align="center">
            <asp:Panel ID="pnlFaltasExtras" runat="server" Visible="False" Width="100%" 
                HorizontalAlign="Center">
            <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: #5d7b9d; text-align: right" width="50%" >
                        <asp:Label ID="RotuloFaltasExtras" runat="server" ForeColor="Yellow" Text="Ausências / extras"></asp:Label>
                    </td>
                    <td style="height: 20px; background-color: #5d7b9d; text-align:  left" width="50%" >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:ImageButton ID="btnFaltasExtrasInserir" runat="server" ImageUrl="~/Imagens/Add.png" ToolTip="Inserir novo registo." OnClientClick="target=''" Width="30px"/>
                    </td>
                </tr> 
                <%--<tr>
                <td style="height: 20px; background-color: #d6e0ee; text-align: center" align="center">--%>
                    <asp:GridView ID="grdDadosFaltasExtras" runat="server" CellPadding="4" 
                        ForeColor="#333333" GridLines="Vertical" Width="100%" AllowPaging="True" 
                        AutoGenerateColumns="False" HorizontalAlign="Center">
                    <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="NumeroEmpregado" HeaderText="Núm." />
                        <asp:BoundField DataField="Nome" HeaderText="Nome" />
                        <asp:BoundField HeaderText="Dia" DataField="Data" />
                        <asp:BoundField DataField="Data" HeaderText="Data" ReadOnly="True" />
                        <asp:BoundField DataField="IniFalta" HeaderText="Início" />
                        <asp:BoundField DataField="FimFalta" HeaderText="Fim" />
                        <asp:BoundField DataField="HorasFalta" HeaderText="Horas" />
                        <asp:TemplateField HeaderText="Cód. falta">
                        <ItemTemplate>
                            <asp:DropDownList ID="dropFaltas" runat="server" AutoPostBack="True" 
                                Font-Size="X-Small" CssClass="drop" Height="18px" onload="dropFaltas_Load" 
                                onselectedindexchanged="dropFaltas_SelectedIndexChanged" >
                            </asp:DropDownList>
                            </span>
                        </ItemTemplate>                            
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Confirmação">
                            <ItemTemplate>
                            <asp:DropDownList ID="DropConfirmacao" runat="server" AutoPostBack="True" 
                                Font-Size="X-Small" CssClass="drop" Height="18px" onload="DropConfirmacao_Load" 
                                onselectedindexchanged="DropConfirmacao_SelectedIndexChanged">
                            </asp:DropDownList>
                            </span>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="IniExtra" HeaderText="Início" />
                        <asp:BoundField DataField="FimExtra" HeaderText="Fim" />
                        <asp:BoundField DataField="HorasExtra" HeaderText="Horas" />
                        <asp:TemplateField HeaderText="Cód. extra">
                        <ItemTemplate>
                            <asp:DropDownList ID="dropExtras" runat="server" AutoPostBack="True" 
                                Font-Size="X-Small" CssClass="drop" Height="18px" onload="dropExtras_Load" 
                                onselectedindexchanged="dropExtras_SelectedIndexChanged">
                            </asp:DropDownList>
                            </span>
                        </ItemTemplate>                            
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Justificação">
                        <ItemTemplate>
                            <asp:DropDownList ID="dropJustificacao" runat="server" AutoPostBack="True" 
                                Font-Size="X-Small" CssClass="drop" Height="18px" onload="dropJustificacao_Load" 
                                onselectedindexchanged="dropJustificacao_SelectedIndexChanged">
                            </asp:DropDownList>
                            </span>
                        </ItemTemplate>                            
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Validado">
                            <ItemTemplate>
                                <asp:CheckBox ID="chkValidadoFaltasExtras" runat="server" AutoPostBack="True" OnCheckedChanged="chkValidadoFaltasExtras_Clicked" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <%--<asp:BoundField DataField="Notas" HeaderText="Notas"/>--%>
                        <asp:TemplateField HeaderText="Notas">
                            <ItemTemplate>
                                <table cellpadding="0" cellspacing="0" class="style3">
                                    <tr>
                                    <td>
                                        <asp:Label ID="lblNotasFaltasExtras" runat="server" />
                                        <asp:imagebutton ID="btnNotasFaltasExtras" runat="server"  
                                            Height="18px" OnClick="btnNotasFaltasExtras_Click" ImageUrl="~/Imagens/Edit2.png" ToolTip="Editar notas." Width="12px" />
                                    </td>
                                    </tr>
                                </table>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <%--<asp:TemplateField HeaderText="doc.">
                            <ItemTemplate>
                                <table cellpadding="0" cellspacing="0" class="style3">
                                    <tr>
                                    <td>
                                        <asp:imagebutton ID="btnPdfFaltasExtras" runat="server" 
                                            Height="18px" OnClick="btnVerPdf_Click" ImageUrl="~/Imagens/pdf.png" ToolTip="Baixar documento 'Pdf'." Width="12px" />
                                    </td>
                                    </tr>
                                </table>
                            </ItemTemplate>
                        </asp:TemplateField>--%>
                        <asp:TemplateField HeaderText="doc.">
                            <ItemTemplate>
                                <table cellpadding="0" cellspacing="0" class="style3">
                                    <tr>
                                    <td>
                                        <asp:imagebutton ID="btnPdfFaltasExtras" runat="server"   
                                            Height="12px" OnClick="btnVerPdfFaltasExtras_Click" ImageUrl="~/Imagens/pdf.png" ToolTip="Baixar documento 'Pdf'." Width="12px" />
                                        <asp:imagebutton ID="btnAnexarPdfFaltasExtras" runat="server"   
                                            Height="12px" OnClick="btnAnexarPdfFaltasExtras_Click" ImageUrl="~/Imagens/Edit2.png" ToolTip="Anexar documento 'Pdf'." Width="12px" />
                                        <asp:imagebutton ID="btnEliminarPdf2FaltasExtras" runat="server"   
                                            Height="12px" OnClick="btnEliminarPdf2FaltasExtras_Click" ImageUrl="~/Imagens/Delete2.png" ToolTip="Eliminar documento 'pdf'." Width="12px" />
                                    </td>
                                    </tr>
                                </table>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="">
                            <ItemTemplate>
                                <table cellpadding="0" cellspacing="0" class="style3">
                                    <tr>
                                    <td>
                                        <asp:imagebutton ID="btnRegistadoPor" runat="server"  
                                            Height="12px" OnClick="btnRegistadoPor_Click" ImageUrl="~/Imagens/Informacao1.png" ToolTip="" Width="12px" />
                                    </td>
                                    </tr>
                                </table>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="CodigoFalta" HeaderText=""/>
                        <asp:BoundField DataField="ConfirmacaoFalta" HeaderText=""/>
                        <asp:BoundField DataField="CodigoExtra" HeaderText=""/>
                        <asp:BoundField DataField="JustificacaoExtra" HeaderText=""/>
                        <asp:BoundField DataField="TipoHora" />
                        <asp:BoundField DataField="DataInicio" />
                        <asp:BoundField DataField="DataFim" />
                        <asp:BoundField DataField="Validado" HeaderText="" />
                        <asp:BoundField DataField="IdObjecto" HeaderText="" />
                        <asp:BoundField DataField="EnviadoPara" HeaderText="" />
                        <asp:BoundField DataField="RegistadoPor" HeaderText="" />
                        <asp:BoundField DataField="RegistadoEm" 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>
                </tr>--%>

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

        <tr align="center">
        <td colspan="2" style="text-align: center" align="center">
            <asp:Panel ID="pnlDadosPontoObras" runat="server" Visible="False" Width="100%" 
                HorizontalAlign="Center">
            <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: #5d7b9d; text-align: center " 
                        align="center">
                    <asp:Label ID="Label4" runat="server" ForeColor="Yellow" Text="Ponto Obras"></asp:Label>
                 </td>
                </tr> 
                <tr>
                <td style="height: 20px; background-color: #d6e0ee; text-align: center" 
                        align="center">
                    <asp:GridView ID="grdDadosPontoObras" runat="server" AutoGenerateColumns="False" CellPadding="4" 
                                ForeColor="#333333" GridLines="Vertical" Width="100%" AllowPaging="True" 
                                PageSize="12">
                    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <Columns>
                        <asp:CommandField SelectText="&gt;" ShowSelectButton="False" ButtonType="Image" 
                            DeleteImageUrl="~/Imagens/Delete2.png" SelectImageUrl="~/Imagens/Edit2.png" 
                            ShowDeleteButton="True" />
                        <%--<asp:BoundField DataField="Emissor" HeaderText="Emissor" />--%>
                        <%--<asp:TemplateField HeaderText="Ordem Trabalho">
                        <ItemTemplate>
                            <asp:DropDownList ID="dropOrdemTrabalho" runat="server" AutoPostBack="True" 
                                Font-Size="X-Small" CssClass="drop" Height="19px" onload="dropOrdemTrabalho_Load" 
                                onselectedindexchanged="dropOrdemTrabalho_SelectedIndexChanged" >
                            </asp:DropDownList>
                            </span>
                        </ItemTemplate>                            
                        </asp:TemplateField>--%>
                        <%--<asp:BoundField DataField="Oficina" HeaderText="Oficina" ReadOnly="True" />--%>
                        <asp:TemplateField HeaderText="Oficina">
                        <ItemTemplate>
                            <asp:DropDownList ID="dropOficina" runat="server" AutoPostBack="True" 
                                Font-Size="X-Small" CssClass="drop" Height="19px" onload="dropOficina_Load" 
                                onselectedindexchanged="dropOficina_SelectedIndexChanged" >
                            </asp:DropDownList>
                            </span>
                        </ItemTemplate>                            
                        </asp:TemplateField>
                        <asp:BoundField DataField="Data" HeaderText="Data" ReadOnly="True" />
                        <asp:BoundField DataField="DataHoraInicio" HeaderText="In&#237;cio" />
                        <asp:BoundField DataField="DataHoraFim" HeaderText="Fim" />
                        <asp:TemplateField HeaderText="Anulado">
                            <ItemTemplate>
                                <asp:CheckBox ID="chkPontoObrasAnulado" runat="server" AutoPostBack="True" OnCheckedChanged="chkPontoObrasAnulado_Clicked" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField meta:resourcekey="TemplateFieldResource1" HeaderText="Enviar p/" >
                            <ItemTemplate>
                            <asp:Button ID="btnEnviarParaPonto" runat="server" BackColor="#D6E0EE" Height="20px" OnClick="btnEnviarParaPonto_Click"
                                Text="Ponto" Font-Size="X-Small" Width="40px"></asp:Button>
                            </ItemTemplate>
                            <ItemStyle Width="40px" />
                        </asp:TemplateField>
                        <asp:BoundField DataField="Emissor2" HeaderText="Emissor2" />
                        <asp:BoundField DataField="OrdemTrabalho" HeaderText="OrdemTrabalho" />
                        <asp:BoundField DataField="Oficina2" HeaderText="Oficina2" />
                        <asp:BoundField DataField="Anulado" 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>
                </tr>

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

        <tr>
        <td colspan="2" 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" > </asp:DropDownList>
                        </td>
                    </tr> 
                    <tr>
                        <td style="height: 20px; background-color: #d6e0ee; text-align: center">
                            <asp:Label ID="RotuloCodigo" runat="server" Text="Código:"></asp:Label>&nbsp;
                            <asp:TextBox ID="txtCodigoTabelaAuxiliar" runat="server" BorderWidth="1px" Font-Size="X-Small" Width="47px"></asp:TextBox>&nbsp;
                            <asp:Label ID="RotuloDescricao" runat="server" Text="Descrição:"></asp:Label>&nbsp;
                            <asp:TextBox ID="txtDescricaoTabelaAuxiliar" runat="server" BorderWidth="1px" Font-Size="X-Small" Width="235px"></asp:TextBox>&nbsp;
                        <%--<asp:Label ID="RotuloLimiteHorasTransferirMesSeguinte" runat="server" Text="Máx. H. Mês a Transferir:"></asp:Label>&nbsp;
                        <asp:TextBox ID="txtLimiteHorasTransferirMesSeguinte" runat="server" BorderColor="Black" BorderWidth="1px"
                            Font-Size="X-Small" Width="38px" ToolTip="Limite de horas a tranferir para o mês seguinte."></asp:TextBox>&nbsp;--%>
                        <asp:Label ID="RotuloFactorBH" runat="server" Text="Factor:"></asp:Label>&nbsp;
                        <asp:TextBox ID="txtFactorBH" runat="server" BorderColor="Black" BorderWidth="1px" 
                            Font-Size="X-Small" Width="50px"></asp:TextBox>&nbsp;
                            <asp:Label ID="RotuloCorTabelaAuxiliar" runat="server" Text="Cor:" 
                                Visible="False" ></asp:Label>&nbsp;
                            <asp:TextBox ID="txtCorTabelaAuxiliar" runat="server" BorderColor="Black" BorderWidth="1px" 
                                Font-Size="X-Small" Width="60px" Visible="False" ></asp:TextBox>&nbsp;&nbsp;
                            <asp:ImageButton ID="btnCorTabelaAuxiliar" runat="server" 
                                    ImageUrl="~/Imagens/Edit2.png" ToolTip="Escolher cor" Width="16px" />&nbsp;&nbsp;
                            <asp:Label ID="RotuloMesesDataInicio" runat="server" Text="Início processamento:"></asp:Label>&nbsp;
                            <asp:TextBox ID="txtMesesDataInicio" runat="server" BorderColor="Black" BorderWidth="1px" 
                            Enabled="True" Font-Size="X-Small" Width="60px" Wrap="False"></asp:TextBox>&nbsp;&nbsp;
                            <asp:Label ID="RotuloMesesDataFim" runat="server" Text="Fim processamento:"></asp:Label>&nbsp;
                            <asp:TextBox ID="txtMesesDataFim" runat="server" BorderColor="Black" BorderWidth="1px" 
                            Enabled="True" Font-Size="X-Small" Width="60px" Wrap="False"></asp:TextBox>&nbsp;&nbsp;
                            <asp:Label ID="RotuloMesesDataBloqueio" runat="server" Text="Data bloqueio mês aberto:"></asp:Label>&nbsp;
                            <asp:TextBox ID="txtMesesDataBloqueio" runat="server" BorderColor="Black" BorderWidth="1px" 
                            Enabled="True" Font-Size="X-Small" Width="60px" Wrap="False"></asp:TextBox>&nbsp;&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:GridView ID="grdDadosCores" runat="server" CellPadding="4" HorizontalAlign="Center" 
                                PageSize="4" Width="702px" AutoGenerateColumns="False" 
                            Visible="False" >
                            <Columns>
                                <asp:CommandField SelectText="" ShowSelectButton="True" ButtonType="Image" 
                                    SelectImageUrl="~/Imagens/Edit2.png" />
                                <asp:BoundField DataField="ID" HeaderText="ID" />
                                <asp:BoundField DataField="Cor" HeaderText="Cor" />
                                <asp:BoundField DataField="Codigo" HeaderText="Código" />
                                <asp:TemplateField HeaderText="Activa">
                                    <ItemTemplate>
                                        <asp:CheckBox ID="chkActiva" runat="server" AutoPostBack="True" OnCheckedChanged="chkActiva_Clicked" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:BoundField DataField="Activa" HeaderText="CpoActiva" />
                            </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>
                        <asp:GridView ID="grdDadosTabelasAuxiliares" runat="server" CellPadding="4" HorizontalAlign="Center" 
                                AllowPaging="True" PageSize="20" Width="702px" AutoGenerateColumns="False" RowStyle-HorizontalAlign="Left"> 
                            <Columns>
                                <asp:CommandField SelectText="" ShowSelectButton="True" ButtonType="Image" 
                                    SelectImageUrl="~/Imagens/Edit2.png" 
                                    DeleteImageUrl="~/Imagens/Delete2.png" ShowDeleteButton="True" />
                                <asp:BoundField DataField="Codigo" HeaderText="Código" />
                                <asp:BoundField DataField="Descricao" HeaderText="Descrição" />
                                <asp:BoundField DataField="Cor" HeaderText="Cor" />
                                <asp:TemplateField HeaderText="Activa">
                                    <ItemTemplate>
                                        <asp:CheckBox ID="chkNotasActiva" runat="server" AutoPostBack="True" OnCheckedChanged="chkNotasActiva_Clicked" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:BoundField DataField="Activa" 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>
                        <asp:GridView ID="grdDadosTabelasAuxiliaresObjectos" runat="server" CellPadding="4" HorizontalAlign="Center" 
                                AllowPaging="True" PageSize="20" Width="702px" RowStyle-HorizontalAlign="Left" 
                                AutoGenerateColumns="False">
                            <Columns>
                                <asp:CommandField SelectText="" ShowSelectButton="True" ButtonType="Image" 
                                    SelectImageUrl="~/Imagens/Edit2.png" 
                                    DeleteImageUrl="~/Imagens/Delete2.png" ShowDeleteButton="True" />
                                <asp:BoundField DataField="IdObjecto" HeaderText="Código" />
                                <asp:BoundField DataField="Numero" HeaderText="Nº relógio" />
                                <asp:BoundField DataField="Localizacao" HeaderText="Localização" />
                                <asp:BoundField DataField="Descricao" HeaderText="Descrição" />
                                <asp:TemplateField HeaderText="Activo">
                                    <ItemTemplate>
                                        <asp:CheckBox ID="chkObjectoActivo" runat="server" AutoPostBack="True" OnCheckedChanged="chkObjectoActivo_Clicked" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <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>

                        </td>
                    </tr>
                    <tr>
                        <td style="height: 20px; background-color: #d6e0ee; text-align: center">
                        <asp:GridView ID="grdDadosTabelaExtras" runat="server" 
                            AutoGenerateColumns="False" CellPadding="4" HorizontalAlign="Center" 
                                PageSize="4" Width="1400px">
                            <Columns>
                                <asp:CommandField SelectText="" ShowSelectButton="True" ButtonType="Image" 
                                    SelectImageUrl="~/Imagens/Edit2.png" 
                                    DeleteImageUrl="~/Imagens/Delete2.png" ShowDeleteButton="False" 
                                    HeaderText="      " />
                                <asp:BoundField DataField="Escalao" HeaderText="Código" />
                                <asp:BoundField DataField="Descricao" HeaderText="Descrição" />
                                <asp:BoundField DataField="Abreviatura" HeaderText="Abreviatura" />
                                <%--<asp:BoundField DataField="LimiteHorasTransferirMesSeguinte" HeaderText="Máx. H. Mês a Transf" />--%>
                                <%--<asp:TemplateField HeaderText="Controlo Extras">
                                    <ItemTemplate>
                                        <asp:DropDownList ID="DropControloExtras" runat="server" AutoPostBack="True" 
                                            onselectedindexchanged="DropControloExtras_SelectedIndexChanged" 
                                            SelectedValue='<%# Bind("ControloExtras") %>' Font-Size="X-Small" Height="19px">
                                            <asp:ListItem></asp:ListItem>
                                            <asp:ListItem Value="0">Só confirmadas</asp:ListItem>
                                            <asp:ListItem Value="1">Todos os registos</asp:ListItem>
                                        </asp:DropDownList>
                                    </ItemTemplate>
                                </asp:TemplateField>--%>
                                <%--<asp:TemplateField HeaderText="Banco Horas">
                                <ItemTemplate>
                                    <asp:DropDownList ID="dropBancoHoras" runat="server" AutoPostBack="True" 
                                        Font-Size="X-Small" CssClass="drop" Height="15px" onload="dropBancoHoras_Load" 
                                        onselectedindexchanged="dropBancoHoras_SelectedIndexChanged">
                                    </asp:DropDownList>
                                    </span>
                                </ItemTemplate>                            
                                </asp:TemplateField>--%>
                                <%--<asp:TemplateField HeaderText="Justificação Extras">
                                <ItemTemplate>
                                    <asp:DropDownList ID="dropCompensacaoExtras" runat="server" AutoPostBack="True" 
                                        Font-Size="X-Small" CssClass="drop" Height="15px" onload="dropCompensacaoExtras_Load" 
                                        onselectedindexchanged="dropCompensacaoExtras_SelectedIndexChanged">
                                    </asp:DropDownList>
                                    </span>
                                </ItemTemplate>                            
                                </asp:TemplateField>--%>
                                <asp:BoundField DataField="PercentagemBH" HeaderText="Factor BH" />
                                <asp:TemplateField HeaderText="Factor BH Activo">
                                    <ItemTemplate>
                                        <asp:CheckBox ID="chkPercentagemBHPonto" runat="server" AutoPostBack="True" OnCheckedChanged="chkPercentagemBHPonto_Clicked" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <%--<asp:BoundField DataField="SubTurno" HeaderText="" />
                                <asp:BoundField DataField="Compensacao" HeaderText="" />
                                <asp:BoundField DataField="CodigoBancoHoras" HeaderText="" />--%>
                                <asp:BoundField DataField="PercentagemBHPonto" 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>
                    </tr>

                    <tr>
                    <td style="height: 20px; background-color: #d6e0ee; text-align: center">
                    <asp:Panel ID="pnlTabelaSubsidios" runat="server" Visible="False" Width="100%">
                            <asp:Label ID="RotuloTipoSubsidio" runat="server" Text="Código:"></asp:Label>&nbsp;
                            <asp:TextBox ID="txtTipoSubsidio" runat="server" BorderWidth="1px" Font-Size="X-Small" Width="30px"></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="RotuloDescricaoSubsidio" runat="server" Text="Descrição:"></asp:Label>&nbsp;
                            <asp:TextBox ID="txtDescricaoTabelaAuxiliarSubsidio" runat="server" BorderWidth="1px" Font-Size="X-Small" Width="235px"></asp:TextBox>&nbsp;
                            <asp:Label ID="RotuloAbreviatura" runat="server" Text="Abreviatura:"></asp:Label>&nbsp;
                            <asp:TextBox ID="TxtAbreviatura" runat="server" BorderWidth="1px" Font-Size="X-Small" Width="47px"></asp:TextBox>&nbsp;
                            <asp:Label ID="RotuloCodigoExterno" runat="server" Text="Código Externo:"></asp:Label>&nbsp;
                            <asp:TextBox ID="txtCodigoExterno" runat="server" BorderWidth="1px" Font-Size="X-Small" Width="47px"></asp:TextBox>&nbsp;
                            <br />  <br />
                            <asp:Label ID="RotuloMinimoHoras" runat="server" Text="Mín Horas Trab. Dia:"></asp:Label>&nbsp;
                            <asp:TextBox ID="txtMinimoHoras" runat="server" BorderWidth="1px" Font-Size="X-Small" Width="30px"></asp:TextBox>&nbsp;
                            <asp:Label ID="RotuloDias" runat="server" Text="Dias Úteis:"></asp:Label>&nbsp;
                            <asp:TextBox ID="txtDias" runat="server" BorderWidth="1px" Font-Size="X-Small" Width="30px"></asp:TextBox>&nbsp;
                            <asp:Label ID="RotuloLimiteHorasFalta" runat="server" Text="Lim. H. Faltas/Mês:"></asp:Label>&nbsp;
                            <asp:TextBox ID="txtLimiteHorasFalta" runat="server" BorderWidth="1px" Font-Size="X-Small" Width="30px"></asp:TextBox>&nbsp;
                            <asp:Label ID="RotuloLimiteDiasFalta" runat="server" Text="Lim. D. Faltas/Mês:"></asp:Label>&nbsp;
                            <asp:TextBox ID="txtLimiteDiasFalta" runat="server" BorderWidth="1px" Font-Size="X-Small" Width="30px"></asp:TextBox>&nbsp;
                            <asp:Label ID="RotuloLimiteDiasTrabalho" runat="server" Text="Dias Trab. Consecutivos:"></asp:Label>&nbsp;
                            <asp:TextBox ID="txtLimiteDiasTrabalho" runat="server" BorderWidth="1px" Font-Size="X-Small" Width="30px"></asp:TextBox>&nbsp;&nbsp;
                            <br />  <br />

                        <asp:GridView ID="grdDadosTabelaSubsidios" runat="server" 
                            AutoGenerateColumns="False" CellPadding="4" HorizontalAlign="Center" 
                                PageSize="4" Width="1000px">
                            <Columns>
                                <asp:CommandField SelectText="" ShowSelectButton="True" ButtonType="Image" 
                                    SelectImageUrl="~/Imagens/Edit2.png" 
                                    DeleteImageUrl="~/Imagens/Delete2.png" ShowDeleteButton="False" 
                                    HeaderText="      " />
                                <asp:BoundField DataField="TipoSubsidio" HeaderText="Código" />
                                <asp:BoundField DataField="Descricao" HeaderText="Descrição" />
                                <asp:BoundField DataField="Abreviatura" HeaderText="Abreviatura" />
                                <asp:BoundField DataField="Codigo" HeaderText="Código Externo" />
                                <asp:BoundField DataField="MinimoHoras" HeaderText="Min. H. Trab. Dia" />
                                <asp:BoundField DataField="Dias" HeaderText="Dias Úteis" />
                                <asp:BoundField DataField="LimiteHorasFalta" HeaderText="Lim. H. Falta/Mês" />
                                <asp:BoundField DataField="LimiteDiasFalta" HeaderText="Lim. D. Falta/Mês" />
                                <asp:BoundField DataField="LimiteDiasTrabalho" HeaderText="Dias Trab. Consecutivos" />
                                <asp:TemplateField HeaderText="Activo">
                                    <ItemTemplate>
                                        <asp:CheckBox ID="chkActivo" runat="server" AutoPostBack="True" OnCheckedChanged="chkActivo_Clicked" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <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>
                    </asp:Panel>
                    <asp:Panel ID="pnlTabelaMeses" runat="server" Visible="False" Width="100%">
                        <asp:GridView ID="grdDadosTabelaMeses" runat="server" CellPadding="4" ForeColor="#333333" 
                            Width="600px" GridLines="Vertical"  AllowPaging="True" PageSize="12" 
                                style="margin-top: 0px" AutoGenerateColumns="False" 
                            HorizontalAlign="Center" >
                            <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="Ano" HeaderText="Ano" />
                                <asp:BoundField DataField="Mes" HeaderText="Mês" />
                                <asp:BoundField DataField="Abertura" HeaderText="Abertura" />
                                <asp:BoundField DataField="Fecho" HeaderText="Fecho" />
                                <asp:BoundField DataField="DataInicio" HeaderText="Inicio Proc." />
                                <asp:BoundField DataField="DataFim" HeaderText="Fim Proc." />
                                <asp:BoundField DataField="DataBloqueio" HeaderText="Data Bloqueio" />
                                <asp:TemplateField HeaderText="Situação">
                                <ItemTemplate>
                                    <asp:DropDownList ID="dropSituacao" runat="server" AutoPostBack="True" 
                                        Font-Size="X-Small" CssClass="drop" Height="18px" onload="dropSituacao_Load" 
                                        onselectedindexchanged="dropSituacao_SelectedIndexChanged">
                                    </asp:DropDownList>
                                    </span>
                                </ItemTemplate>                            
                                </asp:TemplateField>
                                <asp:BoundField DataField="Situacao" 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 />
                    </asp:Panel>
                    <asp:Panel ID="pnlOpcoesFiltros" runat="server" Visible="False" Width="100%">
                            <%--<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;
                            <asp:DropDownList ID="cboCampo2Ordenacao" runat="server" Font-Size="X-Small" 
                                        Visible="False"> </asp:DropDownList>&nbsp;
                            <br />  <br />
                        <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="RotulocboCampos" runat="server" Text="Campo:" Visible="False"></asp:Label>&nbsp;
                        <asp:DropDownList ID="cboCampos" runat="server" Font-Size="X-Small" 
                                    Visible="False"> </asp:DropDownList>&nbsp;
                        <asp:ImageButton ID="btnOpcoesCamposFiltros" runat="server" 
                            ImageUrl="~/Imagens/Edit2.png" ToolTip="Editar Campos." Width="16px" 
                            Visible="False" />&nbsp;&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="RotuloValor" runat="server" Text="Valor:" Visible="False"></asp:Label>&nbsp;
                        <asp:TextBox ID="txtValor" 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="18px" 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="18px" 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="18px" 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>
                    </asp:Panel>
                </td>
                </tr>
                    <tr>
                        <td colspan="34" style="height: 20px; background-color: #d6e0ee; text-align: center">
                            <asp:Panel ID="pnlDadosOpcoesCamposFiltros" runat="server" Width="100%" Visible="False">
                                <br />
                                <asp:Label ID="RotuloOpcoesCamposFiltrosCampo" runat="server" Text="Campo: "></asp:Label>
                                &nbsp;
                                <asp:TextBox ID="txtOpcoesCamposFiltrosCampo" runat="server" 
                                    BorderColor="Black" BorderWidth="1px" Font-Size="X-Small"  
                                    Width="200px"></asp:TextBox>
                                &nbsp;&nbsp;
                                <asp:Label ID="RotuloOpcoesCamposFiltrosDescricao" runat="server" Text="Descrição: "></asp:Label>
                                &nbsp;
                                <asp:TextBox ID="txtOpcoesCamposFiltrosDescricao" runat="server" 
                                    BorderColor="Black" BorderWidth="1px" Font-Size="X-Small" Width="200px"></asp:TextBox>&nbsp;&nbsp;
                                <asp:Label ID="RotuloOpcoesCamposFiltrosTipo" runat="server" Text="Tipo: "></asp:Label>&nbsp;
                                <asp:DropDownList ID="cpoOpcoesCamposFiltrosTipo" runat="server" Font-Size="X-Small" 
                                     Width="80px">
                                </asp:DropDownList>&nbsp;&nbsp;
                                <br />
                                <asp:Label ID="RotuloOpcoesCamposFiltrosTabelaBusca" runat="server" 
                                    Text="Tabela de busca."></asp:Label>&nbsp;
                                <asp:TextBox ID="txtOpcoesCamposFiltrosTabelaBusca" runat="server" 
                                    BorderColor="Black" BorderWidth="1px" Font-Size="X-Small"  
                                    Width="600px"></asp:TextBox>
                                &nbsp;&nbsp;&nbsp;&nbsp;
                                <asp:LinkButton ID="btnOpcoesCamposFiltrosGravar" runat="server" >Gravar</asp:LinkButton>
                                &nbsp;&nbsp;
                                <asp:LinkButton ID="btnOpcoesCamposFiltrosSair" runat="server" >Sair</asp:LinkButton>
                                <br /> <br />
                                <asp:GridView ID="grdDadosOpcoesCamposFiltros" runat="server" 
                                    AutoGenerateColumns="False" CellPadding="4" HorizontalAlign="Center" 
                                    PageSize="4" Visible="True" Width="800px">
                                    <Columns>
                                        <asp:CommandField ButtonType="Image" DeleteImageUrl="~/Imagens/Delete2.png" 
                                            SelectImageUrl="~/Imagens/Edit2.png" SelectText="" ShowDeleteButton="True" 
                                            ShowSelectButton="True" />
                                        <asp:BoundField DataField="Campo" HeaderText="Campo" />
                                        <asp:BoundField DataField="Descricao" HeaderText="Descricao" />
                                        <asp:TemplateField HeaderText="Tipo">
                                            <ItemTemplate>
                                                <asp:DropDownList ID="dropOpcoesCamposTipo" runat="server" AutoPostBack="True" 
                                                    CssClass="drop" Font-Size="X-Small" Height="18px" 
                                                    onload="dropOpcoesCamposTipo_Load" 
                                                    onselectedindexchanged="dropOpcoesCamposTipo_SelectedIndexChanged">
                                                </asp:DropDownList>
                                                </span>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:BoundField DataField="LookupSql" HeaderText="Tabela de busca" />
                                        <asp:TemplateField HeaderText="Ordenar ?">
                                            <ItemTemplate>
                                                <asp:CheckBox ID="chkOpcoesCamposOrdenacao" runat="server" AutoPostBack="True" 
                                                    OnCheckedChanged="chkOpcoesCamposOrdenacao_Clicked" />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:BoundField DataField="Ordenacao" HeaderText="" />
                                    </Columns>
                                    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                                    <EditRowStyle BackColor="#999999" />
                                    <PagerSettings FirstPageImageUrl="~/Imagens/SetaPrimeiro.png" 
                                        LastPageImageUrl="~/Imagens/SetaUltimo.png" Mode="NextPreviousFirstLast" 
                                        NextPageImageUrl="~/Imagens/SetaDireita.png" Position="Bottom" 
                                        PreviousPageImageUrl="~/Imagens/SetaEsquerda.png" Visible="true" />
                                    <PagerStyle BackColor="#F7F6F3" Font-Size="Small" ForeColor="#5D7B9D" 
                                        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:Panel>
                        </td>
                    </tr>
                </table>
            </asp:Panel>
        </td>
        </tr>

        <tr>
        <td colspan="2" style="text-align: center">
            <asp:Panel ID="pnlOpcoesCampos" 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 align="center">
                    <td style="height: 20px; text-align: center">
                        <asp:LinkButton ID="lnkSairOpcoesCampos" runat="server">Sair</asp:LinkButton>
                    </td>
                </tr>
                <tr>
                    <td 
                        style="height: 20px; background-color: White; text-align: center" 
                        align="left"> 
                    </td>
                </tr>
                <tr>
                    <td style="height: 20px; background-color: #d6e0ee; text-align: center">
                        <asp:Label ID="RotuloTitulo" runat="server" Font-Size="X-Small" Text="Visualizar / ocultar campos"></asp:Label>&nbsp;&nbsp;
                        </td>
                </tr> 
                <tr>
                    <td style="height: 20px; background-color: #d6e0ee; text-align: center">
                        <asp:GridView ID="grdDadosOpcoesCampos" runat="server" CellPadding="4" HorizontalAlign="Center" 
                                PageSize="4" Width="582px" AutoGenerateColumns="False">
                            <Columns>
                                <asp:BoundField DataField="Descricao" HeaderText="Campo / coluna" />
                                <asp:TemplateField HeaderText="Visualizar">
                                    <ItemTemplate>
                                        <asp:CheckBox ID="chkVisualizarOpcoesCampos" runat="server" AutoPostBack="True" OnCheckedChanged="chkVisualizarOpcoesCampos_Clicked" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:BoundField DataField="Campo" HeaderText="" />
                                <asp:BoundField DataField="Visualizar" 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>
                </tr>
            </table>
        </asp:Panel>
        </td>
        </tr>

        <tr>
        <td colspan="2" style="text-align: center">
            <asp:Panel ID="pnlPenalizacaoBH" 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: #a6cdcc">
                    <tr>
                        <td colspan="34" style="height: 20px; background-color: #d6e0ee; text-align: center">
                            <br /> 
                            <asp:LinkButton ID="lnkCancelarPenalizacaoBH" runat="server">Cancelar</asp:LinkButton>
                            <br /> <br />
                        </td>
                    </tr>
                </table>
                <br /><br />
                <asp:GridView ID="grdDadosPenalizacao" runat="server" AutoGenerateColumns="False" 
                    CellPadding="4" HorizontalAlign="Center" PageSize="4" Width="1000px">
                    <Columns>
                        <asp:CommandField ButtonType="Image" DeleteImageUrl="~/Imagens/Delete2.png" 
                            SelectImageUrl="~/Imagens/Edit2.png" SelectText="" ShowDeleteButton="True" 
                            ShowSelectButton="False" HeaderText="_______"  HeaderStyle-ForeColor="#5D7B9D" />
                        <asp:BoundField DataField="NumeroEmpregado" HeaderText="Núm." />
                        <asp:BoundField DataField="Nome" HeaderText="Nome" />
                        <asp:BoundField DataField="DataHora" HeaderText="Data Hora" />
                        <asp:BoundField DataField="Horas" HeaderText="Horas" />
                    </Columns>
                    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                    <EditRowStyle BackColor="#999999" />
                    <PagerSettings FirstPageImageUrl="~/Imagens/SetaPrimeiro.png" 
                        LastPageImageUrl="~/Imagens/SetaUltimo.png" Mode="NextPreviousFirstLast" 
                        NextPageImageUrl="~/Imagens/SetaDireita.png" Position="Bottom" 
                        PreviousPageImageUrl="~/Imagens/SetaEsquerda.png" Visible="true" />
                    <PagerStyle BackColor="#F7F6F3" Font-Size="Small" ForeColor="#5D7B9D" 
                        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:Panel>
        </td>
        </tr>

        <tr >
        <td colspan="2" align="center">
            <asp:Panel ID="pnlErrosProcessamento" runat="server" Visible="False" Width="1000px">
                <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: #a6cdcc">
                    <tr>
                        <td style="height: 20px; background-color: #d6e0ee; text-align: center">
                            <asp:LinkButton ID="lnkOcultarErrosProcessamento" runat="server">Ocultar</asp:LinkButton>
                            <br /> 
                        </td>
                    </tr>
                    <tr>
                    <td style="height: 20px; background-color: #5d7b9d; text-align: center " 
                            align="center">
                        <asp:Label ID="TituloErrosProcessamento" runat="server" ForeColor="Yellow" Text="Avisos / Erros processamento"></asp:Label>
                     </td>
                    </tr> 
                </table>
                <asp:GridView ID="grdDadosErrosProcessamento" runat="server" AutoGenerateColumns="False" 
                    CellPadding="4" HorizontalAlign="Center" PageSize="4" Width="1000px">
                    <Columns>
                        <asp:CommandField ButtonType="Image" DeleteImageUrl="~/Imagens/Delete2.png" 
                            SelectImageUrl="~/Imagens/Edit2.png" SelectText="" ShowDeleteButton="True" 
                            ShowSelectButton="False" HeaderText="_______"  HeaderStyle-ForeColor="#5D7B9D" />
                        <asp:BoundField DataField="NumeroRegisto" HeaderText="Registo" />
                        <asp:BoundField DataField="DataHora" HeaderText="Data Hora" />
                        <asp:BoundField DataField="Msg" HeaderText="Mensagem" />
                        <asp:BoundField DataField="Linha" HeaderText="Origem" />
                    </Columns>
                    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                    <EditRowStyle BackColor="#999999" />
                    <PagerSettings FirstPageImageUrl="~/Imagens/SetaPrimeiro.png" 
                        LastPageImageUrl="~/Imagens/SetaUltimo.png" Mode="NextPreviousFirstLast" 
                        NextPageImageUrl="~/Imagens/SetaDireita.png" Position="Bottom" 
                        PreviousPageImageUrl="~/Imagens/SetaEsquerda.png" Visible="true" />
                    <PagerStyle BackColor="#F7F6F3" Font-Size="Small" ForeColor="#5D7B9D" 
                        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:Panel>
        </td>
        </tr>
        <tr >
        <td colspan="2" align="center">
            <asp:Panel ID="pnlProcessamento" runat="server" Visible="False" Width="1000px">
                <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: #a6cdcc">
                    <%--<tr>
                        <td style="height: 20px; background-color: #d6e0ee; text-align: center">
                            <asp:LinkButton ID="LinkButton1" runat="server">Ocultar</asp:LinkButton>
                            <br /> 
                        </td>
                    </tr>--%>
                    <tr>
                    <td style="height: 20px; background-color: #5d7b9d; text-align: center " 
                            align="center">
                        <asp:Label ID="TituloProcessamento" runat="server" ForeColor="Yellow" Text="Processamento em curso"></asp:Label>
                     </td>
                    </tr> 
                </table>
                <asp:GridView ID="grdDadosProcessamento" runat="server" AutoGenerateColumns="False" 
                    CellPadding="4" HorizontalAlign="Center" PageSize="4" Width="1000px">
                    <Columns>
                        <asp:CommandField ButtonType="Image" DeleteImageUrl="~/Imagens/Delete2.png" 
                            SelectImageUrl="~/Imagens/Edit2.png" SelectText="" ShowDeleteButton="True" 
                            ShowSelectButton="False" HeaderText="_______"  HeaderStyle-ForeColor="#5D7B9D" />
                        <asp:BoundField DataField="Contador" HeaderText="Registo" />
                        <asp:BoundField DataField="DescTipoEvento" HeaderText="Evento" />
                        <asp:BoundField DataField="Data" HeaderText="Data" />
                        <asp:BoundField DataField="Situacao" HeaderText="Situação" />
                    </Columns>
                    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                    <EditRowStyle BackColor="#999999" />
                    <PagerSettings FirstPageImageUrl="~/Imagens/SetaPrimeiro.png" 
                        LastPageImageUrl="~/Imagens/SetaUltimo.png" Mode="NextPreviousFirstLast" 
                        NextPageImageUrl="~/Imagens/SetaDireita.png" Position="Bottom" 
                        PreviousPageImageUrl="~/Imagens/SetaEsquerda.png" Visible="true" />
                    <PagerStyle BackColor="#F7F6F3" Font-Size="Small" ForeColor="#5D7B9D" 
                        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:Panel>
        </td>
        </tr>

        <tr>
        <td colspan="2" align="center">
            <asp:Panel ID="pnlBH" runat="server" Visible="False" style="text-align: center" BorderStyle="None" BackColor="#D6E0EE" width="750">                   
                <table >
                    <tr>
                        <td colspan="2" align="center">
                            <br /> 
                            <asp:LinkButton ID="lnkBHCancelar" runat="server">Cancelar</asp:LinkButton>
                            <br /> <br />
                        </td>
                    </tr>
                <asp:Panel ID="pnlEmailResponsavel" runat="server" Visible="False" style="text-align: center" BorderStyle="None" BackColor="#D6E0EE" width="750" Wrap="False">                   
                <tr>
                <td colspan="2" align="right">
                    <asp:DropDownList ID="cboJustificacaoExtra" runat="server" Font-Size="Small" 
                        AutoPostBack="True" Enabled="True" BackColor="#d6e0ee" Visible="False"></asp:DropDownList>
                    <asp:Label ID="RotuloMailConfirmar" runat="server" Text="Enviar Email para: " BackColor="#D6E0EE" Visible="True" Font-Size="Medium"></asp:Label>&nbsp;
                    <asp:Label ID="lblNumeroEmpregadoResponsavel" runat="server" Text="" BackColor="#D6E0EE" Visible="False" Font-Size="Medium"></asp:Label>&nbsp;
                    <asp:Label ID="lblEmailResponsavel" runat="server" Text="" BackColor="#D6E0EE" Visible="True" Font-Size="Medium"></asp:Label>&nbsp;
                    <asp:Label ID="lblNomeResponsavel" runat="server" Text="" BackColor="#D6E0EE" Visible="False" Font-Size="Medium"></asp:Label>&nbsp;
                    <asp:Button ID="BHEmailbtnMailConfirmar" runat="server" BackColor="#D6E0EE" Height="40px" OnClick="BHEmailbtnMailConfirmar_Click"
                        Text="Enviar" Width="55px" Font-Bold="True" Font-Size="small"></asp:Button >&nbsp;&nbsp;
                    <br /><br />
                </td>
                </tr>
                </asp:Panel>

                <tr>
                <td >
                <table width="750" >
                    <asp:GridView ID="grdDadosBH" runat="server" CellPadding="2" 
                        GridLines="Vertical" Width="746" AllowPaging="True" PageSize="1" 
                        AutoGenerateColumns="False" style="margin-left: 0px" >
                        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                        <Columns>
                            <asp:BoundField DataField="Nome" HeaderText="Nome" />
                            <asp:BoundField DataField="Saldo" HeaderText="Saldo Banco Horas" />
                            <asp:BoundField DataField="Sinal" HeaderText="" />
                        </Columns>
                        <RowStyle BackColor="#D6E0EE" ForeColor="#333333" Font-Size="Large" />
                        <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="#D6E0EE" ForeColor="#284775" />
                    </asp:GridView>

                    <asp:GridView ID="grdDadosFaltas" runat="server" CellPadding="4" 
                        GridLines="Vertical" Width="746" AllowPaging="True" PageSize="5" 
                        AutoGenerateColumns="False" style="margin-left: 0px" >
                        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                        <Columns>
                            <asp:BoundField DataField="AbreviaturaFalta" HeaderText="Justificação" ReadOnly="True" />
                            <asp:BoundField HeaderText="Dia" />
                            <asp:BoundField DataField="DataInicio" HeaderText="Início" ReadOnly="True" />
                            <asp:TemplateField HeaderText="Horas">
                                <ItemTemplate>
                                    <table >
                                        <tr>
                                            <td>
                                                <asp:Button ID="btnNumeroHorasMenos" runat="server" BackColor="#D6E0EE" Font-Bold="True" Font-Size="Medium"   
                                                    Height="40px" OnClick="btnNumeroHorasMenos_Click" Text="- H" 
                                                    ToolTip="Diminuir horas." Width="40px" />
                                                <asp:Button ID="btnNumeroHorasMais" runat="server" BackColor="#D6E0EE" Font-Bold="True" Font-Size="Medium"
                                                    Height="40px" OnClick="btnNumeroHorasMais_Click" Text="+ H" 
                                                    ToolTip="Aumentar." Width="40px" />
                                            </td>
                                            <td style="text-align: center">
                                                <asp:Label ID="lblFaltasHoras" runat="server" Text='<%# Bind("Horas") %>' Width="50px"></asp:Label>
                                            </td>
                                            <td>
                                                <asp:Button ID="btnNumeroMinutosMenos" runat="server" BackColor="#D6E0EE" Font-Bold="True" Font-Size="Medium"   
                                                    Height="40px" OnClick="btnNumeroMinutosMenos_Click" Text="- M" 
                                                    ToolTip="Diminuir minutos." Width="40px" />
                                                <asp:Button ID="btnNumeroMinutosMais" runat="server" BackColor="#D6E0EE" Font-Bold="True" Font-Size="Medium"
                                                    Height="40px" OnClick="btnNumeroMinutosMais_Click" Text="+ M" 
                                                    ToolTip="Aumentar." Width="40px" />
                                            </td>
                                        </tr>
                                    </table>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Periodo">
                                <ItemTemplate>
                                    <asp:DropDownList ID="DropPeriodo" runat="server" AutoPostBack="True" 
                                        onselectedindexchanged="DropPeriodo_SelectedIndexChanged" 
                                        SelectedValue='<%# Bind("Periodo") %>' Font-Size="Medium" Height="19px" BackColor="#D6E0EE">
                                        <asp:ListItem></asp:ListItem>
                                        <asp:ListItem Value="0">Todo o Dia</asp:ListItem>
                                        <asp:ListItem Value="1">Manhã</asp:ListItem>
                                        <asp:ListItem Value="2">Tarde</asp:ListItem>
                                    </asp:DropDownList>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField DataField="ConfirmacaoFaltaDesc" HeaderText="Confirmação" ReadOnly="True" />
                            <asp:TemplateField meta:resourcekey="TemplateFieldResource1" 
                                HeaderText="" >
                            <ItemTemplate>
                            <asp:Button ID="btnAnularFalta" runat="server" BackColor="#D6E0EE" Height="40px" OnClick="btnAnularFalta_Click"
                                Text="Anular" Width="55px" Font-Bold="True" Font-Size="small"></asp:Button >
                            </ItemTemplate>
                            <ItemStyle Width="40px" />
                            </asp:TemplateField>
                            <asp:BoundField DataField="CodigoFalta" HeaderText="" ReadOnly="True" />
                            <asp:BoundField DataField="DiadeSemana" HeaderText="" ReadOnly="True" />
                            <asp:BoundField DataField="Horas" HeaderText="" DataFormatString="{0:t}"/>
                            <asp:BoundField DataField="Dias" HeaderText="" ReadOnly="True"/>
                            <asp:BoundField DataField="EnviadoPara" HeaderText="" ReadOnly="True"/>
                        </Columns>
                        <RowStyle BackColor="#D6E0EE" ForeColor="#333333" Font-Size="Large" />
                        <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="#D6E0EE" ForeColor="#284775" />
                    </asp:GridView>
                </table>
                <table width="750">
                    <tr>
                        <td colspan="2" align="right" >
                            <asp:ImageButton ID="btnFaltasOpcoesCampos" runat="server"  
                                ImageUrl="~/Imagens/Config.png" ToolTip="Configurar ocultação campos/colunas" 
                                Width="16px"/>&nbsp;&nbsp;
                            <asp:Label ID="RotuloFalta" runat="server" Text="Falta: " BackColor="#D6E0EE" Visible="True" Font-Size="Small"></asp:Label>&nbsp;
                            <asp:DropDownList ID="cboFalta" runat="server" Font-Size="Small" 
                                AutoPostBack="True" Enabled="True" BackColor="#d6e0ee" Visible="False"></asp:DropDownList>
                            <asp:Label ID="RotuloConfirmacaoFalta" runat="server" Text="Confirmação: " BackColor="#D6E0EE" Visible="True" Font-Size="Small"></asp:Label>&nbsp;
                            <asp:DropDownList ID="cboConfirmacaoFalta" runat="server" Font-Size="Small" 
                                AutoPostBack="True" Enabled="True" BackColor="#d6e0ee" Visible="False"></asp:DropDownList>
                        </td>                 
                    </tr>
                </table>
                <table width="750" >
                <tr>
                    <td colspan="2" align="center">
                    <asp:Calendar 
                        ID="Calendario01" runat="server" BackColor="#D6E0EE" ForeColor= "DarkBlue"  
                            Height="335px" Width="746px" 
                            Font-Size= "Large"  NextPrevFormat= "ShortMonth" 
                            Font-Bold="True" >
                        <TitleStyle BackColor="#5D7B9D" />
                    </asp:Calendar>
                    </td>
                </tr>
                </table>
                </td>
                </tr>

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

        <tr>
        <td colspan="2">
            <asp:GridView ID="grdDados" runat="server" CellPadding="4" ForeColor="#333333" 
                Width="100%" GridLines="Vertical"  AllowPaging="True" PageSize="16" 
                    style="margin-top: 0px" >
                <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                <Columns>
                    <asp:CommandField SelectText="" ShowSelectButton="True" ButtonType="Image" SelectImageUrl="~/Imagens/Edit2.png" />
                    <%--<asp:CommandField SelectText="&gt;" ShowSelectButton="True" ButtonType="Image" SelectImageUrl="~/Imagens/Selecao.png" />--%>
                    <%--<asp:TemplateField HeaderText="doc.">
                        <ItemTemplate>
                            <table cellpadding="0" cellspacing="0" class="style3" align="center">
                                <tr>
                                <td>
                                    <asp:imagebutton ID="btnPdf" runat="server" 
                                        Height="18px" OnClick="btnVerPdf_Click" ImageUrl="~/Imagens/pdf.png" ToolTip="Baixar documento 'Pdf'." Width="12px" />
                                </td>
                                </tr>
                            </table>
                        </ItemTemplate>
                    </asp:TemplateField>--%>
                </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>
        <%--<asp:CommandField SelectText="&gt;" ShowSelectButton="True" ButtonType="Image" SelectImageUrl="~/Imagens/Selecao.png" />--%>
        <tr>
            <td colspan="2" style="height: 12px" align="right" >
            <asp:Panel ID="pnlOpcoesRodape" runat="server" Visible="True" Width="100%" BackColor="#5d7b9d">
                <asp:ImageButton ID="btnOpcoesCampos" runat="server"  ImageUrl="~/Imagens/Config.png" ToolTip="Configurar ocultação campos/colunas"/>&nbsp;
                <asp:Label ID="RotuloTipoMapa" runat="server" Text="Relatório " ForeColor="White"></asp:Label>&nbsp;
                <asp:DropDownList ID="cboTipoMapa" runat="server" Font-Size="X-Small" 
                    BackColor="White" ForeColor="Black" AutoPostBack="True"></asp:DropDownList>
                <asp:Label ID="RotuloVisualizar" runat="server" Text="Visualizar " ForeColor="White"></asp:Label>&nbsp;
                <asp:DropDownList ID="cboDiasPonto" runat="server" Font-Size="X-Small" 
                    BackColor="White" ForeColor="Black" AutoPostBack="True">
                    <asp:ListItem Value="0">Dias com ponto</asp:ListItem>
                    <asp:ListItem Value="1">Ponto e faltas</asp:ListItem>
                    <asp:ListItem Value="2">Todos dias mês</asp:ListItem>
                    <%--<asp:ListItem Value="3">Presenças</asp:ListItem>--%>
                </asp:DropDownList>&nbsp;
                <%--<asp:ImageButton ID="btnDiasPontoActualizar" runat="server"  ImageUrl="~/Imagens/Edit2.png" ToolTip="Actualizar dados."/>&nbsp;--%>
                <asp:CheckBox ID="ChkOcultarRepeticoes" runat="server" ForeColor="White" 
                    Text="Ocultar repetições" TextAlign="Left" AutoPostBack="True" />&nbsp;
                <asp:CheckBox ID="ChkVisualizarTotais" runat="server" ForeColor="White" 
                    Text="Totais" TextAlign="Left" Visible="True" AutoPostBack="True" />&nbsp;
                <asp:CheckBox ID="ChkVisualizarExtraFaltas" runat="server" ForeColor="White" 
                    Text="Extra / Faltas" TextAlign="Left" AutoPostBack="True" />&nbsp;
                <asp:CheckBox ID="ChkFiltroporOmissao" runat="server" ForeColor="White" 
                    Text="Filtro p/ omissão" TextAlign="Left" AutoPostBack="True" />&nbsp;
                <asp:Label ID="RotuloGrelha" runat="server" Text="Grelha: " 
                    ForeColor="White"></asp:Label>&nbsp;
                <asp:DropDownList ID="cboGrelha" runat="server" Font-Size="X-Small" 
                    BackColor="White" ForeColor="Black">
                    <asp:ListItem Value="0">Vertical</asp:ListItem>
                    <asp:ListItem Value="1">Horizontal</asp:ListItem>
                    <asp:ListItem Value="2">Ambos</asp:ListItem>
                </asp:DropDownList>&nbsp;
                <asp:Label ID="RotuloLinhasPagina" runat="server" Text="Paginação Linhas:" 
                    ForeColor="White"></asp:Label>&nbsp;
                <asp:TextBox ID="txtLinhasPagina" runat="server" BorderColor="White" 
                    BorderWidth="0px" Font-Size="X-Small" Height="18px" Width="30px" 
                    BackColor="#5D7B9D" ForeColor="White" ></asp:TextBox>
                <asp:Label ID="Label2" runat="server" Text="Posição: " 
                    ForeColor="White"></asp:Label>&nbsp;
                <asp:DropDownList ID="cboPaginacaoPosicao" runat="server" Font-Size="X-Small" 
                    BackColor="White" ForeColor="Black">
                    <asp:ListItem Value="0">Em baixo</asp:ListItem>
                    <asp:ListItem Value="1">Em cima</asp:ListItem>
                    <asp:ListItem Value="2">Em ambos</asp:ListItem>
                </asp:DropDownList>&nbsp;
                <asp:Label ID="Label3" runat="server" Text="Tipo: " 
                    ForeColor="White"></asp:Label>&nbsp;
                <asp:DropDownList ID="cboPaginacaoTipo" runat="server" Font-Size="X-Small" 
                    BackColor="White" ForeColor="Black">
                    <asp:ListItem Value="2">Botões</asp:ListItem>
                    <asp:ListItem Value="3">Nº pág.</asp:ListItem>
                </asp:DropDownList>&nbsp;
                <asp:ImageButton ID="btnGravarOpoes" runat="server"  ImageUrl="~/Imagens/Edit2.png" ToolTip="Gravar opções"/>&nbsp;
            </asp:Panel>
            </td>                 
        </tr>
    </table>
    <%--<asp:Timer ID="timer1" runat="server" Interval="1000" OnTick="timer1_tick"></asp:Timer>--%>

</asp:Content>

