<%@ page language="VB" masterpagefile="~/MasterPage.master" autoeventwireup="false" inherits="UtentesIntervencoes, App_Web_rcw0rzfz" title="Cronos - Módulo web" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table border="0" cellpadding="0" cellspacing="0" style="width: 100%;"> <%--style="width: 100%; height: 50%;--%>
        <tr>
            <td align="left" colspan="2" 
                style="height: 20px; background-color: #5d7b9d; text-align: center">
            <asp:Label ID="TituloPessoal" runat="server" Font-Bold="True" Font-Size="X-Small" ForeColor="Yellow" Text="Lista de Utentes - Intervenções"></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="lnkInserir" runat="server" ImageUrl="~/Imagens/Add.png" ToolTip="Inserir nova intervenção" Width="30px"/>
                <%--<asp:ImageButton ID="btnPessoal" runat="server" ImageUrl="~/Imagens/Pessoal.png" PostBackUrl="~/Pessoal.aspx" ToolTip="Lista de Pessoal" Width="30px"/>--%>
                <asp:ImageButton ID="btnImportacaoDados" runat="server" ImageUrl="~/Imagens/Importar2.png" EnableTheming="False" ToolTip="Importar dados externos (Ficheiro *.txt ou *.csv)" Width="30px"/>
                <asp:ImageButton ID="btnTabelasAuxiliares" runat="server" ImageUrl="~/Imagens/Tabelas.png" ToolTip="Configurar tabelas auxiliares" Width="30px" Visible="True"/>
                <asp:ImageButton ID="btnOpenOffice" runat="server" ImageUrl="~/Imagens/OpenOffice.png" ToolTip="Exportar para Csv / Open Office" Width="30px"/>
                <asp:ImageButton ID="btnExcel" runat="server" ImageUrl="~/Imagens/Excel.png" ToolTip="Exportar para Excel" Width="30px"/>
                <asp:ImageButton ID="btnWord" runat="server" ImageUrl="~/Imagens/Word.png" ToolTip="Exportar para Word" Width="30px"/>
                <asp:ImageButton ID="btnImprimir" runat="server" ImageUrl="~/Imagens/print.gif" ToolTip="Imprimir" OnClientClick="target=''" Width="30px"/>
            </td>
        </tr>
        <tr>
            <td colspan="2" 
                style="height: 20px; background-color: White; text-align: center"> 
                <asp:Label ID="lblMsg" runat="server" Visible="False" BackColor="White"></asp:Label> 
                <asp:Label ID="lblFiltroContador" runat="server" Visible="False" BackColor="White"></asp:Label>&nbsp;
               <asp:Label ID="lblIndex" runat="server" Visible="False">NumeroEmpregado</asp:Label>&nbsp;
                <asp:Label ID="lblIndexRelogios" runat="server" Visible="False">Numero</asp:Label>&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>
            </td>
        </tr>

        <tr>
            <td colspan="2" style="text-align: center">  
                <asp:Panel ID="pnlEditNotas" runat="server" Width="100%" Visible="False">
                    <table border="0" cellpadding="0" cellspacing="0" style="border-right: black 1px solid;
                        border-top: black 1px solid; border-left: black 1px solid; width: 100%; border-bottom: black 1px solid;
                        background-color: #d6e0ee">
                        <tr>
                            <td colspan="36" style="height: 20px; background-color: #d6e0ee; text-align: center">
                                <br />
                                <asp:Label ID="RotuloData" runat="server" Text="Data:"></asp:Label>&nbsp;
                                <asp:TextBox ID="txtData" runat="server" BorderColor="Black" BorderWidth="1px" Font-Size="X-Small" Width="66px"></asp:TextBox>&nbsp;&nbsp;
                                <asp:Label ID="RotuloNotas" runat="server" Text="Notas:"></asp:Label>&nbsp;
                                <asp:TextBox ID="txtNotas" runat="server" BorderColor="Black" BorderWidth="1px" 
                                    Font-Size="X-Small" Width="500px" ></asp:TextBox>&nbsp;&nbsp;
                                <asp:ImageButton ID="btnEliminarPdf" runat="server" 
                                    ImageUrl="~/Imagens/Delete2.png" ToolTip="Eliminar documento 'pdf'." Visible="True" />&nbsp;&nbsp;
                                <%--<asp:ImageButton ID="btnNotasPdf" runat="server" 
                                    ImageUrl="~/Imagens/Pdf.png" ToolTip="Anexar documento 'pdf'." Visible="True" />&nbsp;&nbsp;--%>
                                <asp:LinkButton ID="lnkGravarNotas" runat="server">Gravar / Sair</asp:LinkButton>&nbsp;
                                <%--<asp:LinkButton ID="lnkGravarNotasTodosRegistosSeleccionados" runat="server">Inserir em todos os registos seleccionados.</asp:LinkButton>--%>
                                <br />
                            </td>
                        </tr>
                        <tr>
                            <td colspan="36" style="height: 20px; background-color: #d6e0ee; text-align: center">
                                <br />
                                <asp:Label ID="RotuloFileUploadDocumento" runat="server" Text="Anexar documento 'pdf':"></asp:Label>&nbsp;
                                <asp:FileUpload ID="FileUploadDocumento" runat="server" ToolTip="Documento" 
                                    BackColor="#F7F6F3" CssClass="icon" Font-Size="Small" Width="600px" 
                                    Visible="True" />
                                <br /> <br />
                            </td>
                        </tr>
                    </table>
                </asp:Panel>
            </td>
        </tr>

        <tr>
            <td colspan="2" style="text-align: center">  
            <asp:Panel ID="pnlEdit" runat="server" Visible="False" Width="100%">
                <table border="0" cellpadding="0" cellspacing="0" style="border-right: black 1px solid;
                        border-top: black 1px solid; border-left: black 1px solid; width: 100%; border-bottom: black 1px solid;
                        background-color: #d6e0ee">
                    <tr>
                        <td style="height: 12px; text-align: center"><asp:Label ID="lblAccao" runat="server" Visible="False"></asp:Label></td>                 
                    </tr>
                    <tr>
                    <td style="height: 20px; background-color: #d6e0ee; text-align: center">
                        <asp:Label ID="RotuloEmpregadoEdit" runat="server" Text="Empregado:"></asp:Label>&nbsp;
                        <asp:TextBox ID="txtNumeroEmpregado" runat="server" BorderColor="Black" BorderWidth="1px" Font-Size="X-Small" Width="47px"></asp:TextBox>&nbsp;&nbsp;
                        <asp:Label ID="RotuloNome" runat="server" Text="Nome:"></asp:Label>&nbsp;
                        <asp:TextBox ID="txtNome" runat="server" BorderColor="Black" BorderWidth="1px" 
                            Font-Size="X-Small" Width="192px" style="margin-left: 0px"></asp:TextBox>&nbsp;&nbsp;
                        <asp:Label ID="RotuloNomeAbreviado" runat="server" Text="Nome abreviado:"></asp:Label>&nbsp;
                        <asp:TextBox ID="txtNomeAbreviado" runat="server" BorderColor="Black" BorderWidth="1px" 
                            Font-Size="X-Small" Width="100px" style="margin-left: 0px"></asp:TextBox>&nbsp;&nbsp;
                        <asp:Label ID="RotuloAdmissao" runat="server" Text="Admissão:"></asp:Label>&nbsp;
                        <asp:TextBox ID="txtAdmissao" runat="server" BorderColor="Black" 
                            BorderWidth="1px" Font-Size="X-Small" Width="66px" TextMode="SingleLine" ></asp:TextBox>&nbsp;&nbsp;
                        <asp:Label ID="RotuloDemissao" runat="server" Text="Demissão:"></asp:Label>
                        <asp:TextBox ID="txtDemissao" runat="server" BorderColor="Black" BorderWidth="1px" Font-Size="X-Small" Width="66px"></asp:TextBox>&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:LinkButton ID="lnkGravar" runat="server">Gravar</asp:LinkButton>&nbsp;&nbsp;
                        <asp:LinkButton ID="lnkCancelar" runat="server">Sair</asp:LinkButton>
                    </td>
                    </tr>

                    <tr>
                        <td style="text-align: center">  
                        <asp:Panel ID="pnlEditLinha2" runat="server" Visible="False" Width="100%">
                        <%--<tr>--%>
                        <%--<td style="height: 20px; background-color: #d6e0ee; text-align: center">--%>
                            <asp:Label ID="RotuloBI" runat="server" Text="BI:"></asp:Label>&nbsp;
                            <asp:TextBox ID="txtBI" runat="server" BorderColor="Black" BorderWidth="1px" Font-Size="X-Small" Width="66px"></asp:TextBox>&nbsp;&nbsp;
                            <asp:Label ID="RotuloNif" runat="server" Text="Nif:"></asp:Label>&nbsp;
                            <asp:TextBox ID="txtNif" runat="server" BorderColor="Black" BorderWidth="1px" Font-Size="X-Small" Width="66px"></asp:TextBox>&nbsp;&nbsp;
                            <asp:Label ID="RotuloDataNascimento" runat="server" Text="Data Nascimento:"></asp:Label>&nbsp;
                            <asp:TextBox ID="txtDataNascimento" runat="server" BorderColor="Black" BorderWidth="1px" Font-Size="X-Small" Width="66px"></asp:TextBox>
                            <asp:Label ID="RotuloEstadoCivil" runat="server" Text="Estado Civil:"></asp:Label>&nbsp;
                            <asp:DropDownList ID="cboEstadoCivil" runat="server" Font-Size="X-Small" Width="120px"></asp:DropDownList>&nbsp;&nbsp;
                            <asp:Label ID="RotuloTelefone" runat="server" Text="Tel.:"></asp:Label>&nbsp;
                            <asp:TextBox ID="txtTelefone" runat="server" BorderColor="Black" BorderWidth="1px" Font-Size="X-Small" Width="66px"></asp:TextBox>&nbsp;&nbsp;
                            <asp:Label ID="RotuloTelemovel" runat="server" Text="TM:"></asp:Label>&nbsp;
                            <asp:TextBox ID="txtTelemovel" runat="server" BorderColor="Black" BorderWidth="1px" Font-Size="X-Small" Width="66px"></asp:TextBox>&nbsp;&nbsp;
                        <%--</td>--%>
                        <%--</tr>--%>
                        </asp:Panel>
                    </td>
                    </tr>

                    <tr>
                        <td style="text-align: center">  
                        <asp:Panel ID="pnlEditLinha3" runat="server" Visible="False" Width="100%">
                        <%--<tr>
                        <td style="height: 20px; background-color: #d6e0ee; text-align: center">--%>
                            <asp:Label ID="RotuloMorada" runat="server" Text="Morada:"></asp:Label>&nbsp;
                            <asp:TextBox ID="txtMorada" runat="server" BorderColor="Black" BorderWidth="1px" Font-Size="X-Small" Width="300px"></asp:TextBox>&nbsp;&nbsp;
                            <asp:Label ID="RotuloCodigoPostal" runat="server" Text="Cód Postal:"></asp:Label>&nbsp;
                            <asp:DropDownList ID="cboCodigoPostal" runat="server" Font-Size="X-Small" Width="120px"></asp:DropDownList>&nbsp;&nbsp;
                            <asp:Label ID="RotuloEMail" runat="server" Text="E-Mail"></asp:Label>&nbsp;
                            <asp:TextBox ID="txtEMail0" runat="server" BorderColor="Black" BorderWidth="0px" Font-Size="X-Small" Width="0px" ></asp:TextBox>
                            <asp:TextBox ID="txtEMail" runat="server" BorderColor="Black" BorderWidth="1px" Font-Size="X-Small" Width="200px"></asp:TextBox>&nbsp;&nbsp;
                        <%--</td>
                        </tr>--%>
                        </asp:Panel>
                    </td>
                    </tr>

                    <tr>
                        <td style="text-align: center">  
                        <asp:Panel ID="pnlEditLinha4" runat="server" Visible="False" Width="100%">
                        <%--<tr>
                        <td style="height: 20px; background-color: #d6e0ee; text-align: center">--%>
                            <asp:Label ID="RotuloCartao1" runat="server" Text="Nº Cartão 1:"></asp:Label>&nbsp;
                            <asp:TextBox ID="TxtCartao1" runat="server" BorderColor="Black" BorderWidth="1px" Font-Size="X-Small" Width="66px"></asp:TextBox>&nbsp;&nbsp;
                            <asp:Label ID="RotuloCartao2" runat="server" Text="Nº Cartão 2:"></asp:Label>&nbsp;
                            <asp:TextBox ID="TxtCartao2" runat="server" BorderColor="Black" BorderWidth="1px" Font-Size="X-Small" Width="66px"></asp:TextBox>&nbsp;&nbsp;
                            <asp:Label ID="RotuloNumeroExterno" runat="server" Text="Nº externo:"></asp:Label>&nbsp;
                            <asp:TextBox ID="TxtNumeroExterno" runat="server" BorderColor="Black" BorderWidth="1px" Font-Size="X-Small" Width="66px"></asp:TextBox>
                        <%--</td>
                        </tr>--%>
                        </asp:Panel>
                    </td>
                    </tr>

                    <tr>
                        <td style="text-align: center">  
                        <asp:Panel ID="pnlEditHorario" runat="server" Visible="False" Width="100%">
                        <%--<tr>
                            <td style="text-align: center">--%>
                                <asp:Label ID="RotuloHorario" runat="server" Text="Horário:"></asp:Label>&nbsp;
                                <asp:DropDownList ID="cboHorario" runat="server" Font-Size="X-Small" >
                                </asp:DropDownList>&nbsp;&nbsp;
                                <asp:Label ID="RotuloTurno" runat="server" Text="Turno:"></asp:Label>&nbsp;
                                <asp:DropDownList ID="cboTurno" runat="server" Font-Size="X-Small" > </asp:DropDownList>&nbsp;&nbsp;
                                <asp:Label ID="RotuloDataVigor" runat="server" Text="Data em Vigor:"></asp:Label>&nbsp;
                                <asp:TextBox ID="txtDataVigor" runat="server" BorderColor="Black" 
                                    BorderWidth="1px" Enabled="False" Font-Size="X-Small" Width="60px" Wrap="False"></asp:TextBox>&nbsp;
                                <asp:Label ID="RotuloHoraInicioSubTurno" runat="server" Text="Início Sub. Nocturno:"></asp:Label>&nbsp;
                                <asp:TextBox ID="txtHoraInicioSubTurno" runat="server" BorderColor="Black" 
                                    BorderWidth="1px" Font-Size="X-Small" Width="30px"></asp:TextBox>
                                <br /> <br />
                            <%--</td>
                        </tr>--%>
                        </asp:Panel>
                    </td>
                    </tr>

                    <asp:Panel ID="pnlCaracteristicas" runat="server" Visible="False" Width="100%">
                    <tr>
                        <td style="height: 20px; background-color: #d6e0ee; text-align: center">
                            <asp:Label ID="Label2" runat="server" Text="Características / Outros dados"></asp:Label>
                        </td>
                    </tr> 
                    <tr>
                        <td style="height: 20px; background-color: #d6e0ee; text-align: center">
                            <asp:Label ID="RotuloCaracteristica1" runat="server" Text="Característica 1:" Visible="False"></asp:Label>&nbsp;
                            <asp:TextBox ID="txtCaracteristica1" runat="server" BorderColor="Black" 
                                BorderWidth="1px" Font-Size="X-Small" Width="150px" Visible="False"></asp:TextBox>&nbsp;&nbsp;
                            <asp:Label ID="RotuloCaracteristica2" runat="server" Text="Característica 2:" Visible="False"></asp:Label>&nbsp;
                            <asp:TextBox ID="txtCaracteristica2" runat="server" BorderColor="Black" 
                                BorderWidth="1px" Font-Size="X-Small" Width="150px" Visible="False"></asp:TextBox>&nbsp;&nbsp;
                            <asp:Label ID="RotuloCaracteristica3" runat="server" Text="Característica 3:" Visible="False"></asp:Label>&nbsp;
                            <asp:TextBox ID="txtCaracteristica3" runat="server" BorderColor="Black" 
                                BorderWidth="1px" Font-Size="X-Small" Width="150px" Visible="False"></asp:TextBox>&nbsp;&nbsp;
                            <asp:Label ID="RotuloCaracteristica4" runat="server" Text="Característica 4:" Visible="False"></asp:Label>&nbsp;
                            <asp:TextBox ID="txtCaracteristica4" runat="server" BorderColor="Black" 
                                BorderWidth="1px" Font-Size="X-Small" Width="150px" Visible="False"></asp:TextBox>&nbsp;&nbsp;
                            <asp:Label ID="RotuloCaracteristica5" runat="server" Text="Característica 5:" Visible="False"></asp:Label>&nbsp;
                            <asp:TextBox ID="txtCaracteristica5" runat="server" BorderColor="Black" 
                                BorderWidth="1px" Font-Size="X-Small" Width="150px" Visible="False"></asp:TextBox>&nbsp;&nbsp;
                            <asp:Label ID="RotuloCaracteristica6" runat="server" Text="Característica 6:" Visible="False"></asp:Label>&nbsp;
                            <asp:TextBox ID="txtCaracteristica6" runat="server" BorderColor="Black" 
                                BorderWidth="1px" Font-Size="X-Small" Width="150px" Visible="False"></asp:TextBox>
                        </td>
                    </tr>
                    </asp:Panel>


                    <tr>
                        <td style="height: 20px; background-color: #d6e0ee; text-align: center">
                            <asp:Label ID="RotuloCentrosCusto" runat="server" Text="Acessos / permissões por Centro Custo"></asp:Label>
                        </td>
                    </tr> 
                    <tr>
                    <td style="height: 20px; background-color: #d6e0ee; text-align: center">
                            <asp:Label ID="RotuloUtilizador" runat="server" Text="Utilizador:"></asp:Label>&nbsp;
                            <asp:TextBox ID="TxtUtilizador" runat="server" BorderColor="Black" 
                                BorderWidth="1px" Font-Size="X-Small" Width="100px" ></asp:TextBox>
                            <asp:TextBox ID="TxtUtilizador2" runat="server" Font-Size="X-Small" Width="0px" Visible="True"></asp:TextBox>&nbsp;&nbsp;
                            <asp:Label ID="RotuloGrupo" runat="server" Text="Grupo:"></asp:Label>&nbsp;
                            <asp:DropDownList ID="cboGrupo" runat="server" Font-Size="X-Small" ></asp:DropDownList>&nbsp;&nbsp;
                            <asp:Label ID="RotuloLogin" runat="server" Text="Login:"></asp:Label>&nbsp;
                            <asp:DropDownList ID="cboLogin" runat="server" Font-Size="X-Small" ></asp:DropDownList>&nbsp;&nbsp;
                            <asp:Label ID="RotuloPassWord" runat="server" Text="Palavra-passe:"></asp:Label>&nbsp;
                            <asp:TextBox ID="TxtPassWord0" runat="server" BorderColor="Black" 
                                BorderWidth="0px" Font-Size="X-Small" Width="0px" TextMode="Password"></asp:TextBox>
                            <asp:TextBox ID="TxtPassWord" runat="server" BorderColor="Black" 
                                BorderWidth="1px" Font-Size="X-Small" Width="100px" TextMode="Password"></asp:TextBox>&nbsp;
                            <asp:Label ID="RotuloNivelPassword2" runat="server" Height="16px" Text="" ></asp:Label>
                    </td>
                    </tr>
                    <tr>
                        <td style="height: 20px; background-color: #d6e0ee; text-align: center">
                            <asp:Label ID="RotuloInserirCentroCusto" runat="server" Text="Inserir centro custo:"></asp:Label>&nbsp;
                            <asp:DropDownList ID="cboCentroCusto" runat="server" Font-Size="X-Small" 
                                    Width="300px" ></asp:DropDownList>&nbsp;&nbsp;&nbsp;&nbsp;
                            <asp:ImageButton ID="btnCentroCustoNovoRegisto" runat="server" 
                                ImageUrl="~/Imagens/Add2.png" ToolTip="Gravar acesso ao centro custo seleccionado." />
                            <br /> <br />
                            <asp:GridView ID="grdDadosCentrosCusto" runat="server" 
                                AutoGenerateColumns="False" CellPadding="4" HorizontalAlign="Center" 
                                    PageSize="4" Width="680px">
                                <Columns>
                                    <asp:CommandField ButtonType="Image" DeleteImageUrl="~/Imagens/Delete2.png" ShowDeleteButton="True" />
                                    <asp:BoundField DataField="DescCentroCusto" HeaderText="Centro Custo" />
                                    <asp:BoundField DataField="CentroCusto" 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>

                    <asp:Panel ID="pnlEditAmamentacao" runat="server" Visible="False" Width="100%">
                        <tr>
                            <td style="height: 20px; background-color: #d6e0ee; text-align: center">
                                <asp:Label ID="RotuloTituloAmamentacao" runat="server" 
                                    Text="Períodos de Amamentação"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td style="height: 20px; background-color: #d6e0ee; text-align: center">
                                <asp:Label ID="RotuloAmamentacao" runat="server" Text="Amamentação:"></asp:Label>
                                &nbsp;
                                <asp:DropDownList ID="cboAmamentacao" runat="server" AutoPostBack="True" 
                                    Font-Size="X-Small">
                                </asp:DropDownList>
                                &nbsp;&nbsp;
                                <asp:Label ID="RotuloHoras" runat="server" Text="Horas:"></asp:Label>
                                &nbsp;
                                <asp:TextBox ID="txtHoras" runat="server" BorderColor="Black" BorderWidth="1px" 
                                    Enabled="True" Font-Size="X-Small" Width="30px" Wrap="False"></asp:TextBox>
                                &nbsp;&nbsp;
                                <asp:Label ID="RotuloTurnoDataDataInicio" runat="server" Text="Data início:"></asp:Label>
                                &nbsp;
                                <asp:TextBox ID="txtDataInicio" runat="server" BorderColor="Black" 
                                    BorderWidth="1px" Enabled="True" Font-Size="X-Small" Width="60px" Wrap="False"></asp:TextBox>
                                &nbsp;&nbsp;
                                <asp:Label ID="RotuloTurnoDataDataFim" runat="server" Text="Data fim:"></asp:Label>
                                &nbsp;
                                <asp:TextBox ID="txtDataFim" runat="server" BorderColor="Black" 
                                    BorderWidth="1px" Enabled="True" Font-Size="X-Small" Width="60px" Wrap="False"></asp:TextBox>
                                &nbsp;&nbsp;&nbsp;&nbsp;
                                <asp:ImageButton ID="btnAmamentacaoNovoRegisto" runat="server" 
                                    ImageUrl="~/Imagens/Add2.png" ToolTip="Novo registo." />&nbsp;&nbsp;
                                <br />  <br />
                                <asp:GridView ID="grdDadosAmamentacao" runat="server" AllowPaging="True" 
                                    AutoGenerateColumns="False" CellPadding="4" HorizontalAlign="Center" 
                                    PageSize="4" Width="680px">
                                    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                    <Columns>
                                        <asp:CommandField ButtonType="Image" DeleteImageUrl="~/Imagens/Delete2.png" 
                                            SelectImageUrl="~/Imagens/Edit2.png" SelectText="" ShowDeleteButton="True" 
                                            ShowSelectButton="False" />
                                        <asp:TemplateField HeaderText="Amamentação">
                                            <ItemTemplate>
                                                <asp:DropDownList ID="dropAmamentacao" runat="server" AutoPostBack="True" 
                                                    CssClass="drop" Font-Size="X-Small" Height="19px" onload="dropAmamentacao_Load" 
                                                    onselectedindexchanged="dropAmamentacao_SelectedIndexChanged" Width="200px">
                                                </asp:DropDownList>
                                                </span>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:BoundField DataField="ToleranciaDia" HeaderText="Horas" />
                                        <asp:BoundField DataField="DataInicio" HeaderText="Data Início" />
                                        <asp:BoundField DataField="DataFim" HeaderText="Data Fim" />
                                        <asp:BoundField DataField="Turno" HeaderText="" />
                                        <asp:BoundField DataField="Horario" HeaderText="" />
                                    </Columns>
                                    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                                    <EditRowStyle BackColor="#999999" />
                                    <PagerSettings FirstPageImageUrl="~/Imagens/SetaPrimeiro.png" 
                                        LastPageImageUrl="~/Imagens/SetaUltimo.png" Mode="NextPreviousFirstLast" 
                                        NextPageImageUrl="~/Imagens/SetaDireita.png" Position="Bottom" 
                                        PreviousPageImageUrl="~/Imagens/SetaEsquerda.png" Visible="true" />
                                    <PagerStyle BackColor="#F7F6F3" Font-Size="Small" ForeColor="#5D7B9D" 
                                        HorizontalAlign="Center" />
                                    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                                    <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                                </asp:GridView>
                            </td>
                        </tr>
                    </asp:Panel>

                    <asp:Panel ID="pnlEditSubsidios" runat="server" Visible="False" Width="100%" HorizontalAlign="Center">
                        <tr>
                            <td style="height: 20px; background-color: #d6e0ee; text-align: center">
                                <asp:Label ID="Label9" runat="server" Text="Subsídios mensais"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td style="height: 20px; background-color: #d6e0ee; text-align: center">
                                <asp:Label ID="RotuloSubsidios" runat="server" Text="Subsídios:"></asp:Label>
                                &nbsp;
                                <asp:DropDownList ID="cboSubsidio1" runat="server" AutoPostBack="True" 
                                    Font-Size="X-Small">
                                </asp:DropDownList>
                                &nbsp;&nbsp;
                                <asp:DropDownList ID="cboSubsidio2" runat="server" AutoPostBack="True" 
                                    Font-Size="X-Small">
                                </asp:DropDownList>
                                &nbsp;&nbsp;
                                <asp:DropDownList ID="cboSubsidio3" runat="server" AutoPostBack="True" 
                                    Font-Size="X-Small">
                                </asp:DropDownList>
                                &nbsp;&nbsp;
                                <br />
                                <br />
                            </td>
                        </tr>
                    </asp:Panel>

                    </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="2" style="text-align: center">

                <asp:Panel ID="pnlEditAlterarDePara" runat="server" Width="100%" Visible="False">
                    <table border="0" cellpadding="0" cellspacing="0" style="border-right: black 1px solid;
                        border-top: black 1px solid; border-left: black 1px solid; width: 100%; border-bottom: black 1px solid;
                        background-color: #d6e0ee">
                        <tr>
                            <td colspan="34" style="height: 20px; background-color: #d6e0ee;" align="left">
                                <asp:Label ID="RotuloCampoAlterarDePara" 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="34" style="height: 20px; background-color: #d6e0ee; text-align: center">
                            <asp:Label ID="RotuloAlterarDe" runat="server" Text="Alterar de: " ></asp:Label>&nbsp;
                            <asp:TextBox ID="txtAlterarDe" runat="server" BorderColor="Black" 
                                    BorderWidth="1px" Font-Size="X-Small" Width="38px" Visible="False"></asp:TextBox>&nbsp;&nbsp;
                            <asp:DropDownList ID="cboAlterarDe" runat="server" Font-Size="X-Small" 
                                    Width="195px" Visible="False"></asp:DropDownList>&nbsp;&nbsp;
                            <asp:Label ID="RotuloAlterarPara" runat="server" Text="Para: " ></asp:Label>&nbsp;
                            <asp:TextBox ID="TxtAlterarPara" runat="server" BorderColor="Black" 
                                    BorderWidth="1px" Font-Size="X-Small" Width="38px" Visible="False"></asp:TextBox>&nbsp;&nbsp;
                            <asp:DropDownList ID="cboAlterarPara" runat="server" Font-Size="X-Small" 
                                    Width="195px" Visible="False"></asp:DropDownList>&nbsp;&nbsp;
                            <asp:Label ID="RotuloFuncao" runat="server" Text="Alterar todos os utilizadores seleccionados, para palavra-passe: " ></asp:Label>&nbsp;
                            <asp:TextBox ID="txtResetPassWord" runat="server" BorderColor="Black" 
                                    BorderWidth="1px" Font-Size="X-Small" Width="100px" Visible="False"></asp:TextBox>&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>
            </td>
            </tr>

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

                            <asp:Label ID="RotuloCorTabelaAuxiliar" runat="server" Text="Cor:" 
                                Visible="False" ></asp:Label>&nbsp;
                            <asp:TextBox ID="txtCorTabelaAuxiliar" runat="server" BorderColor="Black" BorderWidth="1px" 
                                Font-Size="X-Small" Width="60px" Visible="False" ></asp:TextBox>&nbsp;&nbsp;
                            <asp:ImageButton ID="btnCorTabelaAuxiliar" runat="server" 
                                    ImageUrl="~/Imagens/Edit2.png" ToolTip="Escolher cor" Width="16px" />&nbsp;&nbsp;
                            <asp:Label ID="RotuloDigitosPassword" runat="server" Text="Min. Dígitos Palavra-passe:" 
                                Visible="False" ></asp:Label>&nbsp;
                            <asp:TextBox ID="txtDigitosPassword" runat="server" BorderColor="Black" BorderWidth="1px" 
                                Font-Size="X-Small" Width="15px" Visible="False" ></asp:TextBox>&nbsp;&nbsp;
                            <asp:Label ID="RotuloNivelPassword" runat="server" Text="Complexidade:" Visible="False" ></asp:Label>&nbsp;
                            <asp:DropDownList ID="cboNivelPassword" runat="server" Font-Size="X-Small" BackColor="White" ForeColor="Black">
                                <asp:ListItem Value="0">Livre</asp:ListItem>
                                <asp:ListItem Value="1">Letras e Números</asp:ListItem>
                                <asp:ListItem Value="2">Maiúsculas/Minúsculas/Números</asp:ListItem>
                                <asp:ListItem Value="3">Maiúsc./Minúsc./Núm./Símbolos</asp:ListItem>
                            </asp:DropDownList>&nbsp;

                            <asp:LinkButton ID="lnkTabelaAuxiliarGravar" runat="server">Gravar</asp:LinkButton>&nbsp;&nbsp;
                            <asp:ImageButton ID="btnTabelaAuxiliarNovoFiltro" runat="server" 
                                ImageUrl="~/Imagens/Add2.png" ToolTip="Novo filtro." />&nbsp;&nbsp;
                            <asp:ImageButton ID="btnTabelaAuxiliarAlterarFiltro" runat="server" 
                                ImageUrl="~/Imagens/Edit2.png" ToolTip="Alterar filtro." Width="16px" />&nbsp;&nbsp;
                            <asp:LinkButton ID="lnkTabelaAuxiliarSair" runat="server">Sair</asp:LinkButton>
                            <br /> <br />
                            <asp:Label ID="RotuloOrdenacao" runat="server" Text="Ordenação dos dados:" Visible="False"></asp:Label>&nbsp;
                            <asp:DropDownList ID="cboCampo1Ordenacao" runat="server" Font-Size="X-Small" 
                                        Visible="False"> </asp:DropDownList>&nbsp;
                            <br />  <br />
                            <asp:GridView ID="grdDadosCores" runat="server" CellPadding="4" HorizontalAlign="Center" 
                                    PageSize="4" Width="702px" AutoGenerateColumns="False" 
                                Visible="False" >
                                <Columns>
                                    <asp:CommandField SelectText="" ShowSelectButton="True" ButtonType="Image" 
                                        SelectImageUrl="~/Imagens/Edit2.png" />
                                    <asp:BoundField DataField="ID" HeaderText="ID" />
                                    <asp:BoundField DataField="Cor" HeaderText="Cor" />
                                    <asp:BoundField DataField="Codigo" HeaderText="Código" />
                                    <asp:TemplateField HeaderText="Activa">
                                        <ItemTemplate>
                                            <asp:CheckBox ID="chkActiva" runat="server" AutoPostBack="True" OnCheckedChanged="chkActiva_Clicked" />
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:BoundField DataField="Activa" HeaderText="CpoActiva" />
                                </Columns>
                                <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                                <EditRowStyle BackColor="#999999" />
                                <PagerSettings Visible="true"  Position="Bottom" Mode="NextPreviousFirstLast" FirstPageImageUrl="~/Imagens/SetaPrimeiro.png" PreviousPageImageUrl="~/Imagens/SetaEsquerda.png" NextPageImageUrl="~/Imagens/SetaDireita.png" LastPageImageUrl="~/Imagens/SetaUltimo.png" />
                                <PagerStyle BackColor="#F7F6F3" ForeColor="#5D7B9D" Font-Size="Small" HorizontalAlign="Center" />
                                <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                                <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                            </asp:GridView>

                            <asp:GridView ID="grdDadosTabelasAuxiliares" runat="server" CellPadding="4" HorizontalAlign="Center" 
                                    PageSize="4" Width="702px" Visible="False" RowStyle-HorizontalAlign="Left">
                                <Columns>
                                    <asp:CommandField SelectText="" ShowSelectButton="True" ButtonType="Image" 
                                        SelectImageUrl="~/Imagens/Edit2.png" 
                                        DeleteImageUrl="~/Imagens/Delete2.png" ShowDeleteButton="True" />
                                </Columns>
                                <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                                <EditRowStyle BackColor="#999999" />
                                <PagerSettings Visible="true"  Position="Bottom" Mode="NextPreviousFirstLast" FirstPageImageUrl="~/Imagens/SetaPrimeiro.png" PreviousPageImageUrl="~/Imagens/SetaEsquerda.png" NextPageImageUrl="~/Imagens/SetaDireita.png" LastPageImageUrl="~/Imagens/SetaUltimo.png" />
                                <PagerStyle BackColor="#F7F6F3" ForeColor="#5D7B9D" Font-Size="Small" HorizontalAlign="Center" />
                                <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                                <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                            </asp:GridView>
                            <asp:GridView ID="grdDadosTabelaAuxiliarCentroCusto" runat="server" 
                                CellPadding="4" HorizontalAlign="Center" 
                                    PageSize="4" Width="702px" AutoGenerateColumns="False" Visible="False">
                                <Columns>
                                    <asp:CommandField SelectText="" ShowSelectButton="True" ButtonType="Image" 
                                        SelectImageUrl="~/Imagens/Edit2.png" 
                                        DeleteImageUrl="~/Imagens/Delete2.png" ShowDeleteButton="True" />
                                    <asp:BoundField DataField="CentroCusto" HeaderText="Centro Custo" />
                                    <asp:BoundField DataField="Descricao" HeaderText="Descrição" />
                                    <asp:TemplateField HeaderText="Zona Territorial">
                                    <ItemTemplate>
                                        <asp:DropDownList ID="dropZonaTerritorial" runat="server" AutoPostBack="True" 
                                            Font-Size="X-Small" CssClass="drop" Height="19px" onload="dropZonaTerritorial_Load" 
                                            onselectedindexchanged="dropZonaTerritorial_SelectedIndexChanged">
                                        </asp:DropDownList>
                                        </span>
                                    </ItemTemplate>                            
                                    </asp:TemplateField>
                                    <asp:BoundField DataField="ZonaTerritorial" HeaderText="" />
                                </Columns>
                                <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                                <EditRowStyle BackColor="#999999" />
                                <PagerSettings Visible="true"  Position="Bottom" Mode="NextPreviousFirstLast" FirstPageImageUrl="~/Imagens/SetaPrimeiro.png" PreviousPageImageUrl="~/Imagens/SetaEsquerda.png" NextPageImageUrl="~/Imagens/SetaDireita.png" LastPageImageUrl="~/Imagens/SetaUltimo.png" />
                                <PagerStyle BackColor="#F7F6F3" ForeColor="#5D7B9D" Font-Size="Small" HorizontalAlign="Center" />
                                <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                                <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                            </asp:GridView>
                            <asp:GridView ID="grdDadosTabelaAuxiliarGruposPermissoes" runat="server" CellPadding="4" HorizontalAlign="Center" 
                                    PageSize="4" Width="582px" AutoGenerateColumns="False">
                                <Columns>
                                    <asp:BoundField DataField="DescGrupo" HeaderText="Grupo" />
                                    <asp:BoundField DataField="Descricao" HeaderText="Opção" />
                                    <asp:BoundField DataField="Descricao2" HeaderText="Sub. Opção" />
                                    <asp:TemplateField HeaderText="Activo/Ler">
                                        <ItemTemplate>
                                            <asp:CheckBox ID="chkLer" runat="server" AutoPostBack="True" OnCheckedChanged="chkLer_Clicked" />
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Alterar">
                                        <ItemTemplate>
                                            <asp:CheckBox ID="chkAlterar" runat="server" AutoPostBack="True" OnCheckedChanged="chkAlterar_Clicked" />
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Inserir">
                                        <ItemTemplate>
                                            <asp:CheckBox ID="chkInserir" runat="server" AutoPostBack="True" OnCheckedChanged="chkInserir_Clicked" />
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Apagar">
                                        <ItemTemplate>
                                            <asp:CheckBox ID="chkApagar" runat="server" AutoPostBack="True" OnCheckedChanged="chkApagar_Clicked" />
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Pessoal">
                                        <ItemTemplate>
                                            <asp:CheckBox ID="chkPessoal" runat="server" AutoPostBack="True" OnCheckedChanged="chkPessoal_Clicked" />
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:BoundField DataField="IdGrupo" HeaderText="" />
                                    <asp:BoundField DataField="Opcao" HeaderText="" />
                                    <asp:BoundField DataField="Ler" HeaderText="" />
                                    <asp:BoundField DataField="Alterar" HeaderText="" />
                                    <asp:BoundField DataField="Inserir" HeaderText="" />
                                    <asp:BoundField DataField="Apagar" HeaderText="" />
                                    <asp:BoundField DataField="Pessoal" HeaderText="" />
                                    <asp:BoundField DataField="LerVisivel" HeaderText="" />
                                    <asp:BoundField DataField="AlterarVisivel" HeaderText="" />
                                    <asp:BoundField DataField="InserirVisivel" HeaderText="" />
                                    <asp:BoundField DataField="ApagarVisivel" HeaderText="" />
                                    <asp:BoundField DataField="PessoalVisivel" 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>
                        <asp:GridView ID="grdDadosOpcoesFiltros" runat="server"  
                                AutoGenerateColumns="False" CellPadding="4" HorizontalAlign="Center" 
                                    PageSize="4" Width="600px">
                        <Columns>
                            <asp:CommandField SelectText="" ShowSelectButton="True" ButtonType="Image" SelectImageUrl="~/Imagens/Edit2.png" 
                                        DeleteImageUrl="~/Imagens/Delete2.png" ShowDeleteButton="True" />
                            <asp:BoundField DataField="Descricao" HeaderText="Filtro" />
                            <asp:TemplateField HeaderText="Activo">
                                <ItemTemplate>
                                    <asp:CheckBox ID="chkFiltroActivo" runat="server" AutoPostBack="True" OnCheckedChanged="chkFiltroActivo_Clicked" />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField DataField="Filtro" HeaderText="" />
                            <asp:BoundField DataField="Activo" HeaderText="" />
                        </Columns>
                        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                        <EditRowStyle BackColor="#999999" />
                        <PagerSettings Visible="true"  Position="Bottom" Mode="NextPreviousFirstLast" FirstPageImageUrl="~/Imagens/SetaPrimeiro.png" PreviousPageImageUrl="~/Imagens/SetaEsquerda.png" NextPageImageUrl="~/Imagens/SetaDireita.png" LastPageImageUrl="~/Imagens/SetaUltimo.png" />
                        <PagerStyle BackColor="#F7F6F3" ForeColor="#5D7B9D" Font-Size="Small" HorizontalAlign="Center" />
                        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                        </asp:GridView>

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

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

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

            <tr>
            <td colspan="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="lnkSairOpcoesCampos" 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="pnlSisMensagens" 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="LinkButton1" runat="server">Sair</asp:LinkButton>
                        </td>
                    </tr>
                    <tr>
                        <td 
                            style="height: 10px; background-color: White; text-align: center" 
                            align="left"> 
                            <asp:Label ID="Label7" runat="server" Visible="False" BackColor="White"></asp:Label> 
                        </td>
                    </tr>
                    <tr>
                        <td style="height: 20px; background-color: #d6e0ee; text-align: center">
                            <asp:Label ID="Label8" 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="grdDadosSisMensagens" runat="server" CellPadding="4" HorizontalAlign="Center" 
                                    PageSize="4" Width="582px" AutoGenerateColumns="False">
                                <Columns>
                                    <asp:BoundField DataField="Msg" HeaderText="Original" />
                                    <asp:BoundField DataField="MsgPortugues" HeaderText="Português" />
                                    <asp:BoundField DataField="MsgEspanhol" HeaderText="Espanhol" />
                                    <asp:BoundField DataField="MsgFrances" HeaderText="Francês" />
                                    <asp:BoundField DataField="MsgIngles" HeaderText="Inglês" />
                                </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">
        <asp:GridView ID="grdDados" runat="server" AutoGenerateColumns="False" CellPadding="4" ForeColor="#333333" GridLines="Vertical" Width="100%" AllowPaging="True" >
        <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="Data" HeaderText="Data" />
            <asp:TemplateField HeaderText="Notas">
                <ItemTemplate>
                    <table cellpadding="0" cellspacing="0" class="style3">
                        <tr>
                        <td>
                            <asp:Label ID="lblNotas" runat="server" />
                            <asp:imagebutton ID="btnNotas" runat="server" Font-Bold="True" Font-Size="Small" 
                                Height="12px" OnClick="btnNotas_Click" ImageUrl="~/Imagens/Edit2.png" ToolTip="Editar notas." Width="12px" />
                        </td>
                        </tr>
                    </table>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="doc.">
                <ItemTemplate>
                    <table cellpadding="0" cellspacing="0" class="style3">
                        <tr>
                        <td>
                            <asp:imagebutton ID="btnPdf" runat="server" Font-Bold="True" Font-Size="Small" 
                                Height="12px" OnClick="btnVerPdf_Click" ImageUrl="~/Imagens/pdf.png" ToolTip="Baixar documento 'Pdf'." Width="12px" />
                        </td>
                        </tr>
                    </table>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="Memo" HeaderText="" />
            <asp:BoundField DataField="IdObjecto" HeaderText="" />
            <asp:BoundField DataField="TemImagem" HeaderText="" />
        </Columns>
        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
        <EditRowStyle BackColor="#999999" />
        <PagerSettings Visible="true"  Position="Bottom" Mode="NextPreviousFirstLast" FirstPageImageUrl="~/Imagens/SetaPrimeiro.png" PreviousPageImageUrl="~/Imagens/SetaEsquerda.png" NextPageImageUrl="~/Imagens/SetaDireita.png" LastPageImageUrl="~/Imagens/SetaUltimo.png" />
        <PagerStyle BackColor="#F7F6F3" ForeColor="#5D7B9D" Font-Size="Small" HorizontalAlign="Center" />
        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
        </asp:GridView>
            </td>
        </tr>

        <tr>
            <td colspan="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" 
                    Visible="False"/>&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="Label4" 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="Label6" 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>

