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

<%@ 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">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table width="100%">
        <tr>
            <td colspan="2" align="right">
                <asp:Image ID="Image1" runat="server" SkinID="imgspesificExtraArchive" />
            </td>
        </tr>
        <tr>
            <td colspan="2" class="CenterTD">
                <asp:Label ID="lblError" runat="server" SkinID="LblError"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="RightTD">
                <asp:DropDownList runat="server" Width="100px" Height="22px" ID="ddlPeriods" OnSelectedIndexChanged="ddlPeriods_SelectedIndexChanged"
                    AutoPostBack="true">
                    <asp:ListItem Text="تمامی دوره ها" Value="0">تمامی دوره ها </asp:ListItem>
                    <asp:ListItem>1</asp:ListItem>
                    <asp:ListItem>2</asp:ListItem>
                    <asp:ListItem>3</asp:ListItem>
                    <asp:ListItem>4</asp:ListItem>
                    <asp:ListItem>5</asp:ListItem>
                    <asp:ListItem>6</asp:ListItem>
                    <asp:ListItem>7</asp:ListItem>
                    <asp:ListItem>8</asp:ListItem>
                    <asp:ListItem>9</asp:ListItem>
                    <asp:ListItem>10</asp:ListItem>
                    <asp:ListItem>11</asp:ListItem>
                    <asp:ListItem>12</asp:ListItem>
                </asp:DropDownList>
            </td>
            <td class="LeftTD" valign="top">
                دوره:
            </td>
        </tr>
        <tr>
            <td class="RightTD">
                <asp:DropDownList ID="ddlSerachKind" runat="server" SkinID="ddlYellow" Width="230px"
                    AutoPostBack="True" OnSelectedIndexChanged="ddlSerachKind_SelectedIndexChanged"
                    ValidationGroup="Search">
                    <asp:ListItem Selected="True" Value="1">در حال پیگیری</asp:ListItem>
                    <asp:ListItem Value="2">درخواست های تائید شده</asp:ListItem>
                    <asp:ListItem Value="4">درخواست های برگشت خورده</asp:ListItem>
                    <asp:ListItem Value="5">تمامی اضافه کارهای ویژه </asp:ListItem>
                </asp:DropDownList>
                <asp:Button ID="btnSearchRequest" runat="server" ValidationGroup="Search" Text="جستجو"
                    SkinID="btnOrange" OnClick="btnSearchRequest_Click" />
            </td>
            <td class="LeftTD">
                نوع درخواست:
            </td>
        </tr>
        <tr>
            <td colspan="2" class="CenterTD">
                <telerik:RadGrid ID="grdSpecificExtraWorkList" runat="server" AllowSorting="True"
                    AutoGenerateColumns="False" Font-Names="Tahoma" Font-Size="10pt" GridLines="None"
                    GroupingEnabled="False" OnPageSizeChanged="GridOnPageSizeChanged" DataSourceID="SpecificExtraWorkODS"
                    OnPageIndexChanged="GridOnPageIndexChanged" AllowPaging="True" PageSize="20"
                    OnItemCommand="GridItemCommand" OnSortCommand="GridSortCommand" Skin="WebBlue" >
                    <MasterTableView AllowCustomPaging="False" AllowCustomSorting="True" NoDetailRecordsText=""
                        NoMasterRecordsText="اطلاعاتی برای نمایش موجود نمی باشد">
                        <Columns>
                            <telerik:GridBoundColumn DataField="statusType" 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 DataField="RECDATE" HeaderText="تاریخ درخواست" UniqueName="RECDATE"
                                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="ExtraWork" HeaderText="اضافه کار ویژه"
                                UniqueName="ExtraWork" 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="PeriodName" HeaderText="دوره/ماه" UniqueName="PeriodName"
                                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="Year" HeaderText="سال" UniqueName="Year" Display="false"
                                AllowSorting="False">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="DBKIND" HeaderText="نوع دیتابیس" UniqueName="DBKIND"
                                Display="false" AllowSorting="False">
                            </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 AllowAutoScrollOnDragDrop="False" EnablePostBackOnRowClick="true"
                        EnableRowHoverStyle="true" ReorderColumnsOnClient="True">
                        <Selecting EnableDragToSelectRows="False" />
                    </ClientSettings>
                </telerik:RadGrid>
                <asp:ObjectDataSource runat="server" ID="SpecificExtraWorkODS" EnablePaging="True"
                    StartRowIndexParameterName="startRecord" MaximumRowsParameterName="maxRecords"
                    SelectCountMethod="GetCount" SelectMethod="GetSpecificExtraWorkForPerson" TypeName="Eos.WebKart.Domain.EspecificExtraWork">
                </asp:ObjectDataSource>
            </td>
        </tr>
        <tr>
            <td colspan="2" class="CenterTD">
                <asp:Panel runat="server" Visible="false" ID="pnlExtraWorkDetail">
                    <table width="100%" cellpadding="3" cellspacing="4">
                        <tr>
                            <td class="RightTD">
                                <asp:Label ID="lbllastChangeDate" 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="lblApprovedBy" runat="server" Text=""></asp:Label>
                            </td>
                            <td class="LeftTD">
                                تائید/رد کننده:
                            </td>
                            <td class="RightTD">
                                <asp:Label ID="lblStatus" runat="server" Text=""></asp:Label>
                            </td>
                            <td style="width: 150px" class="LeftTD">
                                وضعیت:
                            </td>
                        </tr>
                        <tr>
                            <td class="RightTD">
                            </td>
                            <td class="LeftTD">
                            </td>
                            <td class="RightTD">
                                <asp:Label ID="lblReqestDate" runat="server" Text=""></asp:Label>
                            </td>
                            <td style="width: 150px" class="LeftTD">
                                تاریخ درخواست:
                            </td>
                        </tr>
                        <tr>
                            <td colspan="4" class="CenterTD">
                                <hr style="size: 1px; color: Yellow; width: 600px" />
                            </td>
                        </tr>
                        <tr>
                            <td colspan="4" class="CenterTD">
                                <asp:Label ID="lblSpecificExtraWorkMessage" runat="server" Text="" Visible="false"></asp:Label>
                                <telerik:RadGrid runat="server" ID="grdPageCommentList" Skin="WebBlue" AutoGenerateColumns="False"
                                    GridLines="None" AllowPaging="false" AllowSorting="false" GroupingEnabled="False"
                                    Font-Names="Tahoma" Font-Size="10pt" Visible="false">
                                    <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>
    </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="ddlSerachKind">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="lblError" />
                    <telerik:AjaxUpdatedControl ControlID="grdSpecificExtraWorkList" />
                    <telerik:AjaxUpdatedControl ControlID="pnlExtraWorkDetail" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="ddlPeriods">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="lblError" />
                    <telerik:AjaxUpdatedControl ControlID="grdSpecificExtraWorkList" />
                    <telerik:AjaxUpdatedControl ControlID="pnlExtraWorkDetail" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="btnSearchRequest">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="lblError" />
                    <telerik:AjaxUpdatedControl ControlID="grdSpecificExtraWorkList" />
                    <telerik:AjaxUpdatedControl ControlID="pnlExtraWorkDetail" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="grdSpecificExtraWorkList">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="lblError" />
                    <telerik:AjaxUpdatedControl ControlID="pnlExtraWorkDetail" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
</asp:Content>
