<%@ page language="VB" masterpagefile="~/MasterPage.master" autoeventwireup="false" inherits="ConfiguracaoGeral, App_Web_htuw1kf1" 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" 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="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="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="Label2" runat="server" Text="Dados gerais"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td style="height: 20px; background-color: #d6e0ee; text-align: center">
                            <br />
                            <asp:Label ID="RotuloNomeConta" runat="server" Text="Nome conta bancária:"></asp:Label>&nbsp;
                            <asp:TextBox ID="txtNomeConta" runat="server" 
                                BorderColor="Black" BorderWidth="1px" Font-Size="X-Small" Width="250px" 
                                Wrap="False"></asp:TextBox>&nbsp;&nbsp;
                            <br /> <br />
                            <asp:Label ID="RotuloContaOrdemNib" runat="server" Text="Conta á ordem Nib:"></asp:Label>&nbsp;
                            <asp:TextBox ID="txtContaOrdemNib" runat="server" 
                                BorderColor="Black" BorderWidth="1px" Font-Size="X-Small" Width="140px" 
                                Wrap="False"></asp:TextBox>&nbsp;&nbsp;
                            <asp:Label ID="RotuloContaOrdemIban" runat="server" Text="Iban:"></asp:Label>&nbsp;
                            <asp:TextBox ID="txtContaOrdemIban" runat="server" 
                                BorderColor="Black" BorderWidth="1px" Font-Size="X-Small" Width="165px" 
                                Wrap="False"></asp:TextBox>&nbsp;&nbsp;
                            <br /> <br />
                            <asp:Label ID="RotuloContaPrazoNib" runat="server" Text="Conta a prazo Nib:"></asp:Label>&nbsp;
                            <asp:TextBox ID="txtContaPrazoNib" runat="server" 
                                BorderColor="Black" BorderWidth="1px" Font-Size="X-Small" Width="140px" 
                                Wrap="False"></asp:TextBox>&nbsp;&nbsp;
                            <asp:Label ID="RotuloContaPrazoIban" runat="server" Text="Iban:"></asp:Label>&nbsp;
                            <asp:TextBox ID="txtContaPrazoIban" runat="server" 
                                BorderColor="Black" BorderWidth="1px" Font-Size="X-Small" Width="165px" 
                                Wrap="False"></asp:TextBox>&nbsp;&nbsp;&nbsp;&nbsp;

                            <br /> <br />
                            <br /> <br />
                            <asp:Label ID="RotuloSeguroPredio" runat="server" Text="Seguro do prédio:"></asp:Label>&nbsp;
                            <asp:TextBox ID="txtSeguroPredio" runat="server" 
                                BorderColor="Black" BorderWidth="1px" Font-Size="X-Small" Width="140px" 
                                Wrap="False"></asp:TextBox>&nbsp;&nbsp;
                            <asp:Label ID="RotuloIdObjectoData" runat="server" Text="Data início contracto:"></asp:Label>&nbsp;
                            <asp:TextBox ID="txtIdObjectoData" runat="server" BorderColor="Black" BorderWidth="1px" Font-Size="X-Small" Width="60px"></asp:TextBox>&nbsp;&nbsp;

                            <asp:ImageButton ID="btnBaixarDocumento" runat="server" 
                                    ImageUrl="~/Imagens/pdf.png" ToolTip="Baixar documento 'Pdf'." Width="16px" />&nbsp;&nbsp;
                            <asp:ImageButton ID="btnAnexarDocumento" runat="server" 
                                    ImageUrl="~/Imagens/Edit2.png" ToolTip="Anexar Documento" Width="16px" />&nbsp;&nbsp;
                            <asp:ImageButton ID="btnEliminarDocumento" runat="server" 
                                    ImageUrl="~/Imagens/Delete2.png" ToolTip="Eliminar Documento" Width="16px" />&nbsp;&nbsp;

                            <br /><br />
                            <asp:Label ID="RotuloFileUpload" runat="server" Text="Anexar documento 'pdf':" Visible="False"></asp:Label>&nbsp;
                            <asp:FileUpload ID="FileUploadPdf" runat="server" ToolTip="Documento" 
                                BackColor="#F7F6F3" CssClass="icon" Font-Size="Small" Width="600px" Visible="False" />&nbsp;&nbsp;
                            <br /><br />

                            <asp:LinkButton ID="lnkOpcoesGeraisGravar" runat="server">Gravar</asp:LinkButton>&nbsp;&nbsp;
                            <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;
                            <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="Anos"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td colspan="2" style="background-color: #d6e0ee; text-align: center">
                        <br />
                        <asp:Label ID="RotuloAnosAno" runat="server" Text="Ano:"></asp:Label>&nbsp;
                        <asp:TextBox ID="txtAnosAno" runat="server" BorderColor="Black" BorderWidth="1px" 
                        Enabled="True" Font-Size="X-Small" Width="30px" Wrap="False"></asp:TextBox>&nbsp;&nbsp;
                        <asp:Label ID="RotuloAnosDataInicio" runat="server" Text="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="RotuloAnosDataFim" runat="server" Text="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;
                        <%--<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;--%>
                        <asp:LinkButton ID="lnkTabelaAuxiliarGravar" runat="server">Gravar</asp:LinkButton>
                        <%--<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 />
                    </td>
                </tr>
                <tr>
                <td style="height: 20px; background-color: #d6e0ee; text-align: center">
                    <asp:GridView ID="grdDadosTabelaAnos" 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="Abertura" HeaderText="Abertura" />
                            <asp:BoundField DataField="Fecho" HeaderText="Fecho" />--%>
                            <asp:BoundField DataField="DataInicio" HeaderText="Inicio" />
                            <asp:BoundField DataField="DataFim" HeaderText="Fim" />
                            <asp:TemplateField HeaderText="Situação">
                            <ItemTemplate>
                                <asp:DropDownList ID="dropSituacao" runat="server" AutoPostBack="True" 
                                    Font-Size="X-Small" CssClass="drop" Height="18px" onload="dropSituacao_Load" 
                                    onselectedindexchanged="dropSituacao_SelectedIndexChanged">
                                </asp:DropDownList>
                                </span>
                            </ItemTemplate>                            
                            </asp:TemplateField>
                            <asp:BoundField DataField="Situacao" HeaderText="" />
                            <asp:BoundField DataField="Mes" 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>
