<%@ page language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_Hrm_Employee_LateTimeSheetList, App_Web_0zido2wz" 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">
                        <table>
                            <tr>
                                <td>
                                    <div class="himsBoxContent">
                                        <div class="leftUlMenu">
                                            <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="213"
                                                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="leftdiv">
                                </div>
                                <div class="himsBoxTitle">
                                    <div class="headerText">
                                        <header>
                                            <i class="fas fa-list-ul"></i>
                                            <asp:Label ID="HeaderTextLabel" runat="server" Text="Late Time Sheet List"></asp:Label>
                                        </header>
                                    </div>
                                </div>
                            </asp:Panel>
                        </div>
                        <div class="himsBoxContent card-body">
                            <div class="contentHolder">
                                <asp:Panel ID="PanelSearch" runat="server">

                                    <div id="EmployeeDiv" runat="server" visible="false">
                                        <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"
                                                    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>
                                    <div class="outerBox pTop5 col-md-3" runat="server" visible="false">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="StatusLabel" runat="server" Text="Status" SkinID="0"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList ID="SearchStatusDropDownList" runat="server" CssClass="form-control" AutoPostBack="false">
                                                <asp:ListItem Text="- ALL -" Value="0"></asp:ListItem>
                                                <asp:ListItem Text="Less Hours" Value="LH"></asp:ListItem>
                                                <asp:ListItem Text="Half Day" Value="HD"></asp:ListItem>
                                            </asp:DropDownList>
                                        </div>
                                    </div>

                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="SearchFromDateLabel" runat="server" Text="From Date" SkinID="MandatoryLabel"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <Date:DatePickerControl DisplayDatePicker="true" ID="SearchFromDatePickerControl"
                                                runat="server" />
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="SearchToDateLabel3" runat="server" Text="To Date" SkinID="MandatoryLabel"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <Date:DatePickerControl DisplayDatePicker="true" ID="SearchToDatePickerControl"
                                                runat="server" />
                                        </div>
                                    </div>

                                    <div class="alignCenter col-md-12 center">
                                        <asp:Button ID="SearchButton" Text="&#xf002; Search" runat="Server" SkinID="0" class="btn-search btn fas" OnClick="SearchButton_Click" />
                                        <asp:Button ID="ResetButton" runat="server" Text="&#xf0e2; Reset" SkinID="0" class="btn-reset btn fas" OnClick="ResetButton_Click" />
                                    </div>
                                    <br />
                                </asp:Panel>
                                <div id="LateTimeSheetListDiv" runat="server" visible="false">
                                    <div class="col-md-12 pTop5">
                                        <div class="alert alert-info">
                                            <asp:Label ID="NoteLabel" runat="server" Text="<b>Note : </b>Early Leave allowed only for office work." ForeColor="Red" Font-Size="Medium"></asp:Label><br />
                                        </div>
                                    </div>
                                    <div class="cBoth">
                                    </div>
                                    <div class="himssuHeader7WireBox col-md-12" id="PatientRelationDiv"
                                        runat="server" style="width: 100%">
                                        <asp:UpdatePanel ID="MenuPlanDetailUpdatePanel" runat="server" UpdateMode="Always">
                                            <ContentTemplate>
                                                <asp:GridView ID="LateTimeSheetGridView" OnRowDataBound="LateTimeSheetGridView_RowDataBound"
                                                    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" DataKeyNames="EmployeeId,EmployeeLateStatusId,StatusId">
                                                    <Columns>
                                                        <asp:BoundField HeaderText="Date" DataField="Attn_Date" DataFormatString="{0:dd/MM/yyyy}"
                                                            HeaderStyle-HorizontalAlign="Left">
                                                            <ItemStyle Width="15%" />
                                                        </asp:BoundField>
                                                        <asp:BoundField HeaderText="First In" DataField="FirstIn" HeaderStyle-HorizontalAlign="Left">
                                                            <ItemStyle Width="10%" />
                                                        </asp:BoundField>
                                                        <asp:BoundField HeaderText="Last Out" DataField="LastOut" HeaderStyle-HorizontalAlign="Left">
                                                            <ItemStyle Width="10%" />
                                                        </asp:BoundField>
                                                        <asp:BoundField HeaderText="Duration" DataField="Duration" HeaderStyle-HorizontalAlign="Left">
                                                            <ItemStyle Width="10%" />
                                                        </asp:BoundField>
                                                        <asp:BoundField HeaderText="Status" DataField="PresentStatus1" HeaderStyle-HorizontalAlign="Left">
                                                            <ItemStyle Width="10%" />
                                                        </asp:BoundField>
                                                        <asp:TemplateField HeaderText="Field Hours (HH.MM)" HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="10%"
                                                            ItemStyle-Wrap="true">
                                                            <ItemStyle HorizontalAlign="Center" />
                                                            <ItemTemplate>
                                                                <asp:TextBox ID="FieldHoursTextBox" SkinID="CustomWidthTextbox" Text='<%#Eval("FieldHrs") %>'
                                                                    runat="server" CssClass="clsLateTimeSheet" Enabled="false" onkeypress="javascript:return MaskDecimal(event,2,2)"></asp:TextBox>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="Early Leave Remark" HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="30%"
                                                            ItemStyle-Wrap="true">
                                                            <ItemStyle HorizontalAlign="Center" />
                                                            <ItemTemplate>
                                                                <asp:TextBox ID="EarlyLeaveRemarkTextBox" SkinID="MultiLineTextBox" MaxLength="200" Text='<%#Eval("EarlyLeaveRemark") %>'
                                                                    TextMode="MultiLine" Height="40px" runat="server" Enabled="false" CssClass="clsRemark"></asp:TextBox>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="Send Request / Status" ItemStyle-Width="15%" ItemStyle-Wrap="true"
                                                            HeaderStyle-HorizontalAlign="Left">
                                                            <ItemTemplate>
                                                                <asp:LinkButton ID="SendRequestLinkButton" SkinID="CustomWidthLabel" runat="server"
                                                                    Text="Send Request" OnClick="SendRequestLinkButton_Click" Visible="false" CssClass="clsSendRequest"></asp:LinkButton>
                                                                <asp:Label ID="StatusLabel" runat="server" Text='<%#Eval("Status")%>' Visible="false"></asp:Label>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                    </Columns>
                                                </asp:GridView>
                                            </ContentTemplate>
                                        </asp:UpdatePanel>
                                    </div>
                                    <div class="col-md-12">
                                        <div class="alert alert-info">
                                            <asp:Label ID="StatusWordLabel" runat="server" Text="<b>A : </b>Absent, <b>EL : </b>Early Leave, <b>L : </b>Late, <b>V : </b>Valid" Font-Size="Medium"></asp:Label><br />
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                </tr>
                    </table>
            </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/assign-organization")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
   
  
</asp:Content>
