<%@ page language="VB" masterpagefile="~/MasterPage.master" autoeventwireup="false" inherits="Controlo2CentroCustoCategoria, App_Web_znjejdfy" 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="36" style="height: 10px; background-color: #5d7b9d; text-align: center">
                <asp:Label ID="TituloPontoIndividual" runat="server" Font-Bold="True" Font-Size="X-Small" ForeColor="Yellow" Text="Controlo por centro de custo / categoria"></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" Height="18"></asp:DropDownList>
                <asp:ImageButton ID="btnPesquisarCampo1" runat="server" ImageUrl="~/Imagens/LupaMais.png" ToolTip="Pesquisar" Visible="False" />
                <asp:ImageButton ID="btnOcultarPesquisarCampo1" runat="server" ImageUrl="~/Imagens/LupaMenos.png" ToolTip="Ocultar pesquisa" Visible="False" />&nbsp;
                <asp:TextBox ID="txtFiltroData1" runat="server" Font-Size="X-Small" Visible="False" Width="55px"></asp:TextBox>
                <asp:Label ID="LabelValor2" runat="server" Text="Valor: " ForeColor="White" Visible="False"></asp:Label>
                <asp:TextBox ID="txtFiltroValor2" runat="server" Font-Size="X-Small" Width="55px" Visible="False"></asp:TextBox>
                <asp:DropDownList ID="cboCampo2" runat="server" AutoPostBack="True" Font-Size="X-Small" Visible="False"> </asp:DropDownList>
                <asp:ImageButton ID="btnPesquisarCampo2" runat="server" ImageUrl="~/Imagens/LupaMais.png" ToolTip="Pesquisar" Visible="False" />
                <asp:ImageButton ID="btnOcultarPesquisarCampo2" runat="server" ImageUrl="~/Imagens/LupaMenos.png" ToolTip="Ocultar pesquisa" Visible="False" />&nbsp;
                <asp:TextBox ID="txtFiltroData2" runat="server" Font-Size="X-Small"  Width="55px" Visible="False"></asp:TextBox>
                <asp:Label ID="LabelValor3" runat="server" Text="Valor: " ForeColor="White" Visible="False"></asp:Label>
                <asp:TextBox ID="txtFiltroValor3" runat="server" Font-Size="X-Small" Width="55px" Visible="False"></asp:TextBox>
                <asp:DropDownList ID="cboCampo3" runat="server" AutoPostBack="True" Font-Size="X-Small" Visible="False"></asp:DropDownList>
                <asp:ImageButton ID="btnPesquisarCampo3" runat="server" ImageUrl="~/Imagens/LupaMais.png" ToolTip="Pesquisar" Visible="False" />
                <asp:ImageButton ID="btnOcultarPesquisarCampo3" runat="server" ImageUrl="~/Imagens/LupaMenos.png" ToolTip="Ocultar pesquisa" Visible="False" />&nbsp;
                <asp:TextBox ID="txtFiltroData3" runat="server" Font-Size="X-Small" Visible="False" Width="55px"></asp:TextBox>
                <asp:ImageButton ID="Pesquisar3" runat="server" ImageUrl="~/Imagens/Lupa2.png" ToolTip="Executar filtro" OnClientClick="target=''" Width="24px" Visible="False"/>
                <asp:Label ID="LabelValor4" runat="server" Text="Valor: " ForeColor="White" Visible="False"></asp:Label>
                <asp:TextBox ID="txtFiltroValor4" runat="server" Font-Size="X-Small" Width="55px" Visible="False"></asp:TextBox>
                <asp:DropDownList ID="cboCampo4" runat="server" AutoPostBack="True" Font-Size="X-Small" Visible="False"></asp:DropDownList>
                <asp:ImageButton ID="btnPesquisarCampo4" runat="server" ImageUrl="~/Imagens/LupaMais.png" ToolTip="Pesquisar" Visible="False" />
                <asp:ImageButton ID="btnOcultarPesquisarCampo4" runat="server" ImageUrl="~/Imagens/LupaMenos.png" ToolTip="Ocultar pesquisa" Visible="False" />&nbsp;
                <asp:TextBox ID="txtFiltroData4" runat="server" Font-Size="X-Small" Visible="False" Width="55px"></asp:TextBox>
                <asp:ImageButton ID="Pesquisar4" runat="server" ImageUrl="~/Imagens/Lupa2.png" ToolTip="Executar filtro" OnClientClick="target=''" Width="24px" Visible="False"/>
                <asp:Label ID="LabelValor5" runat="server" Text="Valor: " ForeColor="White" Visible="False"></asp:Label>
                <asp:TextBox ID="txtFiltroValor5" runat="server" Font-Size="X-Small" Width="55px" Visible="False"></asp:TextBox>
                <asp:DropDownList ID="cboCampo5" runat="server" AutoPostBack="True" Font-Size="X-Small" Visible="False"></asp:DropDownList>
                <asp:ImageButton ID="btnPesquisarCampo5" runat="server" ImageUrl="~/Imagens/LupaMais.png" ToolTip="Pesquisar" Visible="False" />
                <asp:ImageButton ID="btnOcultarPesquisarCampo5" runat="server" ImageUrl="~/Imagens/LupaMenos.png" ToolTip="Ocultar pesquisa" Visible="False" />&nbsp;
                <asp:TextBox ID="txtFiltroData5" runat="server" Font-Size="X-Small" Visible="False" Width="55px"></asp:TextBox>
                <asp:ImageButton ID="Pesquisar5" runat="server" ImageUrl="~/Imagens/Lupa2.png" ToolTip="Executar filtro" OnClientClick="target=''" Width="24px" Visible="False"/>
                <asp:Label ID="LabelValor6" runat="server" Text="Valor: " ForeColor="White"  Visible="False"></asp:Label>
                <asp:TextBox ID="txtFiltroValor6" runat="server" Font-Size="X-Small" Width="55px" Visible="False"></asp:TextBox>
                <asp:DropDownList ID="cboCampo6" runat="server" AutoPostBack="True" Font-Size="X-Small" Visible="False"></asp:DropDownList>
                <asp:ImageButton ID="btnPesquisarCampo6" runat="server" ImageUrl="~/Imagens/LupaMais.png" ToolTip="Pesquisar" Visible="False" />
                <asp:ImageButton ID="btnOcultarPesquisarCampo6" runat="server" ImageUrl="~/Imagens/LupaMenos.png" ToolTip="Ocultar pesquisa" Visible="False" />&nbsp;
                <asp:TextBox ID="txtFiltroData6" runat="server" Font-Size="X-Small" Visible="False" Width="55px"></asp:TextBox>
                <asp:ImageButton ID="Pesquisar6" runat="server" ImageUrl="~/Imagens/Lupa2.png" ToolTip="Executar filtro" OnClientClick="target=''" Width="24px" Visible="False"/>           
            </td>
            <td colspan="16" style="height: 20px; background-color: #5d7b9d; text-align: Right" >
                <%--<asp:LinkButton ID="lnkOcultarFaltasExtras" runat="server" ForeColor="Yellow" >Ocultar Faltas / Extras</asp:LinkButton>--%>

                <%--<asp:DropDownList ID="cboCentrosCustoDetalhe" runat="server" Font-Size="X-Small" AutoPostBack="True" Enabled="True" BackColor="#d6e0ee"></asp:DropDownList>&nbsp;&nbsp;&nbsp;&nbsp;--%>
                <asp:ImageButton ID="lnkProcessar" runat="server" ImageUrl="~/Imagens/Proc.Ico" EnableTheming="False" ToolTip="Reprocessar." />
                <asp:ImageButton ID="lnkControlo1CentroCustoCategoria" runat="server" ImageUrl="~/Imagens/Calendario1.png" PostBackUrl="~/Controlo1CentroCustoCategoria.aspx" ToolTip="Controlo por centro de custo / categoria" Width="30px"/>
                <asp:ImageButton ID="btnHorariosPessoalTeorico" runat="server" ImageUrl="~/Imagens/Horarios2.png" ToolTip="Horários teóricos - Grelha" Width="30px"/>
                <asp:ImageButton ID="btnHorariosDataVigorTeorico" runat="server" ImageUrl="~/Imagens/PessoalHorario.png" ToolTip="Horários teóricos / Data em Vigor" Width="30px"/>
                <asp:ImageButton ID="btnTurnoDataGrelha" runat="server" ImageUrl="~/Imagens/Escalas.png" ToolTip="Turnos teóricos" Width="30px" Visible="True"/>
                <%--<asp:ImageButton ID="lnkTrabalhoPrevistoEfectuado" runat="server" ImageUrl="~/Imagens/Calendario1.png" PostBackUrl="PontoPessoalHorario.aspx" ToolTip="Horário / Ponto" Width="30px"/>--%>
                <%--<asp:ImageButton ID="lnkHorarios" runat="server" ImageUrl="~/Imagens/Horarios2.png" ToolTip="Configurar horários" Width="30px" Visible="True"/>--%>
                <asp:ImageButton ID="btnTabelasAuxiliares" runat="server" ImageUrl="~/Imagens/Tabelas.png" ToolTip="Configurar tabelas auxiliares" Width="30px" Visible="True"/>
            </td>
        </tr>
        <tr>
        <td colspan="36" style="height: 20px; background-color: White; text-align: center" align="left"> 
            <asp:Label ID="lblMsg" runat="server" Visible="False" BackColor="White"></asp:Label>&nbsp;
            <asp:Label ID="lblDataInicio" runat="server" Visible="False" BackColor="White"></asp:Label>&nbsp;
            <asp:Label ID="lblDataFim" runat="server" Visible="False" BackColor="White"></asp:Label>&nbsp;
            <asp:Label ID="lblFiltroHorario" runat="server" Visible="False" BackColor="White"></asp:Label>&nbsp;
            <asp:Label ID="lblPeriodicidadeCompensacao" runat="server" Visible="False" BackColor="White"></asp:Label>&nbsp;
        </td>
        </tr>

        <tr>
            <td colspan="30" style="text-align: center">
            <asp:Panel ID="pnlEdit" runat="server" Visible="False" Width="100%">
                <table border="0" cellpadding="0" cellspacing="0" style="border-right: black 1px solid;
                        border-top: black 1px solid; border-left: black 1px solid; width: 100%; border-bottom: black 1px solid;
                        background-color: #a6cdcc">
                    <%--<tr>
                            <td colspan="8" style="height: 12px; text-align: center"><asp:Label ID="Label2" runat="server" Visible="False"></asp:Label></td>                 
                    </tr>--%>
                    <tr>
                        <td colspan="34" style="height: 20px; background-color: #d6e0ee; text-align: center">
                        <br /> 
                            <asp:Label ID="Label5" runat="server" Text="Empregado:"></asp:Label>&nbsp;
                            <asp:DropDownList ID="cboNumeroEmpregado" runat="server" Enabled="False" Font-Size="X-Small">
                            </asp:DropDownList>&nbsp;
                            <asp:ImageButton ID="btnIndex" runat="server" 
                                ImageUrl="~/Imagens/Edit2.png" ToolTip="Alterar ordenação." Width="16px" 
                                Visible="False" />&nbsp;
                            <asp:Label ID="RotuloData" runat="server" Text="Data:"></asp:Label>&nbsp;
                            <asp:TextBox ID="txtData" runat="server" BorderColor="Black" 
                                BorderWidth="1px" Enabled="False" Font-Size="X-Small" Width="60px" 
                                Wrap="False"></asp:TextBox>&nbsp;&nbsp;
                            <asp:Label ID="RotuloHorasValidadas" runat="server" Text="Horas validadas:"></asp:Label>&nbsp;
                            <asp:TextBox ID="txtHorasValidadas" runat="server" AutoPostBack="True" 
                                Font-Size="X-Small" Width="40px"></asp:TextBox>&nbsp;&nbsp;
                            <asp:Label ID="RotuloAno" runat="server" Text="Ano:"></asp:Label>&nbsp;
                            <asp:TextBox ID="txtAno" runat="server" BorderColor="Black" 
                                BorderWidth="1px" Enabled="False" Font-Size="X-Small" Width="30px" 
                                Wrap="False"></asp:TextBox>&nbsp;&nbsp;
                            <asp:Label ID="RotuloMes" runat="server" Text="Mês:"></asp:Label>&nbsp;
                            <asp:TextBox ID="txtMes" runat="server" BorderColor="Black" BorderWidth="1px" 
                                Enabled="False" Font-Size="X-Small" Width="30px" Wrap="False"></asp:TextBox>&nbsp;&nbsp;
                            <asp:Label ID="RotuloHorasPagas" runat="server" Text="Horas pagas:"></asp:Label>&nbsp;
                            <asp:TextBox ID="txtHorasPagas" runat="server" AutoPostBack="True" 
                                Font-Size="X-Small" Width="40px"></asp:TextBox>&nbsp;&nbsp;
                            <asp:LinkButton ID="lnkSair" runat="server">Sair</asp:LinkButton>;
                        <br /> 
                        <br /> 
                        </td>
                    </tr>
                </table>
            </asp:Panel>
            </td>
        </tr>

        <tr>
        <td colspan="36" 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: 10px; 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="RotuloTituloOpcoesCampos" 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">
                        <br /> 
                        <asp:Label ID="RotuloCampoColuna" runat="server" Text="Campo / coluna:"></asp:Label>&nbsp;
                        <asp:TextBox ID="TxtCampoColunaOpcoesCampos" runat="server" BorderColor="Black" BorderWidth="1px" 
                            Font-Size="X-Small" Width="235px"></asp:TextBox>&nbsp;
                        <asp:Label ID="RotuloCodigosExtra" runat="server" Text="Códigos Extra (Separados por vírgula):"></asp:Label>&nbsp;
                        <asp:TextBox ID="txtCodigosExtra" runat="server" BorderColor="Black" BorderWidth="1px" 
                            Font-Size="X-Small" Width="100px"></asp:TextBox>&nbsp;&nbsp;
                        <asp:DropDownList ID="cboCodigosExtra" runat="server" Enabled="True" 
                            Font-Size="X-Small" AutoPostBack="True">
                        </asp:DropDownList>&nbsp;&nbsp;
                        <asp:LinkButton ID="lnkOpcoesCamposGravar" runat="server">Gravar</asp:LinkButton>
                        &nbsp;&nbsp;
                        <asp:LinkButton ID="lnkOpcoesCamposSair" runat="server">Sair</asp:LinkButton>
                        <br />  <br />
                        <asp:GridView ID="grdDadosOpcoesCampos" runat="server" CellPadding="4" HorizontalAlign="Center" 
                                PageSize="4" Width="582px" AutoGenerateColumns="False">
                            <Columns>
                                <asp:CommandField SelectText="" ShowSelectButton="True" ButtonType="Image" 
                                    SelectImageUrl="~/Imagens/Edit2.png" />
                                <asp:BoundField DataField="Campo" HeaderText="ID" />
                                <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="Opcao" HeaderText="" />
                                <asp:BoundField DataField="Campo" HeaderText="" />
                                <asp:BoundField DataField="Ocultar" HeaderText="" />
                            </Columns>
                            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                            <EditRowStyle BackColor="#999999" />
                            <PagerSettings Visible="true"  Position="Bottom" Mode="NextPreviousFirstLast" FirstPageImageUrl="~/Imagens/SetaPrimeiro.png" PreviousPageImageUrl="~/Imagens/SetaEsquerda.png" NextPageImageUrl="~/Imagens/SetaDireita.png" LastPageImageUrl="~/Imagens/SetaUltimo.png" />
                            <PagerStyle BackColor="#F7F6F3" ForeColor="#5D7B9D" Font-Size="Small" HorizontalAlign="Center" />
                            <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                            <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                            <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                        </asp:GridView>
                        <asp:GridView ID="grdDadosOpcoesCamposPessoal" runat="server" CellPadding="4" HorizontalAlign="Center" 
                                PageSize="4" Width="1400px" AutoGenerateColumns="False">
                            <Columns>
                                <asp:CommandField SelectText="" ShowSelectButton="True" ButtonType="Image" 
                                    SelectImageUrl="~/Imagens/Edit2.png" />
                                <asp:BoundField DataField="Campo" HeaderText="ID" />
                                <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:TemplateField HeaderText="Inserir Desconto BH">
                                    <ItemTemplate>
                                        <asp:CheckBox ID="chkInserirDescontoBH" runat="server" AutoPostBack="True" OnCheckedChanged="chkInserirDescontoBH_Clicked" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <%--<asp:TemplateField HeaderText="Cód. extra">
                                <ItemTemplate>
                                    <asp:DropDownList ID="dropCodigoExtra" runat="server" AutoPostBack="True" 
                                        Font-Size="X-Small" CssClass="drop" Height="19px" onload="dropCodigoExtra_Load" 
                                        onselectedindexchanged="dropCodigoExtra_SelectedIndexChanged" Width="200px" >
                                    </asp:DropDownList>
                                    </span>
                                </ItemTemplate>                            
                                </asp:TemplateField>--%>
                                <asp:BoundField DataField="CodigosExtra" HeaderText="Códigos Extra" />
                                <asp:BoundField DataField="Notas" HeaderText="Notas" />
                                <asp:BoundField DataField="Opcao" HeaderText="" />
                                <asp:BoundField DataField="Campo" HeaderText="" />
                                <asp:BoundField DataField="Ocultar" HeaderText="" />
                                <asp:BoundField DataField="Categoria" HeaderText="" />
                                <asp:BoundField DataField="InserirDescontoBH" HeaderText="" />
                            </Columns>
                            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                            <EditRowStyle BackColor="#999999" />
                            <PagerSettings Visible="true"  Position="Bottom" Mode="NextPreviousFirstLast" FirstPageImageUrl="Imagens/SetaPrimeiro.png" PreviousPageImageUrl="Imagens/SetaEsquerda.png" NextPageImageUrl="Imagens/SetaDireita.png" LastPageImageUrl="Imagens/SetaUltimo.png" />
                            <PagerStyle BackColor="#F7F6F3" ForeColor="#5D7B9D" Font-Size="Small" HorizontalAlign="Center" />
                            <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                            <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                            <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                        </asp:GridView>
                        <asp:GridView ID="grdDadosOpcoesCamposFaltasExtras" runat="server" CellPadding="4" HorizontalAlign="Center" 
                                PageSize="4" Width="1400px" AutoGenerateColumns="False">
                            <Columns>
                                <asp:CommandField SelectText="" ShowSelectButton="True" ButtonType="Image" 
                                    SelectImageUrl="~/Imagens/Edit2.png" />
                                <asp:BoundField DataField="Campo" HeaderText="ID" />
                                <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="Notas" HeaderText="Notas" />
                                <asp:BoundField DataField="Opcao" HeaderText="" />
                                <asp:BoundField DataField="Campo" HeaderText="" />
                                <asp:BoundField DataField="Ocultar" HeaderText="" />
                                <asp:BoundField DataField="Categoria" 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="pnlTabelasAuxiliares" runat="server" Visible="False" Width="100%">
            <table border="0" cellpadding="0" cellspacing="0" style="border-right: black 1px solid;
                    border-top: black 1px solid; border-left: black 1px solid; width: 100%; border-bottom: black 1px solid;
                    background-color: #d6e0ee">
                <tr>
                    <td style="height: 20px; background-color: #d6e0ee; text-align: center">
                        <asp:Label ID="RotuloTabela" runat="server" Font-Size="X-Small" Text="Tabela:"></asp:Label>&nbsp;&nbsp;
                        <asp:DropDownList ID="cboTabela" runat="server" AutoPostBack="True" 
                            Font-Size="X-Small" Width="200px" Height="20px"> </asp:DropDownList>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:Label ID="RotuloAbreviaturaExcelLimites" runat="server" 
                            Text="Limites abreviatura na exportação para excel:" Visible="False"></asp:Label>&nbsp;
                        <asp:TextBox ID="txtAbreviaturaExcelLimites" runat="server" BorderColor="Black" BorderWidth="1px" 
                            Font-Size="X-Small" Width="10px" Visible="False"></asp:TextBox>&nbsp;
                    </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="47px"></asp:TextBox>&nbsp;
                        <asp:Label ID="RotuloDescricaoTabelaAuxiliar" runat="server" Text="Descrição:"></asp:Label>&nbsp;
                        <asp:TextBox ID="txtDescricaoTabelaAuxiliar" runat="server" BorderColor="Black" BorderWidth="1px" 
                            Font-Size="X-Small" Width="235px"></asp:TextBox>&nbsp;
                        <asp:Label ID="RotuloTurnosMes" runat="server" Text="Turnos mês:" 
                            Visible="False"></asp:Label>&nbsp;
                        <asp:TextBox ID="txtTurnosMesTabelaAuxiliar" runat="server" BorderColor="Black" BorderWidth="1px" 
                            Font-Size="X-Small" Width="60px" Visible="False"></asp:TextBox>&nbsp;&nbsp;
                        <asp:Label ID="RotuloTurnosSemana" runat="server" Text="Turnos semana:" 
                            Visible="False"></asp:Label>&nbsp;
                        <asp:TextBox ID="txtTurnosSemanaTabelaAuxiliar" runat="server" BorderColor="Black" BorderWidth="1px" 
                            Font-Size="X-Small" Width="60px" Visible="False"></asp:TextBox>&nbsp;&nbsp;
                        <asp:Label ID="RotuloDiasTrabalhoSemana" runat="server" Text="Dias trab. semana:" 
                            Visible="False"></asp:Label>&nbsp;
                        <asp:TextBox ID="txtDiasTrabalhoSemanaTabelaAuxiliar" runat="server" BorderColor="Black" BorderWidth="1px" 
                            Font-Size="X-Small" Width="15px" Visible="False"></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="RotuloAnoTabelaAuxiliar" runat="server" Text="Ano:" 
                            Visible="False" ></asp:Label>&nbsp;
                        <asp:TextBox ID="txtAnoTabelaAuxiliar" runat="server" BorderColor="Black" BorderWidth="1px" 
                            Font-Size="X-Small" Width="60px" Visible="False" ></asp:TextBox>&nbsp;&nbsp;
                        <asp:Label ID="RotuloMesTabelaAuxiliar" runat="server" Text="Mês:" 
                            Visible="False" ></asp:Label>&nbsp;
                        <asp:TextBox ID="txtMesTabelaAuxiliar" runat="server" BorderColor="Black" BorderWidth="1px" 
                            Font-Size="X-Small" Width="30px" Visible="False" ></asp:TextBox>&nbsp;&nbsp;
                        <asp:Label ID="RotuloDataInicioTabelaAuxiliar" runat="server" 
                            Text="Data início:" Visible="False" ></asp:Label>&nbsp;
                        <asp:TextBox ID="txtDataInicio" runat="server" BorderColor="Black" BorderWidth="1px" 
                            Font-Size="X-Small" Width="60px" Visible="False" ></asp:TextBox>&nbsp;&nbsp;
                        <asp:Label ID="RotuloDataFimTabelaAuxiliar" runat="server" Text="DataFim:" 
                            Visible="False" ></asp:Label>&nbsp;
                        <asp:TextBox ID="txtDataFim" runat="server" BorderColor="Black" BorderWidth="1px" 
                            Font-Size="X-Small" Width="60px" Visible="False" ></asp:TextBox>&nbsp;&nbsp;

                        <asp:LinkButton ID="lnkTabelaAuxiliarGravar" runat="server">Gravar</asp:LinkButton>
                        &nbsp;&nbsp;
                        <asp:LinkButton ID="lnkTabelaAuxiliarSair" runat="server">Sair</asp:LinkButton>
                        <br />  <br />
                        <asp:GridView ID="grdDadosCores" runat="server" CellPadding="4" HorizontalAlign="Center" 
                                PageSize="4" Width="702px" AutoGenerateColumns="False" 
                            Visible="False" >
                            <Columns>
                                <asp:CommandField SelectText="" ShowSelectButton="True" ButtonType="Image" 
                                    SelectImageUrl="~/Imagens/Edit2.png" />
                                <asp:BoundField DataField="ID" HeaderText="ID" />
                                <asp:BoundField DataField="Cor" HeaderText="Cor" />
                                <asp:BoundField DataField="Codigo" HeaderText="Código" />
                                <asp:TemplateField HeaderText="Activa">
                                    <ItemTemplate>
                                        <asp:CheckBox ID="chkActiva" runat="server" AutoPostBack="True" OnCheckedChanged="chkActiva_Clicked" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:BoundField DataField="Activa" HeaderText="CpoActiva" />
                            </Columns>
                            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                            <EditRowStyle BackColor="#999999" />
                            <PagerSettings Visible="true"  Position="Bottom" Mode="NextPreviousFirstLast" FirstPageImageUrl="Imagens/SetaPrimeiro.png" PreviousPageImageUrl="Imagens/SetaEsquerda.png" NextPageImageUrl="Imagens/SetaDireita.png" LastPageImageUrl="Imagens/SetaUltimo.png" />
                            <PagerStyle BackColor="#F7F6F3" ForeColor="#5D7B9D" Font-Size="Small" HorizontalAlign="Center" />
                            <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                            <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                            <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                        </asp:GridView>
                        <asp:GridView ID="grdDadosTabelasAuxiliares" runat="server" CellPadding="4" HorizontalAlign="Center" 
                                PageSize="4" Width="702px" 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>
                        <asp:GridView ID="grdDadosHorariosTipoTurno" 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="Horario" HeaderText="Horário" />
                                <asp:BoundField DataField="Descricao" HeaderText="Descrição" />
                                <asp:TemplateField HeaderText="Unidades">
                                <ItemTemplate>
                                    <asp:DropDownList ID="dropUnidadeTempo" runat="server" AutoPostBack="True" 
                                        Font-Size="X-Small" CssClass="drop" Height="15px" onload="dropUnidadeTempo_Load" 
                                        onselectedindexchanged="dropUnidadeTempo_SelectedIndexChanged">
                                    </asp:DropDownList>
                                    </span>
                                </ItemTemplate>                            
                                </asp:TemplateField>
                                <asp:BoundField DataField="NumeroEmpregado" HeaderText="Número" />
                                <asp:BoundField DataField="Nome" HeaderText="Nome" />
                                <asp:BoundField DataField="UnidadeTempo" HeaderText=""/>
                            </Columns>
                            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                            <EditRowStyle BackColor="#999999" />
                            <PagerSettings Visible="true"  Position="Bottom" Mode="NextPreviousFirstLast" FirstPageImageUrl="Imagens/SetaPrimeiro.png" PreviousPageImageUrl="Imagens/SetaEsquerda.png" NextPageImageUrl="Imagens/SetaDireita.png" LastPageImageUrl="Imagens/SetaUltimo.png" />
                            <PagerStyle BackColor="#F7F6F3" ForeColor="#5D7B9D" Font-Size="Small" HorizontalAlign="Center" />
                            <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                            <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                            <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                        </asp:GridView>
                        <asp:GridView ID="grdDadosTabelaCategorias" 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="Categoria" HeaderText="Categoria" />
                                <asp:BoundField DataField="Descricao" HeaderText="Descrição" />
                                <asp:TemplateField HeaderText="Horas">
                                    <ItemTemplate>
                                        <asp:CheckBox ID="chkHoras" runat="server" AutoPostBack="True" OnCheckedChanged="chkHoras_Clicked" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Turnos">
                                    <ItemTemplate>
                                        <asp:CheckBox ID="chkTurnos" runat="server" AutoPostBack="True" OnCheckedChanged="chkTurnos_Clicked" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:BoundField DataField="HorasTurnosMes" HeaderText="Turnos mês" />
                                <%--<asp:BoundField DataField="HorasTurnosSemana" HeaderText="Turnos Semana" />--%>
                                <asp:TemplateField HeaderText="Acumulado Banco Horas">
                                    <ItemTemplate>
                                        <asp:DropDownList ID="DropAcumuladoBancoHoras" runat="server" AutoPostBack="True" 
                                            onselectedindexchanged="DropAcumuladoBancoHoras_SelectedIndexChanged" 
                                            SelectedValue='<%# Bind("AcumuladoBancoHorasTipo") %>' Font-Size="X-Small" Height="19px">
                                            <asp:ListItem></asp:ListItem>
                                            <asp:ListItem Value="0">Acumulado anual</asp:ListItem>
                                            <asp:ListItem Value="1">Acumulado mês anterior</asp:ListItem>
                                        </asp:DropDownList>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:BoundField DataField="DiasTrabalhoSemana" HeaderText="Dias Trab. Semana" />
                                <asp:BoundField DataField="AcumuladoBancoHorasTipo" HeaderText="" />
                            </Columns>
                            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                            <EditRowStyle BackColor="#999999" />
                            <PagerSettings Visible="true"  Position="Bottom" Mode="NextPreviousFirstLast" FirstPageImageUrl="Imagens/SetaPrimeiro.png" PreviousPageImageUrl="Imagens/SetaEsquerda.png" NextPageImageUrl="Imagens/SetaDireita.png" LastPageImageUrl="Imagens/SetaUltimo.png" />
                            <PagerStyle BackColor="#F7F6F3" ForeColor="#5D7B9D" Font-Size="Small" HorizontalAlign="Center" />
                            <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                            <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                            <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                        </asp:GridView>
                        <asp:GridView ID="grdDadosTabelaExtrasControloBH" runat="server" 
                            AutoGenerateColumns="False" CellPadding="4" HorizontalAlign="Center" 
                                PageSize="4" Width="1400px">
                            <Columns>
                                <asp:CommandField SelectText="" ShowSelectButton="True" ButtonType="Image" 
                                    SelectImageUrl="~/Imagens/Edit2.png" 
                                    DeleteImageUrl="~/Imagens/Delete2.png" ShowDeleteButton="True" 
                                    HeaderText="      " />
                                <asp:BoundField DataField="Escalao" HeaderText="Código" />
                                <asp:BoundField DataField="Descricao" HeaderText="Descrição" />
                                <asp:BoundField DataField="Abreviatura" HeaderText="Abreviatura" />
                                <asp:TemplateField HeaderText="Extras Validadas">
                                    <ItemTemplate>
                                        <asp:DropDownList ID="DropControloExtras" runat="server" AutoPostBack="True" 
                                            onselectedindexchanged="DropControloExtras_SelectedIndexChanged" 
                                            SelectedValue='<%# Bind("ControloExtras") %>' Font-Size="X-Small" Height="19px">
                                            <asp:ListItem></asp:ListItem>
                                            <asp:ListItem Value="0">Só confirmadas</asp:ListItem>
                                            <asp:ListItem Value="1">Todos os registos</asp:ListItem>
                                        </asp:DropDownList>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Justificação Extras">
                                <ItemTemplate>
                                    <asp:DropDownList ID="dropCompensacao" runat="server" AutoPostBack="True" 
                                        Font-Size="X-Small" CssClass="drop" Height="15px" onload="dropCompensacao_Load" 
                                        onselectedindexchanged="dropCompensacao_SelectedIndexChanged">
                                    </asp:DropDownList>
                                    </span>
                                </ItemTemplate>                            
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Visível">
                                    <ItemTemplate>
                                        <asp:CheckBox ID="chkWeb" runat="server" AutoPostBack="True" OnCheckedChanged="chkWeb_Clicked" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:BoundField DataField="ControloExtras" HeaderText="" />
                                <asp:BoundField DataField="Compensacao" HeaderText="" />
                                <asp:BoundField DataField="Web" 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="36">
            <asp:GridView ID="grdDadosCentrosCusto" runat="server" CellPadding="4" ForeColor="#333333" 
                        GridLines="Vertical" Width="100%" AllowPaging="True" PageSize="16" 
                        style="margin-top: 0px" AutoGenerateColumns="False" 
                Visible="False" >
                <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                <Columns>
                    <asp:CommandField SelectText="&gt;" ShowSelectButton="True" ButtonType="Image" SelectImageUrl="~/Imagens/Selecao.png" />
                    <asp:BoundField DataField="CentroCusto" HeaderText="Centro Custo" />
                    <asp:BoundField DataField="HorasTeoricas" HeaderText="Horas Teóricas" />
                    <asp:BoundField DataField="HorasPrevistas" HeaderText="Horas Previstas" />
                    <asp:BoundField DataField="HorasEfectuadas" HeaderText="Horas Efectuadas" />
                    <asp:BoundField DataField="TurnosTeoricos" HeaderText="Turnos Teóricos" />
                    <asp:BoundField DataField="TurnosPrevistos" HeaderText="Turnos Previstos" />
                    <asp:BoundField DataField="TurnosEfectuados" HeaderText="Turnos Efectuados" />
                    <asp:TemplateField HeaderText="Validado">
                        <ItemTemplate>
                            <asp:CheckBox ID="chkValidado" runat="server" AutoPostBack="True" OnCheckedChanged="chkValidado_Clicked" />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="Tipo" HeaderText="" />
                    <asp:BoundField DataField="CentroCusto1" HeaderText="" />
                    <asp:BoundField DataField="Validado" HeaderText="" />
                    <asp:BoundField DataField="TotalMinutosFalta" HeaderText="" />
                </Columns>
                <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                <EditRowStyle BackColor="#999999" />
                <PagerSettings Visible="true"  Position="Bottom" Mode="NextPreviousFirstLast" FirstPageImageUrl="Imagens/SetaPrimeiro.png" PreviousPageImageUrl="Imagens/SetaEsquerda.png" NextPageImageUrl="Imagens/SetaDireita.png" LastPageImageUrl="Imagens/SetaUltimo.png" />
                <PagerStyle BackColor="#F7F6F3" ForeColor="#5D7B9D" Font-Size="Small" HorizontalAlign="Center" />
                <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
            </asp:GridView>
        </td>
        </tr>
        <tr>
            <td colspan="36" style="height: 12px" align="right" >
            <asp:Panel ID="Panel1" runat="server" Visible="True" Width="100%" BackColor="#5d7b9d">
                <asp:ImageButton ID="btnOpcoesCamposCentrosCusto" runat="server"  ImageUrl="~/Imagens/Config.png" ToolTip="Centros Custo - Configurar visualização campos/colunas"/>&nbsp;
            </asp:Panel>
            </td>                 
        </tr>

        <tr>
        <td colspan="36" style="text-align: center">
        <asp:Panel ID="pnlCategorias" 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 colspan="36">
                <asp:GridView ID="grdDadosCategorias" runat="server" CellPadding="4" ForeColor="#333333" 
                            GridLines="Vertical" Width="100%" AllowPaging="True" PageSize="16" 
                            style="margin-top: 0px" AutoGenerateColumns="False" >
                    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <Columns>
                        <asp:CommandField SelectText="&gt;" ShowSelectButton="True" ButtonType="Image" SelectImageUrl="~/Imagens/Selecao.png" />
                        <asp:BoundField DataField="Categoria" HeaderText="Categoria" />
                        <asp:BoundField DataField="HorasTeoricas" HeaderText="Horas Teóricas" />
                        <asp:BoundField DataField="HorasPrevistas" HeaderText="Horas Previstas" />
                        <asp:BoundField DataField="HorasEfectuadas" HeaderText="Horas Efectuadas" />
                        <asp:BoundField DataField="TurnosTeoricos" HeaderText="Turnos Teóricos" />
                        <asp:BoundField DataField="TurnosPrevistos" HeaderText="Turnos Previstos" />
                        <asp:BoundField DataField="TurnosEfectuados" HeaderText="Turnos Efectuados" />
                        <asp:TemplateField HeaderText="Validado">
                            <ItemTemplate>
                                <asp:CheckBox ID="chkValidado" runat="server" AutoPostBack="True" OnCheckedChanged="chkValidado_Clicked" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="Tipo" HeaderText="" />
                        <asp:BoundField DataField="Categoria1" HeaderText="" />
                        <asp:BoundField DataField="Validado" HeaderText="" />
                        <asp:BoundField DataField="TotalMinutosFalta" HeaderText="" />
                    </Columns>
                    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" HorizontalAlign="Left" />
                    <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="36" style="height: 12px" align="right" >
                <asp:Panel ID="Panel3" runat="server" Visible="True" Width="100%" BackColor="#5d7b9d">
                    <asp:ImageButton ID="btnOpcoesCamposCategorias" runat="server"  ImageUrl="~/Imagens/Config.png" ToolTip="Categorias - Configurar visualização campos/colunas"/>&nbsp;
                </asp:Panel>
                </td>                 
            </tr>
        </table>
        </asp:Panel>
        </td>
        </tr>


        <tr>
        <td colspan="36" style="text-align: center">
        <asp:Panel ID="pnlPessoal" 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 colspan="36">
            <asp:GridView ID="grdDadosPessoal" runat="server" CellPadding="4" ForeColor="#333333" 
                        GridLines="Vertical" Width="100%" AllowPaging="True" PageSize="16" 
                        style="margin-top: 0px" AutoGenerateColumns="False" 
                Visible="False" >
                <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                <Columns>
                    <asp:CommandField SelectText="&gt;" ShowSelectButton="True" ButtonType="Image" SelectImageUrl="~/Imagens/Selecao.png" />
                    <asp:BoundField DataField="Empregado" HeaderText="Empregado" />
                    <asp:BoundField DataField="Campo1" HeaderText="Campo1" />
                    <%--<asp:TemplateField HeaderText="Campo2">
                        <ItemTemplate>
                            <table cellpadding="0" cellspacing="0" class="style3">
                                <tr>
                                    <td>
                                        <asp:Button ID="btnMenos" runat="server" Font-Bold="True" Font-Size="Small" 
                                            Height="20px" OnClick="btnMenos_Click" Text="F" 
                                            ToolTip="Inserir / Eliminar folga na primeira semana." Width="20px" />
                                    </td>
                                    <td style="text-align: center">
                                        <asp:Label ID="lblCampo2" runat="server" Text='<%# Bind("Campo2") %>'
                                            Width="40px"></asp:Label>
                                    </td>
                                    <td>
                                        <asp:Button ID="btnMais" runat="server" Font-Bold="True" Font-Size="Small"
                                            Height="20px" OnClick="btnMais_Click" Text="F" 
                                            ToolTip="Inserir / Eliminar folga na última semana." Width="20px" />
                                    </td>
                                </tr>
                            </table>
                        </ItemTemplate>
                    </asp:TemplateField>--%>
                    <asp:BoundField DataField="Campo2" HeaderText="Campo2" />
                    <asp:BoundField DataField="Campo3" HeaderText="Campo3" />
                    <asp:BoundField DataField="Campo4" HeaderText="Campo4" />
                    <asp:BoundField DataField="Campo5" HeaderText="Campo5" />
                    <asp:BoundField DataField="Campo6" HeaderText="Campo6" />
                    <asp:BoundField DataField="Campo7" HeaderText="Campo7" />
                    <asp:BoundField DataField="Campo8" HeaderText="Campo8" />
                    <asp:BoundField DataField="Campo9" HeaderText="Campo9" />
                    <asp:TemplateField HeaderText="Campo10">
                        <ItemTemplate>
                            <table cellpadding="0" cellspacing="0" class="style3">
                                <tr>
                                <td>
                                    <asp:Label ID="lblHorasPagas" runat="server" />
                                    <asp:imagebutton ID="btnHorasPagas" runat="server" 
                                        Height="12px" OnClick="btnHorasPagas_Click" ImageUrl="~/Imagens/Edit2.png" ToolTip="Editar horas pagas." Width="12px" />
                                </td>
                                </tr>
                            </table>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <%--<asp:BoundField DataField="Campo10" HeaderText="Campo10" />--%>
                    <asp:BoundField DataField="Campo11" HeaderText="Campo11" />
                    <asp:BoundField DataField="Campo12" HeaderText="Campo12" />
                    <asp:BoundField DataField="Campo13" HeaderText="Campo13" />
                    <asp:BoundField DataField="Campo14" HeaderText="Campo14" />
                    <asp:BoundField DataField="Campo15" HeaderText="Campo15" />
                    <asp:BoundField DataField="Campo16" HeaderText="Campo16" />
                    <asp:BoundField DataField="Campo17" HeaderText="Campo17" />
                    <asp:BoundField DataField="Campo18" HeaderText="Campo18" />
                    <asp:BoundField DataField="Campo19" HeaderText="Campo19" />
                    <asp:BoundField DataField="Campo20" HeaderText="Campo20" />
                    <asp:TemplateField HeaderText="Validado">
                        <ItemTemplate>
                            <asp:CheckBox ID="chkValidado" runat="server" AutoPostBack="True" OnCheckedChanged="chkValidadoPessoal_Clicked" />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="Tipo" HeaderText="Tipo" />
                    <asp:BoundField DataField="CentroCusto" HeaderText="CentroCusto" />
                    <asp:BoundField DataField="Categoria" HeaderText="Categoria" />
                    <asp:BoundField DataField="NumeroEmpregado1" HeaderText="NumeroEmpregado1" />
                    <asp:BoundField DataField="Validado" HeaderText="cpoValidado" />
                    <asp:BoundField DataField="TotalMinutosFalta" HeaderText="" />
                    <asp:BoundField DataField="FolgaPrimeiraSemana" HeaderText="" />
                    <asp:BoundField DataField="FolgaUltimaSemana" HeaderText="" />
                </Columns>
                <RowStyle BackColor="#F7F6F3" ForeColor="#333333" HorizontalAlign="Left" />
                <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="36" style="height: 12px" align="right" >
                <asp:Panel ID="Panel4" runat="server" Visible="True" Width="100%" BackColor="#5d7b9d">
                    <asp:ImageButton ID="btnOpcoesCamposPessoal" runat="server"  ImageUrl="~/Imagens/Config.png" ToolTip="Pessoal - Configurar visualização campos/colunas"/>&nbsp;
                </asp:Panel>
                </td>                 
            </tr>
            </table>
        </asp:Panel>
        </td>
        </tr>


        <tr>
        <td colspan="36" style="text-align: center">
        <asp:Panel ID="pnlCentroCusto" 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 colspan="36">
                <asp:GridView ID="grdDadosCentroCusto" runat="server" CellPadding="4" ForeColor="#333333" 
                            GridLines="Vertical" Width="100%" AllowPaging="True" PageSize="16" 
                            style="margin-top: 0px" AutoGenerateColumns="False" 
                    Visible="False" >
                    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <Columns>
                        <asp:CommandField SelectText="&gt;" ShowSelectButton="True" ButtonType="Image" SelectImageUrl="~/Imagens/Selecao.png" />
                        <asp:BoundField DataField="CentroCusto" HeaderText="Centro Custo" />
                        <asp:BoundField DataField="Categoria" HeaderText="Categoria" />
                        <asp:BoundField DataField="Empregado" HeaderText="Empregado" />
                        <asp:BoundField DataField="HorasTeoricas" HeaderText="Horas Teóricas" />
                        <asp:BoundField DataField="HorasPrevistas" HeaderText="Horas Previstas" />
                        <asp:BoundField DataField="HorasEfectuadas" HeaderText="Horas Efectuadas" />
                        <asp:BoundField DataField="TurnosTeoricos" HeaderText="Turnos Teóricos" />
                        <asp:BoundField DataField="TurnosPrevistos" HeaderText="Turnos Previstos" />
                        <asp:BoundField DataField="TurnosEfectuados" HeaderText="Turnos Efectuados" />
                        <asp:TemplateField HeaderText="Validado">
                            <ItemTemplate>
                                <asp:CheckBox ID="chkValidado" runat="server" AutoPostBack="True" OnCheckedChanged="chkValidado_Clicked" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="Tipo" HeaderText="" />
                        <asp:BoundField DataField="CentroCusto1" HeaderText="" />
                        <asp:BoundField DataField="Categoria1" HeaderText="" />
                        <asp:BoundField DataField="NumeroEmpregado1" HeaderText="" />
                        <asp:BoundField DataField="Validado" HeaderText="" />
                    </Columns>
                    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" HorizontalAlign="Left" />
                    <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="36" style="height: 10px; background-color: White; text-align: center"> 
                        <asp:Label ID="lblMsgFaltasExtras" runat="server" Visible="False" BackColor="White"></asp:Label> 
                    </td>
                </tr>
            </table>
        </asp:Panel>
        </td>
        </tr>


            <tr> 
            <td colspan="36" style="height: 10px; background-color: White; text-align: center"> 
                <br />
                <asp:Label ID="lblAccao" 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="lblFiltroContador" runat="server" Visible="False" BackColor="White"></asp:Label>&nbsp;
                <asp:Label ID="lblSqlFiltroCentroCusto" runat="server" Visible="False" BackColor="White"></asp:Label>&nbsp;
                <asp:Label ID="lblSqlFiltroCategoria" runat="server" Visible="False" BackColor="White"></asp:Label>&nbsp;
                <asp:Label ID="lblCategoria" runat="server" Visible="False" BackColor="White"></asp:Label>&nbsp;
                <asp:Label ID="lblSqlFiltroRegisto" runat="server" Visible="False" BackColor="White"></asp:Label>&nbsp;
                <asp:Label ID="lblTipoRegisto" runat="server" Visible="False" BackColor="White"></asp:Label>&nbsp;
                <asp:Label ID="lblNumeroEmpregado" runat="server" Visible="False" BackColor="White"></asp:Label>&nbsp;
                <asp:Label ID="lblEmpregadoEmEdicao" runat="server" Visible="False" BackColor="White"></asp:Label>&nbsp;&nbsp;
                <asp:LinkButton ID="lnkFaltasExtrasSair" runat="server" Visible="True">Sair</asp:LinkButton>&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:LinkButton ID="lnkEmpregadoDetalhe" runat="server" Visible="True">Detalhe</asp:LinkButton>
                <asp:LinkButton ID="lnkEmpregadoDetalheOcultar" runat="server" Visible="False">Ocultar detalhe</asp:LinkButton>
                <br /> &nbsp;
            </td> 
            </tr>


        <tr>
        <td colspan="36" style="text-align: center">
        <asp:Panel ID="pnlPessoalDetalhe" 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: #5d7b9d; text-align: center">
                    <asp:Label ID="Label7" runat="server" ForeColor="Yellow" Text="Detalhe"></asp:Label>&nbsp;&nbsp;&nbsp;&nbsp;
                </td>
                </tr> 
                <tr>
                <td style="height: 20px; background-color: #d6e0ee; text-align: center">
                    <asp:GridView ID="grdDadosPessoalDetalhe" runat="server" CellPadding="4" ForeColor="#333333" 
                                GridLines="Vertical" Width="100%" AllowPaging="True" PageSize="16" 
                                style="margin-top: 0px" 
                        HorizontalAlign="Left" >
                        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                        <Columns>
                            <asp:CommandField SelectText="&gt;" ShowSelectButton="True" ButtonType="Image" SelectImageUrl="~/Imagens/Selecao.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>
            </table>
        </asp:Panel>
        </td>
        </tr>

        <tr>
        <td colspan="36" style="text-align: center">

        <asp:Panel ID="pnlEditNotas" 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="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="500px" ></asp:TextBox>&nbsp;&nbsp;
                        <asp:ImageButton ID="btnEliminarPdf" runat="server" 
                            ImageUrl="~/Imagens/Delete2.png" ToolTip="Eliminar documento 'pdf'." Visible="True" />&nbsp;&nbsp;
                        <asp:LinkButton ID="lnkGravarNotas" runat="server">Gravar / Sair</asp:LinkButton>
                        <br />
                    </td>
                </tr>
                <tr>
                    <td colspan="36" style="height: 20px; background-color: #d6e0ee; text-align: center">
                        <br />
                        <asp:Label ID="RotuloFileUploadFaltas" runat="server" Text="Anexar documento 'pdf':"></asp:Label>&nbsp;
                        <asp:FileUpload ID="FileUploadFaltas" runat="server" ToolTip="Documento" 
                            BackColor="#F7F6F3" CssClass="icon" Font-Size="Small" Width="600px" 
                            Visible="False" />
                        <br /> <br />
                    </td>
                </tr>
            </table>
        </asp:Panel>

        <asp:Panel ID="pnlFaltasExtras" 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: #5d7b9d; text-align: center ">
            <asp:Label ID="RotuloFaltasExtras" runat="server" ForeColor="Yellow" Text="Ausências / extras"></asp:Label>
         </td>
        </tr> 
                <tr>
                <td style="height: 20px; background-color: #d6e0ee; text-align: center">
                    <asp:GridView ID="grdDadosFaltasExtras" runat="server" CellPadding="4" 
                        ForeColor="#333333" GridLines="Vertical" Width="100%" AllowPaging="True" 
                        AutoGenerateColumns="False" >
                    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <Columns>
                        <asp:CommandField ButtonType="Image" DeleteImageUrl="~/Imagens/Delete2.png" ShowDeleteButton="True" />
                        <asp:BoundField DataField="NumeroEmpregado" HeaderText="Núm." />
                        <asp:BoundField DataField="Nome" HeaderText="Nome" />
                        <asp:BoundField HeaderText="Dia" DataField="Data" />
                        <asp:BoundField DataField="Data" HeaderText="Data" ReadOnly="True" />
                        <asp:BoundField DataField="IniFalta" HeaderText="Início" />
                        <asp:BoundField DataField="FimFalta" HeaderText="Fim" />
                        <asp:BoundField DataField="HorasFalta" HeaderText="Horas" />
                        <asp:TemplateField HeaderText="Cód. falta">
                        <ItemTemplate>
                            <asp:DropDownList ID="dropFaltas" runat="server" AutoPostBack="True" 
                                Font-Size="X-Small" CssClass="drop" Height="15px" onload="dropFaltas_Load" 
                                onselectedindexchanged="dropFaltas_SelectedIndexChanged" >
                            </asp:DropDownList>
                            </span>
                        </ItemTemplate>                            
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Confirmação">
                            <ItemTemplate>
                            <asp:DropDownList ID="DropConfirmacao" runat="server" AutoPostBack="True" 
                                Font-Size="X-Small" CssClass="drop" Height="15px" onload="DropConfirmacao_Load" 
                                onselectedindexchanged="DropConfirmacao_SelectedIndexChanged">
                            </asp:DropDownList>
                            </span>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="IniExtra" HeaderText="Início" />
                        <asp:BoundField DataField="FimExtra" HeaderText="Fim" />
                        <asp:BoundField DataField="HorasExtra" HeaderText="Horas" />
                        <asp:TemplateField HeaderText="Cód. extra">
                        <ItemTemplate>
                            <asp:DropDownList ID="dropExtras" runat="server" AutoPostBack="True" 
                                Font-Size="X-Small" CssClass="drop" Height="15px" onload="dropExtras_Load" 
                                onselectedindexchanged="dropExtras_SelectedIndexChanged">
                            </asp:DropDownList>
                            </span>
                        </ItemTemplate>                            
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Justificação">
                        <ItemTemplate>
                            <asp:DropDownList ID="dropJustificacao" runat="server" AutoPostBack="True" 
                                Font-Size="X-Small" CssClass="drop" Height="15px" onload="dropJustificacao_Load" 
                                onselectedindexchanged="dropJustificacao_SelectedIndexChanged">
                            </asp:DropDownList>
                            </span>
                        </ItemTemplate>                            
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Validado">
                            <ItemTemplate>
                                <asp:CheckBox ID="chkValidadoFaltasExtras" runat="server" AutoPostBack="True" OnCheckedChanged="chkValidadoFaltasExtras_Clicked" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="Notas" HeaderText="Notas"/>
                        <asp:BoundField DataField="CodigoFalta" HeaderText=""/>
                        <asp:BoundField DataField="ConfirmacaoFalta" HeaderText=""/>
                        <asp:BoundField DataField="CodigoExtra" HeaderText=""/>
                        <asp:BoundField DataField="JustificacaoExtra" HeaderText=""/>
                        <asp:BoundField DataField="TipoHora" />
                        <asp:BoundField DataField="DataInicio" />
                        <asp:BoundField DataField="Validado" 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="36" style="text-align: center">
        <asp:Panel ID="pnlFaltasExtrasPonto" 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: 10px; background-color: #5d7b9d; text-align: center ">
            <asp:Label ID="Label5" runat="server" ForeColor="Yellow" Text="Ausências / extras"></asp:Label>
        </td>
        </tr>--%> 
        <tr>
        <td  style="height: 10px; background-color: #5d7b9d; text-align: right ">
            <asp:ImageButton ID="btnValidarFaltasExtras" runat="server" 
                    ImageUrl="~/Imagens/Ok.png" ToolTip="Validar ausências justificadas e extras" Width="16px" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        </td>
        </tr> 
                <tr>
                <td style="height: 20px; background-color: #d6e0ee; text-align: center">
                    <asp:GridView ID="grdDadosFaltasExtrasPonto" runat="server" CellPadding="4" 
                        ForeColor="#333333" GridLines="Vertical" Width="100%" AllowPaging="True" 
                        AutoGenerateColumns="False" >
                    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <Columns>
                        <asp:CommandField ButtonType="Image" DeleteImageUrl="~/Imagens/Delete2.png" ShowDeleteButton="True" />
                        <asp:BoundField DataField="Data" HeaderText="Data" ReadOnly="True" />
                        <asp:BoundField DataField="HorarioPrevisto" HeaderText="Horário previsto" />
                        <asp:BoundField DataField="HorasPrevistas" HeaderText="Horas Previstas" />
                        <asp:BoundField DataField="NumeroTurnosPrevistos" HeaderText="Nº Turnos Previstos" />
                        <asp:BoundField DataField="HorarioRealizado" HeaderText="Horário realizado" />
                        <asp:BoundField DataField="RegistosRelogio" HeaderText="Registos Relógio" />
                        <%--<asp:BoundField DataField="HorasNormaisEfectuadas" HeaderText="Nº Turnos Realizados" />--%>
                        <asp:BoundField DataField="HorasNormaisEfectuadas" HeaderText="Horas Realizadas Período" />
                        <%--<asp:BoundField DataField="HorasTotaisEfectuadas" HeaderText="Nº Turnos Realizados" />--%>
                        <asp:BoundField DataField="HorasTotaisEfectuadas" HeaderText="Horas Realizadas Totais" />
                        <asp:TemplateField HeaderText="Cód. falta">
                        <ItemTemplate>
                            <asp:DropDownList ID="dropFaltas" runat="server" AutoPostBack="True" 
                                Font-Size="X-Small" CssClass="drop" Height="15px" onload="dropFaltas_Load" 
                                onselectedindexchanged="dropFaltas_SelectedIndexChanged" >
                            </asp:DropDownList>
                            </span>
                        </ItemTemplate>                            
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Confirmação">
                            <ItemTemplate>
                            <asp:DropDownList ID="DropConfirmacao" runat="server" AutoPostBack="True" 
                                Font-Size="X-Small" CssClass="drop" Height="15px" onload="DropConfirmacao_Load" 
                                onselectedindexchanged="DropConfirmacao_SelectedIndexChanged">
                            </asp:DropDownList>
                            </span>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Cód. extra">
                        <ItemTemplate>
                            <asp:DropDownList ID="dropExtras" runat="server" AutoPostBack="True" 
                                Font-Size="X-Small" CssClass="drop" Height="15px" onload="dropExtras_Load" 
                                onselectedindexchanged="dropExtras_SelectedIndexChanged">
                            </asp:DropDownList>
                            </span>
                        </ItemTemplate>                            
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Extra">
                        <ItemTemplate>
                            <asp:DropDownList ID="dropJustificacao" runat="server" AutoPostBack="True" 
                                Font-Size="X-Small" CssClass="drop" Height="15px" onload="dropJustificacao_Load" 
                                onselectedindexchanged="dropJustificacao_SelectedIndexChanged">
                            </asp:DropDownList>
                            </span>
                        </ItemTemplate>                            
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Horas Validadas">
                            <ItemTemplate>
                                <table cellpadding="0" cellspacing="0" class="style3">
                                    <tr>
                                    <td>
                                        <asp:Label ID="lblHorasValidadas" runat="server" />
                                        <asp:imagebutton ID="btnHorasValidadas" runat="server" 
                                            Height="12px" OnClick="btnHorasValidadas_Click" ImageUrl="~/Imagens/Edit2.png" ToolTip="Editar horas validadas." Width="12px" />
                                    </td>
                                    </tr>
                                </table>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Validado">
                            <ItemTemplate>
                                <asp:CheckBox ID="chkValidadoFaltasExtras" runat="server" AutoPostBack="True" OnCheckedChanged="chkValidadoFaltasExtras_Clicked" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Notas">
                            <ItemTemplate>
                                <table cellpadding="0" cellspacing="0" class="style3">
                                    <tr>
                                    <td>
                                        <asp:Label ID="lblNotas" runat="server" />
                                        <asp:imagebutton ID="btnNotas" runat="server"
                                            Height="12px" OnClick="btnNotas_Click" ImageUrl="~/Imagens/Edit2.png" ToolTip="Editar notas." Width="12px" />
                                    </td>
                                    </tr>
                                </table>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="doc.">
                            <ItemTemplate>
                                <table cellpadding="0" cellspacing="0" class="style3">
                                    <tr>
                                    <td>
                                        <asp:imagebutton ID="btnPdf" runat="server"  
                                            Height="12px" OnClick="btnVerPdf_Click" ImageUrl="~/Imagens/pdf.png" ToolTip="Baixar documento 'Pdf'." Width="12px" />
                                    </td>
                                    </tr>
                                </table>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="NumeroEmpregado" HeaderText="NumeroEmpregado"/>
                        <asp:BoundField DataField="CodigoFalta" HeaderText="CodigoFalta"/>
                        <asp:BoundField DataField="ConfirmacaoFalta" HeaderText="ConfirmacaoFalta"/>
                        <asp:BoundField DataField="CodigoExtra" HeaderText="CodigoExtra"/>
                        <asp:BoundField DataField="JustificacaoExtra" HeaderText="JustificacaoExtra"/>
                        <asp:BoundField DataField="TipoHora" HeaderText="TipoHora" />
                        <asp:BoundField DataField="DataInicio" HeaderText="DataInicio" />
                        <asp:BoundField DataField="Validado" HeaderText="" />
                        <asp:BoundField DataField="HorasValidadas" HeaderText="" />
                        <asp:BoundField DataField="HorasFalta" HeaderText="" />
                        <asp:BoundField DataField="HorasExtra" HeaderText="" />
                        <asp:BoundField DataField="Data2" HeaderText="Data2" />
                        <asp:BoundField DataField="IdObjecto" HeaderText="" />
                    </Columns>
                    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" HorizontalAlign="Left" />
                    <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="36" style="height: 12px" align="right" >
                    <asp:Panel ID="Panel2" runat="server" Visible="True" Width="100%" BackColor="#5d7b9d">
                        <asp:ImageButton ID="btnOpcoesCamposFaltasExtras" runat="server"  ImageUrl="~/Imagens/Config.png" ToolTip="Configurar visualização campos/colunas"/>&nbsp;&nbsp;
                        <asp:CheckBox ID="ChkOcultarRepeticoes" runat="server" ForeColor="White" Text="Ocultar repetições" TextAlign="Left"  AutoPostBack="True" />&nbsp;&nbsp;
                    </asp:Panel>
                    </td>                 
                </tr>
            </table>
        </asp:Panel>
        </td>
        </tr>

        <%--<tr>
        <td colspan="34" style="height: 20px; background-color: #5d7b9d; text-align: center" >
            <asp:Label ID="RotuloPonto" runat="server" ForeColor="Yellow" Text="Ponto"></asp:Label>
        </td>
        <td colspan="2" style="height: 20px; background-color: #5d7b9d; text-align: Right" >
            <asp:LinkButton ID="lnkOcultarPonto" runat="server" ForeColor="Yellow" >Ocultar</asp:LinkButton>
        </td>
        </tr> --%>
        <tr>
        <td colspan="36" style="text-align: center">
        <asp:Panel ID="pnlPonto" 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: #5d7b9d; text-align: center">
                    <asp:Label ID="Label66" runat="server" ForeColor="Yellow" Text="Ponto"></asp:Label>&nbsp;&nbsp;&nbsp;&nbsp;
                    <%--<asp:LinkButton ID="lnkOcultarPonto" runat="server" ForeColor="Yellow" >Ocultar</asp:LinkButton>--%>
                </td>
                </tr> 
                <tr>
                <td style="height: 20px; background-color: #d6e0ee; text-align: center">
                    <asp:GridView ID="grdDadosPonto" runat="server" CellPadding="4" ForeColor="#333333" 
                                GridLines="Vertical" Width="100%" AllowPaging="True" PageSize="16" 
                                style="margin-top: 0px" 
                        HorizontalAlign="Left" >
                        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                        <Columns>
                            <asp:CommandField SelectText="&gt;" ShowSelectButton="True" ButtonType="Image" SelectImageUrl="~/Imagens/Selecao.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>
            </table>
        </asp:Panel>
        </td>
        </tr>

        <%--<tr> <td style="height: 10px; background-color: White;"> </td> </tr>--%>
        <tr>
            <td colspan="36" 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="RotuloVisualizacao" runat="server" Text="Visualização: " 
                    ForeColor="White"></asp:Label>&nbsp;
                <asp:DropDownList ID="cboVisualizacao" runat="server" Font-Size="X-Small" 
                    BackColor="White" ForeColor="Black">
                    <asp:ListItem Value="1">Opção 1</asp:ListItem>
                    <asp:ListItem Value="2">Opção 1 c/ponto</asp:ListItem>
                    <asp:ListItem Value="3">Opção 2</asp:ListItem>
                    <asp:ListItem Value="4">Opção 2 c/ponto</asp:ListItem>
                    <asp:ListItem Value="5">Opção 3</asp:ListItem>
                    <asp:ListItem Value="6">Opção 3 c/ponto 1</asp:ListItem>
                    <asp:ListItem Value="7">Opção 3 c/ponto 2</asp:ListItem>
                </asp:DropDownList>&nbsp;&nbsp;
                <asp:CheckBox ID="ChkFiltroporOmissao" runat="server" ForeColor="White" 
                    Text="Filtro p/ omissão" TextAlign="Left" AutoPostBack="True" />&nbsp;
                <asp:Label ID="RotuloGrelha" runat="server" Text="Grelha: " 
                    ForeColor="White"></asp:Label>&nbsp;
                <asp:DropDownList ID="cboGrelha" runat="server" Font-Size="X-Small" 
                    BackColor="White" ForeColor="Black">
                    <asp:ListItem Value="0">Vertical</asp:ListItem>
                    <asp:ListItem Value="1">Horizontal</asp:ListItem>
                    <asp:ListItem Value="2">Ambos</asp:ListItem>
                </asp:DropDownList>&nbsp;
                <asp:Label ID="RotuloLinhasPagina" runat="server" Text="Paginação Linhas:" 
                    ForeColor="White"></asp:Label>&nbsp;
                <asp:TextBox ID="txtLinhasPagina" runat="server" BorderColor="White" 
                    BorderWidth="0px" Font-Size="X-Small" Height="18px" Width="30px" 
                    BackColor="#5D7B9D" ForeColor="White" ></asp:TextBox>
                <asp:Label ID="Label3" 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="Label4" 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="btnGravarOpcoes" runat="server"  ImageUrl="~/Imagens/Edit2.png" ToolTip="Gravar opções"/>&nbsp;
            </asp:Panel>
            </td>                 
        </tr>
    </table>
</asp:Content>

