<%@ page language="VB" masterpagefile="~/MasterPage.master" autoeventwireup="false" inherits="PontoObras, App_Web_goxzzy2z" 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="TituloPontoPessoalObras" runat="server" Font-Bold="True" Font-Size="X-Small" ForeColor="Yellow" Text="Ponto Pessoal Obras"></asp:Label></td>
        </tr>
        <tr>
            <td style="height: 20px; background-color: #5d7b9d; text-align: left" >
                <asp:Label ID="RotuloFiltro" runat="server" Text="Filtro:" ForeColor= "White" ></asp:Label>
                <asp:DropDownList ID="txtFiltro" runat="server" BackColor="#D6E0EE" Font-Size="X-Small"  AutoPostBack="True">
                <asp:ListItem></asp:ListItem></asp:DropDownList>&nbsp;
                <asp:Label ID="LabelValor1" runat="server" Text="Valor: " ForeColor="White" Visible="False"></asp:Label>
                <asp:TextBox ID="txtFiltroValor1" runat="server" Font-Size="X-Small" Visible="False" Width="55px"></asp:TextBox>
                <asp:DropDownList ID="cboCampo1" runat="server" AutoPostBack="True" Font-Size="X-Small" Visible="False" 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 style="height: 20px; background-color: #5d7b9d; text-align: Right" >
                <asp:ImageButton ID="btnProcessar" runat="server" ImageUrl="~/Imagens/Proc.Ico" EnableTheming="False" ToolTip="Reprocessar." OnClientClick="target=''" Width="30px"/>
                <asp:ImageButton ID="lnkInserir" runat="server" ImageUrl="~/Imagens/Add.png" ToolTip="Inserir novo registo" OnClientClick="target=''" Width="30px"/>
                <asp:ImageButton ID="lnkAlterardePara" runat="server" ImageUrl="~/Imagens/Edit.png" ToolTip="Alteração em bloco" OnClientClick="target=''" Width="30px" Visible="False"/>
                <asp:ImageButton ID="lnkEliminar" runat="server" ImageUrl="~/Imagens/Delete.png" ToolTip="Eliminação em bloco" OnClientClick="target=''" Width="30px" Visible="False"/>
                <asp:ImageButton ID="btnImportacaoDados" runat="server" ImageUrl="~/Imagens/Importar2.png" EnableTheming="False" ToolTip="Importar dados externos (Ficheiro *.txt ou *.csv)" OnClientClick="target=''" Width="30px"/>
                <%--<asp:ImageButton ID="lnkEditar" runat="server" ImageUrl="~/Imagens/Edit.png" ToolTip="Editar registo seleccionado" Width="30px" Visible="False"/>--%>
                <asp:ImageButton ID="btnPedidosTrabalho" runat="server" ImageUrl="~/Manutencao/Imagens/PedidosTrabalho.png" PostBackUrl="~/Manutencao/PedidosTrabalho.aspx" ToolTip="Pedidos Trabalho" OnClientClick="target=''" Width="30px"/>
                <asp:ImageButton ID="btnObras" runat="server" ImageUrl="~/Imagens/Obras.png" PostBackUrl="~/Obras/Obras.aspx" ToolTip="Obras" OnClientClick="target=''" Width="30px"/>
                <asp:ImageButton ID="btnTotais" runat="server" ImageUrl="~/Imagens/Totais.png" PostBackUrl="~/Obras/PontoObrasTotais.aspx" ToolTip="Consulta de totais" OnClientClick="target=''" Width="30px"/>
                <asp:ImageButton ID="btnCaracteristicas" runat="server" ImageUrl="~/Imagens/Caracteristicas.png" ToolTip="Configuração de características" Width="30px"/>
                <asp:ImageButton ID="btnTabelasAuxiliares" runat="server" ImageUrl="~/Imagens/Tabelas.png" ToolTip="Configurar tabelas auxiliares" OnClientClick="target=''" Width="30px" Visible="True"/>
                <asp:ImageButton ID="btnOpenOffice" runat="server" ImageUrl="~/Imagens/OpenOffice.png" ToolTip="Exportar para Csv / Open Office" OnClientClick="target=''" Width="30px"/>
                <asp:ImageButton ID="btnExcel" runat="server" ImageUrl="~/Imagens/Excel.png" ToolTip="Exportar para Excel" OnClientClick="target=''" Width="30px"/>
                <asp:ImageButton ID="btnWord" runat="server" ImageUrl="~/Imagens/Word.png" ToolTip="Exportar para Word" OnClientClick="target=''" Width="30px"/>
                <asp:ImageButton ID="btnImprimir" runat="server" ImageUrl="~/Imagens/print.gif" ToolTip="Imprimir" OnClientClick="target=''" Width="30px"/>
            </td>
        </tr>

        <tr>
            <td colspan="2" 
                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="lblIndex" runat="server" Visible="False">NumeroEmpregado</asp:Label>&nbsp;&nbsp;
                <asp:Label ID="lblAccao" runat="server" Visible="False"></asp:Label>  
                <asp:Label ID="lblSqlFiltro" runat="server" Visible="False" BackColor="White"></asp:Label>
                <asp:Label ID="lblFiltroContador" runat="server" Visible="False" BackColor="White"></asp:Label>&nbsp;
                <asp:Label ID="lblDataInicio" runat="server" Visible="False" BackColor="White"></asp:Label>
                <asp:Label ID="lblDataFim" runat="server" Visible="False" BackColor="White"></asp:Label>
                <asp:Label ID="lblEmpregadoEmEdicao" runat="server" Visible="False" BackColor="White"></asp:Label>&nbsp;&nbsp;
                <asp:Label ID="lblDataUltimaRecolha" runat="server" Visible="False" BackColor="White"></asp:Label>&nbsp;&nbsp;
                <asp:LinkButton ID="lnkConfirmarEliminacao" runat="server" Visible="False">Confirmar</asp:LinkButton>&nbsp;&nbsp;
                <asp:LinkButton ID="lnkCancelarEliminacao" runat="server" Visible="False">Cancelar</asp:LinkButton>
                <asp:Label ID="lblEsta_Opcao" runat="server" Visible="False"></asp:Label> 
            </td>
        </tr>

        <tr>
            <td colspan="34" style="text-align: center">
            <asp:Panel ID="pnlEdit" runat="server" Visible="False" Width="100%">
                <%--<table border="0" cellpadding="0" cellspacing="0" style="border-right: black 1px solid;
                        border-top: black 1px solid; border-left: black 1px solid; width: 100%; border-bottom: black 1px solid;
                        background-color: #d6e0ee">--%>
                <table border="0" cellpadding="0" cellspacing="0" style="width: 96%; background-color: #d6e0ee" align="center">
                    <tr>
                        <td colspan="6" style="height: 12px; text-align: center">
                                <br /> 
                               <asp:Label ID="Label8" runat="server" Text="Empregado:"></asp:Label>&nbsp;
                                <asp:DropDownList ID="cboNumeroEmpregado" runat="server" Font-Size="X-Small" AutoPostBack="True" Enabled="False">
                                </asp:DropDownList>&nbsp;
                                <asp:ImageButton ID="btnIndex" runat="server" 
                                    ImageUrl="~/Imagens/Edit2.png" ToolTip="Alterar ordenação." Width="16px" />&nbsp;
                                <asp:DropDownList ID="cboNome" runat="server" Font-Size="X-Small"  
                                        Enabled="False" Visible="False">
                                </asp:DropDownList>&nbsp;&nbsp;
                                <asp:Label ID="Label9" runat="server" Text="Ordem Trabalho:"></asp:Label>&nbsp;
                                <asp:DropDownList ID="cboObra" runat="server" AutoPostBack="True" 
                                    Font-Size="X-Small">
                                </asp:DropDownList>&nbsp;
                                <asp:Label ID="Label17" runat="server" Text="Fase:"></asp:Label>&nbsp;
                                <asp:DropDownList ID="cboFase" runat="server" AutoPostBack="True" 
                                    Font-Size="X-Small">
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="6" style="height: 12px; text-align: center">
                                <asp:Label ID="Label15" runat="server" Text="Iní / Fim / Horas:"></asp:Label>&nbsp;
                                <asp:TextBox ID="cboInicio" runat="server" BorderColor="Black" 
                                    BorderWidth="1px" Font-Size="X-Small" Width="80px"></asp:TextBox>
                                <asp:Label ID="Label14" runat="server" Text="&nbsp;/" Width="12px"></asp:Label>&nbsp;
                                <asp:TextBox ID="cboFim" runat="server" BorderColor="Black" BorderWidth="1px" 
                                    Font-Size="X-Small" Width="80px"></asp:TextBox>
                                <asp:Label ID="Label16" runat="server" Text="&nbsp;/" Width="12px"></asp:Label>&nbsp;
                                <asp:TextBox ID="cboHoras" runat="server" BorderColor="Black" BorderWidth="1px" 
                                    Font-Size="X-Small" Width="40px"></asp:TextBox>&nbsp;&nbsp;
                                <asp:Label ID="Label13" runat="server" Text="Tipo Horas:"></asp:Label>&nbsp;
                                <asp:DropDownList ID="cboTipoHoras" runat="server" AutoPostBack="True" 
                                    Font-Size="X-Small">
                                </asp:DropDownList>&nbsp;
                                <asp:DropDownList ID="cboDescTipoHoras" runat="server" AutoPostBack="True" 
                                    Font-Size="X-Small" Width="195px">
                                </asp:DropDownList>&nbsp;&nbsp;&nbsp;&nbsp;
                                <asp:LinkButton ID="lnkGravar" runat="server">Gravar</asp:LinkButton>
                                &nbsp;&nbsp;
                                <asp:LinkButton ID="lnkCancelar" runat="server">Cancelar</asp:LinkButton>
                                <br /> <br />
                            </td>
                        </tr>
                    </table>
                </asp:Panel>
                <asp:Panel ID="pnlEditDados" 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">--%>
                    <table border="0" cellpadding="0" cellspacing="0" style="width: 96%; background-color: #a6cdcc" align="center">
                        <tr>
                            <td colspan="34" 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;--%>
                                <asp:Label ID="RotuloHoras" runat="server" Text="Horas:"></asp:Label>&nbsp;
                                <asp:TextBox ID="txtNumeroHoras" runat="server" BorderColor="Black" 
                                    BorderWidth="1px" Font-Size="X-Small" Width="38px"></asp:TextBox>
                                &nbsp;&nbsp;
                                <asp:LinkButton ID="lnkGravarDados" runat="server">Gravar</asp:LinkButton>&nbsp;&nbsp;
                                <asp:LinkButton ID="lnkSair" runat="server">Sair</asp:LinkButton>
                                <br /> <br />
                            </td>
                        </tr>
                    </table>
                </asp:Panel>

                <asp:Panel ID="pnlEditNotasPontoObras" 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="RotuloNotasPontoObras" runat="server" Text="Notas:"></asp:Label>&nbsp;
                                <asp:TextBox ID="txtNotasPontoObras" 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="lnkGravarNotasPontoObras" runat="server">Gravar / Sair</asp:LinkButton>&nbsp;
                                <%--<asp:LinkButton ID="lnkGravarNotasTodosRegistosSeleccionados" runat="server">Inserir em todos os registos seleccionados.</asp:LinkButton>--%>
                                <br /><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="pnlEditMateriaisPontoObras" 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="RotuloMaterial" runat="server" Text="Material:"></asp:Label>&nbsp;
                                <asp:DropDownList ID="cboCodigoMaterial" runat="server" AutoPostBack="True" Font-Size="X-Small" Width="220px"></asp:DropDownList>&nbsp;&nbsp;
                                <asp:Label ID="RotuloUnidadesMovimentacao" runat="server" Text="Unidades:"></asp:Label>&nbsp;
                                <asp:DropDownList ID="cboUnidadesMovimentacao" runat="server" AutoPostBack="True" Font-Size="X-Small" Width="80px"></asp:DropDownList>&nbsp;&nbsp;
                                <asp:Label ID="RotuloQuantidade" runat="server" Text="Quantidade:"></asp:Label>&nbsp;
                                <asp:TextBox ID="txtQuantidade" runat="server" BorderColor="Black" 
                                    BorderWidth="1px" Font-Size="X-Small" Width="38px"></asp:TextBox>&nbsp;&nbsp;
                                <asp:Label ID="RotuloPreco" runat="server" Text="Preço:"></asp:Label>&nbsp;
                                <asp:TextBox ID="txtPreco" runat="server" BorderColor="Black" 
                                    BorderWidth="1px" Font-Size="X-Small" Width="38px"></asp:TextBox>&nbsp;&nbsp;
                                <asp:LinkButton ID="lnkGravarMateriaisPontoObras" runat="server">Gravar</asp:LinkButton>&nbsp;&nbsp;
                                <asp:LinkButton ID="lnkSairMateriaisPontoObras" runat="server">Sair</asp:LinkButton>
                                <br /><br />

                        <asp:GridView ID="grdDadosMateriaisPontoObras" runat="server"  
                                AutoGenerateColumns="False" CellPadding="4" HorizontalAlign="Center" 
                                    PageSize="4" Width="800px" Visible="True">
                        <Columns>
                            <asp:CommandField SelectText="" ShowSelectButton="True" ButtonType="Image" SelectImageUrl="~/Imagens/Edit2.png" 
                                        DeleteImageUrl="~/Imagens/Delete2.png" ShowDeleteButton="True" />
                            <asp:BoundField DataField="CodigoMaterial" HeaderText="Código"/>
                            <asp:BoundField DataField="Descricao" HeaderText="Descrição" />
                            <asp:TemplateField HeaderText="Unidades">
                                <ItemTemplate>
                                <asp:DropDownList ID="DropUnidadeMovimentacao" runat="server" AutoPostBack="True" 
                                    Font-Size="X-Small" CssClass="drop" Height="15px" onload="DropUnidades_Load" 
                                    onselectedindexchanged="DropUnidadeMovimentacao_SelectedIndexChanged">
                                </asp:DropDownList>
                                </span>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Quantidade">
                                <ItemTemplate>
                                    <table cellpadding="0" cellspacing="0" class="style1">
                                        <tr>
                                            <td>
                                                <asp:Button ID="btnMenosMateriais" runat="server" Font-Bold="True" Font-Size="Small" 
                                                    Height="20px" OnClick="btnMenosMateriais_Click" Text="-" 
                                                    ToolTip="Diminuir." Width="20px" />
                                            </td>
                                            <td style="text-align: center">
                                                <asp:Label ID="lblQuantidadeMateriais" runat="server" Text='<%# Bind("Quantidade") %>'
                                                    Width="40px"></asp:Label>
                                            </td>
                                            <td>
                                                <asp:Button ID="btnMaisMateriais" runat="server" Font-Bold="True" Font-Size="Small"
                                                    Height="20px" OnClick="btnMaisMateriais_Click" Text="+" 
                                                    ToolTip="Aumentar." Width="20px" />
                                            </td>
                                        </tr>
                                    </table>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField DataField="Preco" HeaderText="Preço" />
                            <asp:BoundField DataField="Quantidade" HeaderText="" />
                            <asp:BoundField DataField="UnidadeMovimentacao" HeaderText="" />
                            <asp:BoundField DataField="Emissor" HeaderText="" />
                            <asp:BoundField DataField="OrdemTrabalho" HeaderText="" />
                            <asp:BoundField DataField="Oficina" HeaderText="" />
                            <asp:BoundField DataField="Saida" HeaderText="" />
                            <asp:BoundField DataField="Armazem" HeaderText="" />
                            <asp:BoundField DataField="Fase" HeaderText="" />
                            <asp:BoundField DataField="NumeroEmpregado" HeaderText="" />
                        </Columns>
                        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                        <EditRowStyle BackColor="#999999" />
                        <PagerSettings Visible="true"  Position="Bottom" Mode="NextPreviousFirstLast" FirstPageImageUrl="~/Imagens/SetaPrimeiro.png" PreviousPageImageUrl="~/Imagens/SetaEsquerda.png" NextPageImageUrl="~/Imagens/SetaDireita.png" LastPageImageUrl="~/Imagens/SetaUltimo.png" />
                        <PagerStyle BackColor="#F7F6F3" ForeColor="#5D7B9D" Font-Size="Small" HorizontalAlign="Center" />
                        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                        </asp:GridView>
                        <br />


                            </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="pnlEditDia" runat="server" Width="100%" Visible="False" HorizontalAlign="Center">
                <table border="0" cellpadding="0" cellspacing="0" style="width: 96%; background-color: #a6cdcc" align="center">
                    <tr>
                        <td colspan="10" style="height: 10px; background-color: #d6e0ee; text-align: center">
                            <br />
                            <asp:Label ID="RotuloEmpregadoDia" runat="server" Text="Empregado:"></asp:Label>&nbsp;&nbsp;
                            <asp:DropDownList ID="cboNumeroEmpregadoDia" runat="server" Enabled="False" 
                                Font-Size="X-Small">
                            </asp:DropDownList>&nbsp;&nbsp;
                            <asp:ImageButton ID="btnIndex3" runat="server" ImageUrl="~/Imagens/Edit2.png" 
                                ToolTip="Alterar ordenação." Width="16px" Visible="False" />&nbsp;&nbsp;&nbsp;&nbsp;
                            <asp:Label ID="RotuloNotasPonto" runat="server" Text="Notas:" Visible="False"></asp:Label>&nbsp;&nbsp;
                            <asp:DropDownList ID="cboNotasPonto" runat="server" Font-Size="X-Small" 
                                AutoPostBack="True" Visible="False"></asp:DropDownList>&nbsp;
                            <asp:ImageButton ID="btnNotasPonto" runat="server" ImageUrl="~/Imagens/EditMais.png" 
                                ToolTip="Acrescentar novo registo de notas." Width="16px" 
                                Visible="False" />&nbsp;
                            <asp:TextBox ID="txtNotasPonto" runat="server" BorderColor="Black" BorderWidth="1px" 
                                Font-Size="X-Small" Width="200px" Visible="False" ></asp:TextBox>&nbsp;
                            <asp:ImageButton ID="btnNotasGravarJustificacaoExtras" runat="server" 
                                ImageUrl="~/Imagens/Ok.png" ToolTip="Gravar novo registo de notas." 
                                Visible="False" />
                            <asp:Label ID="lblDataProcDiaOriginal" runat="server" Visible="False"></asp:Label>&nbsp;
                            <asp:ImageButton ID="btnAnularEliminacaoDia" runat="server" 
                                ImageUrl="~/Imagens/Anular.png" 
                                ToolTip="Anular eliminação de registos de ponto." />&nbsp;&nbsp;
                            <%--<asp:LinkButton ID="lnkGravarDia" runat="server" Visible="False">Gravar</asp:LinkButton>&nbsp;&nbsp;--%>
                            <asp:LinkButton ID="lnkCancelarDia" runat="server">Cancelar edição</asp:LinkButton>
                            <br />
                        </td>
                    </tr>
                </table>
            </asp:Panel>

            <asp:Panel ID="pnlEditDiaSub1" runat="server" Width="100%" Visible="False" HorizontalAlign="Center">
                <table border="0" cellpadding="0" cellspacing="0" style="width: 96%; background-color: #a6cdcc" align="center">
                    <tr>
                        <td colspan="10" 
                            style="height: 10px; background-color: #d6e0ee; text-align: center">&nbsp;&nbsp;
                            <asp:DropDownList ID="cboObraDia1" runat="server" 
                                Font-Size="X-Small" Visible="False">
                            </asp:DropDownList>&nbsp;&nbsp;
                            <asp:DropDownList ID="cboFaseDia1" runat="server" 
                                Font-Size="X-Small" Visible="False">
                            </asp:DropDownList>&nbsp;&nbsp;&nbsp;&nbsp;
                            <asp:TextBox ID="txtDataDia1" runat="server" BorderColor="Black" 
                                BorderWidth="1px" Font-Size="X-Small" Width="60px" Wrap="False" 
                                style="margin-left: 0px" Visible="False" 
                                ToolTip="Data"></asp:TextBox>&nbsp;
                            <asp:TextBox ID="txtDataInicioDia1" runat="server" BorderColor="Black" 
                                BorderWidth="1px" Font-Size="X-Small" Width="60px" Wrap="False" 
                                style="margin-left: 0px" Visible="False" 
                                ToolTip="Data de Início"></asp:TextBox>&nbsp;
                            <asp:TextBox ID="txtHoraDia1" runat="server" BorderColor="Black" BorderWidth="1px" 
                                Font-Size="X-Small" Width="30px" Wrap="False" ToolTip="Hora de Início"></asp:TextBox>&nbsp;&nbsp;
                            <asp:TextBox ID="txtDataFimDia1" runat="server" BorderColor="Black" 
                                BorderWidth="1px" Font-Size="X-Small" Width="60px" Wrap="False" 
                                style="margin-left: 0px" Visible="False" 
                                ToolTip="Data de Fim"></asp:TextBox>&nbsp;
                            <asp:TextBox ID="txtHoraFimDia1" runat="server" BorderColor="Black" BorderWidth="1px" 
                                Font-Size="X-Small" Width="30px" Wrap="False" ToolTip="Hora de Fim"></asp:TextBox>&nbsp;&nbsp;
                            <asp:ImageButton ID="btnAlterarRegistoDia1" runat="server" 
                                ImageUrl="~/Imagens/Edit2.png" ToolTip="Gravar alteração do registo de ponto." 
                                Visible="False" />&nbsp;&nbsp;
                            <asp:ImageButton ID="btnGravarDia1" runat="server" 
                                ImageUrl="~/Imagens/Ok.png" ToolTip="Gravar novo registo de ponto." />
                            <asp:ImageButton ID="btnEliminarDia1" runat="server" 
                                ImageUrl="~/Imagens/Delete2.png" ToolTip="Eliminar registo de ponto." />
                            <asp:Label ID="lblPontoManual1" runat="server" Visible="False"></asp:Label>&nbsp;
                            <asp:Label ID="lblDataHoraDiaOriginal1" runat="server" Visible="False"></asp:Label>&nbsp;
                            <asp:Label ID="lblAlinhar1" runat="server" ForeColor="#D6E0EE">___</asp:Label>&nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td colspan="10" 
                            style="height: 10px; background-color: #d6e0ee; text-align: center">&nbsp;&nbsp;
                            <asp:DropDownList ID="cboObraDia2" runat="server" 
                                Font-Size="X-Small" Visible="False">
                            </asp:DropDownList>&nbsp;&nbsp;
                            <asp:DropDownList ID="cboFaseDia2" runat="server" 
                                Font-Size="X-Small" Visible="False">
                            </asp:DropDownList>&nbsp;&nbsp;&nbsp;&nbsp;
                            <asp:TextBox ID="txtDataDia2" runat="server" BorderColor="Black" 
                                BorderWidth="1px" Font-Size="X-Small" Width="60px" Wrap="False" 
                                style="margin-left: 0px" ToolTip="Data"></asp:TextBox>&nbsp;
                            <asp:TextBox ID="txtDataInicioDia2" runat="server" BorderColor="Black" 
                                BorderWidth="1px" Font-Size="X-Small" Width="60px" Wrap="False" 
                                style="margin-left: 0px" Visible="False" 
                                ToolTip="Data de Início"></asp:TextBox>&nbsp;
                            <asp:TextBox ID="txtHoraDia2" runat="server" BorderColor="Black" 
                                BorderWidth="1px" Font-Size="X-Small" Width="30px" Wrap="False" ToolTip="Hora de Início"></asp:TextBox>&nbsp;&nbsp;
                            <asp:TextBox ID="txtDataFimDia2" runat="server" BorderColor="Black" 
                                BorderWidth="1px" Font-Size="X-Small" Width="60px" Wrap="False" 
                                style="margin-left: 0px" Visible="False" 
                                ToolTip="Data de Fim"></asp:TextBox>&nbsp;
                            <asp:TextBox ID="txtHoraFimDia2" runat="server" BorderColor="Black" BorderWidth="1px" 
                                Font-Size="X-Small" Width="30px" Wrap="False" ToolTip="Hora de Fim"></asp:TextBox>&nbsp;&nbsp;
                            <asp:ImageButton ID="btnAlterarRegistoDia2" runat="server" 
                                ImageUrl="~/Imagens/Edit2.png" ToolTip="Gravar alteração do registo de ponto." 
                                Visible="False" />&nbsp;&nbsp;
                            <asp:ImageButton ID="btnGravarDia2" runat="server" 
                                ImageUrl="~/Imagens/Ok.png" ToolTip="Gravar registo de ponto." />
                            <asp:ImageButton ID="btnEliminarDia2" runat="server" 
                                ImageUrl="~/Imagens/Delete2.png" ToolTip="Eliminar registo de ponto." />
                            <asp:Label ID="lblPontoManual2" runat="server" Visible="False"></asp:Label>&nbsp;
                            <asp:Label ID="lblDataHoraDiaOriginal2" runat="server"  Visible="False"></asp:Label>&nbsp;
                            <asp:Label ID="lblAlinhar2" runat="server" ForeColor="#D6E0EE">___</asp:Label>&nbsp;
                        </td>
                    </tr>                    
                    <tr>
                        <td colspan="10" 
                            style="height: 10px; background-color: #d6e0ee; text-align: center">&nbsp;&nbsp;
                            <asp:DropDownList ID="cboObraDia3" runat="server" AutoPostBack="True" 
                                Font-Size="X-Small" Visible="False">
                            </asp:DropDownList>&nbsp;&nbsp;
                            <asp:DropDownList ID="cboFaseDia3" runat="server" 
                                Font-Size="X-Small" Visible="False">
                            </asp:DropDownList>&nbsp;&nbsp;&nbsp;&nbsp;
                            <asp:TextBox ID="txtDataDia3" runat="server" BorderColor="Black" 
                                BorderWidth="1px" Font-Size="X-Small" Width="60px" Wrap="False" 
                                style="margin-left: 0px" ToolTip="Data"></asp:TextBox>&nbsp;
                            <asp:TextBox ID="txtDataInicioDia3" runat="server" BorderColor="Black" 
                                BorderWidth="1px" Font-Size="X-Small" Width="60px" Wrap="False" 
                                style="margin-left: 0px" Visible="False" 
                                ToolTip="Data de Início"></asp:TextBox>&nbsp;
                            <asp:TextBox ID="txtHoraDia3" runat="server" BorderColor="Black" 
                                BorderWidth="1px" Font-Size="X-Small" Width="30px" ToolTip="Hora de Início"></asp:TextBox>&nbsp;&nbsp;
                            <asp:TextBox ID="txtDataFimDia3" runat="server" BorderColor="Black" 
                                BorderWidth="1px" Font-Size="X-Small" Width="60px" Wrap="False" 
                                style="margin-left: 0px" Visible="False" 
                                ToolTip="Data de Fim"></asp:TextBox>&nbsp;
                            <asp:TextBox ID="txtHoraFimDia3" runat="server" BorderColor="Black" BorderWidth="1px" 
                                Font-Size="X-Small" Width="30px" Wrap="False" ToolTip="Hora de Fim"></asp:TextBox>&nbsp;&nbsp;
                            <asp:ImageButton ID="btnAlterarRegistoDia3" runat="server" 
                                ImageUrl="~/Imagens/Edit2.png" ToolTip="Gravar alteração do registo de ponto." 
                                Visible="False" />&nbsp;&nbsp;
                            <asp:ImageButton ID="btnGravarDia3" runat="server" 
                                ImageUrl="~/Imagens/Ok.png" ToolTip="Gravar registo de ponto." />
                            <asp:ImageButton ID="btnEliminarDia3" runat="server" 
                                ImageUrl="~/Imagens/Delete2.png" ToolTip="Eliminar registo de ponto." />
                            <asp:Label ID="lblPontoManual3" runat="server" Visible="False"></asp:Label>&nbsp;
                            <asp:Label ID="lblDataHoraDiaOriginal3" runat="server"  Visible="False"></asp:Label>&nbsp;
                            <asp:Label ID="lblAlinhar3" runat="server" ForeColor="#D6E0EE">___</asp:Label>&nbsp;
                        </td>
                    </tr>                    
                    <tr>
                        <td colspan="10" 
                            style="height: 10px; background-color: #d6e0ee; text-align: center">&nbsp;&nbsp;
                            <asp:DropDownList ID="cboObraDia4" runat="server" 
                                Font-Size="X-Small" Visible="False">
                            </asp:DropDownList>&nbsp;&nbsp;
                            <asp:DropDownList ID="cboFaseDia4" runat="server" 
                                Font-Size="X-Small" Visible="False">
                            </asp:DropDownList>&nbsp;&nbsp;&nbsp;&nbsp;
                            <asp:TextBox ID="txtDataDia4" runat="server" BorderColor="Black" 
                                BorderWidth="1px" Font-Size="X-Small" Width="60px" Wrap="False" 
                                style="margin-left: 0px" ToolTip="Data"></asp:TextBox>&nbsp;
                            <asp:TextBox ID="txtDataInicioDia4" runat="server" BorderColor="Black" 
                                BorderWidth="1px" Font-Size="X-Small" Width="60px" Wrap="False" 
                                style="margin-left: 0px" Visible="False" 
                                ToolTip="Data de Início"></asp:TextBox>&nbsp;
                            <asp:TextBox ID="txtHoraDia4" runat="server" BorderColor="Black" 
                                BorderWidth="1px" Font-Size="X-Small" Width="30px" Wrap="False" ToolTip="Hora de Início"></asp:TextBox>&nbsp;&nbsp;
                            <asp:TextBox ID="txtDataFimDia4" runat="server" BorderColor="Black" 
                                BorderWidth="1px" Font-Size="X-Small" Width="60px" Wrap="False" 
                                style="margin-left: 0px" Visible="False" 
                                ToolTip="Data de Fim"></asp:TextBox>&nbsp;
                            <asp:TextBox ID="txtHoraFimDia4" runat="server" BorderColor="Black" BorderWidth="1px" 
                                Font-Size="X-Small" Width="30px" Wrap="False" ToolTip="Hora de Fim"></asp:TextBox>&nbsp;&nbsp;
                            <asp:ImageButton ID="btnAlterarRegistoDia4" runat="server" 
                                ImageUrl="~/Imagens/Edit2.png" ToolTip="Gravar alteração do registo de ponto." 
                                Visible="False" />&nbsp;&nbsp;
                            <asp:ImageButton ID="btnGravarDia4" runat="server" 
                                ImageUrl="~/Imagens/Ok.png" ToolTip="Gravar registo de ponto." />
                            <asp:ImageButton ID="btnEliminarDia4" runat="server" 
                                ImageUrl="~/Imagens/Delete2.png" ToolTip="Eliminar registo de ponto." />
                            <asp:Label ID="lblPontoManual4" runat="server" Visible="False"></asp:Label>&nbsp;
                            <asp:Label ID="lblDataHoraDiaOriginal4" runat="server"  Visible="False"></asp:Label>&nbsp;
                            <asp:Label ID="lblAlinhar4" runat="server" ForeColor="#D6E0EE">___</asp:Label>&nbsp;
                        </td>
                    </tr>                    
                </table>
            </asp:Panel>

            <asp:Panel ID="pnlEditDiaSub2" runat="server" Width="100%" Visible="False" HorizontalAlign="Center">
                <table border="0" cellpadding="0" cellspacing="0" style="width: 96%; background-color: #a6cdcc" align="center">
                    <tr>
                        <td colspan="10" 
                            style="height: 10px; background-color: #d6e0ee; text-align: center">&nbsp;&nbsp;
                            <asp:DropDownList ID="cboObraDia5" runat="server" 
                                Font-Size="X-Small" Visible="False">
                            </asp:DropDownList>&nbsp;&nbsp;
                            <asp:DropDownList ID="cboFaseDia5" runat="server" 
                                Font-Size="X-Small" Visible="False">
                            </asp:DropDownList>&nbsp;&nbsp;&nbsp;&nbsp;
                            <asp:TextBox ID="txtDataDia5" runat="server" BorderColor="Black" 
                                BorderWidth="1px" Font-Size="X-Small" Width="60px" Wrap="False" 
                                style="margin-left: 0px" ToolTip="Data"></asp:TextBox>&nbsp;
                            <asp:TextBox ID="txtDataInicioDia5" runat="server" BorderColor="Black" 
                                BorderWidth="1px" Font-Size="X-Small" Width="60px" Wrap="False" 
                                style="margin-left: 0px" Visible="False" 
                                ToolTip="Data de Início"></asp:TextBox>&nbsp;
                            <asp:TextBox ID="txtHoraDia5" runat="server" BorderColor="Black" 
                                BorderWidth="1px" Font-Size="X-Small" Width="30px" Wrap="False" ToolTip="Hora de Início"></asp:TextBox>&nbsp;&nbsp;
                            <asp:TextBox ID="txtDataFimDia5" runat="server" BorderColor="Black" 
                                BorderWidth="1px" Font-Size="X-Small" Width="60px" Wrap="False" 
                                style="margin-left: 0px" Visible="False" 
                                ToolTip="Data de Fim"></asp:TextBox>&nbsp;
                            <asp:TextBox ID="txtHoraFimDia5" runat="server" BorderColor="Black" BorderWidth="1px" 
                                Font-Size="X-Small" Width="30px" Wrap="False" ToolTip="Hora de Fim"></asp:TextBox>&nbsp;&nbsp;
                            <asp:ImageButton ID="btnAlterarRegistoDia5" runat="server" 
                                ImageUrl="~/Imagens/Edit2.png" ToolTip="Gravar alteração do registo de ponto." 
                                Visible="False" />&nbsp;&nbsp;
                            <asp:ImageButton ID="btnGravarDia5" runat="server" 
                                ImageUrl="~/Imagens/Ok.png" ToolTip="Gravar registo de ponto." />
                            <asp:ImageButton ID="btnEliminarDia5" runat="server" 
                                ImageUrl="~/Imagens/Delete2.png" ToolTip="Eliminar registo de ponto." />
                            <asp:Label ID="lblPontoManual5" runat="server" Visible="False"></asp:Label>&nbsp;
                            <asp:Label ID="lblDataHoraDiaOriginal5" runat="server"  Visible="False"></asp:Label>&nbsp;
                            <asp:Label ID="lblAlinhar5" runat="server" ForeColor="#D6E0EE">___</asp:Label>&nbsp;
                        </td>
                    </tr>                    
                    <tr>
                        <td colspan="10" 
                            style="height: 10px; background-color: #d6e0ee; text-align: center">&nbsp;&nbsp;
                            <asp:DropDownList ID="cboObraDia6" runat="server" 
                                Font-Size="X-Small" Visible="False">
                            </asp:DropDownList>&nbsp;&nbsp;
                            <asp:DropDownList ID="cboFaseDia6" runat="server" 
                                Font-Size="X-Small" Visible="False">
                            </asp:DropDownList>&nbsp;&nbsp;&nbsp;&nbsp;
                            <asp:TextBox ID="txtDataDia6" runat="server" BorderColor="Black" 
                                BorderWidth="1px" Font-Size="X-Small" Width="60px" Wrap="False" 
                                style="margin-left: 0px" Visible="False" ToolTip="Data"></asp:TextBox>&nbsp;
                            <asp:TextBox ID="txtDataInicioDia6" runat="server" BorderColor="Black" 
                                BorderWidth="1px" Font-Size="X-Small" Width="60px" Wrap="False" 
                                style="margin-left: 0px" Visible="False" 
                                ToolTip="Data de Início"></asp:TextBox>&nbsp;
                            <asp:TextBox ID="txtHoraDia6" runat="server" BorderColor="Black" 
                                BorderWidth="1px" Font-Size="X-Small" Width="30px" Wrap="False" ToolTip="Hora de Início" 
                                Visible="False"></asp:TextBox>&nbsp;&nbsp;
                            <asp:TextBox ID="txtDataFimDia6" runat="server" BorderColor="Black" 
                                BorderWidth="1px" Font-Size="X-Small" Width="60px" Wrap="False" 
                                style="margin-left: 0px" Visible="False" 
                                ToolTip="Data de Fim"></asp:TextBox>&nbsp;
                            <asp:TextBox ID="txtHoraFimDia6" runat="server" BorderColor="Black" BorderWidth="1px" 
                                Font-Size="X-Small" Width="30px" Wrap="False" ToolTip="Hora de Fim"></asp:TextBox>&nbsp;&nbsp;
                            <asp:ImageButton ID="btnAlterarRegistoDia6" runat="server" 
                                ImageUrl="~/Imagens/Edit2.png" ToolTip="Gravar alteração do registo de ponto." 
                                Visible="False" />&nbsp;&nbsp;
                            <asp:ImageButton ID="btnGravarDia6" runat="server" 
                                ImageUrl="~/Imagens/Ok.png" ToolTip="Gravar registo de ponto." />
                            <asp:ImageButton ID="btnEliminarDia6" runat="server" 
                                ImageUrl="~/Imagens/Delete2.png" ToolTip="Eliminar registo de ponto." />
                            <asp:Label ID="lblPontoManual6" runat="server" Visible="False"></asp:Label>&nbsp;
                            <asp:Label ID="lblDataHoraDiaOriginal6" runat="server"  Visible="False"></asp:Label>&nbsp;
                            <asp:Label ID="lblAlinhar6" runat="server" ForeColor="#D6E0EE">___</asp:Label>&nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td colspan="10" 
                            style="height: 10px; background-color: #d6e0ee; text-align: center" 
                            >&nbsp;&nbsp;
                            <asp:DropDownList ID="cboObraDia7" runat="server" 
                                Font-Size="X-Small" Visible="False">
                            </asp:DropDownList>&nbsp;&nbsp;
                            <asp:DropDownList ID="cboFaseDia7" runat="server" 
                                Font-Size="X-Small" Visible="False">
                            </asp:DropDownList>&nbsp;&nbsp;&nbsp;&nbsp;
                            <asp:TextBox ID="txtDataDia7" runat="server" BorderColor="Black" 
                                BorderWidth="1px" Font-Size="X-Small" Width="60px" Wrap="False" 
                                style="margin-left: 0px" ToolTip="Data"></asp:TextBox>&nbsp;
                            <asp:TextBox ID="txtDataInicioDia7" runat="server" BorderColor="Black" 
                                BorderWidth="1px" Font-Size="X-Small" Width="60px" Wrap="False" 
                                style="margin-left: 0px" Visible="False" 
                                ToolTip="Data de Início"></asp:TextBox>&nbsp;
                            <asp:TextBox ID="txtHoraDia7" runat="server" BorderColor="Black" 
                                BorderWidth="1px" Font-Size="X-Small" Width="30px" Wrap="False" ToolTip="Hora de Início"></asp:TextBox>&nbsp;&nbsp;
                            <asp:TextBox ID="txtDataFimDia7" runat="server" BorderColor="Black" 
                                BorderWidth="1px" Font-Size="X-Small" Width="60px" Wrap="False" 
                                style="margin-left: 0px" Visible="False" 
                                ToolTip="Data de Fim"></asp:TextBox>&nbsp;
                            <asp:TextBox ID="txtHoraFimDia7" runat="server" BorderColor="Black" BorderWidth="1px" 
                                Font-Size="X-Small" Width="30px" Wrap="False" ToolTip="Hora de Fim"></asp:TextBox>&nbsp;&nbsp;
                            <asp:ImageButton ID="btnAlterarRegistoDia7" runat="server" 
                                ImageUrl="~/Imagens/Edit2.png" ToolTip="Gravar alteração do registo de ponto." 
                                Visible="False" />&nbsp;&nbsp;
                            <asp:ImageButton ID="btnGravarDia7" runat="server" 
                                ImageUrl="~/Imagens/Ok.png" ToolTip="Gravar registo de ponto." />
                            <asp:ImageButton ID="btnEliminarDia7" runat="server" 
                                ImageUrl="~/Imagens/Delete2.png" ToolTip="Eliminar registo de ponto." />
                            <asp:Label ID="lblPontoManual7" runat="server" Visible="False"></asp:Label>&nbsp;
                            <asp:Label ID="lblDataHoraDiaOriginal7" runat="server" Visible="False"></asp:Label>&nbsp;
                            <asp:Label ID="lblAlinhar7" runat="server" ForeColor="#D6E0EE">___</asp:Label>&nbsp;
                        </td>
                    </tr>                    
                    <tr>
                        <td colspan="10" 
                            style="height: 10px; background-color: #d6e0ee; text-align: center">&nbsp;&nbsp;
                            <asp:DropDownList ID="cboObraDia8" runat="server" 
                                Font-Size="X-Small" Visible="False">
                            </asp:DropDownList>&nbsp;&nbsp;
                            <asp:DropDownList ID="cboFaseDia8" runat="server" 
                                Font-Size="X-Small" Visible="False">
                            </asp:DropDownList>&nbsp;&nbsp;&nbsp;&nbsp;
                            <asp:TextBox ID="txtDataDia8" runat="server" BorderColor="Black" 
                                BorderWidth="1px" Font-Size="X-Small" Width="60px" Wrap="False" 
                                style="margin-left: 0px" ToolTip="Data"></asp:TextBox>&nbsp;
                            <asp:TextBox ID="txtDataInicioDia8" runat="server" BorderColor="Black" 
                                BorderWidth="1px" Font-Size="X-Small" Width="60px" Wrap="False" 
                                style="margin-left: 0px" Visible="False" 
                                ToolTip="Data de Início"></asp:TextBox>&nbsp;
                            <asp:TextBox ID="txtHoraDia8" runat="server" BorderColor="Black" 
                                BorderWidth="1px" Font-Size="X-Small" Width="30px" Wrap="False" ToolTip="Hora de Início"></asp:TextBox>&nbsp;&nbsp;
                            <asp:TextBox ID="txtDataFimDia8" runat="server" BorderColor="Black" 
                                BorderWidth="1px" Font-Size="X-Small" Width="60px" Wrap="False" 
                                style="margin-left: 0px" Visible="False" 
                                ToolTip="Data de Fim"></asp:TextBox>&nbsp;
                            <asp:TextBox ID="txtHoraFimDia8" runat="server" BorderColor="Black" BorderWidth="1px" 
                                Font-Size="X-Small" Width="30px" Wrap="False" ToolTip="Hora de Fim"></asp:TextBox>&nbsp;&nbsp;
                            <asp:ImageButton ID="btnAlterarRegistoDia8" runat="server" 
                                ImageUrl="~/Imagens/Edit2.png" ToolTip="Gravar alteração do registo de ponto." 
                                Visible="False" />&nbsp;&nbsp;
                            <asp:ImageButton ID="btnGravarDia8" runat="server" 
                                ImageUrl="~/Imagens/Ok.png" ToolTip="Gravar registo de ponto." />
                            <asp:ImageButton ID="btnEliminarDia8" runat="server" 
                                ImageUrl="~/Imagens/Delete2.png" ToolTip="Eliminar registo de ponto." />
                            <asp:Label ID="lblPontoManual8" runat="server" Visible="False"></asp:Label>&nbsp;
                            <asp:Label ID="lblDataHoraDiaOriginal8" runat="server" Visible="False"></asp:Label>&nbsp;
                            <asp:Label ID="lblAlinhar8" runat="server" ForeColor="#D6E0EE">___</asp:Label>&nbsp;
                        </td>
                    </tr>                    
                </table>
            </asp:Panel>

            <asp:Panel ID="pnlEditDiaSub3" runat="server" Width="100%" Visible="False" HorizontalAlign="Center">
                <table border="0" cellpadding="0" cellspacing="0" style="width: 96%; background-color: #a6cdcc" align="center">
                    <tr>
                        <td colspan="10" 
                            style="height: 10px; background-color: #d6e0ee; text-align: center">&nbsp;&nbsp;
                            <asp:DropDownList ID="cboObraDia9" runat="server" 
                                Font-Size="X-Small" Visible="False">
                            </asp:DropDownList>&nbsp;&nbsp;
                            <asp:DropDownList ID="cboFaseDia9" runat="server" 
                                Font-Size="X-Small" Visible="False">
                            </asp:DropDownList>&nbsp;&nbsp;&nbsp;&nbsp;
                            <asp:TextBox ID="txtDataDia9" runat="server" BorderColor="Black" 
                                BorderWidth="1px" Font-Size="X-Small" Width="60px" Wrap="False" 
                                style="margin-left: 0px" ToolTip="Data"></asp:TextBox>&nbsp;
                            <asp:TextBox ID="txtDataInicioDia9" runat="server" BorderColor="Black" 
                                BorderWidth="1px" Font-Size="X-Small" Width="60px" Wrap="False" 
                                style="margin-left: 0px" Visible="False" 
                                ToolTip="Data de Início"></asp:TextBox>&nbsp;
                            <asp:TextBox ID="txtHoraDia9" runat="server" BorderColor="Black" 
                                BorderWidth="1px" Font-Size="X-Small" Width="30px" Wrap="False" ToolTip="Hora de Início"></asp:TextBox>&nbsp;&nbsp;
                            <asp:TextBox ID="txtDataFimDia9" runat="server" BorderColor="Black" 
                                BorderWidth="1px" Font-Size="X-Small" Width="60px" Wrap="False" 
                                style="margin-left: 0px" Visible="False" 
                                ToolTip="Data de Fim"></asp:TextBox>&nbsp;
                            <asp:TextBox ID="txtHoraFimDia9" runat="server" BorderColor="Black" BorderWidth="1px" 
                                Font-Size="X-Small" Width="30px" Wrap="False" ToolTip="Hora de Fim"></asp:TextBox>&nbsp;&nbsp;
                            <asp:ImageButton ID="btnAlterarRegistoDia9" runat="server" 
                                ImageUrl="~/Imagens/Edit2.png" ToolTip="Gravar alteração do registo de ponto." 
                                Visible="False" />&nbsp;&nbsp;
                            <asp:ImageButton ID="btnGravarDia9" runat="server" 
                                ImageUrl="~/Imagens/Ok.png" ToolTip="Gravar registo de ponto." />
                            <asp:ImageButton ID="btnEliminarDia9" runat="server" 
                                ImageUrl="~/Imagens/Delete2.png" ToolTip="Eliminar registo de ponto." />
                            <asp:Label ID="lblPontoManual9" runat="server" Visible="False"></asp:Label>&nbsp;
                            <asp:Label ID="lblDataHoraDiaOriginal9" runat="server" Visible="False"></asp:Label>&nbsp;
                            <asp:Label ID="lblAlinhar9" runat="server" ForeColor="#D6E0EE">___</asp:Label>&nbsp;
                        </td>
                    </tr>                    
                    <tr>
                        <td colspan="10" 
                            style="height: 10px; background-color: #d6e0ee; text-align: center">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                            <asp:DropDownList ID="cboObraDia10" runat="server" 
                                Font-Size="X-Small" Visible="False">
                            </asp:DropDownList>&nbsp;&nbsp;
                            <asp:DropDownList ID="cboFaseDia10" runat="server" 
                                Font-Size="X-Small" Visible="False">
                            </asp:DropDownList>&nbsp;&nbsp;&nbsp;&nbsp;
                            <asp:TextBox ID="txtDataDia10" runat="server" BorderColor="Black" 
                                BorderWidth="1px" Font-Size="X-Small" Width="60px" Wrap="False" 
                                style="margin-left: 0px" ToolTip="Data"></asp:TextBox>&nbsp;
                            <asp:TextBox ID="txtDataInicioDia10" runat="server" BorderColor="Black" 
                                BorderWidth="1px" Font-Size="X-Small" Width="60px" Wrap="False" 
                                style="margin-left: 0px" Visible="False" 
                                ToolTip="Data de Início"></asp:TextBox>&nbsp;
                            <asp:TextBox ID="txtHoraDia10" runat="server" BorderColor="Black" 
                                BorderWidth="1px" Font-Size="X-Small" Width="30px" Wrap="False" ToolTip="Hora de Início"></asp:TextBox>&nbsp;&nbsp;
                            <asp:TextBox ID="txtDataFimDia10" runat="server" BorderColor="Black" 
                                BorderWidth="1px" Font-Size="X-Small" Width="60px" Wrap="False" 
                                style="margin-left: 0px" Visible="False" 
                                ToolTip="Data de Fim"></asp:TextBox>&nbsp;
                            <asp:TextBox ID="txtHoraFimDia10" runat="server" BorderColor="Black" BorderWidth="1px" 
                                Font-Size="X-Small" Width="30px" Wrap="False" ToolTip="Hora de Fim"></asp:TextBox>&nbsp;&nbsp;
                            <asp:ImageButton ID="btnAlterarRegistoDia10" runat="server" 
                                ImageUrl="~/Imagens/Edit2.png" ToolTip="Gravar alteração do registo de ponto." 
                                Visible="False" />&nbsp;&nbsp;
                            <asp:ImageButton ID="btnGravarDia10" runat="server" 
                                ImageUrl="~/Imagens/Ok.png" ToolTip="Gravar registo de ponto." />
                            <asp:ImageButton ID="btnEliminarDia10" runat="server" 
                                ImageUrl="~/Imagens/Delete2.png" ToolTip="Eliminar registo de ponto." />
                            <asp:Label ID="lblPontoManual10" runat="server" Visible="False"></asp:Label>&nbsp;
                            <asp:Label ID="lblDataHoraDiaOriginal10" runat="server" Visible="False"></asp:Label>&nbsp;
                            <asp:Label ID="lblAlinhar10" runat="server" ForeColor="#D6E0EE">___</asp:Label>&nbsp;
                        </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: 96%; border-bottom: black 1px solid;
                        background-color: #d6e0ee">--%>
                <table border="0" cellpadding="0" cellspacing="0" style="width: 96%; background-color: #a6cdcc" align="center">
                        <tr>
                            <td colspan="36" style="height: 20px; background-color: #d6e0ee;" align="left">
                                <asp:Label ID="Label6" runat="server" Text="Seleccionar Campo:"></asp:Label>&nbsp;
                                <asp:DropDownList ID="cboCampoAlterarDePara" runat="server" AutoPostBack="True" 
                                    Font-Size="X-Small" Width="130px">
                                </asp:DropDownList>&nbsp;&nbsp;
                            </td>
                        </tr> 
                        <tr>
                            <td colspan="36" 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="lnkConfirmarAlterarDePara" runat="server" Visible="False">Confirmar</asp:LinkButton>&nbsp;&nbsp;
                            <asp:LinkButton ID="lnkSairAlterarDePara" runat="server" Visible="False">Sair</asp:LinkButton>
                            <br /> <br />
                            </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" align="center">
                    <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" align="center">
                    <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" align="center">
                    <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" style="text-align: center">
            <asp:Panel ID="Panel1" runat="server" Width="100%" Visible="False" HorizontalAlign="Center">
                <table border="0" cellpadding="0" cellspacing="0" style="width: 96%; background-color: #a6cdcc" align="center">
                    <tr>
                        <td colspan="10" style="height: 10px; background-color: #d6e0ee; text-align: center">
                            <br />
                            <asp:Label ID="Label4" runat="server" Text="Notas:"></asp:Label>&nbsp;
                            <asp:TextBox ID="txtNotasFaltasExtras" runat="server" BorderColor="Black" BorderWidth="1px" 
                                Font-Size="X-Small" Width="500px" ></asp:TextBox>&nbsp;&nbsp;
                            <asp:ImageButton ID="btnEliminarPdf" runat="server" 
                                ImageUrl="~/Imagens/Delete2.png" ToolTip="Eliminar documento 'pdf'." Visible="True" />&nbsp;&nbsp;
                            <asp:LinkButton ID="lnkGravarNotas" runat="server">Gravar / Sair</asp:LinkButton>
                            <br />
                        </td>
                    </tr>
                    <tr>
                        <td colspan="10" style="height: 10px; background-color: #d6e0ee; text-align: center">
                            <br />
                            <asp:Label ID="RotuloFileUploadFaltasExtras" runat="server" Text="Anexar documento 'pdf':"></asp:Label>&nbsp;
                            <asp:FileUpload ID="FileUploadFaltasExtras" runat="server" ToolTip="Documento" 
                                BackColor="#F7F6F3" CssClass="icon" Font-Size="Small" Width="600px" 
                                Visible="False" />
                        </td>
                    </tr>
                </table>
            </asp:Panel>

            </td>
        </tr>

        <tr>
        <td colspan="34" style="text-align: center" align="center">
            <asp:Panel ID="pnlFaltasExtras" runat="server" Visible="False" Width="100%" 
                HorizontalAlign="Center">
            <table border="0" cellpadding="0" cellspacing="0" style="border-right: black 1px solid;
                    border-top: black 1px solid; border-left: black 1px solid; width: 96%; border-bottom: black 1px solid;
                    background-color: #d6e0ee" align="center">
                <tr>
                <td style="height: 10px; background-color: #5d7b9d; text-align: center " 
                        align="center">
                    <asp:Label ID="RotuloFaltasExtras" runat="server" ForeColor="Yellow" Text="Ausências / extras"></asp:Label>
                 </td>
                </tr> 
                <tr>
                <td style="height: 10px; background-color: #d6e0ee; text-align: center" 
                        align="center">
                    <asp:GridView ID="grdDadosFaltasExtras" runat="server" CellPadding="4" 
                        ForeColor="#333333" GridLines="Vertical" Width="100%" AllowPaging="True" 
                        AutoGenerateColumns="False">
                    <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:TemplateField HeaderText="Notas">
                            <ItemTemplate>
                                <table cellpadding="0" cellspacing="0" class="style1">
                                    <tr>
                                    <td>
                                        <asp:Label ID="lblNotasFaltasExtras" runat="server" />
                                        <asp:imagebutton ID="btnNotas" runat="server"  
                                            Height="12px" OnClick="btnNotasFaltasExtras_Click" ImageUrl="~/Imagens/Edit2.png" ToolTip="Editar notas." Width="12px" />
                                    </td>
                                    </tr>
                                </table>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="doc.">
                            <ItemTemplate>
                                <table cellpadding="0" cellspacing="0" class="style1">
                                    <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="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="" />
                        <asp:BoundField DataField="IdObjecto" HeaderText="" />
                    </Columns>
                    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                    <EditRowStyle BackColor="#999999" />
                    <PagerSettings Visible="true"  Position="Bottom" Mode="NextPreviousFirstLast" FirstPageImageUrl="~/Imagens/SetaPrimeiro.png" PreviousPageImageUrl="~/Imagens/SetaEsquerda.png" NextPageImageUrl="~/Imagens/SetaDireita.png" LastPageImageUrl="~/Imagens/SetaUltimo.png" />
                    <PagerStyle BackColor="#F7F6F3" ForeColor="#5D7B9D" Font-Size="Small" HorizontalAlign="Center" />
                    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                    <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                    </asp:GridView>
                </td>
                </tr>

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

            <tr>
            <td colspan="2" style="text-align: center">
                <asp:Panel ID="pnlTabelasAuxiliares" runat="server" Visible="False" Width="100%">
                <table border="0" cellpadding="0" cellspacing="0" style="width: 100%;background-color: #d6e0ee">
                    <tr>
                        <td style="height: 10px; background-color: #d6e0ee; text-align: center">
                            <br />
                            <asp:Label ID="RotuloTabela" runat="server" Font-Size="X-Small" Text="Tabela:"></asp:Label>&nbsp;&nbsp;
                            <asp:DropDownList ID="cboTabela" runat="server" AutoPostBack="True" 
                                Font-Size="X-Small" Width="200px" > </asp:DropDownList>
                        </td>
                    </tr> 
                    <tr>
                        <td style="height: 30px; background-color: #d6e0ee; text-align: center">
                            <br /> 
                            <asp:Label ID="RotuloTabelaAuxiliarCodigoPai" runat="server" Text="Código Pai:"></asp:Label>&nbsp;
                            <asp:TextBox ID="txtTabelaAuxiliarCodigoPai" runat="server" BorderWidth="1px" Font-Size="X-Small" Width="47px"></asp:TextBox>&nbsp;&nbsp;
                            <asp:Label ID="RotuloTabelaAuxiliarCodigo" runat="server" Text="Código:"></asp:Label>&nbsp;
                            <asp:TextBox ID="txtTabelaAuxiliarCodigo" runat="server" BorderWidth="1px" Font-Size="X-Small" Width="47px"></asp:TextBox>&nbsp;&nbsp;
                            <asp:Label ID="RotuloTabelaAuxiliarDescricao" runat="server" Text="Descrição:"></asp:Label>&nbsp;
                            <asp:TextBox ID="txtTabelaAuxiliarDescricao" runat="server" BorderWidth="1px" Font-Size="X-Small" Width="200px"></asp:TextBox>&nbsp;&nbsp;
                            <asp:Label ID="RotuloTabelaAuxiliarTipo" runat="server" Text="Tipo:" ></asp:Label>&nbsp;
                            <asp:DropDownList ID="cboTabelaAuxiliarTipo" runat="server" Font-Size="X-Small" > </asp:DropDownList>&nbsp;&nbsp;
                            <asp:Label ID="RotuloTabelaAuxiliarValorCusto" runat="server" Text="Valor Custo:"></asp:Label>&nbsp;
                            <asp:TextBox ID="txtTabelaAuxiliarValorCusto" runat="server" BorderColor="Black" BorderWidth="1px" 
                                Font-Size="X-Small" Width="60px"></asp:TextBox>&nbsp;&nbsp;
                            <asp:Label ID="RotuloTabelaAuxiliarValorVenda" runat="server" Text="Valor Venda:"></asp:Label>&nbsp;
                            <asp:TextBox ID="txtTabelaAuxiliarValorVenda" runat="server" BorderColor="Black" BorderWidth="1px" 
                                Font-Size="X-Small" Width="60px"></asp:TextBox>&nbsp;&nbsp;
                            <asp:Label ID="RotuloTabelaAuxiliarConversaoExportacao" runat="server" Text="Conversão Exportação:"></asp:Label>&nbsp;
                            <asp:TextBox ID="txtTabelaAuxiliarConversaoExportacao" runat="server" BorderColor="Black" BorderWidth="1px" 
                                Font-Size="X-Small" Width="60px"></asp:TextBox>&nbsp;&nbsp;
                            <asp:LinkButton ID="lnkTabelaAuxiliarGravar" runat="server">Gravar</asp:LinkButton>&nbsp;&nbsp;
                            <asp:ImageButton ID="btnTabelaAuxiliarNovoFiltro" runat="server" 
                                ImageUrl="~/Imagens/Add2.png" ToolTip="Novo filtro." />&nbsp;&nbsp;
                            <asp:ImageButton ID="btnTabelaAuxiliarAlterarFiltro" runat="server" 
                                ImageUrl="~/Imagens/Edit2.png" ToolTip="Alterar filtro." Width="16px" />&nbsp;&nbsp;
                            <asp:LinkButton ID="lnkTabelaAuxiliarSair" runat="server">Sair</asp:LinkButton>
                            <br />  <br />
                            <asp:GridView ID="grdDadosTabelasAuxiliares" runat="server" CellPadding="4" HorizontalAlign="Center" 
                                    Width="702px" RowStyle-HorizontalAlign="Left" AllowPaging="True" PageSize="12">
                                <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 style="height: 20px; background-color: #d6e0ee; text-align: center">
                        <asp:Panel ID="pnlMeiosMateriais" runat="server" Visible="False" Width="100%">
                        <br />  
                        <asp:Label ID="RotuloEstrutura" runat="server" Text="Estrutura:" ></asp:Label>&nbsp;
                        <asp:DropDownList ID="cboEstrutura" runat="server" Font-Size="X-Small" > </asp:DropDownList>&nbsp;&nbsp;
                        <asp:Label ID="RotuloCodigoMaterial" runat="server" Text="Código:" ></asp:Label>&nbsp;
                        <asp:TextBox ID="txtCodigoMaterial" runat="server" BorderWidth="1px" Font-Size="X-Small" 
                                    Width="80px" ></asp:TextBox>&nbsp;
                        <asp:Label ID="RotuloDescricaoMaterial" runat="server" Text="Descrição:" ></asp:Label>&nbsp;
                        <asp:TextBox ID="txtDescricaoMaterial" runat="server" BorderWidth="1px" Font-Size="X-Small" 
                                    Width="200px" ></asp:TextBox>&nbsp;
                        <asp:Label ID="RotuloCodigoTipo" runat="server" Text="Tipo:" ></asp:Label>&nbsp;
                        <asp:DropDownList ID="cboCodigoTipo" runat="server" Font-Size="X-Small" > </asp:DropDownList>&nbsp;&nbsp;
                        <asp:Label ID="RotuloUnidades" runat="server" Text="Unidades:" ></asp:Label>&nbsp;
                        <asp:DropDownList ID="cboUnidades" runat="server" Font-Size="X-Small" > </asp:DropDownList>&nbsp;&nbsp;
                        <asp:ImageButton ID="btnNovoMaterial" runat="server" 
                            ImageUrl="~/Imagens/Add2.png" ToolTip="Inserir Novo registo." />&nbsp;
                        <asp:ImageButton ID="btnAlterarMaterial" runat="server" 
                            ImageUrl="~/Imagens/Edit2.png" ToolTip="Alterar registo." Width="16px" />&nbsp;&nbsp;
                         <asp:LinkButton ID="lnkTabelaAuxiliarMateriaisSair" runat="server">Sair</asp:LinkButton>
                        <br /> <br />

                        <asp:GridView ID="grdDadosMeiosMateriais" runat="server"  
                                AutoGenerateColumns="False" 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" />
                            <asp:BoundField DataField="DescEstrutura" HeaderText="Estrutura" />
                            <asp:BoundField DataField="CodigoMaterial" HeaderText="Código"/>
                            <asp:BoundField DataField="Descricao" HeaderText="Descrição" />
                            <asp:TemplateField HeaderText="Tipo">
                            <ItemTemplate>
                                <asp:DropDownList ID="dropCodigoTipo" runat="server" AutoPostBack="True" 
                                    Font-Size="X-Small" CssClass="drop" Height="15px" onload="dropCodigoTipo_Load" 
                                    onselectedindexchanged="dropCodigoTipo_SelectedIndexChanged" >
                                </asp:DropDownList>
                                </span>
                            </ItemTemplate>                            
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Unidades">
                                <ItemTemplate>
                                <asp:DropDownList ID="DropUnidades" runat="server" AutoPostBack="True" 
                                    Font-Size="X-Small" CssClass="drop" Height="15px" onload="DropUnidades_Load" 
                                    onselectedindexchanged="DropUnidades_SelectedIndexChanged">
                                </asp:DropDownList>
                                </span>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField DataField="CodigoEstrutura2" HeaderText="" />
                            <asp:BoundField DataField="CodigoTipo" HeaderText=" " />
                            <asp:BoundField DataField="Unidades" 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:Panel>
                    </td>
                    </tr>
                </table>
                </asp:Panel>

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

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

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


            <tr>
            <td colspan="2" style="text-align: center">
                <asp:Panel ID="pnlOpcoesCampos" runat="server" Visible="False" Width="100%">
                <table border="0" cellpadding="0" cellspacing="0" style="border-right: black 1px solid;
                        border-top: black 1px solid; border-left: black 1px solid; width: 100%; border-bottom: black 1px solid;
                        background-color: #d6e0ee">
                    <tr align="center">
                        <td style="height: 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="2" style="text-align: center">
                <asp:Panel ID="pnlCaracteristicasConfiguracao" 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="lnkCaracteristicasConfiguracaoSair" runat="server">Sair</asp:LinkButton>
                        </td>
                    </tr>
                    <tr>
                        <td style="height: 20px; background-color: #d6e0ee; text-align: center">
                            <asp:Label ID="Label12" runat="server" Font-Size="X-Small" Text="Características"></asp:Label>&nbsp;&nbsp;
                            </td>
                    </tr> 
                    <tr>
                    <td>
                        <asp:Label ID="RotuloCaracteristicasDescGrupo" runat="server" Text="Grupo:" Visible="False"></asp:Label>&nbsp;
                        <asp:TextBox ID="txtCaracteristicasDescGrupo" runat="server" BorderWidth="1px" Font-Size="X-Small" 
                                    Width="200px" Visible="False"></asp:TextBox>&nbsp;
                        <asp:ImageButton ID="btnCaracteristicasGrupo" runat="server" 
                            ImageUrl="~/Imagens/Add2.png" ToolTip="Inserir Novo Grupo." Visible="False" />&nbsp;
                        <%--<asp:Label ID="RotuloCaracteristicasCodigo" runat="server" Text="Código:" Visible="False"></asp:Label>&nbsp;
                        <asp:TextBox ID="txtCaracteristicasCodigo" runat="server" BorderWidth="1px" Font-Size="X-Small" 
                                    Width="30px" Visible="False"></asp:TextBox>&nbsp;--%>
                        <asp:Label ID="RotuloCaracteristicasDescricao" runat="server" Text="Descrição:" Visible="False"></asp:Label>&nbsp;
                        <asp:TextBox ID="txtCaracteristicasDescricao" runat="server" BorderWidth="1px" Font-Size="X-Small" 
                                    Width="200px" Visible="False"></asp:TextBox>&nbsp;
                        <asp:Label ID="RotuloCaracteristicasTamanho" runat="server" Text="Tamanho:" Visible="False"></asp:Label>&nbsp;
                        <asp:TextBox ID="txtCaracteristicasTamanho" runat="server" BorderWidth="1px" Font-Size="X-Small" 
                                    Width="20px" Visible="False"></asp:TextBox>&nbsp;
                        <asp:ImageButton ID="btnCaracteristicasNovaCaracteristica" runat="server" 
                            ImageUrl="~/Imagens/Add2.png" ToolTip="Inserir Nova Característica." Visible="False" />&nbsp;
                        <asp:ImageButton ID="btnCaracteristicasGravar" runat="server" 
                            ImageUrl="~/Imagens/Edit2.png" ToolTip="Alterar dados." Width="16px" Visible="False" />
                        <br /> <br />

                        <asp:GridView ID="grdDadosCaracteristicas" 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="DescGrupo" HeaderText="Grupo" />
                            <asp:BoundField DataField="CodigoCaracteristica" HeaderText="Código" />
                            <asp:BoundField DataField="Descricao" HeaderText="Descrição" />
                            <asp:TemplateField HeaderText="Tipo">
                                <ItemTemplate>
                                <asp:DropDownList ID="DropTiposCampos" runat="server" AutoPostBack="True" 
                                    Font-Size="X-Small" CssClass="drop" Height="15px" onload="DropTiposCampos_Load" 
                                    onselectedindexchanged="DropTiposCampos_SelectedIndexChanged">
                                </asp:DropDownList>
                                </span>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="">
                                <ItemTemplate>
                                    <table cellpadding="0" cellspacing="0" class="style3">
                                        <tr>
                                        <td>
                                            <asp:imagebutton ID="btnTabelaCaracteristicas" runat="server"   
                                                Height="12px" OnClick="btnTabelaCaracteristicas_Click" ImageUrl="~/Imagens/Edit2.png" ToolTip="Editar Tabela." Width="12px" />
                                        </td>
                                        </tr>
                                    </table>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Unidades">
                                <ItemTemplate>
                                <asp:DropDownList ID="dropCaracteristicasUnidades" runat="server" AutoPostBack="True" 
                                    Font-Size="X-Small" CssClass="drop" Height="15px" onload="dropCaracteristicasUnidades_Load" 
                                    onselectedindexchanged="dropCaracteristicasUnidades_SelectedIndexChanged" >
                                </asp:DropDownList>
                                </span>
                                </ItemTemplate>                            
                            </asp:TemplateField>
                            <asp:BoundField DataField="Dimensao" HeaderText="Tamanho"/>
                            <asp:BoundField DataField="Unidades" HeaderText=""/>
                            <asp:BoundField DataField="Tipo" HeaderText="" />
                            <asp:BoundField DataField="Grupo2" 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="RotuloCaracteristicasTabelaCodigo" runat="server" Text="Código:" Visible="False"></asp:Label>&nbsp;
                        <asp:TextBox ID="txtCaracteristicasTabelaCodigo" runat="server" BorderWidth="1px" Font-Size="X-Small" 
                                    Width="30px" Visible="False"></asp:TextBox>&nbsp;
                        <asp:Label ID="RotuloCaracteristicasTabelaDescricao" runat="server" Text="Descrição:" Visible="False"></asp:Label>&nbsp;
                        <asp:TextBox ID="txtCaracteristicasTabelaDescricao" runat="server" BorderWidth="1px" Font-Size="X-Small" 
                                    Width="200px" Visible="False"></asp:TextBox>&nbsp;
                        <asp:ImageButton ID="btnCaracteristicasTabelaInserir" runat="server" 
                            ImageUrl="~/Imagens/Add2.png" ToolTip="Inserir novo registo." Visible="False" />&nbsp;
                        <asp:ImageButton ID="btnCaracteristicasTabelaAlterar" runat="server" 
                            ImageUrl="~/Imagens/Edit2.png" ToolTip="Alterar dados." Width="16px" Visible="False" />
                        <br /> <br />

                        <asp:GridView ID="grdDadosCaracteristicasTabela" runat="server" CellPadding="4" HorizontalAlign="Center" 
                                PageSize="4" Width="582px" AutoGenerateColumns="False" Visible="False">
                            <Columns>
                            <asp:CommandField SelectText="" ShowSelectButton="True" ButtonType="Image" SelectImageUrl="~/Imagens/Edit2.png" 
                                        DeleteImageUrl="~/Imagens/Delete2.png" ShowDeleteButton="True" />
                                <asp:BoundField DataField="Codigo" HeaderText="Código" />
                                <asp:BoundField DataField="Descricao" HeaderText="Descrição" />
                            </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">
                <asp:GridView ID="grdDados" runat="server" AutoGenerateColumns="False" CellPadding="4" 
                            ForeColor="#333333" GridLines="Vertical" Width="100%" AllowPaging="True" 
                            PageSize="12">
                <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                <Columns>
                    <asp:CommandField SelectText="&gt;" ShowSelectButton="True" ButtonType="Image" 
                        DeleteImageUrl="~/Imagens/Delete2.png" SelectImageUrl="~/Imagens/Edit2.png" 
                        ShowDeleteButton="True" />
                    <asp:BoundField DataField="NumeroEmpregado" HeaderText="Núm" />
                    <asp:BoundField DataField="Nome" HeaderText="Nome" />
                    <asp:BoundField DataField="Emissor" HeaderText="Emissor" />
                    <%--<asp:TemplateField HeaderText="Emissor">
                    <ItemTemplate>
                        <asp:DropDownList ID="dropEmissor" runat="server" AutoPostBack="True" 
                            Font-Size="X-Small" CssClass="drop" Height="19px" onload="dropEmissor_Load" 
                            onselectedindexchanged="dropEmissor_SelectedIndexChanged" >
                        </asp:DropDownList>
                        </span>
                    </ItemTemplate>                            
                    </asp:TemplateField>--%>
                    <asp:TemplateField HeaderText="Ordem Trabalho">
                    <ItemTemplate>
                        <asp:DropDownList ID="dropOrdemTrabalho" runat="server" AutoPostBack="True" 
                            Font-Size="X-Small" CssClass="drop" Height="19px" onload="dropOrdemTrabalho_Load" 
                            onselectedindexchanged="dropOrdemTrabalho_SelectedIndexChanged" >
                        </asp:DropDownList>
                        </span>
                    </ItemTemplate>                            
                    </asp:TemplateField>
                    <asp:BoundField DataField="Ordem Trabalho" HeaderText="Ordem Trabalho" ReadOnly="True" />
                    <asp:BoundField DataField="Oficina" HeaderText="Oficina" ReadOnly="True" />
                    <%--<asp:TemplateField HeaderText="Oficina">
                    <ItemTemplate>
                        <asp:DropDownList ID="dropOficina" runat="server" AutoPostBack="True" 
                            Font-Size="X-Small" CssClass="drop" Height="19px" onload="dropOficina_Load" 
                            onselectedindexchanged="dropOficina_SelectedIndexChanged" >
                        </asp:DropDownList>
                        </span>
                    </ItemTemplate>                            
                    </asp:TemplateField>--%>
                    <asp:TemplateField HeaderText="Fase">
                    <ItemTemplate>
                        <asp:DropDownList ID="dropFase" runat="server" AutoPostBack="True" 
                            Font-Size="X-Small" CssClass="drop" Height="19px" onload="dropFase_Load" 
                            onselectedindexchanged="dropFase_SelectedIndexChanged" >
                        </asp:DropDownList>
                        </span>
                    </ItemTemplate>                            
                    </asp:TemplateField>
                    <asp:BoundField DataField="Data" HeaderText="Data" ReadOnly="True" />
                    <asp:BoundField DataField="DataHoraInicio" HeaderText="In&#237;cio" />
                    <asp:BoundField DataField="DataHoraFim" HeaderText="Fim" />
                    <%--<asp:BoundField DataField="NumeroHoras" HeaderText="Horas" />--%>
                    <asp:TemplateField HeaderText="Horas">
                        <ItemTemplate>
                            <table cellpadding="0" cellspacing="0" class="style1">
                                <tr>
                                    <td>
                                        <asp:Button ID="btnNumeroHorasMenos" runat="server" Font-Bold="True" Font-Size="Small" 
                                            Height="20px" OnClick="btnNumeroHorasMenos_Click" Text="-" 
                                            ToolTip="Diminuir." Width="20px" Visible="False" />
                                    </td>
                                    <td style="text-align: center">
                                        <asp:Label ID="lblNumeroHoras" runat="server" Text='<%# Bind("NumeroHoras") %>'
                                            Width="40px"></asp:Label>
                                    </td>
                                    <td>
                                        <asp:Button ID="btnNumeroHorasMais" runat="server" Font-Bold="True" Font-Size="Small"
                                            Height="20px" OnClick="btnNumeroHorasMais_Click" Text="+" 
                                            ToolTip="Aumentar." Width="20px" Visible="False" />
                                    </td>
                                </tr>
                            </table>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="ValorMo" HeaderText="Valor Mo" />
                    <asp:TemplateField HeaderText="Quantidade">
                        <ItemTemplate>
                            <table cellpadding="0" cellspacing="0" class="style1">
                                <tr>
                                    <td>
                                        <asp:Button ID="btnMenos" runat="server" Font-Bold="True" Font-Size="Small" 
                                            Height="20px" OnClick="btnMenos_Click" Text="-" 
                                            ToolTip="Diminuir." Width="20px" />
                                    </td>
                                    <td style="text-align: center">
                                        <asp:Label ID="lblQuantidade" runat="server" Text='<%# Bind("Quantidade") %>'
                                            Width="40px"></asp:Label>
                                    </td>
                                    <td>
                                        <asp:Button ID="btnMais" runat="server" Font-Bold="True" Font-Size="Small"
                                            Height="20px" OnClick="btnMais_Click" Text="+" 
                                            ToolTip="Aumentar." Width="20px" />
                                    </td>
                                </tr>
                            </table>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Tipo de horas">
                    <ItemTemplate>
                        <asp:DropDownList ID="dropExtrasObras" runat="server" AutoPostBack="True" 
                            Font-Size="X-Small" CssClass="drop" Height="19px" onload="dropExtrasObras_Load" 
                            onselectedindexchanged="dropExtrasObras_SelectedIndexChanged" >
                        </asp:DropDownList>
                        </span>
                    </ItemTemplate>                            
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Mat.">
                        <ItemTemplate>
                            <table cellpadding="0" cellspacing="0" class="style3">
                                <tr>
                                <td>
                                    <asp:imagebutton ID="btnMateriaisInserir" runat="server" Font-Bold="True" Font-Size="Small" 
                                        Height="12px" OnClick="btnMateriaisInserir_Click" ImageUrl="~/Imagens/Edit2.png" ToolTip="Inserir Materiais." Width="12px" />
                                    <asp:Label ID="lblMateriais" runat="server" />
                                    <asp:imagebutton ID="btnMateriais" runat="server"  
                                        Height="12px" OnClick="btnMateriaisVer_Click" ImageUrl="~/Imagens/Materiais1.png" ToolTip="Meios Materiais." Width="12px" Visible="False" />
                                </td>
                                </tr>
                            </table>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="ValorMateriais" HeaderText="Valor Mat." />
                        <asp:TemplateField HeaderText="Notas">
                            <ItemTemplate>
                                <table cellpadding="0" cellspacing="0" class="style1">
                                    <tr>
                                    <td>
                                        <asp:Label ID="lblNotasPontoObras" runat="server" />
                                        <asp:imagebutton ID="btnNotasPontoObras" runat="server" Font-Bold="True"  
                                            Height="12px" OnClick="btnNotasPontoObras_Click" ImageUrl="~/Imagens/Edit2.png" ToolTip="Editar notas." Width="12px" />
                                    </td>
                                    </tr>
                                </table>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Exportado">
                            <ItemTemplate>
                                <asp:DropDownList ID="DropExportado" runat="server" AutoPostBack="True" 
                                    onselectedindexchanged="DropExportado_SelectedIndexChanged" 
                                    SelectedValue='<%# Bind("Exportado") %>' Font-Size="X-Small" Height="19px">
                                    <asp:ListItem></asp:ListItem>
                                    <asp:ListItem Value="0">Não</asp:ListItem>
                                    <asp:ListItem Value="1">Sim</asp:ListItem>
                                </asp:DropDownList>
                            </ItemTemplate>
                        </asp:TemplateField>
                    <%--<asp:BoundField DataField="Notas" HeaderText="Notas"/>--%>
                    <asp:BoundField DataField="CodigoExtra" HeaderText="CodigoExtra" />
                    <asp:BoundField DataField="Emissor2" HeaderText="Emissor2" />
                    <asp:BoundField DataField="OrdemTrabalho" HeaderText="OrdemTrabalho" />
                    <asp:BoundField DataField="Oficina2" HeaderText="Oficina2" />
                    <asp:BoundField DataField="Fase" HeaderText="Codigo Fase" />
                    <asp:BoundField DataField="NumeroEmpregado2" HeaderText="" />
                    <asp:BoundField DataField="DataHoraInicio2" HeaderText="" />
                    <asp:BoundField DataField="Contador" HeaderText="" />
                    <asp:BoundField DataField="NumeroHoras" HeaderText="" />
                    <asp:BoundField DataField="Manual" HeaderText="" />
                    <asp:BoundField DataField="SaidaMaterial" HeaderText="" /> 
                    <asp:BoundField DataField="IdObjecto" HeaderText="" /> 
                    <asp:BoundField DataField="Tipo" HeaderText="" /> 
                    <asp:BoundField DataField="CodigoMaterial" HeaderText="" /> 
                    <asp:BoundField DataField="UnidadeMovimentacao" HeaderText="" /> 
                    <asp:BoundField DataField="Exportado" HeaderText="" /> 
                    <asp:BoundField DataField="Data2" HeaderText="" /> 
                </Columns>
                <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                <EditRowStyle BackColor="#999999" />
                <PagerSettings Visible="true"  Position="Bottom" Mode="NextPreviousFirstLast" FirstPageImageUrl="~/Imagens/SetaPrimeiro.png" PreviousPageImageUrl="~/Imagens/SetaEsquerda.png" NextPageImageUrl="~/Imagens/SetaDireita.png" LastPageImageUrl="~/Imagens/SetaUltimo.png" />
                <PagerStyle BackColor="#F7F6F3" ForeColor="#5D7B9D" Font-Size="Small" HorizontalAlign="Center" />
                <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                </asp:GridView>
            </td>
        </tr>

        <tr> <td style="height: 10px; background-color: White;"> </td> </tr>
        <tr>
            <td colspan="2" style="height: 12px" align="right" >
            <asp:Panel ID="pnlOpcoesRodape" runat="server" Visible="True" Width="100%" BackColor="#5d7b9d">
                <asp:ImageButton ID="btnOpcoesCampos" runat="server"  ImageUrl="~/Imagens/Config.png" ToolTip="Configurar ocultação campos/colunas"/>&nbsp;
                <asp:Label ID="RotuloVisualizar" runat="server" Text="Visualizar " ForeColor="White"></asp:Label>&nbsp;
                <asp:DropDownList ID="cboTotais" runat="server" Font-Size="X-Small" 
                    BackColor="White" ForeColor="Black" AutoPostBack="True">
                    <asp:ListItem Value="0">Sem Totais</asp:ListItem>
                    <asp:ListItem Value="1">Totais Empregado</asp:ListItem>
                    <asp:ListItem Value="2">Totais Ordem Trabalho</asp:ListItem>
                </asp:DropDownList>&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>

