<%@ Page Title="" Language="C#" MasterPageFile="~/eosWinkartWeb/eosWinkartWeb.Master" AutoEventWireup="true" CodeBehind="eosMoghayerat.aspx.cs" Inherits="WebKart.eosWinkartWeb.eosMoghayerat" %>
<%@ Register Assembly="KingOf.Net.Web.UI.WebControls.PersianCalendar" Namespace="KingOf.Net.Web.UI.WebControls"
    TagPrefix="KingOfDotNet" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
     
<table class="InnerTablewithAllBorder" width="100%">
<tr>
    <td colspan="2" align="right">
    <asp:Image ID="Image1" runat="server" SkinID="imgMoghayeratLabel" />
    </td>
    </tr>
        
<tr>
 <td colspan="2" class="CenterTD">
     <asp:Label ID="lblError" runat="server" Text="" SkinID="LblError"></asp:Label>
 </td>
 </tr>
<tr>
<td align="right">
   <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtbeginDate" Display="Dynamic"
        ErrorMessage=".تاریخ را صحیح وارد نمایید" ValidationExpression="\d\d\d\d[/](((0[1-6])[/](0[1-9]|[12][0-9]|3[01]))|((0[7-9]|1[012])[/](0[1-9]|[12][0-9]|3[0])))"
        ValidationGroup="dd"  Font-Names="tahoma" Font-Size="8pt"></asp:RegularExpressionValidator>
   <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtbeginDate" Display="Dynamic"
        ErrorMessage="*"></asp:RequiredFieldValidator>
   <asp:TextBox ID="txtbeginDate" runat="server" Width="100px"></asp:TextBox>
   <cc1:MaskedEditExtender ID="MaskedEditExtender1" runat="server" AutoComplete="false"
           Mask="9999/99/99" MaskType="Date" TargetControlID="txtbeginDate">
       </cc1:MaskedEditExtender>
   <cc1:PopupControlExtender ID="PopupControlExtender1" runat="server" TargetControlID="txtbeginDate"
        PopupControlID="pnlBeginDate" Position="Bottom"></cc1:PopupControlExtender>
   <asp:Panel runat="server" ID="pnlBeginDate">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
     <KingOfDotNet:PersianCalendar ID="beginDateCalander" runat="server" 
              OnSelectionChanged="beginDateCalander_SelectionChanged" >
    </KingOfDotNet:PersianCalendar>
    </ContentTemplate>
    </asp:UpdatePanel>
    </asp:Panel>
    </td>
<td   class="LeftTD" valign="top">از تاریخ:
</td> 
</tr>
<tr>
<td align="right">
 <asp:Button ID="btnSubmit" runat="server" Text="مشاهده" SkinID="btnOrange" 
        onclick="btnSubmit_Click" />
   <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="txtEndDate" Display="Dynamic"
        ErrorMessage=".تاریخ را صحیح وارد نمایید" ValidationExpression="\d\d\d\d[/](((0[1-6])[/](0[1-9]|[12][0-9]|3[01]))|((0[7-9]|1[012])[/](0[1-9]|[12][0-9]|3[0])))"
        ValidationGroup="dd" Font-Names="tahoma" Font-Size="8pt"></asp:RegularExpressionValidator>
   <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtEndDate" Display="Dynamic"
        ErrorMessage="*"></asp:RequiredFieldValidator>
   <asp:TextBox ID="txtEndDate" runat="server"  Width="100px"></asp:TextBox>
   <cc1:MaskedEditExtender ID="MaskedEditExtender2" runat="server" AutoComplete="false"
           Mask="9999/99/99" MaskType="Date" TargetControlID="txtEndDate">
       </cc1:MaskedEditExtender>
   <cc1:PopupControlExtender ID="PopupControlExtender2" runat="server" TargetControlID="txtEndDate"
        PopupControlID="pnlEndDate" Position="Bottom"></cc1:PopupControlExtender>
   <asp:Panel runat="server" ID="pnlEndDate">
    <asp:UpdatePanel ID="UpdatePanel2" runat="server">
    <ContentTemplate>
     <KingOfDotNet:PersianCalendar ID="endDateCalander" runat="server" 
              OnSelectionChanged="endDateCalander_SelectionChanged" >
    </KingOfDotNet:PersianCalendar>
    </ContentTemplate>
    </asp:UpdatePanel>
    </asp:Panel>
   
    </td>
<td   class="LeftTD" valign="top">تا تاریخ:</td> 
</tr>

<tr>
<td colspan="2">

<telerik:RadGrid runat="server" ID="grdIOInfo" Skin="WebBlue" 
        AutoGenerateColumns="False" GridLines="None"
         AllowSorting="True"  
        GroupingEnabled="False" Font-Names="Tahoma" Font-Size="10pt" 
        OnSortCommand="grdIOInfo_SortCommand" >
    <MasterTableView NoMasterRecordsText="اطلاعاتی برای نمایش موجود نمی باشد">
         <Columns>

            <telerik:GridBoundColumn DataField="DMP" Visible="false"  
                UniqueName="DMP">
            </telerik:GridBoundColumn>
 
            <telerik:GridBoundColumn DataField="ENDDATE" HeaderText="تاریخ خروج" 
                UniqueName="ENDDATE" AllowSorting="False">
                <HeaderStyle Font-Names="Tahoma" Font-Size="10pt" HorizontalAlign="Center" />
                <ItemStyle Font-Names="Tahoma" Font-Size="10pt" HorizontalAlign="Center" />
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="BENDDATE" HeaderText="تاریخ خروج کارت زنی" 
                UniqueName="ENDDATE" AllowSorting="False">
                <HeaderStyle Font-Names="Tahoma" Font-Size="10pt" HorizontalAlign="Center" />
                <ItemStyle Font-Names="Tahoma" Font-Size="10pt" HorizontalAlign="Center" />
            </telerik:GridBoundColumn>
              <telerik:GridBoundColumn DataField="ENDTIME" HeaderText="ساعت خروج" 
                UniqueName="ENDTIME" AllowSorting="False">
                <HeaderStyle Font-Names="Tahoma" Font-Size="10pt" HorizontalAlign="Center" />
                <ItemStyle Font-Names="Tahoma" Font-Size="10pt" HorizontalAlign="Center" />
            </telerik:GridBoundColumn>
              <telerik:GridBoundColumn DataField="BENDTIME" HeaderText="ساعت خروج کارت زنی" 
                UniqueName="ENDTIME" AllowSorting="False">
                <HeaderStyle Font-Names="Tahoma" Font-Size="10pt" HorizontalAlign="Center" />
                <ItemStyle Font-Names="Tahoma" Font-Size="10pt" HorizontalAlign="Center" />
            </telerik:GridBoundColumn>
               <telerik:GridBoundColumn DataField="BEGINTIME" HeaderText="ساعت ورود" 
                UniqueName="BEGINTIME" AllowSorting="false">
                <HeaderStyle Font-Names="Tahoma" Font-Size="10pt" HorizontalAlign="Center" />
                <ItemStyle Font-Names="Tahoma" Font-Size="10pt" HorizontalAlign="Center" />
            </telerik:GridBoundColumn>
                     <telerik:GridBoundColumn DataField="BBEGINTIME" HeaderText="ساعت ورود کارت زنی" 
                UniqueName="BEGINTIME" AllowSorting="false">
                <HeaderStyle Font-Names="Tahoma" Font-Size="10pt" HorizontalAlign="Center" />
                <ItemStyle Font-Names="Tahoma" Font-Size="10pt" HorizontalAlign="Center" />
            </telerik:GridBoundColumn>
         
            <telerik:GridBoundColumn DataField="enterDayName" HeaderText="روز هفته" 
                UniqueName="enterDayName" AllowSorting="False">
                <HeaderStyle Font-Names="Tahoma" Font-Size="10pt" HorizontalAlign="Center" />
                <ItemStyle Font-Names="Tahoma" Font-Size="10pt" HorizontalAlign="Center" />
            </telerik:GridBoundColumn>
               <telerik:GridBoundColumn DataField="BEGINDATE" HeaderText="تاریخ ورود" 
                UniqueName="BEGINDATE">
                <HeaderStyle Font-Names="Tahoma" Font-Size="10pt" HorizontalAlign="Center" />
                <ItemStyle Font-Names="Tahoma" Font-Size="10pt" HorizontalAlign="Center" />
            </telerik:GridBoundColumn>  
            
        </Columns>
 
    </MasterTableView>
    <ClientSettings ReorderColumnsOnClient="True">
    </ClientSettings>
   </telerik:RadGrid>

 
</td>
</tr>
<%--<tr>
<td colspan="2" align="left">

    <asp:Button ID="btnExportExcel" runat="server" Text="خروجی اکسل" 
        onclick="btnExportExcel_Click" SkinID="btnOrange"/>
    &nbsp;<asp:Button ID="btnExportWord" runat="server" Text="خروجی ورد" 
        SkinID="btnOrange" onclick="btnExportWord_Click" />

</td>
</tr>--%>
</table>
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" 
        Skin="Default" InitialDelayTime="2" MinDisplayTime="100" Width="184px">
    </telerik:RadAjaxLoadingPanel>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" 
        DefaultLoadingPanelID="RadAjaxLoadingPanel1">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="btnSubmit">
                <UpdatedControls>
                     <telerik:AjaxUpdatedControl ControlID="grdIOInfo" />
                    <telerik:AjaxUpdatedControl ControlID="lblError" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="grdIOInfo">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="grdIOInfo" />
                    <telerik:AjaxUpdatedControl ControlID="lblError" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
</asp:Content>
