<%@ Page Title="" Language="C#" MasterPageFile="~/EmptyAjaxMaster.Master" AutoEventWireup="true" CodeBehind="ManagementActionsPage.aspx.cs" Inherits="MKInsight.Online.ActionTracking.TimeRecording.ManagementActionsPage" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="../UIControls/Interface/CommandLink.ascx" TagName="CommandLink" TagPrefix="uc1" %>
<%@ Register Src="../UIControls/PopupMessageBox.ascx" TagName="PopupMessageBox" TagPrefix="uc2" %>
<%@ Register Assembly="UIWebControls" Namespace="UIWebControls" TagPrefix="cc4" %>
<%@ Register Src="../UIControls/MessageBox.ascx" TagName="MessageBox" TagPrefix="uc3" %>

<%@ Register Src="../UIControls/PopupsHandler.ascx" TagName="PopupsHandler" TagPrefix="uc4" %>

<%@ Register Src="../UIControls/Interface/DropDownListEX.ascx" TagName="DropDownListEX" TagPrefix="uc5" %>

<%@ Register Src="../UIControls/Interface/InputDateEx.ascx" TagName="InputDateEx" TagPrefix="uc6" %>

<%@ Register Src="../UIControls/PopupPanel.ascx" TagName="PopupPanel" TagPrefix="uc7" %>

<%@ Register Src="../UIControls/Header.ascx" TagName="Header" TagPrefix="uc8" %>

<%@ Register src="../UIControls/Interface/TextBoxEx.ascx" tagname="TextBoxEx" tagprefix="uc9" %>

<%@ Register src="../UIControls/Interface/TextBoxNumberEx.ascx" tagname="TextBoxNumberEx" tagprefix="uc10" %>

<asp:Content ID="Content1" ContentPlaceHolderID="h" runat="server">

    <script type="text/javascript" src="../scripts/jquery/jquery_min.js"></script>

    <script type="text/javascript">
        function cb() {
            parent.$.colorbox.close();
            $('[id*=btn_partial_refresh]', parent.document).click();
        }
        function cb2() {
            parent.$.colorbox.close();
        }
    </script>

    <style>
        table.main td {
            padding: 6px;
        }
    </style>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="cm" runat="server">

    <uc8:Header ID="u_h" runat="server" />

    <uc3:MessageBox ID="u_m" runat="server" />
    
    <asp:MultiView ID="mv" runat="server">

        <asp:View ID="v_command" runat="server">
            <table class="main">
                <tr>
                    <td>

                        <asp:Label ID="lbl_SelectTask" runat="server" CssClass="wizardtitle"></asp:Label>

                    </td>
                </tr>
                <tr>
                    <td>
                        <uc1:CommandLink ID="btn_RemoveLock" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <uc1:CommandLink ID="btn_ExtendedAbsence" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <uc1:CommandLink ID="btn_ResetFlexiBalance" runat="server" />
                    </td>
                </tr>

            </table>
        </asp:View>
        <asp:View ID="v_lock" runat="server">
            <table style="width">
                <tr>
                    <td>
                        <asp:Label ID="lbl_LockTitle" runat="server" CssClass="wizardtitle"></asp:Label>
                        <br />
                        <br />
                    </td>
                </tr>
                <tr>
                    <td>
                        <div style="width: 100%; overflow-y: auto;">
                            <cc4:MKGridView ID="dg_lock" runat="server" AllowPaging="false" AutoGenerateColumns="False"
                                BorderStyle="None" CellPadding="3" DataKeyNames="ID" Font-Size="8pt"
                                OnRowDataBound="OnRowDataBound" Width="500" OnSorting="OnGridSorting" AutoGenerateCheckBoxColumn="true" CheckBoxColumnIndex="0" EnableCheckedColumnHeader="false">
                                <AlternatingRowStyle CssClass="alternatingrowstyle" />
                                <FooterStyle BackColor="White" ForeColor="#000066" />
                                <HeaderStyle CssClass="headerstyle" Font-Bold="True" HorizontalAlign="Left" Wrap="False" />
                                <PagerStyle HorizontalAlign="Left" />
                                <Columns>
                                    <asp:TemplateField Visible="false" HeaderStyle-Width="0">
                                        <ItemTemplate>
                                            <asp:HiddenField ID="hdID" runat="server" Value='<%# Eval("ID") %>' />
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:BoundField DataField="User" HeaderText="User" SortExpression="User" HtmlEncode="false" />
                                    <asp:BoundField DataField="TimesheetDate" DataFormatString="{0:dd/MM/yyyy }" HeaderText="TimesheetDate" SortExpression="TimesheetDate"></asp:BoundField>
                                    <asp:BoundField DataField="Status" HeaderText="Status" SortExpression="Status" HtmlEncode="false" />
                                    <asp:BoundField DataField="State" HeaderText="State" SortExpression="State" />
                                </Columns>
                            </cc4:MKGridView>
                        </div>
                        <br />


                    </td>
                </tr>
                <tr>
                    <td>
                        <hr class="ee" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:CheckBox ID="mki_ShowAssignedUserTimesheets" runat="server" OnCheckedChanged="OnShowAssignedUsers" AutoPostBack="true" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <hr class="ee" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <div >
                            <asp:Button ID="btn_RemoveLockBack" runat="server" OnClick="OnRemoveLockBack"  />
                            <asp:Button ID="btn_RemoveLock_OK" runat="server" OnClick="OnRemoveLockFinish" />
                            <asp:Button ID="btn_RemoveLock_Cancel" runat="server" OnClick="OnRemoveLockCancel" />
                        </div>
                    </td>
                </tr>
            </table>
        </asp:View>

        <asp:View ID="v_register" runat="server">
            <table style="width: 100%">
                <tr>
                    <td>
                        <asp:Label ID="lbl_RegisterTitle" runat="server" CssClass="wizardtitle"></asp:Label>
                        <br />
                        <br />
                    </td>
                </tr>
                <tr>
                    <td>

                        <uc4:PopupsHandler ID="p_register_user" runat="server" />

                    </td>
                </tr>
                <tr>
                    <td>

                        <uc5:DropDownListEX ID="p_register_code" runat="server" />

                    </td>
                </tr>
                <tr>
                    <td>

                        <uc6:InputDateEx ID="p_register_start" runat="server" />

                    </td>
                </tr>
                <tr>
                    <td>

                        <uc6:InputDateEx ID="p_register_end" runat="server" />

                    </td>
                </tr>

                <tr>
                    <td>
                        <hr class="ee" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <div >
                            <asp:Button ID="btn_register_Back" runat="server" OnClick="OnRegisterAbsenceBack"  />
                            <asp:Button ID="btn_register_OK" runat="server" OnClick="OnRegisterAbsenceEnter" />
                            <asp:Button ID="btn_register_Cancel" runat="server" OnClick="OnRegisterAbsenceClose" />
                        </div>
                    </td>
                </tr>
            </table>
        </asp:View>

        <asp:View ID="v_flexi" runat="server">
                <table style="width: 100%">
                <tr>
                    <td>
                        <asp:Label ID="lbl_FlexiTitle" runat="server" CssClass="wizardtitle"></asp:Label>
                        <br />
                        <br />
                    </td>
                </tr>
                <tr>
                    <td>

                        <uc4:PopupsHandler ID="p_flexi_user" runat="server" />

                    </td>
                </tr>
                <tr>
                    <td>

                        <uc10:TextBoxNumberEx ID="p_flexi_balance" runat="server" />

                    </td>
                </tr>
              

                <tr>
                    <td>
                        <hr class="ee" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <div>
                            <asp:Button ID="btn_flexi_Back" runat="server" OnClick="OnFlexiBack"   />
                            <asp:Button ID="btn_flexi_OK" runat="server" OnClick="OnFlexiResetBalanceFinish"  />
                            <asp:Button ID="btn_flexi_Cancel" runat="server" OnClick="OnFlexiClose" />
                        </div>
                    </td>
                </tr>
            </table>

        </asp:View>

    </asp:MultiView>

    <uc2:PopupMessageBox ID="u_MessageLock" runat="server" />
    <uc2:PopupMessageBox ID="u_MessageAbsence" runat="server" />

    <cc1:ModalPopupExtender ID="mdp" runat="server" TargetControlID="btn_pHandler" PopupControlID="Pxc"
        BackgroundCssClass="modalBackground">
    </cc1:ModalPopupExtender>
    <cc1:DragPanelExtender ID="dpE" runat="server" DragHandleID="pnlHeader" TargetControlID="pxc" />
    <asp:Button ID="btn_pHandler" runat="server" Style="display: none;" />
    <asp:Panel ID="Pxc" runat="server" CssClass="frame" Style="display: none; margin-top: 10px;">
        <div class="overlay">
            <div style="float: right; margin-top: -28px; margin-right: -10px;">
                <asp:ImageButton ID="ImageButton1" ImageUrl="~/images/jq/close.png" runat="server" />
            </div>
            <div style="float: right;">
                <asp:Button ID="btn_TopOK" runat="server" OnClick="OnOK" />
                <asp:Button ID="btn_TopCancel" runat="server" />
            </div>
            <uc7:PopupPanel ID="usc_PP" runat="server" />


            <div class="divpok">
                <asp:Button ID="btn_POK" runat="server" OnClick="OnOK" />
                <asp:Button ID="btn_PCancel" runat="server" />
            </div>


        </div>
    </asp:Panel>

</asp:Content>
