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

<%@ Register Src="../ASCX/WorkCalendar.ascx" TagName="WorkCalendar" TagPrefix="uc1" %>
<%@ 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" %>
<%@ 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%">
        <tr>
            <td colspan="2" align="right">
                <asp:Image ID="Image1" runat="server" SkinID="imgExtraWorkRequestLabel" />
            </td>
        </tr>
        <tr>
            <td colspan="2" class="CenterTD">
                <asp:Label ID="lblError" runat="server" Text=""></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 align="left" colspan="2">
                <div style="margin-left: 245px;">
                    <div style="float: left; margin-right: 3px">
                        <asp:Button ID="btnSubmit" runat="server" Text="ثبت" SkinID="btnOrange" OnClick="btnSubmit_Click" />
                    </div>
                    <div style="float: left;">
                        <asp:Button ID="btnWorkCalendar" runat="server" Text="تقویم کاری" SkinID="btnOrange"
                            OnClick="btnWorkCalendar_Click" CausesValidation="False" />
                    </div>
                </div>
            </td>
        </tr>
    </table>
    <uc1:WorkCalendar ID="workCalendar" runat="server" Visible="false" />
    <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="btnSubmit">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="lblError" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="btnWorkCalendar">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="workCalendar" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="btnIOIndo">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="lblError" />
                    <telerik:AjaxUpdatedControl ControlID="grdIODump" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
    
</asp:Content>
