<%@ Page Title="" Language="C#" MasterPageFile="~/eosWinkartWeb/eosWinkartWeb.Master"
    AutoEventWireup="true" CodeBehind="ioRequest.aspx.cs" Inherits="WebKart.eosWinkartWeb.ioRequest" %>

<%@ 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" %>
<%@ Register Src="../ASCX/WorkCalendar.ascx" TagName="WorkCalendar" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link rel="shortcut icon" href="../App_Themes/eosMainThem/icons/flag_red.ico" />
    <style type="text/css">
        .datetext
        {
            direction: ltr;
            text-align: left;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
     
    <table width="100%">
        <tr>
            <td align="right">
                <asp:Image ID="Image1" runat="server" SkinID="imgIOReq" />
                <asp:Panel ID="pnlSearchHandler" runat="server">
                    <div class="searchTD">
                        <asp:Image ID="imgSearch" runat="server" ImageUrl="../App_Themes/eosMainThem/image/showSearch.png" />
                    </div>
                </asp:Panel>
            </td>
        </tr>
        <tr>
            <td class="CenterTD">
                <asp:Label ID="lblError" runat="server" SkinID="LblError"></asp:Label>
            </td>
        </tr>
        <cc1:CollapsiblePanelExtender ID="cpeSearch" runat="Server" TargetControlID="pnlSearch"
            CollapsedSize="0" ExpandedSize="110" Collapsed="True" ExpandControlID="pnlSearchHandler"
            CollapseControlID="pnlSearchHandler" AutoCollapse="False" AutoExpand="False"
            ScrollContents="False" TextLabelID="" CollapsedText="" ExpandedText="" ImageControlID="imgSearch"
            ExpandedImage="../App_Themes/eosMainThem/image/hideSearchPanel.png" CollapsedImage="../App_Themes/eosMainThem/image/showSearch.png"
            ExpandDirection="Vertical" />
        <tr>
            <td>
                <asp:Panel runat="server" ID="pnlSearch">
                    <table width="100%" cellpadding="0" cellspacing="0">
                        <tr>
                            <td class="RightTD">
                                <asp:CheckBox ID="chkCanAcceptMode" runat="server" Text=" تنها مشاهده درخواست هایی که می توانم تائید کنم"
                                    Checked="true" AutoPostBack="true" OnCheckedChanged="ChkCanAcceptModeCheckedChanged" />
                            </td>
                            <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="Search" Font-Names="tahoma" Font-Size="8pt"></asp:RegularExpressionValidator>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtbeginDate"
                                    Display="Dynamic" ErrorMessage="*" ValidationGroup="Search"></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 class="LeftTD" valign="top">
                                از تاریخ:
                            </td>
                        </tr>
                        <tr>
                            <td class="RightTD">
                                <asp:CheckBox ID="chkSearchMode" runat="server" Text="مشاهده درخواست هایی که توسط من بررسی شده است"
                                    Checked="false" AutoPostBack="true" OnCheckedChanged="ChkSearchModeCheckedChanged" />
                            </td>
                            <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="Search" Font-Names="tahoma" Font-Size="8pt"></asp:RegularExpressionValidator>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtEndDate"
                                    Display="Dynamic" ErrorMessage="*" ValidationGroup="Search"></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"
                                                NextPrevStyle-ForeColor="White" NextPrevFormat="CustomText">
                                            </KingOfDotNet:PersianCalendar>
                                        </ContentTemplate>
                                    </asp:UpdatePanel>
                                </asp:Panel>
                            </td>
                            <td class="LeftTD" valign="top">
                                تا تاریخ:
                            </td>
                        </tr>
                        <tr>
                            <td class="RightTD">
                            </td>
                            <td class="RightTD">
                                <asp:DropDownList ID="ddlSections" runat="server" SkinID="ddlYellow" Width="250px"
                                    AutoPostBack="True" OnSelectedIndexChanged="DdlSectionsSelectedIndexChanged">
                                </asp:DropDownList>
                            </td>
                            <td class="LeftTD">
                                قسمت کاری:
                            </td>
                        </tr>
                        <tr>
                            <td class="RightTD" colspan="2">
                                <asp:DropDownList ID="ddlSerachKind" runat="server" SkinID="ddlYellow" Width="250px"
                                    AutoPostBack="True" OnSelectedIndexChanged="DdlSerachKindSelectedIndexChanged">
                                    <asp:ListItem Value="1">درخواست های جدید یا در حال پیگیری </asp:ListItem>
                                    <asp:ListItem Value="3">درخواست های پذیرفته نشده</asp:ListItem>
                                    <asp:ListItem Value="4">درخواست های برگشت خورده</asp:ListItem>
                                    <asp:ListItem Value="5">درخواست های تائید شده</asp:ListItem>
                                    <asp:ListItem Value="6">تمامی درخواست ها</asp:ListItem>
                                    <asp:ListItem Value="7">درخواست های در حال تعلیق</asp:ListItem>
                                </asp:DropDownList>
                                &nbsp;<asp:Button ID="btnSearchRequest" runat="server" ValidationGroup="Search" Text="جستجو"
                                    SkinID="btnOrange" OnClick="BtnSearchRequestClick" Style="height: 26px" />
                            </td>
                            <td class="LeftTD">
                                نوع درخواست:
                            </td>
                        </tr>
                        <tr>
                            <td class="CenterTD" colspan="3">
                                <hr style="size: 1; color: Yellow; width: 600px">
                            </td>
                        </tr>
                    </table>
                </asp:Panel>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Panel runat="server" Visible="false" ID="pnlvacationDetail">
                    <table width="100%" cellpadding="3" cellspacing="4">
                        <tr>
                            <td class="RightTD">
                                <asp:Label ID="lblName" runat="server" Text=""></asp:Label>
                            </td>
                            <td class="LeftTD">
                                درخواست دهنده:
                            </td>
                            <td class="RightTD">
                                <asp:Label ID="lblpageNo" runat="server" Text=""></asp:Label>
                            </td>
                            <td style="width: 150px" class="LeftTD">
                                شماره برگه:
                            </td>
                        </tr>
                        <tr>
                            <td class="RightTD">
                                <asp:Label ID="lblRegTime" runat="server" Text=""></asp:Label>
                            </td>
                            <td class="LeftTD">
                                ساعت درخواست:
                            </td>
                            <td class="RightTDltr">
                                <asp:Label ID="lblRegDate" runat="server" Text=""></asp:Label>
                            </td>
                            <td class="LeftTD">
                                تاریخ درخواست:
                            </td>
                        </tr>
                        <tr>
                            <td class="RightTD">
                                <asp:Label ID="lblTime" runat="server" Text="" Font-Bold="true"></asp:Label>
                            </td>
                            <td class="LeftTD">
                                درخواست برای ساعت :
                            </td>
                            <td class="RightTDltr">
                                <asp:Label ID="lblDate" runat="server" Text="" Font-Bold="true"></asp:Label>
                            </td>
                            <td class="LeftTD">
                                درخواست&nbsp; برای تاریخ:
                            </td>
                        </tr>
                        <tr>
                            <td class="RightTDltr">
                                <asp:Label ID="lbllastChangeDate" runat="server" Text=""></asp:Label>
                            </td>
                            <td class="LeftTD">
                                تاریخ آخرین تغییرات:
                            </td>
                            <td class="RightTD">
                                <asp:Label ID="lblIoType" runat="server" Text="" Font-Bold="true"></asp:Label>
                            </td>
                            <td style="width: 150px" class="LeftTD">
                                ورود / خروج:
                            </td>
                        </tr>
                        <tr>
                            <td class="RightTDltr">
                                <asp:Label ID="lblSystemName" runat="server" Text=""></asp:Label>
                            </td>
                            <td class="LeftTD">
                                <asp:Label ID="lblSystemNameTitle" runat="server" Text="">نام دستگاه:</asp:Label>
                            </td>
                            <td class="RightTD">
                                <asp:Label ID="lblStatus" runat="server" Text=""></asp:Label>
                            </td>
                            <td class="LeftTD">
                                وضعیت:
                            </td>
                        </tr>
                        <tr>
                            <td class="RightTD" colspan="3">
                                <asp:Label ID="lblDesc" runat="server" Text=""></asp:Label>
                            </td>
                            <td class="LeftTD" valign="top">
                                توضیحات:
                            </td>
                        </tr>
                        <tr>
                            <td colspan="4" class="CenterTD">
                                <asp:Label ID="Label1" runat="server" Text="" Visible="false"></asp:Label>
                                <hr style="size: 1; color: Yellow; width: 500px">
                            </td>
                        </tr>
                        <tr>
                            <td colspan="3" class="RightTD" style="text-align: right">
                                <asp:RadioButtonList ID="rdbIO" runat="server" Font-Names="Tahoma" Font-Size="10pt"
                                    RepeatDirection="Horizontal" RepeatLayout="Flow" Visible="false">
                                    <asp:ListItem Value="1">ورود</asp:ListItem>
                                    <asp:ListItem Value="2">خروج</asp:ListItem>
                                </asp:RadioButtonList>
                            </td>
                            <td class="LeftTD">
                                <asp:Label ID="lblIoPageType" runat="server" Text="نوع برگه:" Visible="false"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="3" align="right">
                                <asp:RegularExpressionValidator ID="RegularExpressionValidator41" runat="server"
                                    ControlToValidate="TextBox11" 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="ApproveGroup" Font-Names="tahoma" Font-Size="8pt"></asp:RegularExpressionValidator>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ValidationGroup="ApproveGroup"
                                    ControlToValidate="TextBox11" Display="Dynamic" ErrorMessage="*"></asp:RequiredFieldValidator>
                                <asp:TextBox ID="TextBox11" runat="server" Width="100px" ValidationGroup="ApproveGroup"
                                    CssClass="datetext" Visible="False"></asp:TextBox>
                                <cc1:MaskedEditExtender ID="MaskedEditExtender41" runat="server" AutoComplete="false"
                                    Mask="9999/99/99" MaskType="Date" TargetControlID="TextBox11">
                                </cc1:MaskedEditExtender>
                                <cc1:PopupControlExtender ID="PopupControlExtender31" runat="server" TargetControlID="TextBox11"
                                    PopupControlID="Panel11" Position="Bottom">
                                </cc1:PopupControlExtender>
                                <asp:Panel runat="server" ID="Panel11">
                                    <KingOfDotNet:PersianCalendar ID="PersianCalendar11" runat="server" OnSelectionChanged="IoDateCalander_SelectionChanged"
                                        NextPrevStyle-ForeColor="White">
                                    </KingOfDotNet:PersianCalendar>
                                </asp:Panel>
                            </td>
                            <td class="LeftTD">
                                <asp:Label ID="lblIoDate" runat="server" Text="تاریخ:" Visible="false"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="3" align="right">
                                <asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" ControlToValidate="txtIoTime"
                                    Font-Names="Tahoma" Font-Size="8pt" ErrorMessage="ساعت را صحیح وارد نمایید" ValidationExpression="(0[0-9]|[1][0-9]|[2][0123])[:](0[0-9]|[1-5][0-9])"></asp:RegularExpressionValidator>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="*"
                                    ControlToValidate="txtIoTime"></asp:RequiredFieldValidator>
                                <asp:TextBox ID="txtIoTime" runat="server" Width="100px"></asp:TextBox>
                                <cc1:MaskedEditExtender ID="MaskedEditExtender4" runat="server" TargetControlID="txtIoTime"
                                    AutoComplete="false" MaskType="Time" Mask="99:99">
                                </cc1:MaskedEditExtender>
                            </td>
                            <td class="LeftTD">
                                <asp:Label ID="lblIoTime" runat="server" Text="ساعت:" Visible="false"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="4" class="CenterTD">
                                <asp:Label ID="lblType" runat="server" Text="" Visible="false"></asp:Label>
                                <hr style="size: 1px; color: Yellow; width: 500px" runat="server" id="ioSeprator" />
                            </td>
                        </tr>
                        <tr>
                            <td colspan="3" class="RightTD">
                                <asp:TextBox ID="txtAdminParaf" runat="server" SkinID="txtBlack" Width="400px" TextMode="MultiLine"></asp:TextBox>
                            </td>
                            <td class="LeftTD">
                                <asp:Label ID="lblparafLabel" runat="server" Text="علت رد / برگشت:"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <table width="100%" cellpadding="3" cellspacing="3">
                                    <tr>
                                        <td class="CenterTD">
                                            <asp:Button ID="btnApprove" runat="server" Text="تائید درخواست" SkinID="btnOrange"
                                                OnClick="BtnApproveClick" ValidationGroup="ApproveGroup" Visible="False" />
                                        </td>
                                        <td class="CenterTD">
                                            <asp:Button ID="btnReject" runat="server" Text="رد درخواست" SkinID="btnOrange" OnClick="BtnRejectClick"
                                                Visible="False" />
                                        </td>
                                        <td class="CenterTD">
                                            <asp:Button ID="btnReturn" runat="server" Text="برگشت درخواست" SkinID="btnOrange"
                                                OnClick="BtnReturnClick" Visible="False" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="CenterTD">
                                            <asp:Button ID="btnDelete" runat="server" Text="حذف درخواست" SkinID="btnOrange" OnClick="BtnDeleteClick"
                                                Visible="false" />
                                        </td>
                                        <td class="CenterTD">
                                            <asp:Button ID="btnShowList" runat="server" Text="مشاهده لیست" SkinID="btnOrange"
                                                OnClick="BtnShowListClick" />
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="4" class="RightTD">
                                ورود و خروج کاربر انتخاب کرده در بازه درخواست
                            </td>
                        </tr>
                        <tr>
                            <td colspan="4" class="CenterTD">
                                <telerik:radgrid runat="server" id="grdIODump" skin="WebBlue" autogeneratecolumns="False"
                                    gridlines="None" allowcustompaging="false" allowpaging="false" allowsorting="false"
                                    groupingenabled="False" font-names="Tahoma" font-size="10pt">
                                    <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 colspan="4">
                                <telerik:radgrid runat="server" id="grdPageCommentList" skin="WebBlue" autogeneratecolumns="False"
                                    gridlines="None" allowpaging="false" allowsorting="false" groupingenabled="False"
                                    font-names="Tahoma" font-size="10pt">
                                    <mastertableview nodetailrecordstext="" nomasterrecordstext="اطلاعاتی برای نمایش موجود نمی باشد"
                                        allowcustompaging="False">
                                        <Columns>
                                            <telerik:GridBoundColumn DataField="comment" HeaderText="روند جریان برگه ورود و خروج"
                                                UniqueName="comment">
                                                <HeaderStyle Font-Names="Tahoma" Font-Size="10pt" HorizontalAlign="Right" />
                                                <ItemStyle Font-Names="Tahoma" Font-Size="10pt" HorizontalAlign="Right" />
                                            </telerik:GridBoundColumn>
                                        </Columns>
                                    </mastertableview>
                                </telerik:radgrid>
                            </td>
                        </tr>
                    </table>
                </asp:Panel>
            </td>
        </tr>
        <tr>
            <td align="left">
                <div>
                    <div style="float: left; margin-right: 3px">
                        <asp:Button ID="btnDenyAll" runat="server" Text="رد برگه های انتخاب شده" SkinID="btnOrangeFreeSize"
                            Visible="false" OnClick="BtnDenyAllClick" />
                    </div>
                    <div style="float: left;">
                        <asp:Button ID="btnApproveAll" runat="server" Text="تائید برگه های انتخاب شده" SkinID="btnOrangeFreeSize"
                            Visible="false" OnClick="BtnApproveAllClick" />
                    </div>
                    <div style="clear: both">
                    </div>
                </div>
            </td>
        </tr>
        <tr>
            <td class="RightTD">
                <img src="../App_Themes/eosMainThem/image/alarm.png" alt="" />
                <asp:Label ID="lblMsg" runat="server" Text="توجه: سطر های سبز رنگ ورود و خروج های ثبت شده از طریق دستگاه ساعت می باشند."
                    SkinID="LblWhiteFont" Font-Names="tahoma" Font-Size="10"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                <telerik:radgrid runat="server" id="grdIOList" skin="WebBlue" autogeneratecolumns="False" DataSourceID="IoODS"
                    gridlines="None" allowmultirowselection="True" groupingenabled="False"
                    font-names="Tahoma" font-size="10pt" onitemcommand="GrdIoListItemCommand" onitemdatabound="grdIOList_ItemDataBound"
                    onsortcommand="GrdIoListSortCommand" onitemcreated="GrdIoListItemCreated" AllowPaging="True" PageSize="20"
                    OnPageSizeChanged="grdIOList_OnPageSizeChanged" OnPageIndexChanged="grdIOList_OnPageIndexChanged">
                    <mastertableview nodetailrecordstext="" datakeynames="PageNo" nomasterrecordstext="اطلاعاتی برای نمایش موجود نمی باشد"
                        allowcustompaging="False" AllowCustomSorting="True">
                        <Columns>
                            <telerik:GridTemplateColumn UniqueName="CheckBoxTemplateColumn" HeaderStyle-Width="30px"
                                ItemStyle-Width="30px">
                                <HeaderTemplate>
                                    <asp:CheckBox ID="headerChkbox" OnCheckedChanged="ToggleSelectedState" AutoPostBack="True"
                                        runat="server"></asp:CheckBox>
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <asp:CheckBox ID="CheckBox1" OnCheckedChanged="ToggleRowSelection" AutoPostBack="True"
                                        runat="server"></asp:CheckBox>
                                </ItemTemplate>
                                <HeaderStyle Width="30px"></HeaderStyle>
                                <ItemStyle Width="30px"></ItemStyle>
                            </telerik:GridTemplateColumn>
                            <telerik:GridBoundColumn DataField="Year" HeaderText="سال" UniqueName="Year" 
                                Display="false" AllowSorting="False">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="EvacuationSystem" HeaderText="نوع برگه" UniqueName="EvacuationSystem"
                                Display="false" AllowSorting="False" >
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="statusType" HeaderText="وضعیت" UniqueName="statusType"
                             AllowSorting="False" >
                                <HeaderStyle Font-Names="Tahoma" Font-Size="10pt" HorizontalAlign="Center" />
                                <ItemStyle Font-Names="Tahoma" Font-Size="10pt" HorizontalAlign="Center" />
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn Display="False" DataField="Status" HeaderText="وضعیت" UniqueName="Status"
                             AllowSorting="False">
                                <HeaderStyle Font-Names="Tahoma" Font-Size="10pt" HorizontalAlign="Center" />
                                <ItemStyle Font-Names="Tahoma" Font-Size="10pt" HorizontalAlign="Center" />
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn Display="False" DataField="section" HeaderText="قسمت" UniqueName="Section"
                                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="requestDate" HeaderText="تاریخ ثبت" UniqueName="requestDate"
                                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="CLOCKNAME" HeaderText="نام دستگاه" UniqueName="CLOCKNAME"
                               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="io" HeaderText="ورود/خروج" UniqueName="io" 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"
                                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="CLOCKDATE" HeaderText="تاریخ" UniqueName="CLOCKDATE" 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>
                            <telerik:GridBoundColumn DataField="PageNo" HeaderText="" UniqueName="PageNo" 
                                Display="false" AllowSorting="False">
                            </telerik:GridBoundColumn>
                        </Columns>
                    </mastertableview>
                    <clientsettings enablerowhoverstyle="true" reordercolumnsonclient="True" enablepostbackonrowclick="true"
                        allowautoscrollondragdrop="False">
                        <Selecting EnableDragToSelectRows="False" AllowRowSelect="true" />
                    </clientsettings>
                </telerik:radgrid>
                
                <asp:ObjectDataSource runat="server" ID="IoODS" EnablePaging="True" StartRowIndexParameterName="startRecord"
                    MaximumRowsParameterName="maxRecords" SelectCountMethod="GetCount" SelectMethod="GetIos"
                    TypeName="Eos.WebKart.Domain.IoInfo" ></asp:ObjectDataSource>
            </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="chkSearchMode">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="lblError" />
                    <telerik:AjaxUpdatedControl ControlID="pnlvacationDetail" />
                    <telerik:AjaxUpdatedControl ControlID="btnApproveAll" />
                    <telerik:AjaxUpdatedControl ControlID="grdIOList" />
                    <telerik:AjaxUpdatedControl ControlID="btnDenyAll" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="ddlSections">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="lblError" />
                    <telerik:AjaxUpdatedControl ControlID="pnlvacationDetail" />
                    <telerik:AjaxUpdatedControl ControlID="btnApproveAll" />
                    <telerik:AjaxUpdatedControl ControlID="grdIOList" />
                    <telerik:AjaxUpdatedControl ControlID="btnDenyAll" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="ddlSerachKind">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="lblError" />
                    <telerik:AjaxUpdatedControl ControlID="pnlvacationDetail" />
                    <telerik:AjaxUpdatedControl ControlID="btnApproveAll" />
                    <telerik:AjaxUpdatedControl ControlID="grdIOList" />
                    <telerik:AjaxUpdatedControl ControlID="btnDenyAll" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="btnSearchRequest">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="lblError" />
                    <telerik:AjaxUpdatedControl ControlID="pnlvacationDetail" />
                    <telerik:AjaxUpdatedControl ControlID="btnApproveAll" />
                    <telerik:AjaxUpdatedControl ControlID="grdIOList" />
                    <telerik:AjaxUpdatedControl ControlID="btnDenyAll" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="btnApprove">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="lblError" />
                    <telerik:AjaxUpdatedControl ControlID="pnlvacationDetail" />
                    <telerik:AjaxUpdatedControl ControlID="btnApproveAll" />
                    <telerik:AjaxUpdatedControl ControlID="grdIOList" />
                    <telerik:AjaxUpdatedControl ControlID="btnDenyAll" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="btnReject">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="lblError" />
                    <telerik:AjaxUpdatedControl ControlID="pnlvacationDetail" />
                    <telerik:AjaxUpdatedControl ControlID="btnApproveAll" />
                    <telerik:AjaxUpdatedControl ControlID="grdIOList" />
                    <telerik:AjaxUpdatedControl ControlID="btnDenyAll" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="btnReturn">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="lblError" />
                    <telerik:AjaxUpdatedControl ControlID="pnlvacationDetail" />
                    <telerik:AjaxUpdatedControl ControlID="btnApproveAll" />
                    <telerik:AjaxUpdatedControl ControlID="grdIOList" />
                    <telerik:AjaxUpdatedControl ControlID="btnDenyAll" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="btnDelete">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="lblError" />
                    <telerik:AjaxUpdatedControl ControlID="pnlvacationDetail" />
                    <telerik:AjaxUpdatedControl ControlID="btnApproveAll" />
                    <telerik:AjaxUpdatedControl ControlID="grdIOList" />
                    <telerik:AjaxUpdatedControl ControlID="btnDenyAll" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="btnApproveAll">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="pnlvacationDetail" />
                    <telerik:AjaxUpdatedControl ControlID="grdIOList" />
                    <telerik:AjaxUpdatedControl ControlID="btnDenyAll" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="grdIOList">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="lblError" />
                    <telerik:AjaxUpdatedControl ControlID="pnlvacationDetail" />
                    <telerik:AjaxUpdatedControl ControlID="grdIOList" />
                    <telerik:AjaxUpdatedControl ControlID="btnDenyAll" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="btnDenyAll">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="lblError" />
                    <telerik:AjaxUpdatedControl ControlID="pnlvacationDetail" />
                    <telerik:AjaxUpdatedControl ControlID="grdIOList" />
                    <telerik:AjaxUpdatedControl ControlID="btnApproveAll" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
    
</asp:Content>
