<%@ Page Title="" Language="C#" MasterPageFile="~/eosWinkartWeb/eosWinkartWeb.Master" AutoEventWireup="true" EnableEventValidation="true" CodeBehind="eosIOdump.aspx.cs" Inherits="WebKart.eosWinkartWeb.eosIOdump" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<%@ Register assembly="KingOf.Net.Web.UI.WebControls.PersianCalendar" namespace="KingOf.Net.Web.UI.WebControls" tagprefix="KingOfDotNet" %>

<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 align="right" colspan="2">
    <img src="../App_Themes/eosMainThem/image/IOdump.png" alt="" />
    </td>
    </tr>
    <tr>
    <td align="center">
        <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" 
             >
         <TodayDayStyle BackColor="#FFCC66" />
    </KingOfDotNet:PersianCalendar>
    </ContentTemplate>
    </asp:UpdatePanel>
        </asp:Panel>
    </td>
<td style="width:150px" 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"  NextPrevFormat="CustomText">
              </KingOfDotNet:PersianCalendar>
    </ContentTemplate>
    </asp:UpdatePanel>
    </asp:Panel>
   
    </td>
<td style="width:150px" class="LeftTD" valign="top">تا تاریخ:</td> 
</tr>


<tr>
<td colspan="2">
    <telerik:RadGrid runat="server" ID="grdIODump" Skin="WebBlue" 
        AutoGenerateColumns="False" GridLines="None" AllowCustomPaging="True" 
        AllowPaging="True" AllowSorting="True" PageSize="31" 
        GroupingEnabled="False" Font-Names="Tahoma" Font-Size="10pt" 
        onpageindexchanged="grdIODump_PageIndexChanged" 
        onpagesizechanged="grdIODump_PageSizeChanged" 
        onsortcommand="grdIODump_SortCommand">
    
    <MasterTableView NoDetailRecordsText="" 
        NoMasterRecordsText="اطلاعاتی برای نمایش موجود نمی باشد" 
        AllowCustomPaging="False">
        <Columns>
            
               <telerik:GridBoundColumn DataField="Io_Type" HeaderText="ورود/خروج" 
                UniqueName="Io_Type" 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="ClockTime" HeaderText="ساعت" 
                UniqueName="ClockTime">
                <HeaderStyle Font-Names="Tahoma" Font-Size="10pt" HorizontalAlign="Center" />
                <ItemStyle Font-Names="Tahoma" Font-Size="10pt" HorizontalAlign="Center" />
            </telerik:GridBoundColumn>
         
               <telerik:GridBoundColumn DataField="ClockDate" HeaderText="تاریخ" 
                UniqueName="ClockDate">
                <HeaderStyle Font-Names="Tahoma" Font-Size="10pt" HorizontalAlign="Center" />
                <ItemStyle Font-Names="Tahoma" Font-Size="10pt" HorizontalAlign="Center" />
            </telerik:GridBoundColumn>
            
               <telerik:GridBoundColumn DataField="dayName" HeaderText="روز هفته" 
                UniqueName="dayName" AllowSorting="False">
                <HeaderStyle Font-Names="Tahoma" Font-Size="10pt" HorizontalAlign="Center" />
                <ItemStyle Font-Names="Tahoma" Font-Size="10pt" HorizontalAlign="Center" />
            </telerik:GridBoundColumn>
            
        </Columns>
    </MasterTableView>
   
</telerik:RadGrid>
    
</td>
</tr>

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

<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="lblError" />
                    <telerik:AjaxUpdatedControl ControlID="grdIODump" />
                    <telerik:AjaxUpdatedControl ControlID="pnlGrid" />
   
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="grdIODump">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="grdIODump" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
</table>
</asp:Content>
