<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/DefaultLogedContentMasterPage.master" AutoEventWireup="true" CodeBehind="RelatorioDePonto.aspx.cs" Inherits="CECAM.RH.asp.RelatorioDePonto" %>

<%@ Register Assembly="DevExpress.Web.v11.1, Version=11.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxLoadingPanel" TagPrefix="dx" %>
<asp:Content ID="Content2" ContentPlaceHolderID="ConteudoCorpo" runat="server">
    <script type="text/javascript">
        function fFormataCampoData(/*event,*/ obj, nextField) {
            obj.maxLength = 10;
            if (event.keyCode < 48 || event.keyCode > 57) event.returnValue = false;

            if (obj.value.length == 2)
                obj.value += "/";
            if (obj.value.length == 5)
                obj.value += "/";

            if (obj.value.length == 9) {
                if (nextField != null) {
                    window.setTimeout("document.getElementById('" + nextField + "').focus();", 10);
                }
            }
        }
    </script>
    <h3>Relatório de Ponto
    </h3>
    <table border="0" cellpadding="0" cellspacing="0" style="width: 400px">
        <tr>
            <td colspan="3" style="height: 15px; width: 400px;">
                <h6>Para gerar o seu relatório de ponto, informe o período desejado:</h6>
            </td>
        </tr>
        <tr>
            <td colspan="3" style="height: 15px; width: 400px;">&nbsp;</td>
        </tr>
        <tr>
            <td colspan="3" style="height: 22px; width: 400px;"><h5>Período:</h5></td>
        </tr>
        <tr>
            <td>De:
                <asp:TextBox ID="txtPeriodoDe" Width="120px" runat="server" Text="01/09/2015"></asp:TextBox></td>
            <td>Até:
                <asp:TextBox ID="txtPeriodoAte" Width="120px" runat="server" Text="30/09/2015"></asp:TextBox>
                
            </td>
            <td><asp:ImageButton ID="ImageButton1" runat="server" SkinID="gerar" CssClass="buttonAction" OnClick="btnGerar_Click" OnClientClick="LoadingPanel.Show()" /></td>
        </tr>
        <%--<tr>
            <td style="height: 22px; width: 120px;">
                
            </td>
        </tr>--%>
    </table>
    <br />
    <div id="dvMensagem" runat="server" style="color: #ff0000; font-weight: bold;">Mensagem</div>
    <dx:ASPxLoadingPanel ID="LoadingPanel" ContainerElementID="ConteudoCorpo1" runat="server" ClientInstanceName="LoadingPanel" Modal="True" Text="Gerando Relatório..." />

</asp:Content>
