<%@ Page Title="" Language="C#" MasterPageFile="~/eosWinkartWeb/eosWinkartWeb.Master" AutoEventWireup="true" CodeBehind="eosAbsence.aspx.cs" Inherits="WebKart.eosWinkartWeb.eosAbsence" %>
<%@ Register Assembly="KingOf.Net.Web.UI.WebControls.PersianCalendar" Namespace="KingOf.Net.Web.UI.WebControls"
    TagPrefix="KingOfDotNet" %>
<%@ 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="2" class="RightTD">&nbsp;</td>
 </tr>
<tr>
            <td class="RightTD">
                <asp:DropDownList ID="ddlSections" runat="server" SkinID="ddlYellow" 
                    Width="200px" AutoPostBack="True" 
                    onselectedindexchanged="ddlSections_SelectedIndexChanged">
                </asp:DropDownList>
            </td>
            <td class="LeftTD" style="width: 250px">
               قسمت:
            </td>
        </tr>
 <tr>
            <td align="right">
                <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="txtbeginDate" Display="Dynamic"
        ErrorMessage=".تاریخ را صحیح وارد نمایید" ValidationExpression="\d\d\d\d[/](((0[1-6])[/](0[1-9]|[12][0-9]|3[01]))|((0[7-9]|1[012])[/](0[1-9]|[12][0-9]|3[0])))"
        ValidationGroup="dd"  Font-Names="tahoma" Font-Size="8pt"></asp:RegularExpressionValidator>
   <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtbeginDate" Display="Dynamic"
        ErrorMessage="*"></asp:RequiredFieldValidator>
   <asp:TextBox ID="txtbeginDate" runat="server" Width="100px" 
          ></asp:TextBox>
   <cc1:maskededitextender ID="MaskedEditExtender3" 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" NextPrevStyle-ForeColor="White">
    </KingOfDotNet:PersianCalendar>
    </ContentTemplate>
    </asp:UpdatePanel>
    </asp:Panel></td>
            <td class="LeftTD" style="width: 250px">
                تاریخ:</td>
        </tr>
        <tr>
            <td align="right">
            <asp:Button ID="btnShowAbsence" runat="server" 
                     onclick="btnShowAbsence_Click" SkinID="btnOrange" Text="مشاهده" />
                 <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" 
         ControlToValidate="txtBeginTime" 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="RequiredFieldValidator1" runat="server" ErrorMessage="*" ControlToValidate="txtBeginTime"></asp:RequiredFieldValidator>
 <asp:TextBox ID="txtBeginTime" runat="server" Width="100px"></asp:TextBox>
 <cc1:MaskedEditExtender ID="MaskedEditExtender2" runat="server" TargetControlID="txtBeginTime" AutoComplete="false" MaskType="Time" Mask="99:99">
 </cc1:MaskedEditExtender> 
            </td>
            <td class="LeftTD" style="width: 250px">
                ساعت:
            </td>
        </tr>
        <tr>
        <td colspan="2" class="RightTD">
        
            <asp:CheckBoxList ID="chkReasons" runat="server" Font-Names="Tahoma" 
                Font-Size="10pt"  RepeatDirection="Horizontal" 
               >
                <asp:ListItem Selected="True" Value="0">غیبت</asp:ListItem>
                <asp:ListItem Value="1">مرخصی روزانه</asp:ListItem>
                <asp:ListItem Value="2">ماموریت روزانه</asp:ListItem>
                <asp:ListItem Value="3">مرخصی ساعتی</asp:ListItem>
                <asp:ListItem Value="4">ماموریت ساعتی</asp:ListItem>
                <asp:ListItem Value="5">تاخیر سرویس</asp:ListItem>
            </asp:CheckBoxList>
        </td>
        </tr>
         <tr>
<td class="CenterTD" colspan="2">
<telerik:RadGrid runat="server" ID="grdAbsencePersonels" Skin="WebBlue" AutoGenerateColumns="False"
                    GridLines="None" AllowPaging="false" AllowSorting="True" 
        PageSize="30" GroupingEnabled="False"
                    Font-Names="Tahoma" Font-Size="10pt" onsortcommand="grdAbsencePersonels_SortCommand"  OnItemDataBound="grdAbsencePersonels_ItemDataBound"  
                   >
               
                    <MasterTableView NoMasterRecordsText="اطلاعاتی برای نمایش موجود نمی باشد" DataKeyNames="Perno">
                    <RowIndicatorColumn>
                    <HeaderStyle Width="20px"></HeaderStyle>
                    </RowIndicatorColumn>
                        <Columns>
                            <telerik:GridBoundColumn DataField="AbsentType" HeaderText="دلیل عدم حضور" UniqueName="AbsentType"
                                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="sectionName" HeaderText="قسمت" UniqueName="sectionName">
                                <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">
                                <HeaderStyle Font-Names="Tahoma" Font-Size="10pt" HorizontalAlign="Center" />
                                <ItemStyle Font-Names="Tahoma" Font-Size="10pt" HorizontalAlign="Right" />
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="Perno" HeaderText="شماره پرسنلی" UniqueName="Perno"
                                AllowSorting="true">
                                <HeaderStyle Font-Names="Tahoma" Font-Size="10pt" HorizontalAlign="Center" />
                                <ItemStyle Font-Names="Tahoma" Font-Size="10pt" HorizontalAlign="Center" />
                            </telerik:GridBoundColumn>
                        </Columns>
                    </MasterTableView>
 
                </telerik:RadGrid>

</td>
</tr>
<tr>
<td  colspan="2" class="LeftTD">
<asp:HyperLink runat="server" ImageUrl="~/App_Themes/eosMainThem/icons/45491.png" ID="hlPrint" Target="_blank" Visible="false"></asp:HyperLink>
&nbsp;</td>
  
</tr>

</table>

</asp:Content>

