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

<%@ Register Src="~/UserControls/GridViewPager/GridViewPager.ascx" TagName="GridViewPager" TagPrefix="uc1" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="~/UserControls/Common/ScreenGroup/ScreenGroup.ascx" TagName="ScreenGroupControl" TagPrefix="ScreenGroup" %>
<%@ Register Src="~/UserControls/AutoComplete/AutoCompleteControl.ascx" TagName="AutoCompleteControl" TagPrefix="acc" %>
<%@ Register Src="~/UserControls/Common/CommonSearch/AlphabetSearchCommonControl.ascx" TagName="AlphabetSearchCommonControl" TagPrefix="ACS" %>
<%@ Register Src="~/UserControls/Common/EmployeeSearch/EmployeeSearch.ascx" TagName="EmployeeSearchControl" TagPrefix="hims" %>
<%@ Register Src="~/UserControls/Common/Payroll/PayrollDetailBoxControl.ascx" TagName="PayrollControl" TagPrefix="Pay" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="OTQueueListingUpdatePanel" runat="server">
        <ContentTemplate>
            <hims:EmployeeSearchControl ID="EmployeeSearch" Visible="false" runat="server" />
            <ACS:AlphabetSearchCommonControl ID="AlphabetCommonSearch" runat="server" Visible="false" />
            <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="162"
                                                Visible="true" runat="server" />
                                        </div>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div class="whiteboxpaddingleft row">
                    <Pay:PayrollControl ID="PayrollUserControl" runat="server" Visible="true" />
                    <div class="himssuHeader5WireBox card card-box" id="SearchDiv" runat="server">
                        <div class="himsBoxHeader card-head">
                            <asp:Panel ID="Panel2" runat="server" meta:resourcekey="Panel1Resource1">
                                <div class="leftdiv">
                                </div>
                                <div class="himsBoxTitle">
                                    <div class="headerText">
                                        <header>
                                            <i class="fas fa-search"></i>
                                            <asp:Label ID="headerTextLabel" runat="server" Text="Search"></asp:Label>
                                        </header>
                                    </div>
                                </div>
                            </asp:Panel>
                        </div>
                        <asp:Panel ID="DetailPanel" runat="server">
                            <div class="himsBoxContent card-body">
                                <div class="contentHolder">
                                    <asp:Panel ID="SearchCriteriaPanel" runat="server" meta:resourcekey="SearchCriteriaPanelResource1">
                                        
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="SearchOrganizationLabel" runat="server" Text="Organization" SkinID="MandatoryLabel"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:DropDownList runat="server" ID="SearchOrganizationDropDownList" SkinID="CustomWidthDropDownList"
                                                    onmouseleave="showHideTooltip()" class="form-control" onmouseenter="showHideTooltip()"  onSelectedIndexChanged ="SearchOrganizationDropDownList_SelectedIndexChanged" AutoPostBack="true">

                                                </asp:DropDownList>
                                            </div>
                                         </div>

                                       <%--<div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="SearchEmployeeCodeLabel" runat="server" Text="Employee Code" SkinID="MandatoryLabel"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5 display-flex">
                                                <asp:TextBox ID="SearchEmployeeCodeTextBox" SkinID="CustomWidthTextBox" Width="150px"
                                                    runat="server" MaxLength="100" AutoPostBack="true" OnTextChanged="SearchEmployeeCodeTextBox_TextChanged"> </asp:TextBox>
                                                <asp:ImageButton SkinID="FindImage" ToolTip="Search" ID="SearchEmployeeCodeImageButton"
                                                    runat="server" OnClick="SearchEmployeeCodeImageButton_Click" ImageUrl="../../../../Images/icons/icon_find.gif" />
                                                
                                            </div>  
                                           
                                        </div>--%>
                                        

                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="SearchEmployeeLabel" runat="server" Text="Employee Name" SkinID="MandatoryLabel"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">

                                                <asp:DropDownList runat="server" ID="SearchEmployeeDropDownList" SkinID="CustomWidthDropDownList"
                                                    onmouseleave="showHideTooltip()" class="form-control" onmouseenter="showHideTooltip()" OnSelectedIndexChanged="SearchEmployeeDropDownList_SelectedIndexChanged" AutoPostBack="true">
                                                </asp:DropDownList>
                                            </div>
                                             <asp:HiddenField ID="EmployeeIdHiddenField" runat="server" />
                                            <asp:HiddenField ID="CodeHiddenField" runat="server" />
                                                <asp:HiddenField ID="GenderIdHiddenField" runat="server" />
                                        </div>

                                        
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="PayrollLabel" runat="server" Text="Assessment Year" SkinID="MandatoryLabel"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:DropDownList runat="server" ID="AssessmentYearDropDownList" SkinID="CustomWidthDropDownList"
                                                    onmouseleave="showHideTooltip()" CssClass="form-control" onmouseenter="showHideTooltip()">
                                                </asp:DropDownList>
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3" style="display: none">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="SearchEmployeeNameLabel" runat="server" Text="Employee Name"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:TextBox ID="SearchEmployeeNameTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                    SkinID="CustomWidthTextBox" Width="150px" runat="server" MaxLength="100"> </asp:TextBox>
                                            </div>
                                        </div>
                                        <div class="alignCenter col-md-12 pTop15 pb5">
                                            <asp:Button ID="SearchButton" Text="&#xf002; Search" TabIndex="3" runat="Server" OnClick="SearchButton_Click" SkinID="0" CssClass="btn-search btn fas" />
                                            <asp:Button ID="ResetButton" runat="server" TabIndex="4" Text="&#xf0e2; Reset" OnClick="ResetButton_Click" SkinID="0" CssClass="btn-reset btn fas" />
                                            <asp:Button ID="ExportToExcelButton" Visible="false" Text="&#xf093; Export To Excel" runat="Server" SkinID="0" CssClass="btn-examcommon btn fas" OnClick="ExportToExcelButton_OnClick" />
                                        </div>
                                    </asp:Panel>
                                    <div id="IncomeTaxAdvancePlanningDiv" class="himssuHeader1WireBox col-md-12" runat="server" visible="false" style="width: 100%;">
                                        <div class="himsBoxContent table-responsive">
                                            <asp:GridView ID="IncomeTaxAdvancePlanningGridview" runat="server" Width="100%" AutoGenerateColumns="true"
                                                EmptyDataText="No Records Found !!" AllowPaging="false"
                                                ShowHeader="true" CssClass="table table-striped table-bordered table-hover">
                                                <PagerSettings Visible="False" />
                                            </asp:GridView>
                                        </div>

                                        <asp:GridView ID="TaxPlanningGridview" runat="server" Width="100%" AutoGenerateColumns="False"
                                            EmptyDataText="No Records Found !!" AllowPaging="false" ShowHeader="true" DataKeyNames="IncomeTaxSubgroupId,AutoId"
                                            CssClass="table table-striped table-bordered" OnRowDataBound="TaxPlanningGridview_RowDataBound">
                                            <Columns>
                                                <asp:BoundField DataField="SubGroupName" HeaderText="Sub Group Name" ItemStyle-Width="75%"
                                                    HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                <asp:TemplateField HeaderText="Gross Amount" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="25%">
                                                    <ItemStyle HorizontalAlign="Left" />
                                                    <ItemTemplate>
                                                        <asp:TextBox ID="GrossAmountTextBox" runat="server" SkinID="CustomWidthTextbox"
                                                            AutoCompleteType="Disabled" Style="text-align: right;"
                                                            Text='<%# Bind("GrossAmount")%>' onKeypress="javascript:return MaskDecimal(this,12,2)"
                                                            onBlur="javascript:return fnValidateDecimal(this,12,2)" onmouseleave="showHideTooltip()"
                                                            onmouseenter="showHideTooltip()" Width="100%"></asp:TextBox>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                            </Columns>
                                            <PagerSettings Visible="False" />
                                        </asp:GridView>

                                        <div class="alignCenter col-md-12 pTop15 pb5" style="display:none;">
                                            <asp:Label ID="IncomeTaxAmountLabel" runat="server" Text=""></asp:Label>
                                        </div>

                                        <div class="alignCenter col-md-12 pTop15">
                                            <asp:Button ID="CalculateButton" Text="Calculate" OnClick="CalculateButton_Click" runat="Server" SkinID="0" CssClass="btn fas" Visible="false"/>
                                        </div>
                                    </div>
                                </div>
                            </div>


                        </asp:Panel>
                    </div>
                </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <%--<script data-main="../../../JavaScript/rjs/encrypt/paysetup-employee-encrypt" src="../../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/paysetup-employee")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>
