<%@ Page Title="" Language="C#" MasterPageFile="~/eosWinkartWeb/eosWinkartWeb.Master" AutoEventWireup="true" CodeBehind="addExtraWorkGroupRequest.aspx.cs" Inherits="WebKart.eosWinkartWeb.addExtraWorkGroupRequest" %>
<%@ Register Assembly="KingOf.Net.Web.UI.WebControls.PersianCalendar" Namespace="KingOf.Net.Web.UI.WebControls"
    TagPrefix="KingOfDotNet" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
 
    <table width="100%" class="InnerTable">
        <tr>
            <td colspan="2" class="CenterTD">
        <asp:Label ID="lblError" runat="server" Text=""></asp:Label>
       </td>
       </tr>
    <asp:Panel runat="server" ID="pnlpersonList">
    <tr>
    <td colspan="2" class="RightTD">
        <asp:RadioButtonList ID="rdSelectType" runat="server"  AutoPostBack=true
            RepeatDirection="Horizontal" 
            onselectedindexchanged="rdSelectType_SelectedIndexChanged">
        <asp:ListItem Text="انتخاب همه" Value=1></asp:ListItem>
        <asp:ListItem Text="عدم انتخاب همه" Value=0></asp:ListItem>
        </asp:RadioButtonList>
    </td>
    </tr>
    <tr>
<td class="RightTD" colspan="2">
    <asp:CheckBoxList ID="chkPersonelList" runat="server"  skinID="personchkList" DataTextField="PersonName" DataValueField="perno">
    </asp:CheckBoxList>
</td>
</tr>
    </asp:Panel>
<tr>
        
<td class="LeftTD">
    <asp:Button ID="btnNext" runat="server" Text="مرحله ثبت برگه" 
        onclick="btnNext_Click" SkinID="btnOrange" CausesValidation="False"  />
</td>
<td class="RightTD">
    <asp:Button ID="btnSelectPerson" runat="server" Text="مرحله انتخاب افراد" 
        onclick="btnSelectPerson_Click"  SkinID="btnOrange" Visible="false"
        CausesValidation="False" />
</td>
</tr>

<tr>
<td colspan="2">
<asp:Panel runat="server" ID="pnlExtraWork" Visible=false>
<table width="100%">
<tr>
<td colspan="2" class="RightTD">
    <asp:Label ID="lblSelectedName" runat="server" Text="" SkinID="LblError">انتخاب شده ها:</asp:Label>
</td>
</tr>
<tr>
<td colspan="2" class="CenterTD">
    
    <asp:Label ID="lblPersonsList" runat="server" Text="" Visible=false></asp:Label>
</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" valign="top">از تاریخ:</td>
</tr>
        <tr>
            <td align="right">
                <asp:RegularExpressionValidator ID="RegularExpressionValidator4" 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="dd" Font-Names="Tahoma" Font-Size="8pt" ForeColor="Yellow"></asp:RegularExpressionValidator>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtEndDate"
                    Display="Dynamic" ErrorMessage="*"></asp:RequiredFieldValidator>
                <asp:TextBox ID="txtEndDate" runat="server" Width="100px"></asp:TextBox>
                <cc1:MaskedEditExtender ID="MaskedEditExtender4" 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">
                            </KingOfDotNet:PersianCalendar>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                </asp:Panel>
            </td>
            <td class="LeftTD" style="width: 150px">
                تا تاریخ:
            </td>
        </tr>
<tr>
<td align="right">
 <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"> از ساعت:</td>
</tr>
<tr>
<td align="right">
 <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
         ControlToValidate="txtEndTime" 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="txtEndTime"></asp:RequiredFieldValidator>
 <asp:TextBox ID="txtEndTime" runat="server" Width="100px"></asp:TextBox>
 <cc1:maskededitextender ID="MaskedEditExtender1" runat="server" 
        TargetControlID="txtEndTime" AutoComplete="false" MaskType="Time" Mask="99:99">
 </cc1:maskededitextender>

   </td>
<td class="LeftTD">تا ساعت:</td>
</tr>
<tr>
<td class="RightTD">
    <asp:TextBox ID="txtDescript" runat="server" Width="400px" TextMode="MultiLine"></asp:TextBox>
    </td>
<td class="LeftTD">توضیحات/دلیل:</td>
</tr>
<tr>
<td>
    <asp:Button ID="btnSubmit" runat="server" Text="ثبت" SkinID="btnOrange" 
        onclick="btnSubmit_Click"   />
         &nbsp;
    </td>
 
</tr>

</table>
</asp:Panel>
</td>
</tr>
</table>

</asp:Content>

