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

<%@ 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 class="RightTD">
                <asp:Image ID="Image1" runat="server" SkinID="imgMissionHourLabel" />
            </td>
        </tr>
        <tr>
            <td>
                <table width="100%" cellpadding="3" cellspacing="4">
                    <tr>
                        <td class="RightTD">
                            <asp:Label ID="lblMissionType" 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="lblLocation" runat="server" Text=""></asp:Label>
                        </td>
                        <td class="LeftTD">
                            محل ماموریت:
                        </td>
                        <td class="RightTD">
                            <asp:Label ID="lblCity" runat="server" Text=""></asp:Label>
                        </td>
                        <td class="LeftTD">
                            شهر:
                        </td>
                    </tr>
                    <tr>
                        <td class="RightTD">
                            <asp:Label ID="lblEndDate" runat="server" Text="" SkinID="LblError"></asp:Label>
                        </td>
                        <td class="LeftTD">
                            تاریخ پایان:
                        </td>
                        <td class="RightTD">
                            <asp:Label ID="lblBeginDate" runat="server" Text="" SkinID="LblError"></asp:Label>
                        </td>
                        <td style="width: 150px" class="LeftTD">
                            تاریخ شروع:
                        </td>
                    </tr>
                    <tr>
                        <td colspan="4" class="CenterTD">
                            <hr style="size: 1; color: Yellow; width: 600px">
                        </td>
                    </tr>
                    <tr>
                        <td class="RightTD" colspan="4">
                            برای وارد کردن ساعت لطفا روز مورد نظر را انتخاب کنید
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td>
                <telerik:RadGrid ID="rdGridTimes" runat="server" Skin="WebBlue" AutoGenerateColumns="False"
                    GridLines="None" AllowCustomPaging="False" AllowPaging="False" AllowSorting="false"
                     GroupingEnabled="False" Font-Names="Tahoma" Font-Size="10pt" OnItemCommand="rdGridTimes_ItemCommand">
                    <MasterTableView NoDetailRecordsText="" NoMasterRecordsText="اطلاعاتی برای نمایش موجود نمی باشد"
                        AllowCustomPaging="False">
                        <Columns>
                            <telerik:GridBoundColumn DataField="endTime" HeaderText="ساعت پايان" UniqueName="endTime">
                                <HeaderStyle Font-Names="Tahoma" Font-Size="10pt" HorizontalAlign="Center" />
                                <ItemStyle Font-Names="Tahoma" Font-Size="10pt" HorizontalAlign="Center" />
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="beginTime" HeaderText="ساعت شروع" UniqueName="beginTime">
                                <HeaderStyle Font-Names="Tahoma" Font-Size="10pt" HorizontalAlign="Center" />
                                <ItemStyle Font-Names="Tahoma" Font-Size="10pt" HorizontalAlign="Center" />
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="DayName" HeaderText="روز" UniqueName="DayName">
                                <HeaderStyle Font-Names="Tahoma" Font-Size="10pt" HorizontalAlign="Center" />
                                <ItemStyle Font-Names="Tahoma" Font-Size="10pt" HorizontalAlign="Center" />
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="DayDate" HeaderText="تاريخ" UniqueName="DayDate">
                                <HeaderStyle Font-Names="Tahoma" Font-Size="10pt" HorizontalAlign="Center" />
                                <ItemStyle Font-Names="Tahoma" Font-Size="10pt" HorizontalAlign="Center" />
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="pageNo" HeaderText="" Visible="false" UniqueName="pageNo">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="perno" HeaderText="" Visible="false" UniqueName="perno">
                            </telerik:GridBoundColumn>
                        </Columns>
                    </MasterTableView>
                    <ClientSettings EnableRowHoverStyle="true" ReorderColumnsOnClient="True" EnablePostBackOnRowClick="true"
                        AllowAutoScrollOnDragDrop="False">
                        <Selecting EnableDragToSelectRows="False" />
                    </ClientSettings>
                </telerik:RadGrid>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <asp:Panel runat="server" ID="pnlTime" Visible="false">
                    <table width="100%">
                        <tr>
                            <td colspan="2" class="RightTD">
                                <img src="../App_Themes/eosMainThem/image/enterHour.png" alt="" />
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2" class="CenterTD">
                                <asp:Label ID="lblError" runat="server" Text="" SkinID="LblError"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td class="RightTD">
                                <asp:Label ID="lblDate" runat="server" Text="" SkinID="LblError"></asp:Label>
                            </td>
                            <td class="LeftTD">
                                تاریخ :
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                <asp:RegularExpressionValidator ID="RegularExpressionValidator6" runat="server" ControlToValidate="txtStartTime"
                                    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="RequiredFieldValidator6" runat="server" ErrorMessage="*"
                                    ControlToValidate="txtStartTime"></asp:RequiredFieldValidator>
                                <asp:TextBox ID="txtStartTime" runat="server" Width="100px"></asp:TextBox>
                                <cc1:MaskedEditExtender ID="MaskedEditExtender5" runat="server" TargetControlID="txtStartTime"
                                    AutoComplete="false" MaskType="Time" Mask="99:99">
                                </cc1:MaskedEditExtender>
                            </td>
                            <td class="LeftTD">
                                ساعت شروع:
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                <asp:RegularExpressionValidator ID="RegularExpressionValidator5" runat="server" ControlToValidate="txtFinishTime"
                                    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="RequiredFieldValidator5" runat="server" ErrorMessage="*"
                                    ControlToValidate="txtFinishTime"></asp:RequiredFieldValidator>
                                <asp:TextBox ID="txtFinishTime" runat="server" Width="100px"></asp:TextBox>
                                <cc1:MaskedEditExtender ID="MaskedEditExtender6" runat="server" TargetControlID="txtFinishTime"
                                    AutoComplete="false" MaskType="Time" Mask="99:99">
                                </cc1:MaskedEditExtender>
                            </td>
                            <td class="LeftTD">
                                ساعت پایان:
                            </td>
                        </tr>
                        <tr>
                            <td class="LeftTD">
                                <asp:Button ID="btnAddDayTime" runat="server" Text="ثبت ساعت" SkinID="btnOrange"
                                    OnClick="btnAddDayTime_Click" />
                                &nbsp;<asp:Button ID="btnRemoveDayTime" runat="server" Text="حذف ساعت" SkinID="btnOrange"
                                    CausesValidation="False" OnClick="btnRemoveDayTime_Click" />
                            </td>
                            <td>
                            </td>
                        </tr>
                    </table>
                </asp:Panel>
            </td>
        </tr>
        <tr>
            <td class="LeftTD">
                <asp:Button ID="btnSave" runat="server" Text="ذخیره" SkinID="btnOrange" OnClick="btnSave_Click" />
                <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="rdGridTimes">
                            <UpdatedControls>
                                <telerik:AjaxUpdatedControl ControlID="rdGridTimes" />
                                <telerik:AjaxUpdatedControl ControlID="btnSave" />
                                <telerik:AjaxUpdatedControl ControlID="pnlTime" />
                            </UpdatedControls>
                        </telerik:AjaxSetting>
                        <%--       <telerik:AjaxSetting AjaxControlID="txtbeginDate">
        </telerik:AjaxSetting>--%>
                        <telerik:AjaxSetting AjaxControlID="btnAddDayTime">
                            <UpdatedControls>
                                <telerik:AjaxUpdatedControl ControlID="rdGridTimes" />
                                <telerik:AjaxUpdatedControl ControlID="btnSave" />
                                <telerik:AjaxUpdatedControl ControlID="pnlTime" />
                            </UpdatedControls>
                        </telerik:AjaxSetting>
                        <telerik:AjaxSetting AjaxControlID="btnRemoveDayTime">
                            <UpdatedControls>
                                <telerik:AjaxUpdatedControl ControlID="rdGridTimes" />
                                <telerik:AjaxUpdatedControl ControlID="btnSave" />
                                <telerik:AjaxUpdatedControl ControlID="pnlTime" />
                            </UpdatedControls>
                        </telerik:AjaxSetting>
                    </AjaxSettings>
                </telerik:RadAjaxManager>
            </td>
        </tr>
        <tr>
            <td class="CenterTD">
                برای ثبت نهایی ساعت ها حتما اطلاعات را ذخیره کنید
            </td>
        </tr>
    </table>
   
</asp:Content>
