<%@ page language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_Hrm_Employee_IncrementCertificateBulk, App_Web_mpvs5e2w" 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">
<%--    <script>
        function fnCheckAmount(e) {
            alert(1);
            var t = e.search("[^0-9,.]");
            return e.length > 0 && t >= 0 || e.indexOf(".") != e.lastIndexOf(".") ? !1 : !0
        }
    </script>--%>
    <style>
        .display-flex.outerBox11 {
    width:125px;
}
    </style>
    <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="164"
                                                Visible="true" runat="server" />
                                        </div>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                 <div class="row whiteboxpaddingleft">
                    <div class="himssuHeader2WireBox ">
                        <div class="contentHolder" style="padding-top: 0px; padding-left: 0px; padding-right: 0px">
                            <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-edit"></i>
                                                <asp:Label ID="Label1" runat="server" Text="Increment Certificate Bulk"></asp:Label>
                                            </header>
                                        </div>
                                    </div>
                                </div>
                
                                    <div class="himsBoxContent card-body" >                        
                                    <asp:Panel ID="DetailPanel" runat="Server">
                                        <div class="contentHolder">
                                            <div class="cBoth">
                                            </div>
                                            <asp:Panel ID="SearchCriteriaPanel" runat="Server">
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="DepartmentLabel" runat="server" Text="Department" SkinID="MandatoryLabel"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:DropDownList runat="server" ID="DepartmentDropDownList" SkinID="CustomWidthDropDownList"
                                                            CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                            AutoPostBack="true">
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>
                                                
                                                <div class="outerBox pTop5 col-md-3">
                                                     <div class="controlLabelWidth">
                                                        <asp:Label ID="DesignationLabel" runat="server" Text="Designation"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                    <asp:DropDownList runat="server" ID="DesignationDropDownList" SkinID="CustomWidthDropDownList"
                                                            CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                            AutoPostBack="true">
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>
                                            </asp:Panel>
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="CertificateDateLabel" runat="server" Text="Certificate Date" SkinID="MandatoryLabel"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <Date:DatePickerControl DisplayDatePicker="true" ID="CertificateDatePickerControl" runat="server" />
                                                    </div>
                                                </div>
                                                <div class="cBoth">
                                                </div>
                                                <div class="alignCenter pTop5">
                                                    <asp:Button ID="ApplyButton" Text="Apply" runat="Server" OnClick="ApplyButton_Click" CssClass="btn-apply btn fas" SkinID="0" />
                                                    <asp:Button ID="ClearButton" Text="&#xf12d; Clear" SkinID="0" runat="server" OnClick="ClearButton1_Click" CssClass="btn btn-clear fas" />
                                                </div>
                                            
                                            <div class="cBoth">
                                            </div>
                                               
                                            <div class="spacer">
                                                <asp:Image ID="Image1" runat="server" ImageUrl="~/Images/spacer.gif" />
                                            </div>
                                            <div id="Div1" class="himssuHeader1WireBox col-md-12" runat="server" visible="false">
                                                <div id="GridViewPagerDiv" runat="server" visible="True">
                                                    <div class="leftdiv">
                                                    </div>
                                                    <div class="himsBoxTitle">
                                                    </div>
                                                        <div class="fRight mt-28 display-flex">
                                                            <asp:DropDownList ID="ApplyDropDownList" runat="server" AutoPostBack="true" CssClass="form-control" OnSelectedIndexChanged="ApplyDropDownList_SelectedIndexChanged"
                                                                SkinID="CustomWidthButton">
                                                            </asp:DropDownList>
                                                            <asp:TextBox ID="ApplyAllTextBox" runat="server" ClientIDMode="Static" MaxLength="50"
                                                                SkinID="CustomWidthTextBox" style="margin-top:14px"></asp:TextBox>
                                                            <asp:Button ID="ApplyAllButton" runat="server" CssClass="btn-apply btn fas" SkinID="0" OnClick="ApplyAllButton_Click"
                                                                Text="Apply All" style="margin-bottom:8px" />
                                                        </div>
                                                    </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="IncrementCertificateBulkGridView" runat="server" Width="100%" CssClass="table table-striped table-bordered table-hover" AutoGenerateColumns="False"
                                                                    EmptyDataText="No Records Found !!" AllowPaging="false" ShowHeader="true"
                                                                    DataKeyNames="Id,EmployeeId,Number,Qualification">
                                                                    <Columns>
                                                                        <asp:TemplateField HeaderStyle-HorizontalAlign="Center">
                                                                            <HeaderTemplate>
                                                                                <label class="rt-chkbox rt-chkbox-outline">
                                                                                    <asp:CheckBox ID="HeaderSelectCheckBox" onclick="CheckAll(this);" AutoPostBack="true" runat="server" OnCheckedChanged="SelectAllCheckBox_Checked" />
                                                                                    <span></span>
                                                                                </label>
                                                                            </HeaderTemplate>
                                                                            <ItemStyle HorizontalAlign="Center" Width="5%" />
                                                                            <ItemTemplate>
                                                                                <label class="rt-chkbox rt-chkbox-outline">
                                                                                    <asp:CheckBox ID="SelectCheckBox" runat="server" AutoPostBack="true" OnCheckedChanged="SelectCheckBox_Checked" />
                                                                                    <span></span>
                                                                                </label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="ID No" ItemStyle-Width="5%">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="IdNoLabel" runat="server" Text='<%#Eval("Code") %>'></asp:Label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>

                                                                        <asp:BoundField DataField="Name" HeaderText="Name" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                        <asp:BoundField DataField="Designation" HeaderText="Designation" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                        <%-- <asp:BoundField DataField="CertificateDate" HeaderText="Certificate Date" ItemStyle-Width="20%" HeaderStyle-HorizontalAlign="Left" DataFormatString = "{0:dd/MM/yyyy}"></asp:BoundField>--%>

                                                                        <asp:TemplateField HeaderText="Remark">
                                                                            <ItemTemplate>
                                                                                <asp:TextBox ID="RemarkTextBox" style="width:125px !important;" runat="server" MaxLength="200" ErrorMessage="Only Numerics allowed!!!" Enabled="false"></asp:TextBox>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>

                                                                        <asp:TemplateField HeaderText="PayScale" >
                                                                            <ItemTemplate>
                                                                                <asp:TextBox ID="PayScaleTextBox" runat="server" MaxLength="100" Enabled="false"></asp:TextBox>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="ExistingBasic Pay">
                                                                            <ItemTemplate>
                                                                                <asp:TextBox ID="ExistingBasicPayTextBox" runat="server" MaxLength="50" Enabled="false" onkeypress="javascript:return MaskDecimal(event,10,2)" onblur="javascript:return MaskDecimal(event,10,2)"></asp:TextBox>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="RevisedBasic Pay">
                                                                            <ItemTemplate>
                                                                                <asp:TextBox ID="RevisedBasicPayTextBox" runat="server" MaxLength="50" Enabled="false" onkeypress="javascript:return MaskDecimal(event,10,2)" onblur="javascript:return MaskDecimal(event,10,2)"></asp:TextBox>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Revised Basic PayDate">
                                                                            <ItemTemplate>
                                                                                <Date:DatePickerControl ID="RevisedBasicPayDateDatePickerControl" runat="server" DisplayDatePicker="true" style="width:500px !important;" onkeypress="ValidateDateFormate(event)"
                                                                                    SkinID="CustomWidthTextBox" Width="100px" Visible=" true" Enabled="false" />
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Grade Pay InRevised PayStructure">
                                                                            <ItemTemplate>
                                                                                <asp:TextBox ID="GradePayInRevisedPayStructureTextBox" runat="server" MaxLength="50" onkeypress="javascript:return MaskDecimal(event,10,2)" onblur="javascript:return MaskDecimal(event,10,2)" Enabled="false"></asp:TextBox>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Basic Pay InRevised PayStructure BasicPay And GradePay">
                                                                            <ItemTemplate>
                                                                                <asp:TextBox ID="BasicPayInRevisedPayStructureBasicPayAndGradePayTextBox" runat="server" MaxLength="50" onkeypress="javascript:return MaskDecimal(event,10,2)" onblur="javascript:return MaskDecimal(event,10,2)" Enabled="false"></asp:TextBox>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Gross Salary As Per Existing PayScale">
                                                                            <ItemTemplate>
                                                                                <asp:TextBox ID="GrossSalaryAsPerExistingPayScaleTextBox" runat="server" MaxLength="50" onkeypress="javascript:return MaskDecimal(event,10,2)" onblur="javascript:return MaskDecimal(event,10,2)" Enabled="false"></asp:TextBox>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Revised GrossSalary AsOn">
                                                                            <ItemTemplate>
                                                                                <asp:TextBox ID="RevisedGrossSalaryAsOnTextBox" runat="server" MaxLength="50" onkeypress="javascript:return MaskDecimal(event,10,2)" onblur="javascript:return MaskDecimal(event,10,2)" Enabled="false"></asp:TextBox>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Increment Date">
                                                                            <ItemTemplate>
                                                                                <Date:DatePickerControl ID="IncrementDateDatePickerControl" runat="server" DisplayDatePicker="true" onkeypress="ValidateDateFormate(event)"
                                                                                    SkinID="CustomWidthTextBox" Width="100px" Visible="true" Enabled="false" />
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>

                                                                    </Columns>
                                                                    <PagerSettings Visible="False" />
                                                                </asp:GridView>
                                                            </div>
                                                        </div>
                                                         </div>
                                                    </div>
                                                </asp:Panel>
                                            </div>
                                        </div>
                                    </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/bonafide-bulk-encrypt" src="../../JavaScript/rjs/require.js"></script>--%>
      <script data-main='<%=ResolveUrl("~/JavaScript/rjs/increment-certificate")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>
