<%@ page title="" language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_Hrm_Employee_ViewLeaveBalance, App_Web_zapnm0jp" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<%@ Register Src="~/UserControls/GridViewPager/GridViewPager.ascx" TagName="GridViewPager"
    TagPrefix="uc1" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="~/UserControls/Common/ScreenGroup/ScreenGroup.ascx" TagName="ScreenGroupControl"
    TagPrefix="ScreenGroup" %>
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="OTQueueListingUpdatePanel" runat="server">
        <ContentTemplate>
            <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="himssuHeader1WireBox card card-box">
                        <div class="himsBoxHeader card-head">
                            <div class="leftdiv">
                            </div>
                            <div class="himsBoxTitle">
                                <div class="headerText">
                                    <header>
                                        <i class="fas fa-bookmark"></i>
                                        <asp:Label ID="MainLabel" runat="server" Text="Leave Balance"></asp:Label>
                                    </header>
                                </div>
                            </div>
                        </div>
                        <div class="himsBoxContent card-body">
                            <asp:Panel ID="DetailPanel" runat="Server">
                                <div class="contentHolder">
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="EmployeeTypeLabel2" runat="server" Text="Employee Type"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList runat="server" ID="EmployeeTypeDropDownList" SkinID="CustomWidthDropDownList"
                                                onmouseleave="showHideTooltip()" CssClass="form-control" onmouseenter="showHideTooltip()"
                                                AutoPostBack="true" OnSelectedIndexChanged="EmployeeTypeDropDownList_SelectedIndexChanged">
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="EmployeeGroupLabel" runat="server" Text="Employee Group"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList runat="server" ID="EmployeeGroupDropDownList" SkinID="CustomWidthDropDownList"
                                                onmouseleave="showHideTooltip()" CssClass="form-control" onmouseenter="showHideTooltip()"
                                                AutoPostBack="true" OnSelectedIndexChanged="EmployeeGroupDropDownList_SelectedIndexChanged">
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="Label1" runat="server" Text="Employee Grade"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList runat="server" ID="EmployeeGradeDropDownList" SkinID="CustomWidthDropDownList"
                                                onmouseleave="showHideTooltip()" CssClass="form-control" onmouseenter="showHideTooltip()"
                                                AutoPostBack="true" OnSelectedIndexChanged="EmployeeGradeDropDownList_SelectedIndexChanged">
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                    <div class="cBoth">
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="DepartmentLabel" runat="server" Text="Department" meta:resourcekey="DepartmentLabelResource1"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList runat="server" ID="DepartmentDropDownList" onmouseleave="showHideTooltip()"
                                                CssClass="form-control" SkinID="CustomWidthDropDownList" onmouseenter="showHideTooltip()"
                                                AutoPostBack="true" OnSelectedIndexChanged="DepartmentDropDownList_SelectedIndexChanged">
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="EmployeeTypeLabel" Text="Leave Type" runat="server"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList ID="EmployeeLeaveTypeDropDownList" runat="server" SkinID="CustomWidthDropDownList"
                                                CssClass="form-control" AutoPostBack="true" OnSelectedIndexChanged="EmployeeLeaveTypeDropDownList_SelectedIndexChanged">
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="BatchDateLabel" Text="Batch Date (From - To)" runat="server"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:Label ID="BatchDateDisplayLabel" Text="" runat="server"></asp:Label>
                                        </div>
                                    </div>
                                    <div class="spacer">
                                        <asp:Image ID="Image1" runat="server" ImageUrl="~/Images/spacer.gif" />
                                    </div>
                                    <div class="cBoth">
                                    </div>
                                    <div id="Div1" class="himssuHeader6WireBox pTop5 col-md-12"
                                        runat="server" visible="true" style="width: 100%; height: 100%">
                                        <div class="himsBoxHeader card-head inner" id="GridViewPagerDiv" runat="server" visible="True">
                                            <div class="leftdiv">
                                            </div>
                                            <div class="himsBoxTitle">
                                                <div class="headerText">
                                                    <header>
                                                        <asp:Label ID="GridViewLabel" Text="Leave Balance List" runat="server" />
                                                    </header>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="fRight mt-27 display-flex" style="margin-top: -25px; margin-left: 40px;" runat="server" visible="false">
                                            <asp:TextBox ID="ApplyAllTextBox" runat="server" ClientIDMode="Static" MaxLength="100"
                                                Visible="false" SkinID="CustomWidthTextBox" onKeypress="javascript:return MaskDecimal(event,5,2)"></asp:TextBox>
                                            <asp:Button ID="ApplyAllButton" runat="server" OnClick="ApplyAllButton_Click"
                                                Visible="false" Text="Apply All" SkinID="0" CssClass="btn btn-apply fas" />
                                        </div>
                                        <div class="himsBoxContent">
                                            <div id="GridViewMessageDiv" class="himsBoxContentMsg" runat="server" visible="False">
                                            </div>
                                            <div id="Div4" runat="server" class="table-responsive">
                                                <asp:GridView ID="LeaveBalanceGridView" runat="server" Width="100%" AutoGenerateColumns="False"
                                                    EmptyDataText="No Records Found !!" AllowPaging="false" ShowHeader="True" DataKeyNames="EmployeeId"
                                                    CssClass="table table-striped table-bordered table-hover">
                                                    <Columns>
                                                        <asp:BoundField DataField="EmployeeId" HeaderText="EmployeeId" Visible="false"></asp:BoundField>
                                                        <asp:BoundField DataField="Code" HeaderText="Code" Visible="true" HeaderStyle-HorizontalAlign="Left"
                                                            ItemStyle-Width="10%" />
                                                        <asp:BoundField DataField="EmployeeName" HeaderText="Name" Visible="true" HeaderStyle-HorizontalAlign="Left"
                                                            ItemStyle-Width="10%" />
                                                        <asp:BoundField DataField="DepartmentName" HeaderText="Department" Visible="true"
                                                            HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="10%" />
                                                        <asp:BoundField DataField="EmployeeDesignation" HeaderText="Designation" Visible="true"
                                                            HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="10%" />
                                                        <asp:BoundField DataField="EmployeeGrade" HeaderText="Employee Grade" Visible="true"
                                                            HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="10%" />
                                                        <asp:BoundField DataField="DateOfJoining" HeaderText="Date Of Joining" Visible="true"
                                                            HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="10%" DataFormatString="{0:dd/MM/yyyy}" />
                                                         <asp:BoundField DataField="Number" HeaderText="Number" Visible="true"
                                                            HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="10%" />
                                                        <asp:TemplateField HeaderText="LeaveType1" ItemStyle-Width="5%" ItemStyle-Wrap="true"
                                                            HeaderStyle-HorizontalAlign="Left">
                                                            <HeaderTemplate>
                                                                <asp:Label ID="LeaveType1HeaderLabel" Font-Bold="true" SkinID="CustomWidthTextBox"
                                                                    runat="server"></asp:Label>
                                                            </HeaderTemplate>
                                                            <HeaderStyle VerticalAlign="NotSet" HorizontalAlign="Left" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="LeaveType1Label" runat="server"></asp:Label>
                                                                <asp:TextBox ID="LeaveType1TextBox" SkinID="CustomWidthTextBox" runat="server" Width="100%" onKeypress="javascript:return MaskDecimal(event,5,2)" Visible="false"></asp:TextBox>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="LeaveType2" ItemStyle-Width="5%" ItemStyle-Wrap="true"
                                                            HeaderStyle-HorizontalAlign="Left">
                                                            <HeaderTemplate>
                                                                <asp:Label ID="LeaveType2HeaderLabel" Font-Bold="true" SkinID="CustomWidthTextBox"
                                                                    runat="server"></asp:Label>
                                                            </HeaderTemplate>
                                                            <HeaderStyle VerticalAlign="NotSet" HorizontalAlign="Left" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="LeaveType2Label" runat="server"></asp:Label>
                                                                <asp:TextBox ID="LeaveType2TextBox" SkinID="CustomWidthTextBox" runat="server" Width="100%"
                                                                    onKeypress="javascript:return MaskDecimal(event,5,2)" Visible="false"></asp:TextBox>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="LeaveType3" ItemStyle-Width="5%" ItemStyle-Wrap="true"
                                                            HeaderStyle-HorizontalAlign="Left">
                                                            <HeaderTemplate>
                                                                <asp:Label ID="LeaveType3HeaderLabel" Font-Bold="true" SkinID="CustomWidthTextBox"
                                                                    runat="server"></asp:Label>
                                                            </HeaderTemplate>
                                                            <HeaderStyle VerticalAlign="NotSet" HorizontalAlign="Left" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="LeaveType3Label" runat="server"></asp:Label>
                                                                <asp:TextBox ID="LeaveType3TextBox" SkinID="CustomWidthTextBox" runat="server" Width="100%"
                                                                    onKeypress="javascript:return MaskDecimal(event,5,2)" Visible="false"></asp:TextBox>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="LeaveType4" ItemStyle-Width="5%" ItemStyle-Wrap="true"
                                                            HeaderStyle-HorizontalAlign="Left">
                                                            <HeaderTemplate>
                                                                <asp:Label ID="LeaveType4HeaderLabel" Font-Bold="true" SkinID="CustomWidthTextBox"
                                                                    runat="server"></asp:Label>
                                                            </HeaderTemplate>
                                                            <HeaderStyle VerticalAlign="NotSet" HorizontalAlign="Left" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="LeaveType4Label" runat="server"></asp:Label>
                                                                <asp:TextBox ID="LeaveType4TextBox" SkinID="CustomWidthTextBox" runat="server" Width="100%"
                                                                    onKeypress="javascript:return MaskDecimal(event,5,2)" Visible="false"></asp:TextBox>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="LeaveType5" ItemStyle-Width="5%" ItemStyle-Wrap="true"
                                                            HeaderStyle-HorizontalAlign="Left">
                                                            <HeaderTemplate>
                                                                <asp:Label ID="LeaveType5HeaderLabel" Font-Bold="true" SkinID="CustomWidthTextBox"
                                                                    runat="server"></asp:Label>
                                                            </HeaderTemplate>
                                                            <HeaderStyle VerticalAlign="NotSet" HorizontalAlign="Left" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="LeaveType5Label" runat="server"></asp:Label>
                                                                <asp:TextBox ID="LeaveType5TextBox" SkinID="CustomWidthTextBox" runat="server" Width="100%"
                                                                    onKeypress="javascript:return MaskDecimal(event,5,2)" Visible="false"></asp:TextBox>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="LeaveType6" ItemStyle-Width="5%" ItemStyle-Wrap="true"
                                                            HeaderStyle-HorizontalAlign="Left">
                                                            <HeaderTemplate>
                                                                <asp:Label ID="LeaveType6HeaderLabel" Font-Bold="true" SkinID="CustomWidthTextBox"
                                                                    runat="server"></asp:Label>
                                                            </HeaderTemplate>
                                                            <HeaderStyle VerticalAlign="NotSet" HorizontalAlign="Left" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="LeaveType6Label" runat="server"></asp:Label>
                                                                <asp:TextBox ID="LeaveType6TextBox" SkinID="CustomWidthTextBox" runat="server" Width="100%"
                                                                    onKeypress="javascript:return MaskDecimal(event,5,2)" Visible="false"></asp:TextBox>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="LeaveType7" ItemStyle-Width="5%" ItemStyle-Wrap="true"
                                                            HeaderStyle-HorizontalAlign="Left">
                                                            <HeaderTemplate>
                                                                <asp:Label ID="LeaveType7HeaderLabel" Font-Bold="true" SkinID="CustomWidthTextBox"
                                                                    runat="server"></asp:Label>
                                                            </HeaderTemplate>
                                                            <HeaderStyle VerticalAlign="NotSet" HorizontalAlign="Left" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="LeaveType7Label" runat="server"></asp:Label>
                                                                <asp:TextBox ID="LeaveType7TextBox" SkinID="CustomWidthTextBox" runat="server" Width="100%"
                                                                    onKeypress="javascript:return MaskDecimal(event,5,2)" Visible="false"></asp:TextBox>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="LeaveType8" ItemStyle-Width="5%" ItemStyle-Wrap="true"
                                                            HeaderStyle-HorizontalAlign="Left">
                                                            <HeaderTemplate>
                                                                <asp:Label ID="LeaveType8HeaderLabel" Font-Bold="true" SkinID="CustomWidthTextBox"
                                                                    runat="server"></asp:Label>
                                                            </HeaderTemplate>
                                                            <HeaderStyle VerticalAlign="NotSet" HorizontalAlign="Left" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="LeaveType8Label" runat="server"></asp:Label>
                                                                <asp:TextBox ID="LeaveType8TextBox" SkinID="CustomWidthTextBox" runat="server" Width="100%"
                                                                    onKeypress="javascript:return MaskDecimal(event,5,2)" Visible="false"></asp:TextBox>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="LeaveType9" ItemStyle-Width="5%" ItemStyle-Wrap="true"
                                                            HeaderStyle-HorizontalAlign="Left">
                                                            <HeaderTemplate>
                                                                <asp:Label ID="LeaveType9HeaderLabel" Font-Bold="true" SkinID="CustomWidthTextBox"
                                                                    runat="server"></asp:Label>
                                                            </HeaderTemplate>
                                                            <HeaderStyle VerticalAlign="NotSet" HorizontalAlign="Left" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="LeaveType9Label" runat="server"></asp:Label>
                                                                <asp:TextBox ID="LeaveType9TextBox" SkinID="CustomWidthTextBox" runat="server" Width="100%"
                                                                    onKeypress="javascript:return MaskDecimal(event,5,2)" Visible="false"></asp:TextBox>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="LeaveType10" ItemStyle-Width="5%" ItemStyle-Wrap="true"
                                                            HeaderStyle-HorizontalAlign="Left">
                                                            <HeaderTemplate>
                                                                <asp:Label ID="LeaveType10HeaderLabel" Font-Bold="true" SkinID="CustomWidthTextBox"
                                                                    runat="server"></asp:Label>
                                                            </HeaderTemplate>
                                                            <HeaderStyle VerticalAlign="NotSet" HorizontalAlign="Left" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="LeaveType10Label" runat="server"></asp:Label>
                                                                <asp:TextBox ID="LeaveType10TextBox" SkinID="CustomWidthTextBox" runat="server" Width="100%"
                                                                    onKeypress="javascript:return MaskDecimal(event,5,2)" Visible="false"></asp:TextBox>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="Total Leave" ItemStyle-Width="5%" ItemStyle-Wrap="true"
                                                            HeaderStyle-HorizontalAlign="Left">
                                                            <HeaderStyle VerticalAlign="NotSet" HorizontalAlign="Left" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="TotalLeaveLabel" Font-Bold="true" SkinID="CustomWidthTextBox"
                                                                    runat="server"></asp:Label>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                    </Columns>
                                                    <PagerSettings Visible="False" />
                                                </asp:GridView>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </asp:Panel>
                        </div>
                    </div>
                </div>

            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <%--<script data-main="../../../JavaScript/rjs/encrypt/leave-balance-encrypt" src="../../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/leave-balance")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>
