<%@ page language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_Hrm_Employee_MyTimeSheet, App_Web_lovpwhj5" 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>
            <div id="divContentPage">
                <div style="width: 100%; padding: 2px; margin: 2px">
                    <table width="100%" border="0" style="vertical-align: top; margin-top: -1px" cellpadding="0" cellspacing="0">
                        <tr>
                            <td class="dashBoardLeftCont" valign="top">
                                <div class="himssuHeader3WireBox">
                                    <table width="0px" cellpadding="0" cellspacing="0">
                                        <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>
                            </td>
                            <td style="vertical-align: top" width="100%" class="whiteboxpaddingleft">
                                <div class="himssuHeader5WireBox whitebox" id="SearchDiv" runat="server">
                                    <div class="himsBoxHeader note note1 box box-danger">
                                        <asp:Panel ID="TopPanel" runat="server">
                                            <div class="leftdiv">
                                            </div>
                                            <div class="himsBoxTitle">
                                                <div class="headerText">
                                                    <asp:Label ID="headerTextLabel" runat="server" Text="Search"></asp:Label>
                                                </div>
                                                
                                            </div>
                                        </asp:Panel>
                                    </div>
                                    <asp:Panel ID="DetailPanel" runat="Server">
                                        <div class="himsBoxContent">
                                            <div class="contentHolder">
                                                <asp:Panel ID="PanelSearch" runat="server">
                                                    <div class="cBoth">
                                                    </div>
                                                    <div class="outerBox pTop5">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="SearchFromDateLabel2" runat="server" Text="From Date"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <Date:DatePickerControl DisplayDatePicker="true" ID="SearchFromDatePickerControl2"
                                                                runat="server" />
                                                        </div>
                                                    </div>
                                                    <div class="outerBox pTop5">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="SearchToDateLabel3" runat="server" Text="To Date"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <Date:DatePickerControl DisplayDatePicker="true" ID="SearchToDatePickerControl3"
                                                                runat="server" />
                                                        </div>
                                                    </div>
                                                     <div class="outerBox pTop5">
                                                        <div class="controlLabelWidth">
                                                                <asp:Label Id="WeekoffColorLabel" runat="server" Text ="W : WeekOff" ForeColor="Cyan" Font-Bold="true"></asp:Label> &nbsp;&nbsp;
                                                                <asp:Label Id="AbsentcolorLabel" runat="server" Text ="A : Absent" ForeColor="Red" Font-Bold="true"></asp:Label> &nbsp;&nbsp;
                                                                <asp:Label Id="ErrorColorLabel" runat="server" Text ="E : ErrorCase" ForeColor="LightCoral" Font-Bold="true"></asp:Label> &nbsp;&nbsp;
                                                                <asp:Label Id="HolidayColorLabel" runat="server" Text ="H : Holiday" ForeColor="LightSalmon" Font-Bold="true"></asp:Label> &nbsp;&nbsp;
                                                                
                                                                <asp:Label Id="LessHoursColorLabel" runat="server" Text ="LH : LessHours" ForeColor="LightPink" Font-Bold="true"></asp:Label>&nbsp;&nbsp;
                                                                <asp:Label Id="HalfDayColorLabel" runat="server" Text ="HD : Half Day" ForeColor="LightSeaGreen" Font-Bold="true"></asp:Label>&nbsp;&nbsp;
                                                                <asp:Label Id="NotApplicableColorLabel" runat="server" Text ="XX : NotApplicable" ForeColor="LightGray" Font-Bold="true"></asp:Label>&nbsp;&nbsp;
                                                                <asp:Label Id="PresentOnWeekOffHolidayLabel" runat="server" Text ="PH/PW : PresentOnWeekOffHoliday" ForeColor="GreenYellow" Font-Bold="true"></asp:Label>
                                                                </div>
                                                                </div>
                                                    <div class="cBoth">
                                                    </div>
                                                    <br />
                                                    <div class="alignCenter">
                                                        <asp:Button ID="SearchButton" Text="Search" TabIndex="3" runat="Server" 
                                                            SkinID="0" CssClass="btn-primary" onclick="SearchButton_Click" />
                                                        <asp:Button ID="ResetButton" runat="server" TabIndex="4" Text="Clear" OnClick="ResetButton_Click" />
                                                    </div>
                                                    <br />
                                                </asp:Panel>

                                                
                                                <div id="CsrBenefiteMasterGridDiv" runat="server" visible="false">                                                 
                                                    <div class="himssuHeader7WireBox box-body box-solid gridviewfont" id="PatientRelationDiv"
                                                        runat="server" style="width: 100%">
                                                        <div class="himsBoxContent">
                                                         <div class="outerBox pTop5" style="padding-bottom: 10px">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="EmployeeNameLabel" runat="server" Text="EmployeeName" ></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <asp:Label runat="server" ID="EmployeeNameTLabel" ></asp:Lable>                                                                </asp:Label>
                                                            </div>
                                                        </div>

                                                        <div class="outerBox pTop5" style="padding-bottom: 10px">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="PresentLabel" runat="server" Text="Present" ></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <asp:Label runat="server" ID="PresentTLabel" ></asp:Label>
                                                            </div>
                                                        </div>

                                                        <div class="outerBox pTop5" style="padding-bottom: 10px">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="AbsentLabel" runat="server" Text="Absent" ></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <asp:Label runat="server" ID="AbsentTLabel" ></asp:Label>
                                                            </div>
                                                        </div>


                                                         <div class="outerBox pTop5" style="padding-bottom: 10px">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="WeekOffLabel" runat="server" Text="Week Off" ></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <asp:Label runat="server" ID="WeekOffTLabel" ></asp:Lable>                                                                </asp:Label>
                                                            </div>
                                                        </div>

                                                        <div class="outerBox pTop5" style="padding-bottom: 10px">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="HolidayLabel" runat="server" Text="Holiday"></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <asp:Label runat="server" ID="HolidayTLabel" ></asp:Label>
                                                            </div>
                                                        </div>

                                                        <div class="outerBox pTop5" style="padding-bottom: 10px">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="LeaveLabel" runat="server" Text="Leave" ></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <asp:Label runat="server" ID="LeaveTLabel" ></asp:Label>
                                                            </div>
                                                        </div>
                                                     
                                                               
                                                           
                                                         
                                                            <asp:UpdatePanel ID="MenuPlanDetailUpdatePanel" runat="server" UpdateMode="Always">
                                                                <ContentTemplate>
                                                                    <asp:GridView ID="LeaveMasterGridView" OnRowDataBound="LeaveMasterGridView_RowDataBound"
                                                                        OnPageIndexChanging="LeaveMasterGridView_PageIndexChanging" runat="server" AutoGenerateColumns="False"
                                                                        Width="100%" AllowPaging="false" DataKeyNames="Id" PagerSettings-Visible="false"
                                                                        EmptyDataText="No records available for the search criteria" ShowHeader="True"
                                                                        CssClass="table table-striped table-bordered">
                                                                        <Columns>                                                                           
                                                                            <asp:BoundField HeaderText="Date" DataField="Attn_Date" DataFormatString="{0:d}" HeaderStyle-HorizontalAlign="Left">
                                                                                <ItemStyle Width="16%" />
                                                                            </asp:BoundField>
                                                                            <asp:BoundField HeaderText="Status" DataField="PresentStatus" HeaderStyle-HorizontalAlign="Left">
                                                                                <ItemStyle Width="12%" />
                                                                            </asp:BoundField>
                                                                            <asp:BoundField HeaderText="FirstIn" DataField="FirstIn" HeaderStyle-HorizontalAlign="Left">
                                                                                <ItemStyle Width="12%" />
                                                                            </asp:BoundField>
                                                                            <asp:BoundField HeaderText="LastOut" DataField="LastOut" HeaderStyle-HorizontalAlign="Left">
                                                                                <ItemStyle Width="12%" />
                                                                            </asp:BoundField>
                                                                            <asp:BoundField HeaderText="LateBy" DataField="LateBy" HeaderStyle-HorizontalAlign="Left">
                                                                                <ItemStyle Width="12%" />
                                                                            </asp:BoundField>
                                                                           <asp:BoundField HeaderText="Earlyby" DataField="EarlyBy" HeaderStyle-HorizontalAlign="Left">
                                                                                <ItemStyle Width="12%" />
                                                                            </asp:BoundField>
                                                                             <asp:BoundField HeaderText="OverTime" DataField="OverTime" HeaderStyle-HorizontalAlign="Left">
                                                                                <ItemStyle Width="12%" />
                                                                            </asp:BoundField>
                                                                             <asp:BoundField HeaderText="Duration" DataField="Duration" HeaderStyle-HorizontalAlign="Left">
                                                                                <ItemStyle Width="12%" />
                                                                            </asp:BoundField>
                                                                        </Columns>
                                                                    </asp:GridView>
                                                                </ContentTemplate>
                                                            </asp:UpdatePanel>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </asp:Panel>
                                </div>
                            </td>
                        </tr>
                    </table>
                </div>
            </div>
            <div class="spacer">
                <img src="../../../Images/spacer.gif" />
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <script data-main="../../../JavaScript/rjs/encrypt/leave-encrypt" src="../../../JavaScript/rjs/require.js"></script>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/leave-encrypt")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>