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

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ 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="4" class="RightTD">
                <asp:Image ID="Image1" runat="server" SkinID="imgpersonelMonthWorkLabel" />
            </td>
        </tr>
        <tr>
            <td class="RightTD" style="width: 500px">
                <asp:DropDownList ID="ddlMonth" runat="server" DataTextField="MMONTH" DataValueField="MMONTH"
                    Width="100px">
                </asp:DropDownList>
            </td>
            <td class="LeftTD" style="width: 80px">
                انتخاب ماه:
            </td>
            <td class="RightTD" style="width: 146px">
                <asp:DropDownList ID="ddlYears" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlYears_SelectedIndexChanged"
                    Width="100px">
                </asp:DropDownList>
            </td>
            <td class="LeftTD">
                انتخاب سال:
            </td>
        </tr>
        <tr>
            <td class="RightTD" colspan="3">
                <asp:DropDownList ID="ddlSections" runat="server" SkinID="ddlYellow" Width="200px"
                    AutoPostBack="True" OnSelectedIndexChanged="ddlSections_SelectedIndexChanged">
                </asp:DropDownList>
                &nbsp;<asp:Button ID="btnShowMonthWork" runat="server" Text="نمایش" SkinID="btnOrange"
                    OnClick="btnShowMonthWork_Click" />
            </td>
            <td class="LeftTD" style="width: 250px">
                قسمت کاری:
            </td>
        </tr>
        <tr>
            <td class="CenterTD" colspan="4">
                <telerik:RadGrid runat="server" ID="grdPersonelMonthWork" Skin="WebBlue" AutoGenerateColumns="False"
                    GridLines="None" AllowPaging="false" AllowSorting="True" PageSize="30" GroupingEnabled="False"
                    Font-Names="Tahoma" Font-Size="8pt" OnItemCommand="grdPersonelMonthWork_ItemCommand"
                    OnSortCommand="grdPersonelMonthWork_SortCommand">
                    <MasterTableView NoMasterRecordsText="اطلاعاتی برای نمایش موجود نمی باشد" DataKeyNames="PERNO">
                        <RowIndicatorColumn>
                            <HeaderStyle Width="20px"></HeaderStyle>
                        </RowIndicatorColumn>
                        <Columns>
                            <telerik:GridBoundColumn DataField="nonWork" HeaderText="کل کسر کار" UniqueName="nonWork">
                                <HeaderStyle Font-Names="Tahoma" Font-Size="8pt" HorizontalAlign="Center" />
                                <ItemStyle Font-Names="Tahoma" Font-Size="10pt" HorizontalAlign="Center" />
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="koleKarkard" HeaderText="کل کارکرد" UniqueName="koleKarkard">
                                <HeaderStyle Font-Names="Tahoma" Font-Size="8pt" HorizontalAlign="Center" />
                                <ItemStyle Font-Names="Tahoma" Font-Size="10pt" HorizontalAlign="Center" />
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="vacationBihoghogh" HeaderText="مرخصی بدون حقوق"
                                UniqueName="vacationBihoghogh">
                                <HeaderStyle Font-Names="Tahoma" Font-Size="8pt" HorizontalAlign="Center" />
                                <ItemStyle Font-Names="Tahoma" Font-Size="10pt" HorizontalAlign="Center" />
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="vacationEstehghaghi" HeaderText="مرخصی استحقاقی"
                                UniqueName="vacationEstehghaghi">
                                <HeaderStyle Font-Names="Tahoma" Font-Size="8pt" HorizontalAlign="Center" />
                                <ItemStyle Font-Names="Tahoma" Font-Size="10pt" HorizontalAlign="Center" />
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="missionKol" HeaderText="ماموریت" UniqueName="missionKol">
                                <HeaderStyle Font-Names="Tahoma" Font-Size="8pt" HorizontalAlign="Center" />
                                <ItemStyle Font-Names="Tahoma" Font-Size="10pt" HorizontalAlign="Center" />
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="extraWorkMojaz" HeaderText="اضافه کار مجاز" UniqueName="extraWorkMojaz">
                                <HeaderStyle Font-Names="Tahoma" Font-Size="8pt" HorizontalAlign="Center" />
                                <ItemStyle Font-Names="Tahoma" Font-Size="10pt" HorizontalAlign="Center" />
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="days" HeaderText="روز کارکرد" UniqueName="days">
                                <HeaderStyle Font-Names="Tahoma" Font-Size="8pt" HorizontalAlign="Center" />
                                <ItemStyle Font-Names="Tahoma" Font-Size="10pt" HorizontalAlign="Center" />
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="personName" HeaderText="نام خانوادگی و نام" UniqueName="personName">
                                <HeaderStyle Font-Names="Tahoma" Font-Size="8pt" HorizontalAlign="Center" />
                                <ItemStyle Font-Names="Tahoma" Font-Size="10pt" HorizontalAlign="Right" />
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="PERNO" HeaderText="شماره پرسنلی" UniqueName="PERNO">
                                <HeaderStyle Font-Names="Tahoma" Font-Size="8pt" HorizontalAlign="Center" />
                                <ItemStyle Font-Names="Tahoma" Font-Size="10pt" HorizontalAlign="Center" />
                            </telerik:GridBoundColumn>
                        </Columns>
                    </MasterTableView>
                    <ClientSettings ReorderColumnsOnClient="True" EnableRowHoverStyle="true" EnablePostBackOnRowClick="true"
                        AllowAutoScrollOnDragDrop="False">
                        <Selecting EnableDragToSelectRows="False" />
                    </ClientSettings>
                </telerik:RadGrid>
                <asp:HyperLink runat="server" ImageUrl="~/App_Themes/eosMainThem/icons/45491.png"
                    ID="hlPrint" Target="_blank" Visible="false"></asp:HyperLink>
            </td>
        </tr>
    </table>
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Default"
        InitialDelayTime="2" MinDisplayTime="100" Width="184px">
    </telerik:RadAjaxLoadingPanel>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" DefaultLoadingPanelID="RadAjaxLoadingPanel1">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="ddlPeriod">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="grdPersonelPrdWork" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="ddlYears">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="ddlPeriod" />
                    <telerik:AjaxUpdatedControl ControlID="btnShowPeriodWork" />
                    <telerik:AjaxUpdatedControl ControlID="grdPersonelPrdWork" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="ddlSections">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="grdPersonelPrdWork" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="btnShowPeriodWork">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="grdPersonelPrdWork" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="grdPersonelPrdWork">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="grdPersonelPrdWork" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="hlPrint">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="hlPrint" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
</asp:Content>
