<%@ page language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_Hrm_Employee_MonthlyPresenceSummary, App_Web_seu23nxx" uiculture="auto" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ 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/DatePicker/DatePickerControl.ascx" TagName="DatePickerControl"
    TagPrefix="Date" %>
<%@ Register Src="~/UserControls/Common/EmployeeSearch/EmployeeSearch.ascx" TagName="EmployeeSearchControl"
    TagPrefix="hims" %>
<%@ Register Assembly="TimePicker" Namespace="MKB.TimePicker" TagPrefix="timePicker" %>

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

                <div class="dashBoardLeftCont">
                    <div class="himssuHeader3WireBox">
                        <div class="himsBoxContent">
                            <div class="leftUlMenu">
                                <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="166"
                                    Visible="true" runat="server" />
                            </div>
                        </div>
                    </div>
                </div>
                <div class="whiteboxpaddingleft row ">
                    <div class="himssuHeader5WireBox card card-box" id="SearchDiv" runat="server">
                        <div class="himsBoxHeader card-head">
                            <asp:Panel ID="TopPanel" runat="server">
                                <div class="leftdiv">
                                </div>
                                <div class="himsBoxTitle">
                                    <div class="headerText">
                                        <asp:Label ID="HeaderTextLabel" runat="server" Text="Monthly Presence Summary"></asp:Label>
                                    </div>
                                </div>
                            </asp:Panel>
                        </div>
                        <div class="himsBoxContent card-body">
                            <div class="contentHolder">
                                <asp:Panel ID="PanelSearch" runat="server">

                                     <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="OrganizationGrpSearchLabel" runat="server" Text="Org Group Department"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList runat="server" ID="OrggrpDepDropDownList" 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="SearchEmployeeCodeLabel" runat="server" Text="Employee Code"></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="SearchEmployeeNameLabel" runat="server" Text="Employee Name"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:TextBox ID="SearchEmployeeNameTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                SkinID="CustomWidthTextBox" runat="server" MaxLength="100" Enabled="false"> </asp:TextBox>
                                        </div>
                                    </div>
                                    <div class="outerBox11 col-md-3 pTop5">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="DepartmentSearchLabel" runat="server" Text="Department"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList runat="server" ID="DepartmentDropDownList" SkinID="CustomWidthDropDownList"
                                                CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()">
                                            </asp:DropDownList>
                                        </div>
                                    </div>

                                   

                                    <div class="cBoth"></div>
                                    <br />

                                    <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="SearchForYearLabel" runat="server" Text="For Year"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList runat="server" ID="SearchForYearDropDownList" SkinID="CustomWidthDropDownList"
                                                Class="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" AutoPostBack="true"
                                                OnSelectedIndexChanged="SearchForYearDropDownList_OnSelectedIndexChanged">
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3" style="padding-bottom: 10px">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="SearchForMonthLabel" runat="server" Text="For Month"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList runat="server" ID="SearchForMonthDropDownList" SkinID="CustomWidthDropDownList"
                                                Class="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" AutoPostBack="false">
                                            </asp:DropDownList>
                                        </div>
                                    </div>

                                    <br />
                                    <div class="alignCenter pTop5 col-md-12">
                                        <asp:Button ID="SearchButton" Text="&#xf002; Search" runat="Server" SkinID="0" CssClass="btn-search btn fas" OnClick="SearchButton_Click" />
                                        <asp:Button ID="ExportButton" runat="server" Text="&#xf093; Export" OnClick="ExportButton_Click" SkinID="0" CssClass="btn-examcommon btn fas" />
                                        <asp:Button ID="SendMailButton" runat="server" Text="&#Xf1d8; Send Mail" OnClick="SendMailButton_Click" SkinID="0" CssClass="btn-send btn fas" />
                                        <asp:Button ID="ResetButton" runat="server" Text="&#Xf0e2; Reset" OnClick="ResetButton_Click" SkinID="0" CssClass="btn-reset btn fas" />
                                    </div>
                                    <br />
                                </asp:Panel>
                                <div id="MonthlyPresenceSummaryDiv" runat="server" visible="false">
                                    <div class="himssuHeader7WireBox col-md-12 table-responsive" id="PatientRelationDiv"
                                        runat="server">
                                        <asp:UpdatePanel ID="MenuPlanDetailUpdatePanel" runat="server" UpdateMode="Always">
                                            <ContentTemplate>
                                                <asp:GridView ID="MonthlyPresenceSummaryGridView"
                                                    runat="server" AutoGenerateColumns="False" AllowPaging="false"
                                                    PagerSettings-Visible="false" EmptyDataText="No records available for the search criteria"
                                                    ShowHeader="True" CssClass="table table-striped table-bordered table-hover">
                                                    <Columns>
                                                        <asp:BoundField HeaderText="Sr. No." DataField="SrNo" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="5%" />
                                                         <asp:BoundField HeaderText="Org Group Department" DataField="Organization Group" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="10%" />
                                                        <asp:BoundField HeaderText="Code" DataField="Code" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="5%" />
                                                        <asp:BoundField HeaderText="Name" DataField="Name" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="10%" />
                                                        <asp:BoundField HeaderText="Working Day" DataField="WorkingDay" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="5%" />
                                                        <asp:BoundField HeaderText="No Punch" DataField="NoPunch" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="5%" />
                                                        <asp:BoundField HeaderText="CL" DataField="CL" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="5%" />
                                                        <asp:BoundField HeaderText="LWP Leave" DataField="LWPLeave" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="10%" />
                                                        <asp:BoundField HeaderText="Leave Not Apply" DataField="LeaveNotApply" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="5%" />
                                                        <asp:BoundField HeaderText="Comp Off" DataField="CompOff" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="5%" />
                                                        <asp:BoundField HeaderText="Dinner Allowance" DataField="DinnerAllowance" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="5%" />
                                                        <%--<asp:BoundField HeaderText="EL Total" DataField="ELTotal" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="5%" />--%>
                                                        <%--<asp:BoundField HeaderText="EL Approve" DataField="ELApprove" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="5%" />--%>
                                                        <%--<asp:BoundField HeaderText="EL Valid Count" DataField="ELValidCount" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="5%" />--%>
                                                        <%--<asp:BoundField HeaderText="EL Valid Approve" DataField="ELValidApprove" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="5%" />--%>
                                                        <asp:BoundField HeaderText="Late" DataField="Late" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="5%" />
                                                        <asp:BoundField HeaderText="Grt 10:30 Cnt" DataField="Grt1030Cnt" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="5%" />
                                                        <asp:BoundField HeaderText="Total OT" DataField="Tot_OT" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="10%" />
                                                        <asp:BoundField HeaderText="Valid Count" DataField="Valid_Cnt" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="5%" />
                                                        <%--<asp:BoundField HeaderText="InValid Count" DataField="InValid_Cnt" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="5%" />--%>
                                                        <%--<asp:BoundField HeaderText="Total OT-EL" DataField="Tot_OT_EL" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="10%" />--%>
                                                        <%--<asp:BoundField HeaderText="Early Leave" DataField="EarlyLeave" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="10%" />--%>
                                                        <%--<asp:BoundField HeaderText="Total Late" DataField="Tot_Late" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="10%" />--%>
                                                        <%--<asp:BoundField HeaderText="Week Off Holiday" DataField="WeekHolidayCount" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="5%" />--%>
                                                        <asp:BoundField HeaderText="Invalid Hrs" DataField="InvalidHrs" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="5%" />
                                                        <asp:BoundField HeaderText="Total OT - Invalid Hrs" DataField="Tot_OT_IVH" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="5%" />
                                                        <%--<asp:BoundField HeaderText="EL Approve" DataField="ELApprove" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="5%" />--%>
                                                        <asp:BoundField HeaderText="Monthly Punch Avg" DataField="MonthlyPunchAvg" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="5%" />
                                                        <asp:BoundField HeaderText="GT 8 Punch Count" DataField="Gt8PunchCnt" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="5%" />
                                                    </Columns>
                                                </asp:GridView>
                                            </ContentTemplate>
                                        </asp:UpdatePanel>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/monthly-presence-summary")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>
