<%@ page language="VB" masterpagefile="~/MasterPage.master" autoeventwireup="false" inherits="ControloFerias, App_Web_a04smffl" 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="34" 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="Controlo Férias"></asp:Label></td>
        </tr>
        <tr>
            <td colspan="20" 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 colspan="14" style="height: 20px; background-color: #5d7b9d; text-align: Right" >
                <asp:ImageButton ID="lnkInserir" runat="server" ImageUrl="~/Imagens/Add.png" ToolTip="Inserir novo registo" Width="30px" Visible="True" OnClientClick="target=''"/>
                <asp:ImageButton ID="lnkActualizar" runat="server" ImageUrl="~/Imagens/Proc.Ico" EnableTheming="False" ToolTip="Actualizar coluna descrição dos dias." Width="30px" OnClientClick="target=''"/>
                <%--<asp:ImageButton ID="lnkAlterardePara" runat="server" ImageUrl="~/Imagens/Edit.png" ToolTip="Alteração em bloco" Width="30px" Visible="False"/>--%>
                <asp:ImageButton ID="btnImportacaoDados" runat="server" ImageUrl="~/Imagens/Importar2.png" EnableTheming="False" ToolTip="Importar dados externos (Ficheiro *.txt ou *.csv)" Width="30px" OnClientClick="target=''"/>
                <asp:ImageButton ID="btnEquipasPessoal" runat="server" ImageUrl="~/Imagens/Pessoal.png" ToolTip="Afectar Empregados a Equipas" Width="30px" OnClientClick="target=''"/>
                <asp:ImageButton ID="lnkAnualMensal" runat="server" ImageUrl="~/Imagens/Ferias2.png" ToolTip="Alterar visualização (anual/mensal)." Width="30px" Visible="True" OnClientClick="target=''"/>
                <asp:ImageButton ID="btnExportarSaldo" runat="server" ImageUrl="~/Imagens/Exportacao.png" ToolTip="Exportar saldo para o ano seguinte" Width="30px" OnClientClick="target=''"/>
                <asp:ImageButton ID="btnTabelasAuxiliares" runat="server" ImageUrl="~/Imagens/Tabelas.png" ToolTip="Configurar tabelas auxiliares" Width="30px" Visible="True" OnClientClick="target=''"/>
                <asp:ImageButton ID="btnOpenOffice" runat="server" ImageUrl="~/Imagens/OpenOffice.png" ToolTip="Exportar para Csv / Open Office" Width="30px" OnClientClick="target=''"/>
                <asp:ImageButton ID="btnExcel" runat="server" ImageUrl="~/Imagens/Excel.png" ToolTip="Exportar para Excel" Width="30px" OnClientClick="target=''"/>
                <asp:ImageButton ID="btnWord" runat="server" ImageUrl="~/Imagens/Word.png" ToolTip="Exportar para Word" Width="30px" OnClientClick="target=''"/>
                <asp:ImageButton ID="btnImprimir" runat="server" ImageUrl="~/Imagens/print.gif" ToolTip="Imprimir" Width="30px" OnClientClick="target=''"/>
            </td>
        </tr>
        <tr>
            <td colspan="34" 
                style="height: 20px; background-color: White; text-align: center" 
                align="left"> 
                <asp:Label ID="lblMsg" runat="server" Visible="False" BackColor="White"></asp:Label>&nbsp;&nbsp;
                <asp:Label ID="lblFiltroContador" runat="server" Visible="False" BackColor="White"></asp:Label>&nbsp;
                <asp:Label ID="lblIndex" runat="server" Visible="False">NumeroEmpregado</asp:Label>
                <asp:Label ID="lblAccao" runat="server" Visible="False"> </asp:Label>&nbsp;&nbsp;
                <asp:Label ID="lblAjuda" runat="server" Text="" Visible="False"></asp:Label>&nbsp;&nbsp;
                <asp:Label ID="lblAnualMensal" runat="server" Text="" Visible="False" ></asp:Label>&nbsp;&nbsp;
                <asp:Label ID="lblCentrosCusto" runat="server" Visible="False"></asp:Label>&nbsp;
                <asp:LinkButton ID="lnkConfirmarExportacao" runat="server" Visible="False">Confirmar</asp:LinkButton>&nbsp;&nbsp;
                <asp:LinkButton ID="lnkCancelarExportacao" runat="server" Visible="False">Cancelar</asp:LinkButton>
                <%--<asp:LinkButton ID="lblCorColunaMes" runat="server" Visible="False">Cancelar</asp:LinkButton>--%>
                <%--<asp:LinkButton ID="lblCorColunaDias" runat="server" Visible="False">Cancelar</asp:LinkButton>--%>
                <%--<asp:LinkButton ID="lblCorFeriasAprovadas" runat="server" Visible="False">Cancelar</asp:LinkButton>--%>
                <asp:Label ID="lblCorColunaMes" runat="server" Visible="False" BackColor="White"></asp:Label>&nbsp;
                <asp:Label ID="lblCorColunaDias" runat="server" Visible="False" BackColor="White"></asp:Label>&nbsp;
                <asp:Label ID="lblCorFeriasAprovadas" runat="server" Visible="False" BackColor="White"></asp:Label>&nbsp;
                <asp:Label ID="lblCorFeriasAprovadas1" runat="server" Visible="False" BackColor="White"></asp:Label>&nbsp;
                <asp:Label ID="lblCorFeriasAprovadas2" runat="server" Visible="False" BackColor="White"></asp:Label>&nbsp;
                <asp:Label ID="lblCorFeriasAprovadas3" runat="server" Visible="False" BackColor="White"></asp:Label>&nbsp;
                <asp:Label ID="lblCorFeriasAprovadas4" runat="server" Visible="False" BackColor="White"></asp:Label>&nbsp;
                <asp:Label ID="lblCorColunaPeriodoFerias" runat="server" Visible="False" BackColor="White"></asp:Label>&nbsp;
                <asp:Label ID="lblSqlFiltro" runat="server" Visible="False" BackColor="White"></asp:Label>&nbsp;
                <asp:Label ID="lblCodigoFerias" runat="server" Visible="False" BackColor="White"></asp:Label>&nbsp;
                <asp:Label ID="lblFiltroAno" runat="server" Visible="False" BackColor="White"></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> 
            </td>
        </tr>
        <tr>
            <td colspan="34">
            <asp:Panel ID="pnlEdit" runat="server" Width="100%" Visible="False">
            <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="EditRotuloEmpregado" runat="server" Text="Empregado:"></asp:Label>&nbsp;
                        <asp:DropDownList ID="EditcboNumeroEmpregado" runat="server" AutoPostBack="True" 
                            Enabled="False" Font-Size="X-Small"></asp:DropDownList>&nbsp;
                        <asp:ImageButton ID="EditbtnIndex" runat="server" 
                            ImageUrl="~/Imagens/Edit2.png" ToolTip="Alterar ordenação." Width="16px" 
                            Visible="False" />&nbsp;
                        <asp:ImageButton ID="EditbtnTodosEmpregados" runat="server" ImageUrl="~/Imagens/EditMais.png" ToolTip="Inserir/alterar para todos os empregados." Width="16px" />&nbsp;
                        <%--<asp:DropDownList ID="EditcboNome" runat="server" AutoPostBack="True" 
                            Enabled="False" Font-Size="X-Small" Width="195px"></asp:DropDownList>&nbsp;&nbsp;--%>
                        <asp:Label ID="EditRotuloAno" runat="server" Text="Ano:"></asp:Label>&nbsp;
                        <asp:TextBox ID="EdittxtAno" runat="server" BorderColor="Black" BorderWidth="1px" 
                            Enabled="False" Font-Size="X-Small" Width="30px" Wrap="False"></asp:TextBox>&nbsp;
                        <asp:Label ID="EditRotuloValorInicial" runat="server" Text="Valor Inicial:"></asp:Label>&nbsp;&nbsp;
                        <asp:TextBox ID="EdittxtValorInicial" runat="server" AutoPostBack="False" 
                            Font-Size="X-Small" Width="40px"></asp:TextBox>
                    </td>
                </tr>
                <asp:Panel ID="pnlEditNotas" runat="server" Width="100%" Visible="True">
                    <tr>
                        <td colspan="36" style="height: 20px; background-color: #d6e0ee; text-align: center">
                            <br />
                            <asp:Label ID="RotuloNotas" runat="server" Text="Notas:"></asp:Label>&nbsp;
                            <asp:TextBox ID="txtNotas" runat="server" BorderColor="Black" BorderWidth="1px" 
                                Font-Size="X-Small" Width="700px" TextMode="MultiLine" ></asp:TextBox>&nbsp;&nbsp;
                            <br />
                        </td>
                    </tr>
                </asp:Panel>
                <%--<tr>
                    <td colspan="34" style="height: 20px; background-color: #d6e0ee; text-align: center">
                        <asp:Label ID="RotuloDataInicio" runat="server" Text="Data Início:" 
                            Width="66px"></asp:Label>&nbsp;
                        <asp:TextBox ID="txtDataInicio" runat="server" BorderColor="Black" BorderWidth="1px" Font-Size="X-Small" Width="60px"></asp:TextBox>&nbsp;
                            <asp:TextBox ID="txtHoraInicio" runat="server" BorderColor="Black" BorderWidth="1px" 
                            Enabled="True" Font-Size="X-Small" Width="38px" Wrap="False"></asp:TextBox>&nbsp;&nbsp;
                        <asp:Label ID="RotuloDataFim" runat="server" Text="Data Fim:"></asp:Label>&nbsp;
                        <asp:TextBox ID="txtDataFim" runat="server" BorderColor="Black" 
                            BorderWidth="1px" Font-Size="X-Small" Width="60px"></asp:TextBox>&nbsp;
                        <asp:TextBox ID="txtHoraFim" runat="server" BorderColor="Black" 
                            BorderWidth="1px" Enabled="True" Font-Size="X-Small" Width="38px" Wrap="False"></asp:TextBox>&nbsp;&nbsp;
                        <asp:Label ID="RotuloHoras" runat="server" Text="Horas:"></asp:Label>&nbsp;
                        <asp:TextBox ID="txtHoras" runat="server" BorderColor="Black" 
                            BorderWidth="1px" Font-Size="X-Small" Width="38px"></asp:TextBox>
                        <br /><br />
                    </td>
                </tr>--%>
                <tr>
                    <td colspan="36" style="height: 20px; background-color: #d6e0ee; text-align: center">
                        <asp:Label ID="EditRotuloDataHoraIncio" runat="server" Text="Data Hora Início:" ></asp:Label>&nbsp;
                        <asp:TextBox ID="EdittxtDataInicio" runat="server" BorderColor="Black" BorderWidth="1px"
                            Font-Size="X-Small" Width="60px" AutoPostBack="True" ></asp:TextBox>&nbsp;
                        <asp:TextBox ID="EdittxtHoraInicio" runat="server" BorderColor="Black" BorderWidth="1px" 
                            Enabled="True" Font-Size="X-Small" Width="38px" Wrap="False"></asp:TextBox>&nbsp;&nbsp;
                        <asp:Label ID="EditRotuloDataHoraFim" runat="server" Text="Data Hora Fim:"></asp:Label>&nbsp;
                        <asp:TextBox ID="EdittxtDataFim" runat="server" BorderColor="Black" BorderWidth="1px"
                            Font-Size="X-Small" Width="60px" AutoPostBack="True"></asp:TextBox>&nbsp;
                        <asp:TextBox ID="EdittxtHoraFim" runat="server" BorderColor="Black" BorderWidth="1px" 
                                Enabled="True" Font-Size="X-Small" Width="38px" Wrap="False" 
                            AutoPostBack="True"></asp:TextBox>&nbsp;&nbsp;
                        <asp:Label ID="EditRotuloHoras" runat="server" Text="Horas:"></asp:Label>&nbsp;
                        <asp:TextBox ID="EdittxtHoras" runat="server" BorderColor="Black" BorderWidth="1px" Font-Size="X-Small"
                            Width="38px"></asp:TextBox>&nbsp;&nbsp;
                        <asp:Label ID="EditRotuloCriarSegundaAusencia" runat="server" Text="2ª ausência" Visible="True" ></asp:Label>&nbsp;
                        <asp:ImageButton ID="EditbtnCriarSegundaAusencia" runat="server" 
                            ImageUrl="~/Imagens/Edit2.png" ToolTip="Criar 2ª ausência" />&nbsp;&nbsp;
                        <asp:Label ID="EditRotuloHoraInicio2" runat="server" 
                            Text="2ª ausência - Hora início:" Visible="False" ></asp:Label>&nbsp;
                        <asp:TextBox ID="EdittxtHoraInicio2" runat="server" BorderColor="Black" 
                            BorderWidth="1px" Font-Size="X-Small"
                            Width="38px" Visible="False"></asp:TextBox>&nbsp;&nbsp;
                        <asp:Label ID="EditRotuloHoraFim2" runat="server" Text="Hora Fim:" Visible="False" ></asp:Label>&nbsp;
                        <asp:TextBox ID="EdittxtHoraFim2" runat="server" BorderColor="Black" BorderWidth="1px" 
                                Enabled="True" Font-Size="X-Small" Width="38px" Wrap="False" 
                            Visible="False" AutoPostBack="True" ></asp:TextBox>&nbsp;
                        <asp:Label ID="EditRotuloHoras2" runat="server" Text="Horas:" Visible="False" ></asp:Label>&nbsp;
                        <asp:TextBox ID="EdittxtHoras2" runat="server" BorderColor="Black" BorderWidth="1px" Font-Size="X-Small"
                            Width="38px" Visible="False"></asp:TextBox>&nbsp;&nbsp;
                        <asp:ImageButton ID="EditbtnCalcularHoras" runat="server" 
                            ImageUrl="~/Imagens/Edit2.png" ToolTip="Recalcular horas" Width="16px" 
                            Visible="False" />                            
                    </td>
                </tr>
                <tr>
                    <td colspan="34" style="height: 20px; background-color: #d6e0ee; text-align: center">
                        <br />
                        <asp:Label ID="EditRotuloJustificacao" runat="server" Text="Justificação:"></asp:Label>&nbsp;
                        <asp:DropDownList ID="EditcboFaltaCodigo" runat="server" Font-Size="X-Small"></asp:DropDownList>&nbsp;
                        <%--<asp:DropDownList ID="EditcboFaltaDescricao" runat="server"  
                            Font-Size="X-Small" ></asp:DropDownList>&nbsp;&nbsp;--%>
                        <asp:Label ID="EditRotuloJustificacao2" runat="server" Text="Justificação 2ª ausência:" Visible="False"></asp:Label>&nbsp;
                        <asp:DropDownList ID="EditcboFaltaCodigo2" runat="server" Font-Size="X-Small" 
                            Width="195px" Visible="False"></asp:DropDownList>&nbsp;&nbsp;
                        <asp:Label ID="EditRotuloConfirmacao" runat="server" Text="Confirmação:"></asp:Label>&nbsp;
                        <asp:DropDownList ID="EditcboConfirmacao" runat="server" Font-Size="X-Small" 
                            Width="100px" AutoPostBack="True"></asp:DropDownList>&nbsp;
                        <asp:TextBox ID="EdittxtConfirmacaoOld" runat="server" BorderColor="Black" 
                            BorderWidth="1px" Font-Size="X-Small" Width="60px" Visible="False"></asp:TextBox>&nbsp;&nbsp;
                        <asp:LinkButton ID="EditlnkGravar" runat="server">Gravar</asp:LinkButton>&nbsp;&nbsp;
                        <asp:LinkButton ID="EditlnkCancelar" runat="server">Cancelar</asp:LinkButton>
                        <br /> <br />
                    </td>
                </tr>
                <%--<tr>
                    <td colspan="34" style="height: 20px; background-color: #d6e0ee; text-align: center">
                    </td>
                </tr>--%>
            </table>
            </asp:Panel>
            <asp:Panel ID="pnlEdit2" runat="server" Width="100%" Visible="False">
                <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="Edit2RotuloCentroCusto" runat="server" Text="Centro Custo:"></asp:Label>&nbsp;
                            <asp:DropDownList ID="Edit2cboCentroCusto" runat="server" AutoPostBack="True" 
                                Enabled="True" Font-Size="X-Small" Visible="True">
                            </asp:DropDownList>&nbsp;&nbsp;
                            <asp:Label ID="Edit2RotuloOficina" runat="server" Text="Oficina:"></asp:Label>&nbsp;
                            <asp:DropDownList ID="Edit2cboOficina" runat="server" AutoPostBack="True" 
                                Enabled="True" Font-Size="X-Small" Visible="True">
                            </asp:DropDownList>&nbsp;&nbsp;
                            <asp:Label ID="Edit2RotuloEmpregados2" runat="server" Text="Empregados:" 
                                Visible="False"></asp:Label>&nbsp;
                            <asp:TextBox ID="Edit2TxtEmpregados2" runat="server" BorderColor="Black" 
                                BorderWidth="1px" Font-Size="X-Small"
                                Width="200px" Visible="False" AutoPostBack="True"></asp:TextBox>
                            <asp:Label ID="Edit2RotuloEmpregado2" runat="server" Text="Empregado:"></asp:Label>&nbsp;&nbsp;
                            <asp:DropDownList ID="Edit2cboNumeroEmpregado2" runat="server" AutoPostBack="True" Enabled="False" Font-Size="X-Small">
                            </asp:DropDownList>&nbsp;&nbsp;
                            <asp:ImageButton ID="Edit2btnIndex2" runat="server" ImageUrl="~/Imagens/Edit2.png" ToolTip="Alterar ordenação." Width="16px" />&nbsp; 
                            <asp:ImageButton ID="Edit2btnEmpregados2" runat="server" ImageUrl="~/Imagens/EditMais.png" ToolTip="Activar / desactivar. Inserir vários empregados, separados por ','" Width="16px" />&nbsp;
                            <%--<asp:Label ID="Edit2RotuloHoras2" runat="server" Text="Horas / dia:" Visible="False"></asp:Label>&nbsp;
                            <asp:TextBox ID="Edit2txtHoras2" runat="server" BorderColor="Black" BorderWidth="1px" Font-Size="X-Small"
                                Width="38px" Visible="False"></asp:TextBox>&nbsp;&nbsp;--%>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="34" style="height: 20px; background-color: #d6e0ee; text-align: center">
                            <asp:Label ID="Edit2RotuloFalta2" runat="server" Text="Código férias:"></asp:Label>&nbsp;&nbsp;
                            <asp:DropDownList ID="Edit2cboFalta2" runat="server" AutoPostBack="True" Font-Size="X-Small" Width="130px"></asp:DropDownList>&nbsp;&nbsp;
                            <asp:Label ID="Edit2RotuloHoraInicio2" runat="server" Text="Hora início:" Visible="True" ></asp:Label>&nbsp;
                            <asp:TextBox ID="Edit2txtHoraInicio2" runat="server" BorderColor="Black" BorderWidth="1px" Font-Size="X-Small"
                                Width="38px" Visible="True"></asp:TextBox>&nbsp;&nbsp;
                            <asp:Label ID="Edit2RotuloHoraFim2" runat="server" Text="Hora Fim:" Visible="True" ></asp:Label>&nbsp;
                            <asp:TextBox ID="Edit2txtHoraFim2" runat="server" BorderColor="Black" BorderWidth="1px" 
                                    Enabled="True" Font-Size="X-Small" Width="38px" Wrap="False" 
                                Visible="True" AutoPostBack="True" ></asp:TextBox>&nbsp;
                            <asp:Label ID="Edit2RotuloHoras2" runat="server" Text="Horas / dia:" Visible="True" ></asp:Label>&nbsp;
                            <asp:TextBox ID="Edit2txtHoras2" runat="server" BorderColor="Black" BorderWidth="1px" Font-Size="X-Small"
                                Width="38px" Visible="True"></asp:TextBox>&nbsp;&nbsp;
                            <asp:ImageButton ID="Edit2btnCalcularHoras2" runat="server" 
                                ImageUrl="~/Imagens/Edit2.png" ToolTip="Recalcular horas" Width="16px" 
                                Visible="True" />                            
                            <asp:ImageButton ID="Edit2btnEliminarFalta" runat="server" ImageUrl="~/Imagens/Delete2.png" ToolTip="Eliminar Falta." />&nbsp;&nbsp;
                            <asp:Label ID="lblMsg2EliminarFalta" runat="server" Visible="False" BackColor="White"></asp:Label>
                            <br /> <br />
                        </td>
                    </tr>
                    <tr>
                    <td colspan="34" style="height: 20px; background-color: #d6e0ee; text-align: center">
                        <asp:Label ID="RotuloMes" runat="server" Text="Mês :"></asp:Label>&nbsp;&nbsp;
                        <asp:DropDownList ID="cboMes2" runat="server" Enabled="True" Font-Size="X-Small" 
                                Visible="True" AutoPostBack="True" >
                        </asp:DropDownList>&nbsp;&nbsp;
                        <%--<asp:TextBox ID="TxtMes" runat="server" BorderColor="Black" 
                            BorderWidth="1px" Enabled="False" Font-Size="X-Small" Width="30px" Wrap="False"></asp:TextBox>--%>
                        <asp:Label ID="RotuloAno" runat="server" Text="Ano:"></asp:Label>&nbsp; 
                        <asp:TextBox ID="TxtAno2" runat="server" BorderColor="Black" BorderWidth="1px" 
                            Font-Size="X-Small" Width="40px" AutoPostBack="True"></asp:TextBox>&nbsp;&nbsp;
                        <asp:CheckBox ID="ChkDia1" runat="server" Text="  1" TextAlign="Left" Width="10px" />&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:CheckBox ID="ChkDia2" runat="server" Text="  2" TextAlign="Left" Width="10px" />&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:CheckBox ID="ChkDia3" runat="server" Text="  3" TextAlign="Left" Width="10px" />&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:CheckBox ID="ChkDia4" runat="server" Text="  4" TextAlign="Left" Width="10px" />&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:CheckBox ID="ChkDia5" runat="server" Text="  5" TextAlign="Left" Width="10px" />&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:CheckBox ID="ChkDia6" runat="server" Text="  6" TextAlign="Left" Width="10px" />&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:CheckBox ID="ChkDia7" runat="server" Text="  7" TextAlign="Left" Width="10px" />&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:CheckBox ID="ChkDia8" runat="server" Text="  8" TextAlign="Left" Width="10px" />&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:CheckBox ID="ChkDia9" runat="server" Text="  9" TextAlign="Left" Width="10px" />&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:CheckBox ID="ChkDia10" runat="server" Text=" 10" TextAlign="Left" Width="10px" />&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:CheckBox ID="ChkDia11" runat="server" Text=" 11" TextAlign="Left" Width="10px" />&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:CheckBox ID="ChkDia12" runat="server" Text=" 12" TextAlign="Left" Width="10px" />&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:CheckBox ID="ChkDia13" runat="server" Text=" 13" TextAlign="Left" Width="10px" />&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:CheckBox ID="ChkDia14" runat="server" Text=" 14" TextAlign="Left" Width="10px" />&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:CheckBox ID="ChkDia15" runat="server" Text=" 15" TextAlign="Left" Width="10px" />&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:CheckBox ID="ChkDia16" runat="server" Text=" 16" TextAlign="Left" Width="10px" />&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:CheckBox ID="ChkDia17" runat="server" Text=" 17" TextAlign="Left" Width="10px" />&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:CheckBox ID="ChkDia18" runat="server" Text=" 18" TextAlign="Left" Width="10px" />&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:CheckBox ID="ChkDia19" runat="server" Text=" 19" TextAlign="Left" Width="10px" />&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:CheckBox ID="ChkDia20" runat="server" Text=" 20" TextAlign="Left" Width="10px" />&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:CheckBox ID="ChkDia21" runat="server" Text=" 21" TextAlign="Left" Width="10px" />&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:CheckBox ID="ChkDia22" runat="server" Text=" 22" TextAlign="Left" Width="10px" />&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:CheckBox ID="ChkDia23" runat="server" Text=" 23" TextAlign="Left" Width="10px" />&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:CheckBox ID="ChkDia24" runat="server" Text=" 24" TextAlign="Left" Width="10px" />&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:CheckBox ID="ChkDia25" runat="server" Text=" 25" TextAlign="Left" Width="10px" />&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:CheckBox ID="ChkDia26" runat="server" Text=" 26" TextAlign="Left" Width="10px" />&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:CheckBox ID="ChkDia27" runat="server" Text=" 27" TextAlign="Left" Width="10px" />&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:CheckBox ID="ChkDia28" runat="server" Text=" 28" TextAlign="Left" Width="10px" />&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:CheckBox ID="ChkDia29" runat="server" Text=" 29" TextAlign="Left" Width="10px" />&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:CheckBox ID="ChkDia30" runat="server" Text=" 30" TextAlign="Left" Width="10px" />&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:CheckBox ID="ChkDia31" runat="server" Text=" 31" TextAlign="Left" Width="10px" />&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:ImageButton ID="btnActivarDias" runat="server" ImageUrl="~/Imagens/Edit2.png" ToolTip="Activar/Desactivar todos os dias" />&nbsp;&nbsp;
                        <asp:LinkButton ID="btnGravar2" runat="server">Gravar</asp:LinkButton>&nbsp;&nbsp;
                        <asp:LinkButton ID="btnSair2" runat="server">Sair</asp:LinkButton>
                        <br /> <br />
                    </td>
                    </tr>
                </table>
            </asp:Panel>
                <asp:Panel ID="pnlEditAlterarDePara" runat="server" Width="100%" Visible="False">
                    <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;" align="left">
                                <asp:Label ID="RotuloCampo" runat="server" Text="Seleccionar Campo:"></asp:Label>&nbsp;
                                <asp:DropDownList ID="cboCampo" runat="server" AutoPostBack="True" 
                                    Font-Size="X-Small" Width="130px">
                                </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:LinkButton ID="lnkConfirmar" runat="server" Visible="False">Confirmar</asp:LinkButton>&nbsp;&nbsp;
                            <asp:LinkButton ID="lnkSair2" runat="server" Visible="False">Sair</asp:LinkButton>
                            </td>
                        </tr>
                    </table>
                </asp:Panel>

                                <asp:Panel ID="PnlImportacaoDados" runat="server" Visible="False" Width="100%" 
                        HorizontalAlign="Center">
                    <table border="0" cellpadding="0" cellspacing="0" style="width: 96%; background-color: #a6cdcc" >
                    <tr>
                        <td colspan="36" style="height: 20px; background-color: #d6e0ee; text-align: center">
                            <br />
                            <asp:Label ID="RotuloFileUploadFicheiroDados" runat="server" Text="Importar dados externos p/ Tabela:"></asp:Label>&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="FileUploadFicheiroDados" 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 />
                        </td>
                    </tr>
                    </table>
                    <br /> 
                    <asp:Panel ID="pnlConfigurarTabelaImportacao" runat="server" Visible="False" Width="100%" HorizontalAlign="Center" >
                    <table border="0" cellpadding="0" cellspacing="0" style="width: 96%; 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: 96%; 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>

            </td>
        </tr>
            <tr>
            <td colspan="34">
                <asp:Panel ID="pnlSair" runat="server" Width="100%" Visible="False">
                <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: 12px; text-align: center">
                            <asp:LinkButton ID="lnkSair" runat="server">Sair</asp:LinkButton>
                        </td>
                    </tr>
                </table>
                </asp:Panel>            
            </td>
            </tr>

            <tr>
            <td colspan="34" 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: White; text-align: center" 
                            align="left"> 
                            <%--<asp:Label ID="lblMsg2" runat="server" Visible="False" BackColor="White"></asp:Label> --%>
                        </td>
                    </tr>
                    <tr>
                        <td style="height: 20px; background-color: #d6e0ee; text-align: center">
                            <asp:Label ID="RotuloTabela" runat="server" Font-Size="X-Small" Text="Tabela:"></asp:Label>&nbsp;&nbsp;
                            <asp:DropDownList ID="cboTabela" runat="server" AutoPostBack="True" 
                                Font-Size="X-Small" Width="200px" Height="20px"> </asp:DropDownList>
                            <%--<asp:Label ID="Label6" runat="server" Text="Centros de Custo"></asp:Label>--%>
                        </td>
                    </tr> 
                    <tr>
                        <td style="height: 30px; background-color: #d6e0ee; text-align: center">
                            <br /> 
                            <asp:Label ID="RotuloCodigoTabelaAuxiliar" runat="server" Text="Código:"></asp:Label>&nbsp;
                            <asp:TextBox ID="txtCodigoTabelaAuxiliar" runat="server" BorderColor="Black" BorderWidth="1px" 
                                Font-Size="X-Small" Width="40px"></asp:TextBox>&nbsp;
                            <asp:Label ID="RotuloDescricao" runat="server" Text="Descrição:"></asp:Label>&nbsp;
                            <asp:TextBox ID="txtDescricaoTabelaAuxiliar" runat="server" BorderColor="Black" BorderWidth="1px" 
                                Font-Size="X-Small" Width="150px"></asp:TextBox>&nbsp;
                            <asp:Label ID="RotuloAnoTabelaAuxiliar" runat="server" Text="Ano:"></asp:Label>&nbsp;
                            <asp:TextBox ID="txtAnoTabelaAuxiliar" runat="server" BorderColor="Black" BorderWidth="1px" 
                                Font-Size="X-Small" Width="40px"></asp:TextBox>&nbsp;
                            <asp:Label ID="RotuloPeriodoTabelaAuxiliar" runat="server" Text="Período Férias:"></asp:Label>&nbsp;
                            <asp:TextBox ID="txtPeriodoTabelaAuxiliar" runat="server" BorderColor="Black" BorderWidth="1px" 
                                Font-Size="X-Small" Width="80px"></asp:TextBox>&nbsp;
                            <asp:Label ID="RotuloNotasTabelaAuxiliar" runat="server" Text="Notas:"></asp:Label>&nbsp;
                            <asp:TextBox ID="txtNotasTabelaAuxiliar" runat="server" BorderColor="Black" BorderWidth="1px" 
                                Font-Size="X-Small" Width="150px"></asp:TextBox>&nbsp;
                            <asp:Label ID="RotuloSimbolo" runat="server" Text="Simbolo:"></asp:Label>&nbsp;
                            <asp:TextBox ID="txtSimboloTabelaAuxiliar" runat="server" BorderColor="Black" BorderWidth="1px" 
                                Font-Size="X-Small" Width="20px"></asp:TextBox>&nbsp;
                            <asp:Label ID="RotuloValorHora" runat="server" Text="Valor Hora:"></asp:Label>&nbsp;
                            <asp:TextBox ID="txtValorHoraTabelaAuxiliar" runat="server" BorderColor="Black" BorderWidth="1px" 
                                Font-Size="X-Small" Width="60px"></asp:TextBox>&nbsp;&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="RotuloDigitosPassword" runat="server" Text="Min. Dígitos Palavra-passe:" 
                                Visible="False" ></asp:Label>&nbsp;
                            <asp:TextBox ID="txtDigitosPassword" runat="server" BorderColor="Black" BorderWidth="1px" 
                                Font-Size="X-Small" Width="15px" Visible="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:Label ID="RotuloOrdenacao" runat="server" Text="Ordenação dos dados:" Visible="False"></asp:Label>&nbsp;
                            <asp:DropDownList ID="cboCampo1Ordenacao" runat="server" Font-Size="X-Small" 
                                        Visible="False"> </asp:DropDownList>&nbsp;
                            <br />  <br />
                            <asp:ImageButton ID="btnCoresActivas" runat="server" ImageUrl="~/Imagens/LupaMenos.png" ToolTip="Cores activas." Visible="False" />
                            <asp:ImageButton ID="btnCoresDesactivas" runat="server" 
                                ImageUrl="~/Imagens/LupaMais.png" ToolTip="Cores não activas." Visible="False" />&nbsp;&nbsp;&nbsp;
                            <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" 
                                    PageSize="4" Width="702px" Visible="False" RowStyle-HorizontalAlign="Left">
                                <Columns>
                                    <asp:CommandField SelectText="" ShowSelectButton="True" ButtonType="Image" 
                                        SelectImageUrl="~/Imagens/Edit2.png" 
                                        DeleteImageUrl="~/Imagens/Delete2.png" ShowDeleteButton="True" />
                                </Columns>
                                <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                                <EditRowStyle BackColor="#999999" />
                                <PagerSettings Visible="true"  Position="Bottom" Mode="NextPreviousFirstLast" FirstPageImageUrl="Imagens/SetaPrimeiro.png" PreviousPageImageUrl="Imagens/SetaEsquerda.png" NextPageImageUrl="Imagens/SetaDireita.png" LastPageImageUrl="Imagens/SetaUltimo.png" />
                                <PagerStyle BackColor="#F7F6F3" ForeColor="#5D7B9D" Font-Size="Small" HorizontalAlign="Center" />
                                <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                                <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                            </asp:GridView>
                    </td>
                    </tr>

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

                        <br />  
                        <asp:Label ID="RotuloContador" runat="server" Text="Ordem:" Visible="False"></asp:Label>&nbsp;
                        <asp:TextBox ID="txtContador" runat="server" BorderWidth="1px" Font-Size="X-Small" 
                                    Width="25px" Visible="False"></asp:TextBox>&nbsp;
                        <asp:TextBox ID="txtParenteses1" runat="server" BorderWidth="1px" Font-Size="X-Small" 
                                    Width="10px" Visible="False"></asp:TextBox>&nbsp;
                        <asp:Label ID="RotulocboCamposOpcoesFiltros" runat="server" Text="Campo:" Visible="False"></asp:Label>&nbsp;
                        <asp:DropDownList ID="cboCamposOpcoesFiltros" runat="server" Font-Size="X-Small" 
                                    Visible="False"> </asp:DropDownList>&nbsp;
                        <asp:Label ID="RotuloOperador" runat="server" Text="Operador:" Visible="False"></asp:Label>&nbsp;
                        <asp:DropDownList ID="cboOperadores" runat="server" Font-Size="X-Small" 
                                    Visible="False"> </asp:DropDownList>&nbsp;
                        <asp:Label ID="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="15px" onload="dropOpcoesCampos_Load" 
                                    onselectedindexchanged="dropOpcoesCampos_SelectedIndexChanged" >
                                </asp:DropDownList>
                                </span>
                            </ItemTemplate>                            
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Operador">
                                <ItemTemplate>
                                <asp:DropDownList ID="DropOperacao" runat="server" AutoPostBack="True" 
                                    Font-Size="X-Small" CssClass="drop" Height="15px" onload="DropOperacao_Load" 
                                    onselectedindexchanged="DropOperacao_SelectedIndexChanged">
                                </asp:DropDownList>
                                </span>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField DataField="Valor" HeaderText="Valor" />
                            <asp:BoundField DataField="Parenteses2" HeaderText=" " />
                            <asp:TemplateField HeaderText="Condição">
                                <ItemTemplate>
                                <asp:DropDownList ID="DropConjuncao" runat="server" AutoPostBack="True" 
                                    Font-Size="X-Small" CssClass="drop" Height="15px" onload="DropConjuncao_Load" 
                                    onselectedindexchanged="DropConjuncao_SelectedIndexChanged">
                                </asp:DropDownList>
                                </span>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField DataField="Tipo" HeaderText="" />
                            <asp:BoundField DataField="Filtro2" HeaderText="" />
                            <asp:BoundField DataField="Opcao2" HeaderText=""/>
                            <asp:BoundField DataField="Campo2" HeaderText=""/>
                            <asp:BoundField DataField="Contador2" HeaderText=""/>
                            <asp:BoundField DataField="NumeroEmpregado2" HeaderText=""/>
                            <asp:BoundField DataField="Condicao" HeaderText=""/>
                            <asp:BoundField DataField="Conjuncao" HeaderText=""/>
                        </Columns>
                        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                        <EditRowStyle BackColor="#999999" />
                        <PagerSettings Visible="true"  Position="Bottom" Mode="NextPreviousFirstLast" FirstPageImageUrl="~/Imagens/SetaPrimeiro.png" PreviousPageImageUrl="~/Imagens/SetaEsquerda.png" NextPageImageUrl="~/Imagens/SetaDireita.png" LastPageImageUrl="~/Imagens/SetaUltimo.png" />
                        <PagerStyle BackColor="#F7F6F3" ForeColor="#5D7B9D" Font-Size="Small" HorizontalAlign="Center" />
                        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                        </asp:GridView>
                        <br />
                    </td>
                    </tr>

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

            <tr>
            <td colspan="34" 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: 3px; text-align: center">
                            <asp:LinkButton ID="lnkSair3" runat="server">Sair</asp:LinkButton>
                        </td>
                    </tr>
                    <tr>
                        <td 
                            style="height: 20px; background-color: White; text-align: center" 
                            align="left"> 
                            <%--<asp:Label ID="lblMsg3" runat="server" Visible="False" BackColor="White"></asp:Label>--%> 
                        </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: 30px; 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="chkVisualizar" runat="server" AutoPostBack="True" OnCheckedChanged="chkVisualizar_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="34" style="text-align: center">
            <asp:Panel ID="pnlEquipasPessoal" 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">
                    <br />
                        <asp:Label ID="RotuloAfectarEmpregadosEquipas" runat="server" Font-Size="X-Small" Text="Afectar Empregados a Equipas"></asp:Label>&nbsp;&nbsp;
                    <br />
                    </td>
                </tr> 
                    <tr>
                    <td style="height: 20px; background-color: #d6e0ee; text-align: center">
                        <br /> 
                        <asp:Label ID="RotuloEquipa" runat="server" Text="Equipa:"></asp:Label>&nbsp;
                        <asp:DropDownList ID="cboEquipa" runat="server" AutoPostBack="True" 
                            Font-Size="X-Small">
                        </asp:DropDownList>&nbsp;&nbsp;
                        <asp:Label ID="RotuloEmpregado" runat="server" Text="Empregado:"></asp:Label>&nbsp;
                        <asp:DropDownList ID="cboNumeroEmpregado" runat="server" Font-Size="X-Small" AutoPostBack="True" Enabled="True">
                        </asp:DropDownList>&nbsp;
                        <asp:ImageButton ID="btnIndex" runat="server" 
                            ImageUrl="~/Imagens/Edit2.png" ToolTip="Alterar ordenação." Width="16px" />&nbsp;&nbsp;&nbsp;&nbsp;
                        <%--<asp:ImageButton ID="btnIndexRelogios" runat="server" 
                            ImageUrl="~/Imagens/Edit2.png" ToolTip="Alterar ordenação." Width="16px" />&nbsp;&nbsp;&nbsp;&nbsp;--%>
                        <asp:ImageButton ID="btnEquipasPessoalGravar" runat="server" 
                            ImageUrl="~/Imagens/Ok.png" ToolTip="Gravar novo registo." 
                            Visible="True" />&nbsp;&nbsp;
                        <asp:LinkButton ID="btnEquipasPessoalSair" runat="server">Sair</asp:LinkButton>
                        <br /><br />
                    </td>
                    </tr>
                <tr>
                    <td colspan="34">
                        <asp:GridView ID="grdDadosEquipasPessoal" runat="server" CellPadding="4" HorizontalAlign="Center" 
                                    PageSize="4" Width="800px" AutoGenerateColumns="False">
                        <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:TemplateField HeaderText="Equipa">
                            <ItemTemplate>
                                <asp:DropDownList ID="dropEquipas" runat="server" AutoPostBack="True" 
                                    Font-Size="X-Small" CssClass="drop" Height="19px" onload="dropEquipas_Load" 
                                    onselectedindexchanged="dropEquipas_SelectedIndexChanged" >
                                </asp:DropDownList>
                                </span>
                            </ItemTemplate>                            
                            </asp:TemplateField>
                            <asp:BoundField DataField="NumeroEmpregado" HeaderText="Núm" />
                            <asp:BoundField DataField="Nome" HeaderText="Nome" />
                            <asp:BoundField DataField="Equipa" HeaderText="" />
                        </Columns>
                        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                        <EditRowStyle BackColor="#999999" />
                        <PagerSettings Visible="true"  Position="Bottom" Mode="NextPreviousFirstLast" FirstPageImageUrl="~/Imagens/SetaPrimeiro.png" PreviousPageImageUrl="~/Imagens/SetaEsquerda.png" NextPageImageUrl="~/Imagens/SetaDireita.png" LastPageImageUrl="~/Imagens/SetaUltimo.png" />
                        <PagerStyle BackColor="#F7F6F3" ForeColor="#5D7B9D" Font-Size="Small" HorizontalAlign="Center" />
                        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                        </asp:GridView>
                        <br /><br />
                    </td>
                </tr>
                </table>
            </asp:Panel>
            </td>
        </tr>

        <tr>
            <td colspan="34">
            <asp:GridView ID="grdDadosAnual12" runat="server" CellPadding="4" ForeColor="#333333" 
                    GridLines="Vertical" Width="100%" AllowPaging="True" PageSize="16" 
                    AutoGenerateColumns="False">
                <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                <Columns>
                    <asp:CommandField SelectText="" ShowSelectButton="True" ButtonType="Image" 
                        SelectImageUrl="~/Imagens/Edit2.png" />
                    <asp:BoundField DataField="NumeroEmpregado" HeaderText="Núm" />
                    <asp:BoundField DataField="Nome" HeaderText="Nome" />
                    <asp:BoundField DataField="Centro Custo" HeaderText="Centro Custo" />
                    <asp:BoundField DataField="Oficina" HeaderText="Oficina/Secção" />
                    <asp:BoundField DataField="Ano" HeaderText="Ano" ReadOnly="True" />
                    <asp:TemplateField HeaderText="Ano Ant.">
                        <ItemTemplate>
                            <table cellpadding="0" cellspacing="0" class="style3">
                                <tr>
                                <td>
                                    <asp:Label ID="lblAnoAnt" runat="server" />
                                    <asp:imagebutton ID="btnAnoAnt" runat="server"  
                                        Height="12px" OnClick="btnNotasAnoAnt_Click" ImageUrl="~/Imagens/Notas.png" ToolTip="Notas" Width="12px"  Visible="False" />
                                </td>
                                </tr>
                            </table>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Ano Act.">
                        <ItemTemplate>
                            <table cellpadding="0" cellspacing="0" class="style3">
                                <tr>
                                <td>
                                    <asp:Label ID="lblAnoAct" runat="server" />
                                    <asp:imagebutton ID="btnAnoAct" runat="server"  
                                        Height="12px" OnClick="btnNotasAnoAct_Click" ImageUrl="~/Imagens/Notas.png" ToolTip="Notas" Width="12px" Visible="False" />
                                </td>
                                </tr>
                            </table>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Férias Extra">
                        <ItemTemplate>
                            <table cellpadding="0" cellspacing="0" class="style3">
                                <tr>
                                <td>
                                    <asp:Label ID="lblFeriasExtra" runat="server" />
                                    <asp:imagebutton ID="btnFeriasExtra" runat="server" 
                                        Height="12px" OnClick="btnNotasFeriasExtra_Click" ImageUrl="~/Imagens/Notas.png" ToolTip="Notas" Width="12px" Visible="False" />
                                </td>
                                </tr>
                            </table>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Período Férias">
                        <ItemTemplate>
                            <table cellpadding="0" cellspacing="0" class="style3">
                                <tr>
                                <td>
                                    <asp:Label ID="lblPeriodoFerias" runat="server" />
                                    <asp:imagebutton ID="btnPeriodoFerias" runat="server" 
                                        Height="12px" OnClick="btnPeriodoFerias_Click" ImageUrl="~/Imagens/Notas.png" ToolTip="Descrição Período férias." Width="12px" Visible="False" />
                                </td>
                                </tr>
                            </table>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="FeriasDiaAniversario" HeaderText="Férias dia Aniversário" ReadOnly="True" />
                    <asp:BoundField DataField="Total a gozar" HeaderText="Total a gozar" ReadOnly="True" />
                    <%--<asp:TemplateField HeaderText="Jan">
                        <ItemTemplate>
                            <table cellpadding="0" cellspacing="0" class="style3">
                                <tr>
                                <td>
                                    <asp:Label ID="lblJan" runat="server" ToolTip="Visualizar / editar nº horas" />
                                    <asp:imagebutton ID="btnJan" runat="server" Font-Bold="True" Font-Size="Small" 
                                        Height="12px" OnClick="btnConfirmarJan_Click" ImageUrl="~/Imagens/Edit2.png" ToolTip="Confirmação de férias" Width="12px" Visible="False" />
                                </td>
                                </tr>
                            </table>
                        </ItemTemplate>
                    </asp:TemplateField>--%>
                    <asp:TemplateField HeaderText="Jan">
                        <ItemTemplate>
                            <table cellpadding="0" cellspacing="0" class="style3">
                                <tr>
                                <td>
                                    <asp:Label ID="lbl12Jan" runat="server" ToolTip="Visualizar / editar nº horas" />
                                    <asp:imagebutton ID="btn12Jan" runat="server"
                                        Height="12px" OnClick="btnConfirmarJan_Click" ImageUrl="~/Imagens/Edit2.png" ToolTip="Confirmação de férias" Width="12px" Visible="False" />
                                </td>
                                </tr>
                            </table>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Fev">
                        <ItemTemplate>
                            <table cellpadding="0" cellspacing="0" class="style3">
                                <tr>
                                <td>
                                    <asp:Label ID="lbl12Fev" runat="server" ToolTip="Visualizar / editar nº horas" />
                                    <asp:imagebutton ID="btn12Fev" runat="server"  
                                        Height="12px" OnClick="btnConfirmarFev_Click" ImageUrl="~/Imagens/Edit2.png" ToolTip="Confirmação de férias" Width="12px" Visible="False" />
                                </td>
                                </tr>
                            </table>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Mar">
                        <ItemTemplate>
                            <table cellpadding="0" cellspacing="0" class="style3">
                                <tr>
                                <td>
                                    <asp:Label ID="lbl12Mar" runat="server" ToolTip="Visualizar / editar nº horas" />
                                    <asp:imagebutton ID="btn12Mar" runat="server"  
                                        Height="12px" OnClick="btnConfirmarMar_Click" ImageUrl="~/Imagens/Edit2.png" ToolTip="Confirmação de férias" Width="12px" Visible="False" />
                                </td>
                                </tr>
                            </table>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Abr">
                        <ItemTemplate>
                            <table cellpadding="0" cellspacing="0" class="style3">
                                <tr>
                                <td>
                                    <asp:Label ID="lbl12Abr" runat="server" ToolTip="Visualizar / editar nº horas" />
                                    <asp:imagebutton ID="btn12Abr" runat="server"  
                                        Height="12px" OnClick="btnConfirmarAbr_Click" ImageUrl="~/Imagens/Edit2.png" ToolTip="Confirmação de férias" Width="12px" Visible="False" />
                                </td>
                                </tr>
                            </table>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Mai">
                        <ItemTemplate>
                            <table cellpadding="0" cellspacing="0" class="style3">
                                <tr>
                                <td>
                                    <asp:Label ID="lbl12Mai" runat="server" ToolTip="Visualizar / editar nº horas" />
                                    <asp:imagebutton ID="btn12Mai" runat="server"  
                                        Height="12px" OnClick="btnConfirmarMai_Click" ImageUrl="~/Imagens/Edit2.png" ToolTip="Confirmação de férias" Width="12px" Visible="False" />
                                </td>
                                </tr>
                            </table>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Jun">
                        <ItemTemplate>
                            <table cellpadding="0" cellspacing="0" class="style3">
                                <tr>
                                <td>
                                    <asp:Label ID="lbl12Jun" runat="server" ToolTip="Visualizar / editar nº horas" />
                                    <asp:imagebutton ID="btn12Jun" runat="server"  
                                        Height="12px" OnClick="btnConfirmarJun_Click" ImageUrl="~/Imagens/Edit2.png" ToolTip="Confirmação de férias" Width="12px" Visible="False" />
                                </td>
                                </tr>
                            </table>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Jul">
                        <ItemTemplate>
                            <table cellpadding="0" cellspacing="0" class="style3">
                                <tr>
                                <td>
                                    <asp:Label ID="lbl12Jul" runat="server" ToolTip="Visualizar / editar nº horas" />
                                    <asp:imagebutton ID="btn12Jul" runat="server"  
                                        Height="12px" OnClick="btnConfirmarJul_Click" ImageUrl="~/Imagens/Edit2.png" ToolTip="Confirmação de férias" Width="12px" Visible="False" />
                                </td>
                                </tr>
                            </table>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Ago">
                        <ItemTemplate>
                            <table cellpadding="0" cellspacing="0" class="style3">
                                <tr>
                                <td>
                                    <asp:Label ID="lbl12Ago" runat="server" ToolTip="Visualizar / editar nº horas" />
                                    <asp:imagebutton ID="btn12Ago" runat="server"  
                                        Height="12px" OnClick="btnConfirmarAgo_Click" ImageUrl="~/Imagens/Edit2.png" ToolTip="Confirmação de férias" Width="12px" Visible="False" />
                                </td>
                                </tr>
                            </table>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Set">
                        <ItemTemplate>
                            <table cellpadding="0" cellspacing="0" class="style3">
                                <tr>
                                <td>
                                    <asp:Label ID="lbl12Set" runat="server" ToolTip="Visualizar / editar nº horas" />
                                    <asp:imagebutton ID="btn12Set" runat="server"  
                                        Height="12px" OnClick="btnConfirmarSet_Click" ImageUrl="~/Imagens/Edit2.png" ToolTip="Confirmação de férias" Width="12px" Visible="False" />
                                </td>
                                </tr>
                            </table>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Out">
                        <ItemTemplate>
                            <table cellpadding="0" cellspacing="0" class="style3">
                                <tr>
                                <td>
                                    <asp:Label ID="lbl12Out" runat="server" ToolTip="Visualizar / editar nº horas" />
                                    <asp:imagebutton ID="btn12Out" runat="server"  
                                        Height="12px" OnClick="btnConfirmarOut_Click" ImageUrl="~/Imagens/Edit2.png" ToolTip="Confirmação de férias" Width="12px" Visible="False" />
                                </td>
                                </tr>
                            </table>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Nov">
                        <ItemTemplate>
                            <table cellpadding="0" cellspacing="0" class="style3">
                                <tr>
                                <td>
                                    <asp:Label ID="lbl12Nov" runat="server" ToolTip="Visualizar / editar nº horas" />
                                    <asp:imagebutton ID="btn12Nov" runat="server"  
                                        Height="12px" OnClick="btnConfirmarNov_Click" ImageUrl="~/Imagens/Edit2.png" ToolTip="Confirmação de férias" Width="12px" Visible="False" />
                                </td>
                                </tr>
                            </table>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Dez">
                        <ItemTemplate>
                            <table cellpadding="0" cellspacing="0" class="style3">
                                <tr>
                                <td>
                                    <asp:Label ID="lbl12Dez" runat="server" ToolTip="Visualizar / editar nº horas" />
                                    <asp:imagebutton ID="btn12Dez" runat="server"  
                                        Height="12px" OnClick="btnConfirmarDez_Click" ImageUrl="~/Imagens/Edit2.png" ToolTip="Confirmação de férias" Width="12px" Visible="False" />
                                </td>
                                </tr>
                            </table>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="Saldo" HeaderText="Saldo" ReadOnly="True" />
                    <asp:BoundField DataField="AnoAnt" HeaderText="" ReadOnly="True" />
                    <asp:BoundField DataField="AnoAct" HeaderText="" ReadOnly="True" />
                    <asp:BoundField DataField="FeriasExtra" HeaderText="" ReadOnly="True" />
                    <asp:BoundField DataField="PeriodoFerias" HeaderText="" ReadOnly="True" />
                    <asp:BoundField DataField="Ano1" HeaderText="" ReadOnly="True" />
                    <asp:BoundField DataField="Mes1" HeaderText="" ReadOnly="True" />
                    <asp:BoundField DataField="1" HeaderText="Jan" ReadOnly="True" />
                    <asp:BoundField DataField="2" HeaderText="Fev" ReadOnly="True" />
                    <asp:BoundField DataField="3" HeaderText="Mar" ReadOnly="True" />
                    <asp:BoundField DataField="4" HeaderText="Abr" ReadOnly="True" />
                    <asp:BoundField DataField="5" HeaderText="Mai" ReadOnly="True" />
                    <asp:BoundField DataField="6" HeaderText="Jun" ReadOnly="True" />
                    <asp:BoundField DataField="7" HeaderText="Jul" ReadOnly="True" />
                    <asp:BoundField DataField="8" HeaderText="Ago" ReadOnly="True" />
                    <asp:BoundField DataField="9" HeaderText="Set" ReadOnly="True" />
                    <asp:BoundField DataField="10" HeaderText="Out" ReadOnly="True" />
                    <asp:BoundField DataField="11" HeaderText="Nov" ReadOnly="True" />
                    <asp:BoundField DataField="12" HeaderText="Dez" ReadOnly="True" />
                </Columns>
                <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                <EditRowStyle BackColor="#999999" />
                <PagerSettings Visible="true"  Position="Bottom" Mode="NextPreviousFirstLast" FirstPageImageUrl="Imagens/SetaPrimeiro.png" PreviousPageImageUrl="Imagens/SetaEsquerda.png" NextPageImageUrl="Imagens/SetaDireita.png" LastPageImageUrl="Imagens/SetaUltimo.png" />
                <PagerStyle BackColor="#F7F6F3" ForeColor="#5D7B9D" Font-Size="Small" HorizontalAlign="Center" />
                <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
            </asp:GridView>
            </td>
        </tr>
        <tr>
            <td colspan="34">
            <asp:GridView ID="grdDadosAnual24" runat="server" CellPadding="4" ForeColor="#333333" 
                    GridLines="Vertical" Width="100%" AllowPaging="True" PageSize="16" 
                    AutoGenerateColumns="False">
                <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                <Columns>
                    <asp:CommandField SelectText="" ShowSelectButton="True" ButtonType="Image" 
                        SelectImageUrl="~/Imagens/Edit2.png" />
                    <asp:BoundField DataField="NumeroEmpregado" HeaderText="Núm" />
                    <asp:BoundField DataField="Nome" HeaderText="Nome" />
                    <asp:BoundField DataField="Centro Custo" HeaderText="Centro Custo" />
                    <asp:BoundField DataField="Oficina" HeaderText="Oficina/Secção" />
                    <asp:BoundField DataField="Ano" HeaderText="Ano" ReadOnly="True" />
                    <asp:TemplateField HeaderText="Ano Ant.">
                        <ItemTemplate>
                            <table cellpadding="0" cellspacing="0" class="style3">
                                <tr>
                                <td>
                                    <asp:Label ID="lblAnoAnt" runat="server" />
                                    <asp:imagebutton ID="btnAnoAnt" runat="server"  
                                        Height="12px" OnClick="btnNotasAnoAnt_Click" ImageUrl="~/Imagens/Notas.png" ToolTip="Notas" Width="12px" Visible="False" />
                                </td>
                                </tr>
                            </table>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Ano Act.">
                        <ItemTemplate>
                            <table cellpadding="0" cellspacing="0" class="style3">
                                <tr>
                                <td>
                                    <asp:Label ID="lblAnoAct" runat="server" />
                                    <asp:imagebutton ID="btnAnoAct" runat="server"  
                                        Height="12px" OnClick="btnNotasAnoAct_Click" ImageUrl="~/Imagens/Notas.png" ToolTip="Notas" Width="12px" Visible="False" />
                                </td>
                                </tr>
                            </table>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Férias Extra">
                        <ItemTemplate>
                            <table cellpadding="0" cellspacing="0" class="style3">
                                <tr>
                                <td>
                                    <asp:Label ID="lblFeriasExtra" runat="server" />
                                    <asp:imagebutton ID="btnFeriasExtra" runat="server"  
                                        Height="12px" OnClick="btnNotasFeriasExtra_Click" ImageUrl="~/Imagens/Notas.png" ToolTip="Notas" Width="12px" Visible="False" />
                                </td>
                                </tr>
                            </table>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Período Férias">
                        <ItemTemplate>
                            <table cellpadding="0" cellspacing="0" class="style3">
                                <tr>
                                <td>
                                    <asp:Label ID="lblPeriodoFerias" runat="server" />
                                    <asp:imagebutton ID="btnPeriodoFerias" runat="server"  
                                        Height="12px" OnClick="btnPeriodoFerias_Click" ImageUrl="~/Imagens/Notas.png" ToolTip="Descrição Período férias." Width="12px" Visible="False" />
                                </td>
                                </tr>
                            </table>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="FeriasDiaAniversario" HeaderText="Férias dia Aniversário" ReadOnly="True" />
                    <asp:BoundField DataField="Total a gozar" HeaderText="Total a gozar" ReadOnly="True" />
                    <asp:BoundField DataField="1" HeaderText="Jan" ReadOnly="True" />
                    <asp:TemplateField HeaderText="Nº Dias Jan">
                        <ItemTemplate>
                            <table cellpadding="0" cellspacing="0" class="style3">
                                <tr>
                                <td>
                                    <asp:Label ID="lblJan" runat="server" ToolTip="Visualizar / editar nº horas" />
                                    <asp:imagebutton ID="btnJan" runat="server"  
                                        Height="12px" OnClick="btnConfirmarJan_Click" ImageUrl="~/Imagens/Edit2.png" ToolTip="Confirmação de férias" Width="12px" Visible="False" />
                                </td>
                                </tr>
                            </table>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="2" HeaderText="Fev" ReadOnly="True" />
                    <asp:TemplateField HeaderText="Nº Dias Fev">
                        <ItemTemplate>
                            <table cellpadding="0" cellspacing="0" class="style3">
                                <tr>
                                <td>
                                    <asp:Label ID="lblFev" runat="server" ToolTip="Visualizar / editar nº horas" />
                                    <asp:imagebutton ID="btnFev" runat="server"  
                                        Height="12px" OnClick="btnConfirmarFev_Click" ImageUrl="~/Imagens/Edit2.png" ToolTip="Confirmação de férias" Width="12px" Visible="False" />
                                </td>
                                </tr>
                            </table>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="3" HeaderText="Mar" ReadOnly="True" />
                    <asp:TemplateField HeaderText="Nº Dias Mar">
                        <ItemTemplate>
                            <table cellpadding="0" cellspacing="0" class="style3">
                                <tr>
                                <td>
                                    <asp:Label ID="lblMar" runat="server" ToolTip="Visualizar / editar nº horas" />
                                    <asp:imagebutton ID="btnMar" runat="server"  
                                        Height="12px" OnClick="btnConfirmarMar_Click" ImageUrl="~/Imagens/Edit2.png" ToolTip="Confirmação de férias" Width="12px" Visible="False" />
                                </td>
                                </tr>
                            </table>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="4" HeaderText="Abr" ReadOnly="True" />
                    <asp:TemplateField HeaderText="Nº Dias Abr">
                        <ItemTemplate>
                            <table cellpadding="0" cellspacing="0" class="style3">
                                <tr>
                                <td>
                                    <asp:Label ID="lblAbr" runat="server" ToolTip="Visualizar / editar nº horas" />
                                    <asp:imagebutton ID="btnAbr" runat="server"  
                                        Height="12px" OnClick="btnConfirmarAbr_Click" ImageUrl="~/Imagens/Edit2.png" ToolTip="Confirmação de férias" Width="12px" Visible="False" />
                                </td>
                                </tr>
                            </table>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="5" HeaderText="Mai" ReadOnly="True" />
                    <asp:TemplateField HeaderText="Nº Dias Mai">
                        <ItemTemplate>
                            <table cellpadding="0" cellspacing="0" class="style3">
                                <tr>
                                <td>
                                    <asp:Label ID="lblMai" runat="server" ToolTip="Visualizar / editar nº horas" />
                                    <asp:imagebutton ID="btnMai" runat="server"  
                                        Height="12px" OnClick="btnConfirmarMai_Click" ImageUrl="~/Imagens/Edit2.png" ToolTip="Confirmação de férias" Width="12px" Visible="False" />
                                </td>
                                </tr>
                            </table>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="6" HeaderText="Jun" ReadOnly="True" />
                    <asp:TemplateField HeaderText="Nº Dias Jun">
                        <ItemTemplate>
                            <table cellpadding="0" cellspacing="0" class="style3">
                                <tr>
                                <td>
                                    <asp:Label ID="lblJun" runat="server" ToolTip="Visualizar / editar nº horas" />
                                    <asp:imagebutton ID="btnJun" runat="server"  
                                        Height="12px" OnClick="btnConfirmarJun_Click" ImageUrl="~/Imagens/Edit2.png" ToolTip="Confirmação de férias" Width="12px" Visible="False" />
                                </td>
                                </tr>
                            </table>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="7" HeaderText="Jul" ReadOnly="True" />
                    <asp:TemplateField HeaderText="Nº Dias Jul">
                        <ItemTemplate>
                            <table cellpadding="0" cellspacing="0" class="style3">
                                <tr>
                                <td>
                                    <asp:Label ID="lblJul" runat="server" ToolTip="Visualizar / editar nº horas" />
                                    <asp:imagebutton ID="btnJul" runat="server"  
                                        Height="12px" OnClick="btnConfirmarJul_Click" ImageUrl="~/Imagens/Edit2.png" ToolTip="Confirmação de férias" Width="12px" Visible="False" />
                                </td>
                                </tr>
                            </table>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="8" HeaderText="Ago" ReadOnly="True" />
                    <asp:TemplateField HeaderText="Nº Dias Ago">
                        <ItemTemplate>
                            <table cellpadding="0" cellspacing="0" class="style3">
                                <tr>
                                <td>
                                    <asp:Label ID="lblAgo" runat="server" ToolTip="Visualizar / editar nº horas" />
                                    <asp:imagebutton ID="btnAgo" runat="server"  
                                        Height="12px" OnClick="btnConfirmarAgo_Click" ImageUrl="~/Imagens/Edit2.png" ToolTip="Confirmação de férias" Width="12px" Visible="False" />
                                </td>
                                </tr>
                            </table>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="9" HeaderText="Set" ReadOnly="True" />
                    <asp:TemplateField HeaderText="Nº Dias Set">
                        <ItemTemplate>
                            <table cellpadding="0" cellspacing="0" class="style3">
                                <tr>
                                <td>
                                    <asp:Label ID="lblSet" runat="server" ToolTip="Visualizar / editar nº horas" />
                                    <asp:imagebutton ID="btnSet" runat="server"  
                                        Height="12px" OnClick="btnConfirmarSet_Click" ImageUrl="~/Imagens/Edit2.png" ToolTip="Confirmação de férias" Width="12px" Visible="False" />
                                </td>
                                </tr>
                            </table>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="10" HeaderText="Out" ReadOnly="True" />
                    <asp:TemplateField HeaderText="Nº Dias Out">
                        <ItemTemplate>
                            <table cellpadding="0" cellspacing="0" class="style3">
                                <tr>
                                <td>
                                    <asp:Label ID="lblOut" runat="server" ToolTip="Visualizar / editar nº horas" />
                                    <asp:imagebutton ID="btnOut" runat="server" 
                                        Height="12px" OnClick="btnConfirmarOut_Click" ImageUrl="~/Imagens/Edit2.png" ToolTip="Confirmação de férias" Width="12px" Visible="False" />
                                </td>
                                </tr>
                            </table>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="11" HeaderText="Nov" ReadOnly="True" />
                    <asp:TemplateField HeaderText="Nº Dias Nov">
                        <ItemTemplate>
                            <table cellpadding="0" cellspacing="0" class="style3">
                                <tr>
                                <td>
                                    <asp:Label ID="lblNov" runat="server" ToolTip="Visualizar / editar nº horas" />
                                    <asp:imagebutton ID="btnNov" runat="server"  
                                        Height="12px" OnClick="btnConfirmarNov_Click" ImageUrl="~/Imagens/Edit2.png" ToolTip="Confirmação de férias" Width="12px" Visible="False" />
                                </td>
                                </tr>
                            </table>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="12" HeaderText="Dez" ReadOnly="True" />
                    <asp:TemplateField HeaderText="Nº Dias Dez">
                        <ItemTemplate>
                            <table cellpadding="0" cellspacing="0" class="style3">
                                <tr>
                                <td>
                                    <asp:Label ID="lblDez" runat="server" ToolTip="Visualizar / editar nº horas" />
                                    <asp:imagebutton ID="btnDez" runat="server"  
                                        Height="12px" OnClick="btnConfirmarDez_Click" ImageUrl="~/Imagens/Edit2.png" ToolTip="Confirmação de férias" Width="12px" Visible="False" />
                                </td>
                                </tr>
                            </table>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="Saldo" HeaderText="Saldo" ReadOnly="True" />
                    <asp:BoundField DataField="FeriasAnoSeguinte" HeaderText="Ano Seg." ReadOnly="True" />
                    <asp:BoundField DataField="AnoAnt" HeaderText="" ReadOnly="True" />
                    <asp:BoundField DataField="AnoAct" HeaderText="" ReadOnly="True" />
                    <asp:BoundField DataField="FeriasExtra" HeaderText="" ReadOnly="True" />
                    <asp:BoundField DataField="PeriodoFerias" HeaderText="" ReadOnly="True" />
                    <asp:BoundField DataField="Ano1" HeaderText="" ReadOnly="True" />
                    <asp:BoundField DataField="Mes1" HeaderText="" ReadOnly="True" />
                    <asp:BoundField DataField="Nº Dias Jan" HeaderText="" ReadOnly="True" />
                    <asp:BoundField DataField="Nº Dias Fev" HeaderText="" ReadOnly="True" />
                    <asp:BoundField DataField="Nº Dias Mar" HeaderText="" ReadOnly="True" />
                    <asp:BoundField DataField="Nº Dias Abr" HeaderText="" ReadOnly="True" />
                    <asp:BoundField DataField="Nº Dias Mai" HeaderText="" ReadOnly="True" />
                    <asp:BoundField DataField="Nº Dias Jun" HeaderText="" ReadOnly="True" />
                    <asp:BoundField DataField="Nº Dias Jul" HeaderText="" ReadOnly="True" />
                    <asp:BoundField DataField="Nº Dias Ago" HeaderText="" ReadOnly="True" />
                    <asp:BoundField DataField="Nº Dias Set" HeaderText="" ReadOnly="True" />
                    <asp:BoundField DataField="Nº Dias Out" HeaderText="" ReadOnly="True" />
                    <asp:BoundField DataField="Nº Dias Nov" HeaderText="" ReadOnly="True" />
                    <asp:BoundField DataField="Nº Dias Dez" HeaderText="" ReadOnly="True" />
                </Columns>
                <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                <EditRowStyle BackColor="#999999" />
                <PagerSettings Visible="true"  Position="Bottom" Mode="NextPreviousFirstLast" FirstPageImageUrl="Imagens/SetaPrimeiro.png" PreviousPageImageUrl="Imagens/SetaEsquerda.png" NextPageImageUrl="Imagens/SetaDireita.png" LastPageImageUrl="Imagens/SetaUltimo.png" />
                <PagerStyle BackColor="#F7F6F3" ForeColor="#5D7B9D" Font-Size="Small" HorizontalAlign="Center" />
                <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
            </asp:GridView>
            </td>
        </tr>
        <tr>
            <td colspan="34">
            <asp:GridView ID="grdDadosMensal" runat="server" CellPadding="4" ForeColor="#333333" GridLines="Vertical" Width="100%" AllowPaging="True" PageSize="16">
                <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                <Columns>
                    <asp:CommandField SelectText="" ShowSelectButton="True" ButtonType="Image" 
                        SelectImageUrl="~/Imagens/Edit2.png" />
                </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: 10px; background-color: White;"> </td> </tr>--%>
        <tr>
            <td colspan="34" 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="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:Content>

