<%@ page language="VB" masterpagefile="~/MasterPage.master" autoeventwireup="false" inherits="ConfiguracaoGeral, App_Web_o3elpl0s" title="Cronos - Módulo web" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table border="0" cellpadding="0" cellspacing="0" style="width: 100%;">
        <tr>
            <td align="left" colspan="2" 
                style="height: 20px; background-color: #5d7b9d; text-align: center">
                <asp:Label ID="Label5" runat="server" Font-Bold="True" Font-Size="X-Small" ForeColor="Yellow" Text="Configuração geral"></asp:Label></td>
        </tr>
        <tr>
            <td style="height: 20px; background-color: #5d7b9d; text-align: left" >
                <asp:Label ID="RotuloFiltro" runat="server" Text="Filtro:" ForeColor= "White" ></asp:Label>
                <asp:DropDownList ID="txtFiltro" runat="server" BackColor="#D6E0EE" Font-Size="X-Small"  AutoPostBack="True">
                <asp:ListItem></asp:ListItem></asp:DropDownList>&nbsp;
                <asp:Label ID="LabelValor1" runat="server" Text="Valor: " ForeColor="White" Visible="False"></asp:Label>
                <asp:TextBox ID="txtFiltroValor1" runat="server" Font-Size="X-Small" Visible="False" Width="55px"></asp:TextBox>
                <asp:DropDownList ID="cboCampo1" runat="server" AutoPostBack="True" Font-Size="X-Small" Visible="False" ></asp:DropDownList>
                <asp:ImageButton ID="btnPesquisarCampo1" runat="server" ImageUrl="~/Imagens/LupaMais.png" ToolTip="Pesquisar" Visible="False" />
                <asp:ImageButton ID="btnOcultarPesquisarCampo1" runat="server" ImageUrl="~/Imagens/LupaMenos.png" ToolTip="Ocultar pesquisa" Visible="False" />&nbsp;
                <asp: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="lnkGruposPermissoes" runat="server" ImageUrl="~/Imagens/GruposPermissoes.png" ToolTip="Grupos Utilizadores / Permissões" Width="30px" Visible="True"/>
                <asp:ImageButton ID="lnkAlterardePara" runat="server" ImageUrl="~/Imagens/Edit.png" ToolTip="Alteração em bloco" 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 "> 
                <asp:Label ID="lblMsg" runat="server" Visible="False" BackColor="White"></asp:Label>&nbsp;
                <asp:Label ID="lblMsg2" runat="server" Visible="False" BackColor="White"></asp:Label>&nbsp;
                <asp:Label ID="lblMsg3" runat="server" Visible="False" BackColor="White"></asp:Label> &nbsp;
                <asp:LinkButton ID="EmailbtnMailEnvioReconfirmar" runat="server" Visible="False">Confirmar</asp:LinkButton>&nbsp;&nbsp;
                <asp:Label ID="lblIndex" runat="server" Visible="False">NumeroEmpregado</asp:Label>&nbsp;
                <asp:Label ID="lblSqlFiltro" runat="server" Visible="False" BackColor="White"></asp:Label>&nbsp;
                <asp:Label ID="lblFiltroContador" runat="server" Visible="False" BackColor="White"></asp:Label>&nbsp;
                <asp:Label ID="lblDataInicio" runat="server" Visible="False" BackColor="White"></asp:Label>&nbsp;
                <asp:Label ID="lblDataFim" runat="server" Visible="False" BackColor="White"></asp:Label>&nbsp;
                <asp:Label ID="lblEmpregadoEmEdicao" runat="server" Visible="False" BackColor="White"></asp:Label>&nbsp;
                <asp:Label ID="lblAccao" runat="server" Visible="False"></asp:Label>&nbsp;
                <asp:Label ID="lblCentrosCusto" runat="server" Visible="False"></asp:Label>&nbsp;
                <asp:Label ID="lblEvento" runat="server" BackColor="White" Visible="False"></asp:Label>
                <asp:Label ID="lblEsta_Opcao" runat="server" Visible="False"></asp:Label> 
                <asp:Label ID="lblFiltro" runat="server" Font-Size="Small" ForeColor="Red" 
                    Visible="False"></asp:Label>
            </td>
        </tr>

        <tr>
        <td colspan="2" style="text-align: center">
            <asp:Panel ID="pnlEditArredondamentos" runat="server" Visible="True" Width="100%">
                <table border="0" cellpadding="0" cellspacing="0" style="border-right: black 1px solid;
                        border-top: black 1px solid; border-left: black 1px solid; width: 100%; border-bottom: black 1px solid;
                        background-color: #d6e0ee">
                    <tr>
                        <td style="height: 20px; background-color: #d6e0ee; text-align: center">
                            <asp:Label ID="RotuloArredondamentoExtras" runat="server" Text="Arredondamento de horas extraordinárias"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td style="height: 20px; background-color: #d6e0ee; text-align: center">
                            <br />
                            <asp:Label ID="RotuloArredondarExtrasPara" runat="server" Text="Arredondar para:"></asp:Label>&nbsp;
                            <asp:TextBox ID="txtArredondarExtrasPara" runat="server" BorderColor="Black" BorderWidth="1px" 
                                Enabled="True" Font-Size="X-Small" Width="38px" Wrap="False"></asp:TextBox>&nbsp;&nbsp;
                            <asp:Label ID="RotuloArredondarExtrasDepoisDe" runat="server" Text="Depois de:"></asp:Label>&nbsp;
                            <asp:TextBox ID="txtArredondarExtrasDepoisDe" runat="server" BorderColor="Black" 
                                BorderWidth="1px" Font-Size="X-Small" Width="38px" Wrap="False"></asp:TextBox>&nbsp;&nbsp;
                            <asp:CheckBox ID="ChkArredondamentoParcial" runat="server" Text="Arredondamento por períodos:" TextAlign="Left" />&nbsp;&nbsp;
                            <asp:Label ID="RotuloLimiteInferiorTempoExtra" runat="server" Text="Tempo mínimo:"></asp:Label>&nbsp;
                            <asp:TextBox ID="txtLimiteInferiorTempoExtra" runat="server" BorderColor="Black" 
                                BorderWidth="1px" Font-Size="X-Small" Width="38px" Wrap="False"></asp:TextBox>&nbsp;&nbsp;
                            <asp:Label ID="RotuloLimiteAnualExtras" runat="server" Text="Tempo máximo anual:"></asp:Label>&nbsp;
                            <asp:TextBox ID="txtLimiteAnualExtras" runat="server" BorderColor="Black" 
                                BorderWidth="1px" Font-Size="X-Small" Width="38px" Wrap="False"></asp:TextBox>&nbsp;&nbsp;
                            <asp:CheckBox ID="ChkArredondarEntradaSaidaDia" runat="server" Text="Arredondar início / fim período:" TextAlign="Left" />&nbsp;&nbsp;&nbsp;&nbsp;
                            <asp:LinkButton ID="lnkArredondamentoExtrasGravar" runat="server">Gravar</asp:LinkButton>
                            <br />  <br />
                        </td>
                    </tr>
                    <tr>
                        <td style="height: 20px; background-color: #d6e0ee; text-align: center">
                            <asp:Label ID="RotuloArredondamentoFaltas" runat="server" Text="Arredondamento de faltas / ausências"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td style="height: 20px; background-color: #d6e0ee; text-align: center">
                            <br />
                            <asp:Label ID="RotuloArredondarFaltasPara" runat="server" Text="Arredondar para:"></asp:Label>&nbsp;
                            <asp:TextBox ID="txtArredondarFaltasPara" runat="server" BorderColor="Black" BorderWidth="1px" 
                                Enabled="True" Font-Size="X-Small" Width="38px" Wrap="False"></asp:TextBox>&nbsp;&nbsp;
                            <asp:Label ID="RotuloArredondarFaltasDepoisDe" runat="server" Text="Depois de:"></asp:Label>&nbsp;
                            <asp:TextBox ID="txtArredondarFaltasDepoisDe" runat="server" BorderColor="Black" 
                                BorderWidth="1px" Font-Size="X-Small" Width="38px" Wrap="False"></asp:TextBox>&nbsp;&nbsp;
                            <asp:Label ID="RotuloLimiteSuperiorTempoFalta" runat="server" Text="Só Faltas inferiores a:"></asp:Label>&nbsp;
                            <asp:TextBox ID="txtLimiteSuperiorTempoFalta" runat="server" BorderColor="Black" 
                                BorderWidth="1px" Font-Size="X-Small" Width="38px" Wrap="False"></asp:TextBox>&nbsp;&nbsp;&nbsp;&nbsp;
                            <asp:LinkButton ID="lnkArredondamentoFaltasGravar" runat="server">Gravar</asp:LinkButton>
                            <br />  <br />
                        </td>
                    </tr>
                </table>
            </asp:Panel>
        </td>
        </tr>

        <tr>
        <td colspan="2" style="text-align: center">
            <asp:Panel ID="pnlEditOutrasOpcoes" runat="server" Visible="True" Width="100%">
                <table border="0" cellpadding="0" cellspacing="0" style="border-right: black 1px solid;
                        border-top: black 1px solid; border-left: black 1px solid; width: 100%; border-bottom: black 1px solid;
                        background-color: #d6e0ee">
                    <tr>
                        <td style="height: 20px; background-color: #d6e0ee; text-align: center">
                            <asp:Label ID="RotuloOpcoesGerais" runat="server" Text="Opções gerais"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td style="height: 20px; background-color: #d6e0ee; text-align: center">
                            <br />
                            <asp:CheckBox ID="chkLerSemFiltrarData" runat="server" Text="Ler os pontos sem verificar data última recolha:" TextAlign="Left" />&nbsp;&nbsp;
                            <asp:CheckBox ID="chkLerNumerosNaoIdentificados" runat="server" Text="Ler números de empregados não identificados:" TextAlign="Left" />&nbsp;&nbsp;
                            <asp:Label ID="RotuloIntervaloPontosRepetidos" runat="server" Text="Ignorar pontos repetidos dentro do intervalo:"></asp:Label>&nbsp;
                            <asp:TextBox ID="txtIntervaloPontosRepetidos" runat="server" BorderColor="Black" 
                                BorderWidth="1px" Font-Size="X-Small" Width="38px" Wrap="False"></asp:TextBox>
                            <br /><br />
                            <%--<asp:CheckBox ID="chkInserirPontosEmFalta" runat="server" Text="Inserir automaticamente pontos em falta ao processar:" TextAlign="Left" />&nbsp;&nbsp;--%>
                            <asp:CheckBox ID="chkInterromperPeriodoTrab" runat="server" Text="Interromper Período Trab. na mudança dia:" TextAlign="Left" />&nbsp;&nbsp;
                            <asp:Label ID="RotuloFronteiraInicioFimDia" runat="server" Text="Fronteira para Início ou Fim do Dia Trab.:"></asp:Label>&nbsp;
                            <asp:TextBox ID="txtFronteiraInicioFimDia" runat="server" BorderColor="Black" 
                                BorderWidth="1px" Font-Size="X-Small" Width="38px" Wrap="False"></asp:TextBox>
                            <br /><br />
                            <asp:CheckBox ID="chkActualizarHorarioEmpregados" runat="server" Text="Actualizar Horário dos Empregados:" TextAlign="Left" />&nbsp;&nbsp;
                            <asp:CheckBox ID="chkProcessamentoVesperaFeriado" runat="server" Text="Activar configuração de horários em véspera de feriado:" TextAlign="Left" />&nbsp;&nbsp;
                            <asp:Label ID="RotuloPeriodicidadeEventos" runat="server" Text="Periodicidade para execução de eventos:"></asp:Label>&nbsp;
                            <asp:TextBox ID="txtPeriodicidadeEventos" runat="server" BorderColor="Black" 
                                BorderWidth="1px" Font-Size="X-Small" Width="48px" Wrap="False"></asp:TextBox>
                            <br /><br />
                            <asp:Label ID="RotuloExtraPeriodoDescanso" runat="server" Text="Tipo de cálculo de extras no período de descanso: "></asp:Label>&nbsp;
                            <asp:DropDownList ID="cboExtraPeriodoDescanso" runat="server" Font-Size="X-Small" BackColor="White" ForeColor="Black">
                                <asp:ListItem Value="0">Geral</asp:ListItem>
                                <asp:ListItem Value="1">Só na ausência de descanso registado</asp:ListItem>
                                <asp:ListItem Value="2">Só se tiver descanso registado</asp:ListItem>
                            </asp:DropDownList>&nbsp;
                            <asp:Label ID="RotuloProcessamentoAutomatico" runat="server" Text="Processamento automático:"></asp:Label>&nbsp;
                            <asp:DropDownList ID="cboProcessamentoAutomatico" runat="server" Font-Size="X-Small" BackColor="White" ForeColor="Black">
                                <asp:ListItem Value="0">Não activar processamento automático</asp:ListItem>
                                <asp:ListItem Value="1">Não incluir dia actual no proc. automático</asp:ListItem>
                                <asp:ListItem Value="2">Incluir dia actual no proc. automático</asp:ListItem>
                            </asp:DropDownList>
                            <br /><br />
                            <asp:Label ID="RotuloExtraFerias" runat="server" Text="Código extra para dia de férias:"></asp:Label>&nbsp;
                            <asp:DropDownList ID="cboExtraFerias" runat="server" Font-Size="X-Small" Enabled="True">
                            </asp:DropDownList>&nbsp;&nbsp;
                            <asp:Label ID="RotuloImprimirLogo" runat="server" Text="Imprimir logo nos relatórios:"></asp:Label>&nbsp;
                            <asp:DropDownList ID="cboImprimirLogo" runat="server" Font-Size="X-Small" 
                                BackColor="White" ForeColor="Black" AutoPostBack="True">
                                <asp:ListItem Value="0">Sem logo</asp:ListItem>
                                <asp:ListItem Value="1">Logo</asp:ListItem>
                                <asp:ListItem Value="2">Logo e nome</asp:ListItem>
                                <asp:ListItem Value="3">Sem logo nova página</asp:ListItem>
                                <asp:ListItem Value="4">Logo nova página</asp:ListItem>
                                <asp:ListItem Value="5">Logo e nome nova página</asp:ListItem>
                            </asp:DropDownList>&nbsp;&nbsp;
                            <asp:Label ID="RotuloRegistoObra" runat="server" Text="Registo Obra " ></asp:Label>&nbsp;
                            <asp:DropDownList ID="cboRegistoObra" runat="server" Font-Size="X-Small" 
                                BackColor="White" ForeColor="Black" AutoPostBack="True">
                                <asp:ListItem Value="0">Opção 0</asp:ListItem>
                                <asp:ListItem Value="1">Opção 1</asp:ListItem>
                                <asp:ListItem Value="2">Opção 2</asp:ListItem>
                            </asp:DropDownList>&nbsp;&nbsp;
                            <asp:Label ID="RotuloPenalizacaoBHFalhaPonto" runat="server" Text="Penalização BH por falha de ponto:"></asp:Label>&nbsp;
                            <asp:TextBox ID="txtPenalizacaoBHFalhaPonto" runat="server" BorderColor="Black" 
                                BorderWidth="1px" Font-Size="X-Small" Width="38px" Wrap="False"></asp:TextBox>&nbsp;&nbsp;&nbsp;&nbsp;
                            <br />  <br />
                            <asp:Label ID="RotuloExtraBaixa" runat="server" Text="Código extra para dia início de baixa:"></asp:Label>&nbsp;
                            <asp:DropDownList ID="cboExtraBaixa" runat="server" Font-Size="X-Small" Enabled="True">
                            </asp:DropDownList>&nbsp;&nbsp;

                            <asp:LinkButton ID="lnkOpcoesGeraisGravar" runat="server">Gravar</asp:LinkButton>
                            <br />  <br />
                        </td>
                    </tr>
                </table>
            </asp:Panel>

                <asp:Panel ID="pnlEditAlterarDePara" runat="server" Width="100%" Visible="False">
                    <table border="0" cellpadding="0" cellspacing="0" style="border-right: black 1px solid;
                        border-top: black 1px solid; border-left: black 1px solid; width: 100%; border-bottom: black 1px solid;
                        background-color: #d6e0ee">
                        <tr>
                            <td colspan="34" style="height: 20px; background-color: #d6e0ee;" align="left">
                                <asp:Label ID="RotuloCampo" runat="server" Text="Seleccionar Campo:"></asp:Label>&nbsp;
                                <asp:DropDownList ID="cboCampo" runat="server" AutoPostBack="True" 
                                    Font-Size="X-Small" Width="130px">
                                </asp:DropDownList>&nbsp;&nbsp;
                            </td>
                        </tr> 
                        <tr>
                            <td colspan="34" style="height: 20px; background-color: #d6e0ee; text-align: center">
                            <asp:Label ID="RotuloAlterarDe" runat="server" Text="Alterar de: " ></asp:Label>&nbsp;
                            <asp:TextBox ID="txtAlterarDe" runat="server" BorderColor="Black" 
                                    BorderWidth="1px" Font-Size="X-Small" Width="60px" Visible="False"></asp:TextBox>&nbsp;&nbsp;
                            <asp:DropDownList ID="cboAlterarDe" runat="server" Font-Size="X-Small" 
                                    Width="195px" AutoPostBack="True" 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="60px" Visible="False"></asp:TextBox>&nbsp;&nbsp;
                            <asp:DropDownList ID="cboAlterarPara" runat="server" Font-Size="X-Small" 
                                    Width="195px" AutoPostBack="True" Visible="False"></asp:DropDownList>&nbsp;&nbsp;
                            <asp:LinkButton ID="lnkConfirmarAlterarDePara" runat="server" Visible="False">Confirmar</asp:LinkButton>&nbsp;&nbsp;&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="pnlMeses" runat="server" Visible="True" Width="100%">
            <table border="0" cellpadding="0" cellspacing="0" style="border-right: black 1px solid;
                    border-top: black 1px solid; border-left: black 1px solid; width: 100%; border-bottom: black 1px solid;
                    background-color: #d6e0ee">
                <tr>
                    <td style="height: 20px; background-color: #d6e0ee; text-align: center">
                        <asp:Label ID="RotuloMeses" runat="server" Text="Meses processamento"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td colspan="2" style="background-color: #d6e0ee; text-align: center">
                        <br />
                        <asp:Label ID="RotuloDirAplicacao" runat="server" Text="Directoria da aplicação (CronosWs.exe) no servidor Web:"></asp:Label>&nbsp;
                        <asp:TextBox ID="txtDirAplicacao" runat="server" BorderColor="Black" BorderWidth="1px" 
                        Enabled="True" Font-Size="X-Small" Width="300px" Wrap="False"></asp:TextBox>&nbsp;&nbsp;
                        <br /> <br />
                        <asp:Label ID="RotuloMesesDataInicio" runat="server" Text="Início processamento:"></asp:Label>&nbsp;
                        <asp:TextBox ID="txtMesesDataInicio" runat="server" BorderColor="Black" BorderWidth="1px" 
                        Enabled="True" Font-Size="X-Small" Width="60px" Wrap="False"></asp:TextBox>&nbsp;&nbsp;
                        <asp:Label ID="RotuloMesesDataFim" runat="server" Text="Fim processamento:"></asp:Label>&nbsp;
                        <asp:TextBox ID="txtMesesDataFim" runat="server" BorderColor="Black" BorderWidth="1px" 
                        Enabled="True" Font-Size="X-Small" Width="60px" Wrap="False"></asp:TextBox>&nbsp;&nbsp;
                        <asp:Label ID="RotuloMesesDataBloqueio" runat="server" Text="Data bloqueio mês aberto:"></asp:Label>&nbsp;
                        <asp:TextBox ID="txtMesesDataBloqueio" runat="server" BorderColor="Black" BorderWidth="1px" 
                        Enabled="True" Font-Size="X-Small" Width="60px" Wrap="False"></asp:TextBox>&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:LinkButton ID="lnkMesesGravar" runat="server">Gravar</asp:LinkButton>
                        <br />  <br />
                    </td>
                </tr>
                <tr>
                <td style="height: 20px; background-color: #d6e0ee; text-align: center">
                <asp:GridView ID="grdDadosTabelaMeses" runat="server" CellPadding="4" ForeColor="#333333" 
                    Width="600px" GridLines="Vertical"  AllowPaging="True" PageSize="12" 
                        style="margin-top: 0px" AutoGenerateColumns="False" 
                    HorizontalAlign="Center" >
                    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <Columns>
                        <asp:CommandField SelectText="" ShowSelectButton="True" ButtonType="Image" 
                            SelectImageUrl="~/Imagens/Edit2.png" 
                            DeleteImageUrl="~/Imagens/Delete2.png" ShowDeleteButton="True" />
                        <asp:BoundField DataField="Ano" HeaderText="Ano" />
                        <asp:BoundField DataField="Mes" HeaderText="Mês" />
                        <asp:BoundField DataField="Abertura" HeaderText="Abertura" />
                        <asp:BoundField DataField="Fecho" HeaderText="Fecho" />
                        <asp:BoundField DataField="DataInicio" HeaderText="Inicio Proc." />
                        <asp:BoundField DataField="DataFim" HeaderText="Fim Proc." />
                        <asp:BoundField DataField="DataBloqueio" HeaderText="Data Bloqueio" />
                        <asp:TemplateField HeaderText="Situação">
                        <ItemTemplate>
                            <asp:DropDownList ID="dropSituacao" runat="server" AutoPostBack="True" 
                                Font-Size="X-Small" CssClass="drop" onload="dropSituacao_Load" 
                                onselectedindexchanged="dropSituacao_SelectedIndexChanged">
                            </asp:DropDownList>
                            </span>
                        </ItemTemplate>                            
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Consulta">
                        <ItemTemplate>
                            <asp:DropDownList ID="dropSituacao2" runat="server" AutoPostBack="True" 
                                Font-Size="X-Small" CssClass="drop" onload="dropSituacao2_Load" 
                                onselectedindexchanged="dropSituacao2_SelectedIndexChanged">
                            </asp:DropDownList>
                            </span>
                        </ItemTemplate>                            
                        </asp:TemplateField>
                        <asp:BoundField DataField="Situacao" HeaderText="" />
                        <asp:BoundField DataField="Situacao2" HeaderText="" />
                    </Columns>
                    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                    <EditRowStyle BackColor="#999999" />
                    <PagerSettings Visible="true"  Position="Bottom" Mode="NextPreviousFirstLast" FirstPageImageUrl="~/Imagens/SetaPrimeiro.png" PreviousPageImageUrl="~/Imagens/SetaEsquerda.png" NextPageImageUrl="~/Imagens/SetaDireita.png" LastPageImageUrl="~/Imagens/SetaUltimo.png" />
                    <PagerStyle BackColor="#F7F6F3" ForeColor="#5D7B9D" Font-Size="Small" HorizontalAlign="Center" />
                    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                    <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                </asp:GridView>
                       
                <br />  <br />
                </td>
            </tr>

            </table>
            </asp:Panel>

        </td>
        </tr>

        <tr>
        <td colspan="2" style="text-align: center">
            <asp:Panel ID="pnlGruposPermissoes" runat="server" Visible="True" Width="100%">
            <table border="0" cellpadding="0" cellspacing="0" style="border-right: black 1px solid;
                    border-top: black 1px solid; border-left: black 1px solid; width: 100%; border-bottom: black 1px solid;
                    background-color: #d6e0ee">
                <tr>
                    <td style="height: 20px; background-color: #d6e0ee; text-align: center">
                        <asp:Label ID="Label3" runat="server" Text="Grupos Utilizadores / Permissões"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td colspan="2" style="background-color: #d6e0ee; text-align: center">
                        <br />
                    <asp:Label ID="RotuloCodigoGruposPermissoes" runat="server" Text="Código:"></asp:Label>&nbsp;
                    <asp:TextBox ID="txtCodigoGruposPermissoes" runat="server" BorderColor="Black" BorderWidth="1px" 
                        Font-Size="X-Small" Width="100px"></asp:TextBox>&nbsp;
                    <asp:Label ID="RotuloDescricao" runat="server" Text="Descrição:"></asp:Label>&nbsp;
                    <asp:TextBox ID="txtDescricaoGruposPermissoes" runat="server" BorderColor="Black" BorderWidth="1px" 
                        Font-Size="X-Small" Width="235px"></asp:TextBox>&nbsp;
                    <asp:Label ID="RotuloDigitosPassword" runat="server" Text="Min. Dígitos Palavra-passe:"></asp:Label>&nbsp;
                    <asp:TextBox ID="txtDigitosPassword" runat="server" BorderColor="Black" BorderWidth="1px" 
                        Font-Size="X-Small" Width="15px"></asp:TextBox>&nbsp;&nbsp;
                    <asp:Label ID="RotuloNivelPassword" runat="server" Text="Complexidade:"></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:Label ID="RotuloNumOrdem" runat="server" Text="Ordenação:"></asp:Label>&nbsp;
                    <asp:TextBox ID="txtNumOrdem" runat="server" BorderColor="Black" BorderWidth="1px" 
                        Font-Size="X-Small" Width="60px"></asp:TextBox>&nbsp;&nbsp;
                    <asp:Label ID="RotuloConfirmacaoAusencias" runat="server" Text="Confirmação Ausências:"></asp:Label>&nbsp;&nbsp;
                    <asp:TextBox ID="txtConfirmacaoAusencias" runat="server" BorderColor="Black" BorderWidth="1px" 
                        Font-Size="X-Small" Width="60px"></asp:TextBox>&nbsp;&nbsp;

                    <asp:LinkButton ID="lnkGruposPermissoesGravar" runat="server">Gravar</asp:LinkButton>&nbsp;&nbsp;
                    <asp:LinkButton ID="lnkGruposPermissoesSair" runat="server">Sair</asp:LinkButton>
                    <br /> <br />
                    </td>
                </tr>
                <tr>
                <td style="height: 20px; background-color: #d6e0ee; text-align: center">

                <asp:GridView ID="grdDadosGruposPermissoes" runat="server" CellPadding="4" HorizontalAlign="Center" 
                        PageSize="4" Width="702px" RowStyle-HorizontalAlign="Left">
                    <Columns>
                        <asp:CommandField SelectText="" ShowSelectButton="True" ButtonType="Image" 
                            SelectImageUrl="~/Imagens/Edit2.png" 
                            DeleteImageUrl="~/Imagens/Delete2.png" ShowDeleteButton="True" />
                    </Columns>
                    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                    <EditRowStyle BackColor="#999999" />
                    <PagerSettings Visible="true"  Position="Bottom" Mode="NextPreviousFirstLast" FirstPageImageUrl="Imagens/SetaPrimeiro.png" PreviousPageImageUrl="Imagens/SetaEsquerda.png" NextPageImageUrl="Imagens/SetaDireita.png" LastPageImageUrl="Imagens/SetaUltimo.png" />
                    <PagerStyle BackColor="#F7F6F3" ForeColor="#5D7B9D" Font-Size="Small" HorizontalAlign="Center" />
                    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                    <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                </asp:GridView>
                <br />  <br />

                <asp:GridView ID="grdDadosGruposPermissoesSub" runat="server" 
                    CellPadding="4" HorizontalAlign="Center" 
                        PageSize="4" Width="582px" AutoGenerateColumns="False" 
                    AllowPaging="True">
                    <Columns>
                        <asp:CommandField SelectText="" ShowSelectButton="True" ButtonType="Image" 
                            SelectImageUrl="~/Imagens/Edit2.png" />
                        <asp:BoundField DataField="Ordem" HeaderText="Ord." />
                        <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="StrValor" HeaderText="Confirmação Ausências" />
                        <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>
                       
                <br />  <br />
                </td>
            </tr>

            </table>
            </asp:Panel>

        </td>
        </tr>

    </table>
</asp:Content>
