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

<%@ 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" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link rel="shortcut icon" href="../App_Themes/eosMainThem/icons/flag_blue.ico" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    
    <table width="100%">
        <tr>
            <td align="right">
                <asp:Image ID="Image1" runat="server" SkinID="imgMissionReq" />
                <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" EnableViewState="False"></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="chkCanAcceptMode_CheckedChanged" />
                            </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="chkSearchMode_CheckedChanged" />
                            </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="RequiredFieldValidator2" 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>
                            </td>
                            <td class="RightTD">
                                <asp:DropDownList ID="ddlSections" runat="server" SkinID="ddlYellow" Width="250px"
                                    AutoPostBack="True" OnSelectedIndexChanged="ddlSections_SelectedIndexChanged">
                                </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="ddlSerachKind_SelectedIndexChanged">
                                    <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" Text="جستجو" ValidationGroup="Search"
                                    SkinID="btnOrange" OnClick="btnSearchRequest_Click" Style="height: 26px" />
                            </td>
                            <td class="LeftTD">
                                نوع درخواست:
                            </td>
                        </tr>
                        <tr>
                            <td class="CenterTD" colspan="3">
                                <hr style=" 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="lblpageNo" runat="server" Text=""></asp:Label>
                            </td>
                            <td class="LeftTD">
                                شماره برگه:
                            </td>
                            <td class="RightTD">
                                <asp:Label ID="lblName" runat="server" Text=""></asp:Label>
                            </td>
                            <td class="LeftTD">
                                نام:
                            </td>
                        </tr>
                        <tr>
                            <td class="RightTD">
                                <asp:Label ID="lblBeginTime" runat="server" Text=""></asp:Label>
                            </td>
                            <td class="LeftTD">
                                از ساعت:
                            </td>
                            <td class="RightTDltr">
                                <asp:Label ID="lblBeginDate" runat="server" Text=""></asp:Label>
                            </td>
                            <td class="LeftTD">
                                &nbsp;از تاريخ:
                            </td>
                        </tr>
                        <tr>
                            <td class="RightTD">
                                <asp:Label ID="lblEndTime" runat="server" Text=""></asp:Label>
                            </td>
                            <td class="LeftTD">
                                تا ساعت:
                            </td>
                            <td class="RightTDltr">
                                <asp:Label ID="lblEndDate" runat="server" Text=""></asp:Label>
                            </td>
                            <td class="LeftTD">
                                &nbsp;تا تاريخ:
                            </td>
                        </tr>
                        <tr>
                            <td class="RightTD">
                                <asp:Label ID="lblLocation" runat="server" Text=""></asp:Label>
                            </td>
                            <td class="LeftTD">
                                محل ماموريت:
                            </td>
                            <td class="RightTDltr">
                                <asp:Label ID="lblCity" runat="server" Text=""></asp:Label>
                            </td>
                            <td style="width: 150px" class="LeftTD">
                                شهر:
                            </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="lblMissionType" runat="server" Text=""></asp:Label>
                            </td>
                            <td class="LeftTD">
                                نوع درخواست:
                            </td>
                        </tr>
                        <tr>
                            <td colspan="4" class="CenterTD">
                                <hr style=" color: Yellow; width: 600px">
                            </td>
                        </tr>
                        <tr>
                            <td class="RightTD">
                                &nbsp;
                            </td>
                            <td class="LeftTD">
                                &nbsp;
                            </td>
                            <td class="RightTD">
                                <asp:Label ID="lblStatus" runat="server" Text=""></asp:Label>
                            </td>
                            <td class="LeftTD">
                                وضعيت:
                            </td>
                        </tr>
                        <tr>
                            <td colspan="4" class="CenterTD">
                                <hr style="color: Yellow; width: 600px">
                            </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="lblType" runat="server" Text="" Visible="false"></asp:Label>
                                <asp:Label ID="lblYear" runat="server" Text="" Visible="false"></asp:Label>
                                <hr style=" color: Yellow; width: 600px">
                            </td>
                        </tr>
                        <tr>
                            <td colspan="4">
                                <telerik:radgrid id="rdGridTimes" runat="server" skin="WebBlue" autogeneratecolumns="False"
                                    gridlines="None" allowcustompaging="True" allowpaging="True" allowsorting="false"
                                    pagesize="20" groupingenabled="False" font-names="Tahoma" font-size="10pt">
                                    <mastertableview nodetailrecordstext="" nomasterrecordstext="اطلاعاتي براي نمايش موجود نمي باشد"
                                        allowcustompaging="False">
                                        <Columns>
                                            <telerik:GridBoundColumn DataField="endTime" HeaderText="ساعت پايان" UniqueName="endTime">
                                                <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">
                                                <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">
                                                <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="DayDate">
                                                <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="" Display="false" UniqueName="pageNo">
                                            </telerik:GridBoundColumn>
                                            <telerik:GridBoundColumn DataField="perno" HeaderText="" Display="false" UniqueName="perno">
                                            </telerik:GridBoundColumn>
                                        </Columns>
                                    </mastertableview>
                                </telerik:radgrid>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="3" class="RightTD">
                                <asp:TextBox ID="txtAdminParaf" runat="server" SkinID="txtBlack" Width="486px" 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="btnApprove_Click" Visible="False" />
                                        </td>
                                        <td class="CenterTD">
                                            <asp:Button ID="btnReject" runat="server" Text="رد درخواست" SkinID="btnOrange" OnClick="btnReject_Click"
                                                Visible="False" />
                                        </td>
                                        <td class="CenterTD">
                                            <asp:Button ID="btnReturn" runat="server" Text="برگشت درخواست" SkinID="btnOrange"
                                                OnClick="btnReturn_Click" Visible="False" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="CenterTD">
                                            <asp:Button ID="btnDelete" runat="server" Text="حذف درخواست" SkinID="btnOrange" OnClick="btnDelete_Click"
                                                Visible="False" />
                                        </td>
                                        <td class="CenterTD">
                                            <asp:Button ID="btnEdit" runat="server" Text="ويرايش درخواست" SkinID="btnOrange"
                                                Visible="False" />
                                        </td>
                                        <td class="CenterTD">
                                            <asp:Button ID="btnShowList" runat="server" Text="مشاهده ليست" SkinID="btnOrange"
                                                OnClick="btnShowList_Click" />
                                        </td>
                                    </tr>
                                </table>
                            </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>
                                    <clientsettings enablerowhoverstyle="true" reordercolumnsonclient="True" enablepostbackonrowclick="true"
                                        allowautoscrollondragdrop="False">
                                        <Selecting EnableDragToSelectRows="False" />
                                    </clientsettings>
                                </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="btnDenyAll_Click" />
                    </div>
                    <div style="float: left;">
                        <asp:Button ID="btnApproveAll" runat="server" Text="تائيد برگه هاي انتخاب شده" SkinID="btnOrangeFreeSize"
                            Visible="false" OnClick="btnApproveAll_Click" />
                    </div>
                    <div style="clear: both">
                    </div>
                </div>
            </td>
        </tr>
        <tr>
            <td>
                <telerik:radgrid runat="server" id="grdVacationList" skin="WebBlue" autogeneratecolumns="False"
                    gridlines="None" allowsorting="False" allowmultirowselection="True" groupingenabled="False" DataSourceID="missionODS"
                    font-names="Tahoma" font-size="10pt" onsortcommand="grdVacationList_SortCommand" OnPageSizeChanged="grdVacationList_OnPageSizeChanged"
                    OnPageIndexChanged="grdVacationList_OnPageIndexChanged" AllowPaging="True" PageSize="20"
                    onitemcreated="grdVacationList_ItemCreated" onitemcommand="grdVacationList_ItemCommand" OnItemDataBound="grdVacationList_OnItemDataBound">
                    <mastertableview nodetailrecordstext="" datakeynames="PAGENO,Year" nomasterrecordstext="اطلاعاتي براي نمايش موجود نمي باشد" 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">
                                <HeaderStyle Font-Names="Tahoma" Font-Size="10pt" HorizontalAlign="Center" />
                                <ItemStyle Font-Names="Tahoma" Font-Size="10pt" HorizontalAlign="Center" />
                            </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 Display="False" DataField="TYPE" HeaderText="نوع" UniqueName="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="ENDTIME" HeaderText="س پايان" HeaderTooltip="ساعت پايان"
                                UniqueName="ENDTIME" AllowSorting="False">
                                <HeaderStyle Font-Names="Tahoma" Font-Size="10pt" HorizontalAlign="Center" Width="75px" />
                                <ItemStyle Font-Names="Tahoma" Font-Size="10pt" HorizontalAlign="Center" Width="75px" />
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="ENDDATE" HeaderText="تاريخ پايان" UniqueName="ENDDATE"
                                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="BEGINTIME" HeaderText="س شروع" HeaderTooltip="ساعت شروع"
                                UniqueName="BEGINTIME" AllowSorting="False" >
                                <HeaderStyle Font-Names="Tahoma" Font-Size="10pt" HorizontalAlign="Center" Width="75px" />
                                <ItemStyle Font-Names="Tahoma" Font-Size="10pt" HorizontalAlign="Center" Width="75px" />
                            </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="Name" HeaderText="نوع ماموریت" UniqueName="Name"
                                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="ن خ و نام" HeaderTooltip="نام و نام خانوادگي"
                                UniqueName="personName" 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="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">
                                <HeaderStyle Font-Names="Tahoma" Font-Size="10pt" HorizontalAlign="Center" />
                                <ItemStyle Font-Names="Tahoma" Font-Size="10pt" HorizontalAlign="Center" />
                            </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="missionODS" EnablePaging="True" StartRowIndexParameterName="startRecord"
                    MaximumRowsParameterName="maxRecords" SelectCountMethod="GetCount" SelectMethod="GetMissions"
                    TypeName="Eos.WebKart.Domain.Mission"></asp:ObjectDataSource>
            </td>
    </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="btnDenyAll" />
                    <telerik:AjaxUpdatedControl ControlID="grdVacationList" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="ddlSections">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="lblError" />
                    <telerik:AjaxUpdatedControl ControlID="pnlvacationDetail" />
                    <telerik:AjaxUpdatedControl ControlID="btnApproveAll" />
                    <telerik:AjaxUpdatedControl ControlID="grdVacationList" />
                    <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="grdVacationList" />
                    <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="grdVacationList" />
                    <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="grdVacationList" />
                    <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="grdVacationList" />
                    <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="grdVacationList" />
                    <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="grdVacationList" />
                    <telerik:AjaxUpdatedControl ControlID="btnDenyAll" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="btnApproveAll">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="pnlvacationDetail" />
                    <telerik:AjaxUpdatedControl ControlID="grdVacationList" />
                    <telerik:AjaxUpdatedControl ControlID="btnDenyAll" />
                     <telerik:AjaxUpdatedControl ControlID="lblError" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="btnDenyAll">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="pnlvacationDetail" />
                    <telerik:AjaxUpdatedControl ControlID="grdVacationList" />
                    <telerik:AjaxUpdatedControl ControlID="btnApproveAll" />
                     <telerik:AjaxUpdatedControl ControlID="lblError" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="grdVacationList">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="lblError" />
                    <telerik:AjaxUpdatedControl ControlID="pnlvacationDetail" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
    
</asp:Content>
