<%@ page language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_Hrm_Employee_SettleDays, App_Web_nn2t5yl1" 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" %>
<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" 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="163"
                                                Visible="true" runat="server" />
                                        </div>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div class="row whiteboxpaddingleft">
                    <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-search"></i>
                                            <asp:Label ID="headerTextLabel" runat="server" Text="Search"></asp:Label>
                                        </header>
                                    </div>
                                    <div class="fRight mt-27">
                                    </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="cBoth">
                                        </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"
                                                    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" />
                                                <asp:HiddenField ID="SearchEmployeeIdHiddenField" runat="server" />
                                            </div>
                                        </div>

                                        <div class="outerBox pTop5 col-md-3">
                                            <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 col-md-3">
                                            <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="cBoth">
                                        </div>
                                        <br />
                                        <div class="alignCenter">
                                            <asp:Button ID="SearchButton" TabIndex="3" runat="Server" OnClick="SearchButton_Click"
                                                SkinID="0" CssClass="btn-search btn fas" Text="&#xf002; Search" />
                                            <asp:Button ID="ResetButton" runat="server" TabIndex="4" Text="&#xf0e2; Reset" CssClass="btn-reset btn fas" SkinID="0" OnClick="ResetButton_Click" />
                                        </div>
                                        <div class="cBoth">
                                        </div>
                                        <br />
                                    </asp:Panel>
                                    <div id="CsrBenefiteMasterGridDiv" runat="server">
                                        <div class="himssuHeader7WireBox col-md-12" id="PatientRelationDiv"
                                            runat="server" style="width: 100%">
                                            <div class="himsBoxHeader" id="ListDiv" runat="server" visible="true">
                                                <div class="leftdiv">
                                                </div>
                                                <div class="himsBoxTitle">
                                                    <div class="headerText">
                                                        <div class="fLeft">
                                                        </div>
                                                    </div>
                                                    <div align="right" class="fRight" style="margin-top: 0px;">
                                                    </div>
                                                </div>
                                            </div>


                                            <div class="col-md-12 pTop15">
                                                <div class="himsBoxContent table-responsive ">
                                                    <asp:GridView ID="SettleDaysGridView"
                                                        runat="server" AutoGenerateColumns="False" Width="100%" AllowPaging="false" DataKeyNames=""
                                                        PagerSettings-Visible="false" EmptyDataText="No records available for the search criteria"
                                                        ShowHeader="True" CssClass="table table-striped table-bordered table-hover" ShowFooter="false">
                                                        <Columns>

                                                             <asp:BoundField DataField="NAME" HeaderStyle-HorizontalAlign="Left" HeaderText="Name">
                                                                        <ItemStyle Width="10%" />
                                                                    </asp:BoundField>

                                                             <asp:BoundField DataField="EMPLOYEE" HeaderStyle-HorizontalAlign="Left" HeaderText="Employee">
                                                                        <ItemStyle Width="10%" />
                                                                    </asp:BoundField>

                                                        </Columns>
                                                    </asp:GridView>
                                                </div>
                                            </div>


                                             <div class="himsBoxContent">
                                                <asp:UpdatePanel ID="MenuPlanDetailUpdatePanel" runat="server" UpdateMode="Always">
                                                    <ContentTemplate>
                                                        <div id="Div4" runat="server" class="table-responsive">
                                                            <asp:GridView ID="SettleDays_GridView" 
                                                                 runat="server" AutoGenerateColumns="False"
                                                                Width="100%" AllowPaging="false" DataKeyNames="Id,StatusId,OrgId,BatchId" PagerSettings-Visible="false"
                                                                EmptyDataText="No records available for the search criteria" ShowHeader="True"
                                                                CssClass="table table-striped table-bordered table-hover" OnRowDataBound="SettleDays_GridView_RowDataBound" OnSelectedIndexChanging="SettleDays_GridView_SelectedIndexChanging" ShowFooter="true">
                                                                <Columns>
                                                                    <%--<asp:TemplateField ItemStyle-Width="5%" HeaderText="Organization Name" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                                        <ItemTemplate>
                                                                           <asp:Label DataField="OrganizationName" HeaderStyle-HorizontalAlign="Left" runat="server" ></asp:Label>
                                                                        </ItemTemplate>
                                                                        <FooterTemplate>
                                                                            <asp:Label ID="TotalLabel" ClientIDMode="Static" runat="server" Text="Total" Font-Bold="true"></asp:Label>
                                                                        </FooterTemplate>
                                                                    </asp:TemplateField>--%>
                                                                    <asp:BoundField HeaderText="Organization Name" DataField="OrganizationName" HeaderStyle-HorizontalAlign="Left" FooterText="Total Leave"  FooterStyle-Wrap="True">
                                                                        <ItemStyle Width="15%" />
                                                                    </asp:BoundField>
                                                                    <asp:BoundField HeaderText="Employee Code" DataField="EmployeeCode" HeaderStyle-HorizontalAlign="Left">
                                                                        <ItemStyle Width="8%" />
                                                                    </asp:BoundField>
                                                                    <asp:BoundField HeaderText="Employee Name" DataField="EmployeeName" HeaderStyle-HorizontalAlign="Left">
                                                                        <ItemStyle Width="12%" />
                                                                    </asp:BoundField>
                                                                    <asp:BoundField HeaderText="From Date" DataField="FromDate" DataFormatString="{0:dd/MM/yyyy}"
                                                                        HeaderStyle-HorizontalAlign="Left">
                                                                        <ItemStyle Width="8%" />
                                                                    </asp:BoundField>
                                                                    <asp:BoundField HeaderText="To Date" DataField="ToDate" DataFormatString="{0:dd/MM/yyyy}"
                                                                        HeaderStyle-HorizontalAlign="Left">
                                                                        <ItemStyle Width="8%" />
                                                                    </asp:BoundField>
                                                                    <asp:TemplateField HeaderText="No Of Leave" ItemStyle-Width="8%" ItemStyle-Wrap="true"
                                                                        HeaderStyle-HorizontalAlign="Left">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="NoOfLeaveLabel" ClientIDMode="Static" runat="server" Text='<%#Eval("NoOfDays")%>'></asp:Label>
                                                                        </ItemTemplate>
                                                                        <FooterTemplate>
                                                                            <asp:Label ID="TotalNoOfLeaveLabel" runat="server" ClientIDMode="Static" Font-Bold="true"></asp:Label>
                                                                        </FooterTemplate>
                                                                    </asp:TemplateField>
                                                                   <%-- <asp:BoundField HeaderText="No Of Leave" DataField="NoOfDays" HeaderStyle-HorizontalAlign="Left">
                                                                                <ItemStyle Width="8%" />
                                                                            </asp:BoundField>--%>
                                                                    <asp:BoundField HeaderText="Report Date" DataField="ReportDate" DataFormatString="{0:dd/MM/yyyy}"
                                                                        HeaderStyle-HorizontalAlign="Left">
                                                                        <ItemStyle Width="8%" />
                                                                    </asp:BoundField>
                                                                    <asp:BoundField HeaderText="Leave Type" DataField="LeaveType" HeaderStyle-HorizontalAlign="Left">
                                                                        <ItemStyle Width="8%" />
                                                                    </asp:BoundField>
                                                                    <asp:BoundField HeaderText="Leave Reson" DataField="LeaveReson" HeaderStyle-HorizontalAlign="Left">
                                                                        <ItemStyle Width="15%" />
                                                                    </asp:BoundField>
                                                                    <asp:BoundField HeaderText="Action By" DataField="ActionByEmployee" HeaderStyle-HorizontalAlign="Left">
                                                                        <ItemStyle Width="15%" />
                                                                    </asp:BoundField>
                                                                    <asp:TemplateField HeaderText="Status" ItemStyle-Width="5%" ItemStyle-Wrap="true"
                                                                        HeaderStyle-HorizontalAlign="Left">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="StatusLabel" runat="server" Text='<%#Eval("StatusName")%>'></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <%--<asp:BoundField HeaderText="Status" DataField="StatusName" HeaderStyle-HorizontalAlign="Left">
                                                                                <ItemStyle Width="5%" />
                                                                            </asp:BoundField>--%>
                                                                </Columns>
                                                            </asp:GridView>
                                                        </div>
                                                    </ContentTemplate>
                                                </asp:UpdatePanel>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>                    
                    </asp:Panel>
                </div>
            </div>            
        </ContentTemplate>
    </asp:UpdatePanel>
    <%--<script data-main="../../../JavaScript/rjs/encrypt/leave-listing-encrypt" src="../../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/leave-listing")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>
