<%@ page language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_Hrm_Payroll_SelectPayroll, App_Web_nobwdkhq" title="Accounting Year Master" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Register Src="~/UserControls/DatePicker/DatePickerControl.ascx" TagName="DatePickerControl" TagPrefix="Date" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="~/UserControls/GridViewPager/GridViewPager.ascx" TagName="GridViewPager" TagPrefix="uc1" %>
<%@ Register Src="~/UserControls/Common/ScreenGroup/ScreenGroup.ascx" TagName="ScreenGroupControl" TagPrefix="ScreenGroup" %>
<%@ Register Src="~/UserControls/Common/EmployeeSearch/EmployeeSearch.ascx" TagName="EmployeeSearchControl" TagPrefix="hims" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="ResonMasterUpdatePanel" runat="server" UpdateMode="Always">
        <ContentTemplate>
            <div id="divContentPage" class="divcontentpagemargin">

                <div class="dashBoardLeftCont">
                    <div class="himssuHeader3WireBox">
                        <table>
                            <tr>
                                <td>
                                    <div class="himsBoxContent">
                                        <div class="leftUlMenu">
                                            <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="214"
                                                Visible="true" runat="server" />
                                        </div>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div class="whiteboxpaddingleft row">
                    <div class="himssuHeader1WireBox card card-box" runat="server">
                        <div class="himsBoxHeader card-head">
                            <div class="leftdiv">
                            </div>
                            <div class="himsBoxTitle">
                                <div class="headerText">
                                    <header>
                                        <asp:Label ID="AccountingYearMasterDetailLabel" runat="server" Text="Select Payroll"></asp:Label>
                                    </header>
                                </div>
                            </div>
                            <div class="fRight mt-27 pagination display-flex">
                            </div>
                        </div>
                        <div class="himsBoxContent card-body">
                            <div class="contentHolder">
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="PayrollLabel" runat="server" Text="Payroll" SkinID="MandatoryLabel"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:DropDownList runat="server" ID="PayrollDropDownList" SkinID="CustomWidthDropDownList"
                                            onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" AutoPostBack="true"
                                            OnSelectedIndexChanged="PayrollDropDownList_SelectedIndexChange" CssClass="form-control">
                                        </asp:DropDownList>
                                    </div>
                                </div>

                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="PayrollYearLabel" runat="server" Text="Payroll Year" SkinID="MandatoryLabel"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:DropDownList runat="server" ID="PayrollYearDropDownList" SkinID="CustomWidthDropDownList"
                                            onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" CssClass="form-control">
                                        </asp:DropDownList>
                                    </div>
                                </div>

                                <div class="alignCenter col-md-12 pTop15 pb5">
                                    <asp:Button ID="SelectButton" runat="server" CssClass="btn btn-select fas" OnClick="SelectButton_Click" SkinID="0" Text="&#xf245; Select" />
                                    <asp:Button ID="CleareButton" runat="server" CssClass="btn btn-clear fas" OnClick="ResetButton_Click" SkinID="0" Text="&#xf12d; Clear" />
                                </div>
                                <div class="cBoth">
                                </div>
                                <br />
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <%--<script data-main="../../../JavaScript/rjs/encrypt/select-payroll-encrypt" src="../../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/select-payroll")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
        <script>
            //Added by dhananajay for mantis Start- 35605
            function RedirectToPayroll(PayrollURL) {
                var newTab = window.open(PayrollURL, '_blank');
                window.location.href = '../../../Pages/BaseFramework/MyDashBoard.aspx';
            }
            //Added by dhananajay for mantis End - 35605
    </script>
</asp:Content>
