<%@ page title="" language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Hrm_Employee_ReportCriteria_EmployeeAttendanceReportCriteria, App_Web_nkdetuev" 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" %>
<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">

                        <div class="himsBoxContent">
                            <div class="leftUlMenu">
                                <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="163"
                                    Visible="true" runat="server" />
                            </div>
                        </div>

                    </div>
                </div>
                <div class="row whiteboxpaddingleft">
                    <div class="himssuHeader2WireBox">
                        <div class="contentHolder">
                            <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" Font-Bold="true" SkinID="MandatoryLabel"></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 id="YearDiv" class="outerBox pTop5 col-md-3" runat="server" visible="false">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="YearLabel" runat="server" Text="Year"></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 id="MonthDiv" class="outerBox pTop5 col-md-3" runat="server" visible="false">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="MonthLabel" runat="server" Text="Month"></asp:Label>
                                                </div>
                                                <asp:DropDownList ID="ForMonthDropDownList" runat="server" CssClass="form-control" SkinID="CustomWidthDropDownList"
                                                    AutoPostBack="false" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" />
                                            </div>

                                            <div 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 class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="GradeLabel" runat="server" Text="Grade"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:DropDownList ID="GradeDropDownList" runat="server" CssClass="form-control" SkinID="CustomWidthDropDownList"
                                                        onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" />
                                                </div>
                                            </div>
                                            <div id="StatusDiv" runat="server" visible="false">
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="StatusSearchLabel" runat="server" Text="Leave 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>
                                            </div>
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="EmployeeStatusLabel" runat="server" Text="Employee Status"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:DropDownList runat="server" ID="EmployeeStatusDropDownList" 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="EmployeeCodeLabel" runat="server" Text="Employee Code"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:TextBox ID="EmployeeCodeTextBox" SkinID="CustomWidthTextBox" 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="FromToNoDiv" runat="server" visible="false">
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="Label7" runat="server" Text="From Number"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:TextBox ID="FromNumberTextBox" runat="server" SkinID="CustomWidthTextBox"
                                                            onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" />
                                                    </div>
                                                </div>
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="Label1" runat="server" Text="To Number"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:TextBox ID="ToNumberTextBox" runat="server" SkinID="CustomWidthTextBox"
                                                            onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" />
                                                    </div>
                                                </div>
                                            </div>
                                            <div id="DateDiv" runat="server" visible="false">
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="AttendanceDateLabel" runat="server" Text="Attendance Date"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <Date:DatePickerControl DisplayDatePicker="true" ID="AttendanceDateDatePickerControl" runat="server" />
                                                    </div>
                                                </div>
                                            </div>
                                            <div id="FromToDateDiv" runat="server" visible="false">
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="FromDateLabel" runat="server" Text="From Date"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <Date:DatePickerControl DisplayDatePicker="true" ID="FromDatePickerControl" runat="server" />
                                                    </div>
                                                </div>
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="ToDateLabel" runat="server" Text="To Date"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <Date:DatePickerControl DisplayDatePicker="true" ID="ToDatePickerControl" runat="server" />
                                                    </div>
                                                </div>
                                            </div>
                                            <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" />
                                                        <%--   <asp:Label ID="IsDetailLabel" runat="server" Text="With Detail"></asp:Label>--%>
                                                    </div>
                                                </div>
                                            </div>

                                            <div id="OpeningLeaveDiv" runat="server" visible="false">
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:CheckBox ID="IsOpeningLeaveCheckBox" runat="server" Text="Opening Leave Wise" Visible="true" />
                                                    </div>
                                                </div>
                                            </div>

                                            <div id="LeaveResonDetailDiv" runat="server" visible="false" class="outerBox pTop5 col-md-6">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="LeaveResonlable" runat="server" Text="Leave Reson"> </asp:Label>
                                                </div>
                                                <div class="fLeft pRight5 display-flex">
                                                    <asp:TextBox ID="LeaveReasonTextBox" runat="server" Height="40px" SkinID="MultiLineTextbox"
                                                        TextMode="MultiLine"></asp:TextBox>
                                                    <asp:ImageButton ID="LeaveReasonButton" runat="server" SkinID="FindImage" ToolTip="Leave Reason Search"
                                                        ImageUrl="~/Images/icons/icon_find.gif" TabIndex="8" OnClick="LeaveReasonButton_OnClick"
                                                        meta:resourcekey="LeaveReasonButtonResource1" />
                                                </div>
                                            </div>
                                            <div id="LeaveTypeFilterReportDiv" runat="server" visible="false">
                                                <div class="outerBox11 col-md-3 pTop15">
                                                    <div class="select">
                                                        <asp:CheckBox ID="LeaveTypeFilterCheckBox" runat="server" AutoPostBack="True" OnCheckedChanged="LeaveTypeFilterCheckBox_CheckedChanged" />
                                                        <asp:Label ID="LeaveTypeFilterLabel" runat="server" AssociatedControlID="LeaveTypeFilterCheckBox" class="pLeft5" Text="Filter By Leave Type"></asp:Label>
                                                    </div>
                                                    <div id="LeaveTypeFilterDiv" runat="server" visible="False" class="fLeft pRight5 chck-dropdown-onclick bg-lghtgrey outerBox11 col-md-12 overflow-x-hidden padd-0">
                                                        <asp:CheckBoxList ID="LeaveTypeFilterCheckBoxList" runat="server">
                                                        </asp:CheckBoxList>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="alert alert-info col-md-12" id="InfoDiv" runat="server" visible="false">
                                                <i class="material-icons">info</i>
                                                <asp:Label ID="InfoLabel" runat="server" Text="1. Make Sure the Week Off Setting is configured from Organization Master"></asp:Label>
                                                <br />
                                                &nbsp; &nbsp; &nbsp; &nbsp;
                                                <asp:Label ID="InfoLabel1" runat="server" Text="2. Make Sure the Week Off Setting is configured from Week Off Setting"></asp:Label>
                                                <br />
                                                &nbsp; &nbsp; &nbsp; &nbsp;
                                                <asp:Label ID="InfoLabel2" runat="server" Text="3. Make Sure the Set Working Days is configured in Employee Attendance"></asp:Label>
                                            </div>
                                        </asp:Panel>
                                    </div>


                                    <div class="alignCenter pTop15 col-md-12">
                                        <asp:Button ID="ReportProcessButton" runat="Server" SkinID="0" CssClass="btn-update btn fas" Text="Report Process" OnClick="ReportProcessButton_Click" Visible="false" />
                                        <asp:Button ID="PrintButton" Text="&#xf06e; View Report" runat="server" OnClick="PrintButton_Click"
                                            meta:resourcekey="PrintButtonResource1" SkinID="0" CssClass="btn btn-report fas" />
                                        <asp:Button ID="ClearButton" runat="server" OnClick="ClearButton_Click"
                                            meta:resourcekey="ClearButtonResource1" Text="&#xf0e2; Clear" CssClass="btn-clear btn fas" SkinID="0" />
                                    </div>

                                </div>
                            </div>
                        </div>
                    </div>

                </div>

            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <%--<script data-main="../../../../JavaScript/rjs/encrypt/student-report-criteria-encrypt"
        src="../../../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/student-report-criteria")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
    <script type="text/javascript">
        function FormatIt(obj) {
            if (obj.value.length == 2)
                obj.value = obj.value + "/";
            if (obj.value.length == 5)
                obj.value = obj.value + "/";
        }
    </script>
</asp:Content>
