<%@ page title="" language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_Hrm_Employee_LeaveTypeGradeSettings, App_Web_nn2t5yl1" 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-wrench"></i>
                                        <asp:Label ID="Label1" runat="server" Text="Leave Type Grade Setting"></asp:Label>
                                    </header>
                                </div>
                            </div>
                        </div>
                        <div class="himsBoxContent card-body">
                            <asp:Panel ID="DetailPanel" runat="Server">
                                <div class="contentHolder">
                                    <div class="cBoth">
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="EmployeeLabel" runat="server" Text="Employee Grade" SkinID="MandatoryLabel"> </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="fLeft pTop5">
                                            <asp:CheckBox ID="ApplyToOtherEmployeeGradeCheckBox" runat="server" OnCheckedChanged="ApplyToOtherEmployeeGradeCheckBox_CheckedChanged"
                                                AutoPostBack="true" Text="Apply To Other Employee Grade" />
                                            <%--  <asp:Label ID="ApplyToOtherEmployeeGradeLabel" runat="server" Text="Apply To Other Employee Grade"
                                                            class="pLeft5"></asp:Label>--%>
                                        </div>
                                    </div>
                                  
                                    <div id="DivEmployeeGradeCheckBoxList" class="outerBox11 pTop5 col-md-6" runat="server" visible="false">
                                     <div class="col-md-6">
                                             <div class="select">
                                            <asp:CheckBox ID="EmployeeGradeCheckBox" runat="server" Text="Select All" AutoPostBack="True" OnCheckedChanged="EmployeeGradeCheckBox_CheckedChanged" />
                                            <%--    <asp:Label ID="ApplyForAllEmployeeGradeLabel" runat="server" Text="Select All" class="pLeft5"></asp:Label>--%>
                                        </div>
                                        <div id="EmployeeGradeDivisionDiv" runat="server" class="fLeft pRight5 chck-dropdown-onclick bg-lghtgrey outerBox11 overflow-x-hidden padd-0">
                                            <asp:CheckBoxList ID="EmployeeGradeCheckBoxList" runat="server">
                                            </asp:CheckBoxList>
                                        </div>
                                          </div>
                                     <div class="col-md-6 ">
                                      
                                            <asp:Button ID="ApplyForSelectEmployeeGradeButton" runat="server" SkinID="0" OnClick="ApplyForSelectEmployeeGradeButton_Click"
                                                Text="Apply For Select Employee Grade" CssClass="btn btn-apply fas" />
                                       </div>
                                </div>
                                    <div class="cBoth">
                                    </div>
                                    <br />
                                    <div id="Div1" class="himssuHeader1WireBox col-md-12" runat="server"
                                        visible="false" style="width: 100%; height: 100%">
                                        <div class="himsBoxContent">
                                            <div id="Div4" runat="server" class="table-responsive">
                                                <asp:GridView ID="LeaveTypeGradeSettingGridView" runat="server" Width="100%" AutoGenerateColumns="False"
                                                    EmptyDataText="No Records Found !!" AllowPaging="false" OnRowDataBound="LeaveTypeGradeSettingGridView_RowDataBound"
                                                    ShowHeader="true" DataKeyNames="LeaveTypeId,LeaveCarryForwordRuleId" CssClass="table table-striped table-bordered table-hover">
                                                    <Columns>
                                                        <asp:BoundField DataField="LeaveType" HeaderText="Leave Type" ItemStyle-Width="55%"
                                                            HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                        <asp:TemplateField HeaderText="Max In Month" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="15%">
                                                            <ItemStyle HorizontalAlign="Left" />
                                                            <ItemTemplate>
                                                                <asp:TextBox ID="MaxInMonth" runat="server" onKeypress="javascript:return MaskDecimal(event,5,2)"
                                                                    Width="150px" SkinID="CustomwidthTextBox" Text='<%# Bind("MaxInMonth")%>'></asp:TextBox>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="No Of Leave" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="15%">
                                                            <ItemStyle HorizontalAlign="Left" />
                                                            <ItemTemplate>
                                                                <asp:TextBox ID="NoOfLeave" runat="server" onkeypress="return MaskDecimal(event,5,2);"
                                                                    Width="150px" SkinID="CustomwidthTextBox" Text='<%# Bind("NoOfLeave")%>'></asp:TextBox>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                         <asp:TemplateField HeaderText="Leave Balance CarryForward Rule" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="15%">
                                                            <ItemStyle HorizontalAlign="Left" />
                                                            <ItemTemplate>
                                                                <asp:DropDownList runat="server" ID="LeaveCarryForwordRuleDropDownList" SkinID="CustomWidthDropDownList"
                                                                    CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                    AutoPostBack="false"  Width="150px">
                                                                            <asp:ListItem Value="1">Common</asp:ListItem>
                                                                                <asp:ListItem Value="2">Month Wise</asp:ListItem>
                                                                                </asp:DropDownList>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                    </Columns>
                                                    <PagerSettings Visible="False" />
                                                </asp:GridView>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </asp:Panel>
                        </div>
                    </div>
                    <div class="spacer">
                        <asp:Image ID="Image4" runat="server" ImageUrl="~/Images/spacer.gif" />
                    </div>
                </div>

            </div>
            <div class="spacer">
                <img src="../../../Images/spacer.gif" />
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <%--<script data-main="../../../JavaScript/rjs/encrypt/leavetype-gradesettings-encrypt" src="../../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/leavetype-gradesettings")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>
