<%@ page language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_Hrm_Employee_TimeSheetSummary, App_Web_fo2mhtxy" 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" %>
<%@ Register Src="~/UserControls/Common/CommonSearch/CommonSearch.ascx" TagName="CommonSearchUserControl"
    TagPrefix="uc2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="ResonMasterUpdatePanel" runat="server" UpdateMode="Always">
        <ContentTemplate>
            <uc2:CommonSearchUserControl ID="CommonSearchControl" Visible="false" runat="server" />
            <hims:EmployeeSearchControl ID="EmployeeSearch" Visible="false" runat="server" />
            <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="166"
                                                            Visible="true" runat="server" />
                                                    </div>
                                                </div>
                                            </td>
                                        </tr>
                                    </table>
                                </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="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="PanelSearch" runat="server">
                                                 
                                                    <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="ForYearLabel" runat="server" Text="For Year" SkinID="MandatoryLabel"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:DropDownList runat="server" ID="ForYearDropDownList" SkinID="CustomWidthDropDownList"
                                                            CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" AutoPostBack="true"
                                                            OnSelectedIndexChanged="ForYearDropDownList_OnSelectedIndexChanged">
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="ForMonthLabel" runat="server" Text="For Month" SkinID="MandatoryLabel"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:DropDownList runat="server" ID="ForMonthDropDownList" SkinID="CustomWidthDropDownList"
                                                            CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" AutoPostBack="false">
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>
                                                    
                                                 
                                                    <div class="alignCenter col-md-12 center pTop5">
                                                        <asp:Button ID="SearchButton" Text="&#xf002; Search" TabIndex="3" runat="Server" SkinID="0"
                                                            class="btn-search btn fas" OnClick="SearchButton_Click" />                                                      
                                                    </div>
                                                    <br />
                                                </asp:Panel>
                                                <div id="CsrBenefiteMasterGridDiv" runat="server" visible="false">
                                                    <div class="himssuHeader7WireBox col-md-12" id="PatientRelationDiv"
                                                        runat="server">
                                                        <div class="himsBoxContent card-body">
                                                            <div id="EmployeeDetaildiv" runat="server" visible="false">
                                                                <div class="outerBox pTop5 col-md-3">
                                                                    <div class="controlLabelWidth">
                                                                        <asp:Label ID="EmployeeNameLabel" runat="server" Text="EmployeeName" Font-Bold="true"
                                                                            Visible="true"></asp:Label>
                                                                    </div>
                                                                    <div class="fLeft pRight5">
                                                                        <asp:Label runat="server" ID="EmployeeNameTLabel" Visible="true"></asp:Label>
                                                                    </div>
                                                                </div>
                                                                <div class="outerBox pTop5 col-md-3">
                                                                    <div class="controlLabelWidth">
                                                                        <asp:Label ID="PresentLabel" runat="server" Text="Present" Font-Bold="true" Visible="true"></asp:Label>
                                                                    </div>
                                                                    <div class="fLeft pRight5">
                                                                        <asp:Label runat="server" ID="PresentTLabel" Visible="true"></asp:Label>
                                                                    </div>
                                                                </div>
                                                                <div class="outerBox pTop5 col-md-3">
                                                                    <div class="controlLabelWidth">
                                                                        <asp:Label ID="AbsentLabel" runat="server" Text="Absent" Font-Bold="true" Visible="true"></asp:Label>
                                                                    </div>
                                                                    <div class="fLeft pRight5">
                                                                        <asp:Label runat="server" ID="AbsentTLabel" Visible="true"></asp:Label>
                                                                    </div>
                                                                </div>
                                                                <div class="outerBox pTop5 col-md-3">
                                                                    <div class="controlLabelWidth">
                                                                        <asp:Label ID="WeekOffLabel" runat="server" Text="Week Off" Font-Bold="true" Visible="true"></asp:Label>
                                                                    </div>
                                                                    <div class="fLeft pRight5">
                                                                        <asp:Label runat="server" ID="WeekOffTLabel" Visible="true"></asp:Label>
                                                                    </div>
                                                                </div>
                                                                <div class="outerBox pTop5 col-md-3">
                                                                    <div class="controlLabelWidth">
                                                                        <asp:Label ID="HolidayLabel" runat="server" Text="Holiday" Font-Bold="true" Visible="true"></asp:Label>
                                                                    </div>
                                                                    <div class="fLeft pRight5">
                                                                        <asp:Label runat="server" ID="HolidayTLabel" Visible="true"></asp:Label>
                                                                    </div>
                                                                </div>
                                                                <div class="outerBox pTop5 col-md-3">
                                                                    <div class="controlLabelWidth">
                                                                        <asp:Label ID="LeaveLabel" runat="server" Text="Leave" Font-Bold="true" Visible="true"></asp:Label>
                                                                    </div>
                                                                    <div class="fLeft pRight5">
                                                                        <asp:Label runat="server" ID="LeaveTLabel" Visible="true"></asp:Label>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <asp:UpdatePanel ID="MenuPlanDetailUpdatePanel" runat="server" UpdateMode="Always">
                                                            <ContentTemplate>
                                                                <asp:GridView ID="LeaveMasterGridView" 
                                                                    OnPageIndexChanging="LeaveMasterGridView_PageIndexChanging" runat="server" AutoGenerateColumns="False"
                                                                    class="himssuHeader7WireBox col-md-12 table-responsive" DataKeyNames="Id" PagerSettings-Visible="false"
                                                                    EmptyDataText="No records available for the search criteria"
                                                                    CssClass="table table-striped table-bordered">
                                                                    <Columns>
                                                                        <asp:BoundField HeaderText="EmpCode" DataField="EmpCode" 
                                                                            HeaderStyle-HorizontalAlign="Left">
                                                                            <HeaderStyle HorizontalAlign="Left" />
                                                                            <ItemStyle Width="10%" />
                                                                        </asp:BoundField>
                                                                        <asp:BoundField HeaderText="Employee Name" DataField="EmpName" 
                                                                            HeaderStyle-HorizontalAlign="Left">
                                                                            <HeaderStyle HorizontalAlign="Left" />
                                                                            <ItemStyle Width="10%" />
                                                                        </asp:BoundField>
                                                                        <asp:BoundField HeaderText="WeekOff" DataField="Tot_WeekOff" 
                                                                            HeaderStyle-HorizontalAlign="Left">
                                                                            <HeaderStyle HorizontalAlign="Left" />
                                                                            <ItemStyle Width="20%" />
                                                                        </asp:BoundField>
                                                                        <asp:BoundField HeaderText="Holiday" DataField="Tot_Holiday" 
                                                                            HeaderStyle-HorizontalAlign="Left">
                                                                            <HeaderStyle HorizontalAlign="Left" />
                                                                            <ItemStyle Width="7%" />
                                                                        </asp:BoundField>
                                                                        <asp:BoundField HeaderText="Absent" DataField="Tot_Abs" 
                                                                            HeaderStyle-HorizontalAlign="Left">
                                                                            <HeaderStyle HorizontalAlign="Left" />
                                                                            <ItemStyle Width="7%" />
                                                                        </asp:BoundField>
                                                                        <asp:BoundField HeaderText="AttainDay" DataField="Actual_Attain_Day" 
                                                                            HeaderStyle-HorizontalAlign="Left">
                                                                            <HeaderStyle HorizontalAlign="Left" />
                                                                            <ItemStyle Width="7%" />
                                                                        </asp:BoundField>
                                                                        <asp:BoundField HeaderText="Total Attain Hrs" DataField="TotalAttainHr" 
                                                                            HeaderStyle-HorizontalAlign="Left">
                                                                            <HeaderStyle HorizontalAlign="Left" />
                                                                            <ItemStyle Width="7%" />
                                                                        </asp:BoundField>
                                                                        <asp:BoundField HeaderText="Total Working Hrs" DataField="TotalWorkingHrs" 
                                                                            HeaderStyle-HorizontalAlign="Left">
                                                                            <HeaderStyle HorizontalAlign="Left" />
                                                                            <ItemStyle Width="7%" />
                                                                        </asp:BoundField>
                                                                        <asp:BoundField HeaderText="OT" DataField="OT" 
                                                                            HeaderStyle-HorizontalAlign="Left">
                                                                            <HeaderStyle HorizontalAlign="Left" />
                                                                            <ItemStyle Width="7%" />
                                                                        </asp:BoundField>
                                                                        <asp:BoundField HeaderText="ErrorCase" DataField="ErrorCase" 
                                                                            HeaderStyle-HorizontalAlign="Left">
                                                                            <HeaderStyle HorizontalAlign="Left" />
                                                                            <ItemStyle Width="8%" />
                                                                        </asp:BoundField>
                                                                       
                                                                    </Columns>
                                                                    <PagerSettings Visible="False" />
                                                                </asp:GridView>
                                                            </ContentTemplate>
                                                        </asp:UpdatePanel>
                                                     
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                </div>
                    </asp:Panel>
                </div>
                </td> </tr> </table>
            </div>
            </div>
            
        </ContentTemplate>
    </asp:UpdatePanel>
    <script type="text/javascript">
        function isNumberKey(evt) {
            var charCode = (evt.which) ? evt.which : event.keyCode;
            if (charCode > 31 && (charCode < 48 || charCode > 57))
                return false;
            return true;
        }
    </script>
   <%-- <script data-main="../../../JavaScript/rjs/encrypt/leave-encrypt" src="../../../JavaScript/rjs/require.js"></script>--%>
      <script data-main='<%=ResolveUrl("~/JavaScript/rjs/leave")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>
