<%@ page language="VB" masterpagefile="~/MasterPage.master" autoeventwireup="false" inherits="Vencimentos, App_Web_ccjtxgzv" title="Cronos - Módulo web" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table border="0" cellpadding="0" cellspacing="0" style="width: 100%; height: 100%;">
        <tr>
            <td align="left" colspan="6" 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="Vencimentos"></asp:Label></td>
        </tr>
        <tr>
            <td align="left" style="height: 30px; background-color: #5d7b9d; width: 1600px;">&nbsp;
                <asp:Label ID="Label1" 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;&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: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: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: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: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: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>&nbsp;
                <asp:ImageButton ID="Pesquisar" runat="server" ImageUrl="~/Imagens/Lupa2.png" ToolTip="Executar filtro" OnClientClick="target=''" Width="24px"/>
            </td>
            <td style="height: 32px; background-color: #5d7b9d;" valign="middle">
                '
            </td>
            <td style="height: 32px; background-color: #5d7b9d;" valign="middle">
                <asp:ImageButton ID="btnExcel" runat="server" ImageUrl="~/Imagens/Excel.png" ToolTip="Exportar para Excel" Width="30px"/>
            </td>
            <td style="height: 32px; background-color: #5d7b9d;" valign="middle">
                <asp:ImageButton ID="btnWord" runat="server" ImageUrl="~/Imagens/Word.png" ToolTip="Exportar para Word" Width="30px"/>
            </td>
            <td style="height: 32px; background-color: #5d7b9d;" valign="middle">
                <asp:ImageButton ID="btnImprimir" runat="server" ImageUrl="~/Imagens/print.gif" ToolTip="Imprimir" OnClientClick="target=''" ImageAlign="Right" Width="30px"/>
            </td>
        </tr>
        <tr>
        <td colspan="6">
                <asp:GridView ID="grdDados" runat="server" CellPadding="4" ForeColor="#333333" 
                        GridLines="Vertical" Width="100%" AllowPaging="True" PageSize="16" 
                        AutoGenerateColumns="False">
                <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                <Columns>
                    <asp:CommandField SelectText="&gt;" ShowSelectButton="True" ButtonType="Image" SelectImageUrl="~/Imagens/Selecao.png" />
                    <asp:BoundField DataField="NumeroEmpregado" HeaderText="Número" />
                    <asp:BoundField DataField="Nome" HeaderText="Nome" />
                    <asp:TemplateField HeaderText="Centro Custo">
                    <ItemTemplate>
                        <asp:DropDownList ID="dropCentroCusto" runat="server" AutoPostBack="True" 
                            Font-Size="X-Small" CssClass="drop" Height="19px" onload="dropCentroCusto_Load" 
                            onselectedindexchanged="dropCentroCusto_SelectedIndexChanged" Width="250px">
                        </asp:DropDownList>
                        </span>
                    </ItemTemplate>                            
                    </asp:TemplateField>   
                    <asp:TemplateField HeaderText="Oficina/Secção">
                    <ItemTemplate>
                        <asp:DropDownList ID="dropOficina" runat="server" AutoPostBack="True" 
                            Font-Size="X-Small" CssClass="drop" Height="19px" onload="dropOficina_Load" 
                            onselectedindexchanged="dropOficina_SelectedIndexChanged" Width="250px">
                        </asp:DropDownList>
                        </span>
                    </ItemTemplate>                            
                    </asp:TemplateField>
                    <asp:BoundField DataField="Admissao" HeaderText="Admissão" />
                    <asp:BoundField DataField="Demissao" HeaderText="Demissão" />
                    <asp:BoundField DataField="CentroCusto" HeaderText=""/>
                    <asp:BoundField DataField="Oficina" 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="6" style="text-align: center">
                <asp:LinkButton ID="lnkEditar" runat="server">Editar empregado seleccionado</asp:LinkButton>&nbsp;&nbsp;&nbsp;
                <asp:LinkButton ID="lnkInserir" runat="server">Inserir novo empregado</asp:LinkButton>
                <br />
                <asp:Panel ID="pnlEdit" runat="server" Visible="False" Width="100%">
                <table border="0" cellpadding="0" cellspacing="0" style="border-right: black 1px solid;
                        border-top: black 1px solid; border-left: black 1px solid; width: 100%; border-bottom: black 1px solid;
                        background-color: #a6cdcc">
                    <tr>
                        <td style="width: 265px">
                        </td>
                        <td style="width: 66px">
                        </td>
                        <td style="width: 263px">
                            <asp:Label ID="lblAccao" runat="server" Visible="False"></asp:Label> </td>
                        <td style="width: 97px">
                        </td>
                        <td style="width: 97px">
                        </td>
                        <td style="width: 56px">
                        </td>
                        <td style="width: 20px">
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 265px">
                            </td>
                            <td style="width: 265px">
                                &nbsp;</td>
                            <td style="width: 46px">
                                <asp:Label ID="Label8" runat="server" Text="Empregado:"></asp:Label>
                            </td>
                            <td style="width: 263px">
                                <asp:TextBox ID="txtNumeroEmpregado" runat="server" BorderColor="Black" 
                                    BorderWidth="1px" Font-Size="X-Small" Width="47px"></asp:TextBox>
                                &nbsp;<asp:TextBox ID="txtNome" runat="server" BorderColor="Black" BorderWidth="1px" 
                                    Font-Size="X-Small" Width="192px"></asp:TextBox>
                            </td>
                            <td style="width: 60px">
                                <asp:Label ID="RotuloAdmissao" runat="server" Text="Admissão:"></asp:Label>
                            </td>
                            <td style="width: 109px">
                                <asp:TextBox ID="txtAdmissao" runat="server" BorderColor="Black" 
                                    BorderWidth="1px" Font-Size="X-Small" Width="66px"></asp:TextBox>
                            </td>
                            <td style="width: 65px">
                                <asp:Label ID="RotuloDemissao" runat="server" Text="Demissão:"></asp:Label>
                            </td>
                            <td style="width: 20px">
                                <asp:TextBox ID="txtDemissao" runat="server" BorderColor="Black" 
                                    BorderWidth="1px" Font-Size="X-Small" Width="66px"></asp:TextBox>
                            </td>
                            <td style="width: 160px">
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 265px">
                            </td>
                            <td style="width: 66px">
                            </td>
                            <td style="width: 263px">
                            </td>
                            <td style="width: 97px; ">
                            </td>
                            <td style="width: 97px; ">
                            </td>
                            <td style="width: 56px">
                            </td>
                            <td style="width: 20px">
                                <br />
                            </td>
                        </tr>
                        <tr align="center">
                            <td style="height: 3px; width: 265px;">
                            </td>
                            <td colspan="6" style="height: 3px; text-align: center">
                                <asp:LinkButton ID="lnkGravar" runat="server">Gravar</asp:LinkButton>
                                &nbsp;&nbsp;&nbsp;
                                <asp:LinkButton ID="lnkCancelar" runat="server">Cancelar</asp:LinkButton>
                                &nbsp;&nbsp;&nbsp;
                                <br />
                            </td>
                            <td style="height: 3px; width: 160px;">
                            </td>
                        </tr>
                </table>
            </asp:Panel>
            </td>
        </tr>
        <tr>
            <td colspan="6" 
                style="height: 20px; background-color: White; text-align: center" 
                align="left"> 
                <asp:Label ID="lblMsg" runat="server" Visible="False" BackColor="White"></asp:Label> <%--BackColor="#F1F4FA"--%>
            </td>
        </tr>
        <tr>
            <td colspan="9" style="height: 12px" align="right">
            <asp:Panel ID="pnlOpcoesRodape" runat="server" Visible="True" Width="100%" BackColor="#5d7b9d">
                <asp:Label ID="RotuloGrelha" runat="server" Text="Grelha: " 
                    ForeColor="White"></asp:Label>&nbsp;
                <asp:DropDownList ID="cboGrelha" runat="server" Font-Size="X-Small" 
                    BackColor="White" ForeColor="Black">
                    <asp:ListItem Value="0">Vertical</asp:ListItem>
                    <asp:ListItem Value="1">Horizontal</asp:ListItem>
                    <asp:ListItem Value="2">Ambos</asp:ListItem>
                </asp:DropDownList>&nbsp;
                <asp:Label ID="RotuloLinhasPagina" runat="server" Text="Paginação Linhas:" 
                    ForeColor="White"></asp:Label>&nbsp;
                <asp:TextBox ID="txtLinhasPagina" runat="server" BorderColor="White" 
                    BorderWidth="0px" Font-Size="X-Small" Height="18px" Width="30px" 
                    BackColor="#5D7B9D" ForeColor="White" ></asp:TextBox>
                <asp:Label ID="Label2" runat="server" Text="Posição: " 
                    ForeColor="White"></asp:Label>&nbsp;
                <asp:DropDownList ID="cboPaginacaoPosicao" runat="server" Font-Size="X-Small" 
                    BackColor="White" ForeColor="Black">
                    <asp:ListItem Value="0">Em baixo</asp:ListItem>
                    <asp:ListItem Value="1">Em cima</asp:ListItem>
                    <asp:ListItem Value="2">Em ambos</asp:ListItem>
                </asp:DropDownList>&nbsp;
                <asp:Label ID="Label3" runat="server" Text="Tipo: " 
                    ForeColor="White"></asp:Label>&nbsp;
                <asp:DropDownList ID="cboPaginacaoTipo" runat="server" Font-Size="X-Small" 
                    BackColor="White" ForeColor="Black">
                    <asp:ListItem Value="2">Botões</asp:ListItem>
                    <asp:ListItem Value="3">Nº pág.</asp:ListItem>
                </asp:DropDownList>&nbsp;
                <asp:ImageButton ID="btnGravarOpoes" runat="server"  ImageUrl="~/Imagens/Edit2.png" ToolTip="Gravar opções"/>&nbsp;
            </asp:Panel>
            </td>                 
        </tr>
    </table>
</asp:Content>

