<%@ Page Title="" Language="C#" MasterPageFile="~/eosWinkartWeb/eosWinkartWeb.Master" AutoEventWireup="true" CodeBehind="uncompleteIO.aspx.cs" Inherits="WebKart.eosWinkartWeb.uncompleteIO" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ 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 TagPrefix="ajaxToolkit" Namespace="AjaxControlToolkit" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    
    <table width="100%">
        <tr>
            <td class="RightTD" colspan="2">
                <asp:Image ID="Image1" runat="server" SkinID="imgUnCompleteIO" />
            </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: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: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: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" NextPrevStyle-ForeColor="White" >
    </KingOfDotNet:PersianCalendar>
    </ContentTemplate>
    </asp:UpdatePanel>
    </asp:Panel>
   
    </td>
<td  class="LeftTD" valign="top">تا تاریخ:</td> 
</tr>
        <tr>
            <td class="RightTD">
                <asp:DropDownList ID="ddlSections" runat="server" SkinID="ddlYellow" 
                    Width="200px" AutoPostBack="True" 
                    onselectedindexchanged="ddlSections_SelectedIndexChanged">
                </asp:DropDownList>
                <asp:Button ID="btnSearchPersonel" runat="server" Text="جستجو" SkinID="btnOrange"
                    OnClick="btnSearchPersonel_Click" />
            </td>
            <td class="LeftTD" style="width: 250px">
                قسمت کاری:
            </td>
        </tr>
        <tr>
        <td colspan="2" class="CenterTD">
            <asp:Label ID="lblError" runat="server" Text="" SkinID="LblError"></asp:Label>
        </td>
        </tr>
        <tr>
            <td colspan="2" class="CenterTD">
                <hr style="size: 1; color: Yellow; width: 500px">
            </td>
        </tr>
        <tr>
            <td class="CenterTD" colspan="2">
                <telerik:RadGrid runat="server" ID="grdUuCompleteIO" Skin="WebBlue" AutoGenerateColumns="False"
                    GridLines="None" AllowPaging="False" AllowSorting="True" PageSize="30" GroupingEnabled="False"
                    Font-Names="Tahoma" Font-Size="10pt"
                    OnSortCommand="grdUuCompleteIO_SortCommand"                   
                   >
               
                    <MasterTableView NoMasterRecordsText="اطلاعاتی برای نمایش موجود نمی باشد" DataKeyNames="perno">
                    <RowIndicatorColumn>
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>
                        <Columns>
                           <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="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="beginDate" HeaderText="تاریخ ورود" UniqueName="beginDate" 
                            AllowSorting="true">
                                <HeaderStyle Font-Names="Tahoma" Font-Size="10pt" HorizontalAlign="Center" />
                                <ItemStyle Font-Names="Tahoma" Font-Size="10pt" HorizontalAlign="Center" />
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="PersonName" HeaderText="نام خانوادگی و نام" UniqueName="PersonName" AllowSorting="true">
                                <HeaderStyle Font-Names="Tahoma" Font-Size="10pt" HorizontalAlign="Center" />
                                <ItemStyle Font-Names="Tahoma" Font-Size="10pt" HorizontalAlign="Right" />
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="perno" HeaderText="شماره پرسنلی" UniqueName="perno"
                                AllowSorting="true">
                                <HeaderStyle Font-Names="Tahoma" Font-Size="10pt" HorizontalAlign="Center" />
                                <ItemStyle Font-Names="Tahoma" Font-Size="10pt" HorizontalAlign="Center" />
                            </telerik:GridBoundColumn>
                        </Columns>
                    </MasterTableView>
                  <ClientSettings AllowAutoScrollOnDragDrop="False" 
                    EnablePostBackOnRowClick="False" EnableRowHoverStyle="true" 
                    ReorderColumnsOnClient="True">
                    <Selecting EnableDragToSelectRows="False" />
                     <Scrolling AllowScroll="True" ScrollHeight="400px" UseStaticHeaders="true"  />
                   </ClientSettings>
                    
                         
 
                </telerik:RadGrid>
               
            </td>
        </tr>
       <tr>
       <td class="LeftTD" colspan="2">
       <asp:HyperLink runat="server" ImageUrl="~/App_Themes/eosMainThem/icons/45491.png" ID="hlPrint" Target="_blank" Visible="false"></asp:HyperLink>
       </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="ddlSections">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="grdUuCompleteIO" />
                    <telerik:AjaxUpdatedControl ControlID="hlPrint" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="btnSearchPersonel">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="lblError" />
                    <telerik:AjaxUpdatedControl ControlID="grdUuCompleteIO" />
                    <telerik:AjaxUpdatedControl ControlID="hlPrint" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
  
</asp:Content>

