<%@ page title="" language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Payroll_ReportCriteria_PayrollReportCriteria, App_Web_katnknf2" uiculture="auto" meta:resourcekey="PageResource1" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Register Src="~/UserControls/DatePicker/DatePickerControl.ascx" TagName="DatePickerControl" TagPrefix="Date" %>
<%@ Register Src="~/UserControls/Common/CommonSearch/CommonSearch.ascx" TagName="CommonSearchUserControl" TagPrefix="Common" %>
<%@ Register Src="~/UserControls/Common/EmployeeSearch/EmployeeSearch.ascx" TagName="EmployeeSearchControl" TagPrefix="hims" %>
<%@ Register Src="~/UserControls/Common/ScreenGroup/ScreenGroup.ascx" TagName="ScreenGroupControl" TagPrefix="ScreenGroup" %>
<%@ Register Src="~/UserControls/Common/Payroll/PayrollDetailBoxControl.ascx" TagName="PayrollControl" TagPrefix="Pay" %>
<%@ Register Src="~/UserControls/AutoComplete/AutoCompleteControl.ascx" TagName="AutoCompleteControl" TagPrefix="acc" %>
<%--//0029994--%>

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="StudentReportUpdatePanel" runat="server">
        <ContentTemplate>
            <hims:EmployeeSearchControl ID="EmployeeSearch" Visible="false" runat="server" />
            <Common:CommonSearchUserControl ID="CommonSearchControl" 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="himssuHeader2WireBox">
                        <div class="contentHolder" style="padding-top: 0px; padding-left: 0px; padding-right: 0px">
                            <div class="himssuHeader1WireBox card card-box">
                                <div class="himsBoxHeader card-head">
                                    <div class="leftdiv">
                                    </div>
                                    <div class="himsBoxTitle">
                                        <div class="headerText">
                                            <header>
                                                <i class="fas fa-asterisk"></i>
                                                Criteria
                                            </header>
                                        </div>
                                    </div>
                                </div>
                                <div class="himsBoxContent card-body">
                                    <div class="contentHolder">
                                        <asp:Panel ID="PayrollReportListDiv" runat="server" meta:resourcekey="SkillDivResource1">
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="">
                                                    <asp:Label ID="ReportLabel" runat="server" Text="Report" SkinID="MandatoryLabel" Font-Bold="true"></asp:Label>
                                                    &nbsp;<asp:Label ID="ClientSpecificReportLabel" runat="server" ForeColor="BlueViolet" Text=" (CS)" Visible="false"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:DropDownList ID="ReportDropDownList" runat="server" DataTextField="Name" DataValueField="Id"
                                                        CssClass="form-control" SkinID="CustomWidthDropDownList" AutoPostBack="true" onmouseleave="showHideTooltip()"
                                                        onmouseenter="showHideTooltip()" OnSelectedIndexChanged="ReportDropDownList_OnSelectedIndexChanged">
                                                    </asp:DropDownList>
                                                </div>
                                            </div>
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="ViewModeLabel" runat="server" Text="View Mode"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:DropDownList ID="ViewModeDropDownList" runat="server" CssClass="form-control" SkinID="CustomWidthDropDownList"
                                                        onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" meta:resourcekey="ViewModeDropDownListResource" />
                                                </div>
                                            </div>

                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="OrganizationLabel" runat="server" Text="Organization"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:DropDownList ID="OrganizationDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                        onmouseenter="showHideTooltip()" SkinID="CustomWidthDropDownList" AutoPostBack="true" OnSelectedIndexChanged="OrganizationDropDownList_SelectedIndexChanged"
                                                        class="form-control">
                                                    </asp:DropDownList>
                                                </div>
                                            </div>

                                            <div id="DepartmentDiv" runat="server" visible="true" class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="DepartmentLabel" runat="server" Text="Department"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:DropDownList ID="DepartmentDropDownList" runat="server" CssClass="form-control" SkinID="CustomWidthDropDownList"
                                                        onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" />
                                                </div>
                                            </div>

                                            <div id="PayElementDiv" runat="server" visible="false">
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="PayElementTypeLabel" runat="server" Text="PayElement Type"
                                                            meta:resourcekey="PayElementTypeLabelResource1"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:DropDownList ID="PayElementTypeDropDownList" DataTextField="Title" DataValueField="ID"
                                                            runat="server" onmouseleave="showHideTooltip()" SkinID="CustomWidthDropDownList"
                                                            CssClass="form-control" onmouseenter="showHideTooltip()"
                                                            meta:resourcekey="PayElementTypeDropDownListResource1" AutoPostBack="true"
                                                            OnSelectedIndexChanged="PayElementTypeDropDownList_SelectedIndexChanged">
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="PayElementLabel" runat="server" Text="Pay Element"></asp:Label>
                                                        <asp:Label ID="PayElementLabelM" SkinID="MandatoryLabel" Visible="false" runat="server"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:DropDownList ID="PayElementDropDownList" runat="server"
                                                            CssClass="form-control" SkinID="CustomWidthDropDownList" AutoPostBack="false" onmouseleave="showHideTooltip()"
                                                            onmouseenter="showHideTooltip()">
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>
                                            </div>
                                            <div id="MonthYearCompDiv" runat="server" visible="false">
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="PayrollMonthYearLabel" runat="server" Text="Payroll Month Year" SkinID="MandatoryLabel"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:DropDownList ID="PayrollMonthYearLabelDropDownList" runat="server" CssClass="form-control" SkinID="CustomWidthDropDownList"
                                                            onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" />
                                                    </div>
                                                </div>
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="CompareWithMonthYearLabel" runat="server" Text="Compare With Month Year" SkinID="MandatoryLabel"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:DropDownList ID="CompareWithMonthYearLabelDropDownList" runat="server" CssClass="form-control" SkinID="CustomWidthDropDownList"
                                                            onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" />
                                                    </div>
                                                </div>
                                            </div>
                                            <div id="MonthYearDiv" runat="server" visible="false">
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="YearLabel" runat="server" Text="Year" SkinID="MandatoryLabel"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:DropDownList ID="ForYearDropDownList" runat="server" CssClass="form-control" SkinID="CustomWidthDropDownList"
                                                            onmouseleave="showHideTooltip()" AutoPostBack="true" onmouseenter="showHideTooltip()" OnSelectedIndexChanged="ForYearDropDownList_OnSelectedIndexChanged" />
                                                    </div>
                                                </div>
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="MonthLabel" runat="server" Text="Month" SkinID="MandatoryLabel"></asp:Label>
                                                    </div>
                                                    <asp:DropDownList ID="ForMonthDropDownList" runat="server" CssClass="form-control" SkinID="CustomWidthDropDownList"
                                                        AutoPostBack="false" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" />
                                                </div>
                                            </div>
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="EmployeeGroupLabel" runat="server" Text="Employee Group"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:DropDownList runat="server" ID="EmployeeGroupDropDownList" SkinID="CustomWidthDropDownList"
                                                        CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()">
                                                    </asp:DropDownList>
                                                </div>
                                            </div>

                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="PayrollGroupLabel" runat="server" Text="Payroll Group"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:DropDownList runat="server" ID="PayrollGroupDropDownList" SkinID="CustomWidthDropDownList"
                                                        CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" AutoPostBack="false">
                                                    </asp:DropDownList>
                                                </div>
                                            </div>

                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="EmployeeCodeLabel" runat="server" Text="Employee Code"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5 display-flex">
                                                    <asp:TextBox ID="EmployeeCodeTextBox" SkinID="CustomWidthTextBox" Width="150px" runat="server"
                                                        MaxLength="200" AutoPostBack="true" OnTextChanged="EmployeeCodeTextBox_TextChanged"> </asp:TextBox>
                                                    <asp:ImageButton SkinID="FindImage" ToolTip="Drug Search" ID="EmployeeCodeImageButton"
                                                        runat="server" ImageUrl="../../../../Images/icons/icon_find.gif" />
                                                    <asp:HiddenField ID="EmployeeIdHiddenField" runat="server" />
                                                </div>
                                            </div>
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="EmployeeNameLabel" runat="server" Text="Employee Name"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:TextBox ID="EmployeeNameTextBox" Enabled="false" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                        SkinID="CustomWidthTextBox" runat="server" MaxLength="200"> </asp:TextBox>
                                                </div>
                                            </div>

                                            <div id="QuarterMainDiv" runat="server" visible="false">
                                                <div class="outerBox11 pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:CheckBox ID="QuarterCheckBox" runat="server" AutoPostBack="True" Text="Month (Quarter)" OnCheckedChanged="QuarterCheckBox_CheckedChanged" />
                                                        <%--<asp:Label ID="QuarterLabel" runat="server" Text="Month (Quarter)" class="pLeft5"></asp:Label>--%>
                                                    </div>
                                                    <div id="QuarterDiv" runat="server" visible="False" class="fLeft pRight5 chck-dropdown-onclick bg-lghtgrey outerBox11 col-md-12 overflow-x-hidden padd-0">
                                                        <asp:CheckBoxList ID="QuarterCheckBoxList" runat="server">
                                                        </asp:CheckBoxList>
                                                    </div>
                                                </div>
                                            </div>

                                            <div class="outerBox pTop5 col-md-3" id="OrderByDiv" runat="server">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="OrderByLabel" runat="server" Text="Order By"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:DropDownList ID="OrderByDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                        onmouseenter="showHideTooltip()" SkinID="CustomWidthDropDownList" CssClass="form-control">
                                                    </asp:DropDownList>
                                                </div>
                                            </div>

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

                                            <%--Mantis - 0029994--%>
                                            <div class="outerBox pTop5 col-md-3" id="bankDetailsContainer" runat="server" visible="false">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="BankNameLabel" runat="server" Text="Bank Name"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <acc:AutoCompleteControl ID="BankNameTextBox" runat="server" MinimumPrefixLength="1"
                                                        MaxLength="50" ContextKey="sFinanceCommon.Bank" DisplayLoadingStatus="true" SkinID="CustomWidthTextBox" 
                                                        CssClass="form-control" ValidateOnTextChanged="false" />
                                                    <asp:HiddenField ID="HiddenField1" runat="server" />
                                                    <%--Changed ContextKey for Mantis : 0032058 As per Discussion --%>
                                                </div>
                                            </div>

                                           <%-- #Start MantisId : 0032058--%>
                                            <div id="PaymentModeDiv" runat="server" visible="false">
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="PaymentModeLabel" runat="server" Text="Payment Mode"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:DropDownList runat="server" ID="PaymentModeDropDownList" SkinID="CustomWidthDropDownList"
                                                            CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()">
                                                            <asp:ListItem Text="- ALL -" Value="0" />
                                                            <asp:ListItem Text="Cash" Value="1" />
                                                            <asp:ListItem Text="Cheque" Value="2" />
                                                            <asp:ListItem Text="Bank" Value="3" />
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>
                                            </div>

                                            <div id="EmployeeGradeFilterDiv" runat="server" visible="false">
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="EmployeeGradeFilterLabel" runat="server" Text="Employee Grade" meta:resourcekey="GradeLabelResource1"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:DropDownList ID="EmployeeGradeFilterDropDownList" runat="server" CssClass="form-control" SkinID="CustomWidthDropDownList"
                                                            onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" AutoPostBack="true"
                                                            meta:resourcekey="GradeDropDownListResource1" OnSelectedIndexChanged="EmployeeGradeFilterDropDownList_SelectedIndexChanged" />
                                                    </div>
                                                </div>
                                            </div>

                                            <div id="DesignationFilterDropDownListDiv" runat="server" visible="false">
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="DesignationFilterLabel" runat="server" Text="Designation"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:DropDownList runat="server" ID="DesignationFilterDropDownList" SkinID="CustomWidthDropDownList"
                                                            CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()">
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>
                                            </div>
                                            <%-- #End MantisId : 0032058--%>

                                            <div id="DetailDiv" runat="server" visible="false">
                                                <div class="outerBox pTop5 col-md-3 ">
                                                    <div class="controlLabelWidth">
                                                        <asp:CheckBox ID="IsDetailCheckBox" runat="server" Text="With Detail" />
                                                    </div>
                                                </div>
                                            </div>

                                        </asp:Panel>
                                    </div>

                                    <div class="alignCenter col-md-12 pTop5">
                                        <asp:Button ID="PrintButton" Text="&#xf15b; Print" runat="server" OnClick="PrintButton_Click"
                                            meta:resourcekey="PrintButtonResource1" SkinID="0" class="btn-report btn fas" />
                                        <asp:Button ID="PFECRNotepadButton" Text="&#xf15b; PF ECR Notepad" runat="server" OnClick="PFECRNotepadButton_Click" OnClientClick="__doPostBack('', 'PostBackMaster');"
                                            meta:resourcekey="PFECRNotepadButtonResource1" SkinID="0" class="btn-report btn fas" Visible="false" />
                                        <asp:Button ID="ClearButton" Text="&#xf0e2; Clear" runat="server" OnClick="ClearButton_Click"
                                            meta:resourcekey="ClearButtonResource1" SkinID="0" class="btn-reset btn fas" />
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <%--<script data-main="../../../../JavaScript/rjs/encrypt/payroll-reportcriteria-encrypt" src="../../../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/payroll-reportcriteria")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>
