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

<%@ Register Src="~/UserControls/DatePicker/DatePickerControl.ascx" TagName="DatePickerControl" TagPrefix="Date" %>
<%@ 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/Common/EmployeeSearch/EmployeeSearch.ascx" TagName="EmployeeSearchControl" TagPrefix="hims" %>
<%@ Register Src="~/UserControls/Common/IncomeTax/IncomeTaxLabelControl.ascx" TagName="ITaxControl" TagPrefix="ITax" %>
<%@ Register Src="~/UserControls/MessageBox/MessageBoxControl.ascx" TagName="MessageControl" TagPrefix="uc1" %>


<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="ResonMasterUpdatePanel" runat="server" UpdateMode="Always">
        <ContentTemplate>
            <div id="divContentPage" class="divcontentpagemargin">
                <div class="dashBoardLeftCont">
                    <div class="himssuHeader3WireBox">
                        <table>
                            <tr>
                                <td>
                                    <div class="himsBoxContent">
                                        <div class="leftUlMenu">
                                            <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="235"
                                                Visible="true" runat="server" />
                                        </div>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div class="whiteboxpaddingleft row">
                    <div class="himssuHeader5WireBox card card-box" id="SearchDiv" runat="server">
                        <div class="himsBoxHeader card-head">
                            <asp:Panel ID="Panel1" runat="server">
                                <div class="leftdiv">
                                </div>
                                <div class="himsBoxTitle">
                                    <div class="headerText">
                                        <header>
                                            <i class="fas fa-search"></i>
                                            <asp:Label ID="SearchHeaderLabel" runat="server" Text="Search"></asp:Label>
                                            <asp:HiddenField ID="HiddenFieldEmployeeID" runat="server" />
                                        </header>
                                    </div>
                                    <div class="fRight mt-27 pagination display-flex">
                                        <asp:Button ID="AddNewButtonID" runat="server" OnClick="AddNewButton_Click" SkinID="0" CssClass="AddButton" Text="Add" Visible="false" />
                                    </div>
                                </div>
                            </asp:Panel>
                        </div>
                        <div class="himsBoxContent card-body">
                            <asp:Panel ID="DetailPanel" runat="Server">
                                <div class="contentHolder">
                                    <asp:Panel ID="SearchCriteriaPanel" runat="Server" Visible="false">
                                        <div class="alignCenter col-md-12 pTop15 pb5">
                                            <asp:Button ID="SearchButton" runat="Server" OnClick="SearchButton_Click" Text="&#xf002; Search" SkinID="0" CssClass="btn-search btn fas" />
                                            <asp:Button ID="ResetButton" runat="server" OnClick="ResetButton_Click" Text="&#xf0e2; Reset" SkinID="0" CssClass="btn-reset btn fas" />
                                        </div>
                                    </asp:Panel>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList runat="server" ID="AppraisalsDropDownList" SkinID="CustomWidthDropDownList"
                                                onmouseleave="showHideTooltip()" class="form-control" AutoPostBack="true" onmouseenter="showHideTooltip()" OnSelectedIndexChanged="AppraisalsDropDownList_SelectedIndexChanged">
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                    <div id="Div1" class="himssuHeader7WireBox col-md-12" runat="server" style="width: 100%; margin-right: 5px;">
                                        <div id="ReasonMasterDetailDiv" visible="false" runat="server">
                                            <div class="himsBoxContent">
                                                <asp:UpdatePanel ID="MenuPlanDetailUpdatePanel" runat="server" UpdateMode="Always">
                                                    <ContentTemplate>
                                                        <div id="Div5" runat="server" visible="false" class="table-responsive">
                                                            <asp:GridView ID="GridViewDetails" runat="server" Width="100%" AutoGenerateColumns="False"
                                                                OnRowDataBound="GridViewDetails_RowDataBound" SkinID="" ShowHeader="True" PagerSettings-Visible="false"
                                                                DataKeyNames="Id" EmptyDataText="No Records Found !!!" CssClass="table table-striped table-bordered table-hover">
                                                                <Columns>
                                                                    <asp:TemplateField ItemStyle-HorizontalAlign="Center" ItemStyle-Width="3%" ItemStyle-Wrap="true" HeaderText="#">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="TitleLabel" runat="server" Text='<%# Container.DataItemIndex + 1 %>'></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Code" Visible="false" ItemStyle-Width="4%" SortExpression="Code" HeaderStyle-HorizontalAlign="Left"
                                                                        ItemStyle-Wrap="true">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="CodeLabel" runat="server" Text='<%# Bind("Code") %>'></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Employee" ItemStyle-Width="14%" SortExpression="Employee" HeaderStyle-HorizontalAlign="Left"
                                                                        ItemStyle-Wrap="true">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="EmployeeLabel" runat="server" Text='<%# Bind("Employee") %>'></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Designation" Visible="false" ItemStyle-Width="10%" SortExpression="DesignationName" HeaderStyle-HorizontalAlign="Left"
                                                                        ItemStyle-Wrap="true">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="DesignationNameLabel" runat="server" Text='<%# Bind("DesignationName") %>'></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Manager Rating" ItemStyle-Width="8%" SortExpression="ManagerRating" HeaderStyle-HorizontalAlign="Left"
                                                                        ItemStyle-Wrap="true">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="LabelManagerRating" runat="server" Text='<%# Bind("ManagerRating") %>'></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Promotion Recommend" ItemStyle-Width="8%" SortExpression="PromotionRecommend" HeaderStyle-HorizontalAlign="Left"
                                                                        ItemStyle-Wrap="true">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="LabelPromotionRecommend" runat="server" Text='<%# Bind("PromotionRecommend") %>'></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Manager % Recommend" ItemStyle-Width="10%" SortExpression="ManagerRecommend" HeaderStyle-HorizontalAlign="Left"
                                                                        ItemStyle-Wrap="true">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="LabelManagerRecommend" runat="server" Text='<%# Bind("ManagerRecommend") %>'></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="OH's Rating" ItemStyle-Width="5%" SortExpression="ManagerRecommend" HeaderStyle-HorizontalAlign="Left"
                                                                        ItemStyle-Wrap="true">
                                                                        <ItemTemplate>
                                                                            <asp:DropDownList ID="DropDownListRating" Visible="false" runat="server"></asp:DropDownList>
                                                                            <asp:Label ID="LabelBHRating" runat="server" Visible="false" Text='<%# Bind("BHRating") %>'></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="OH’s Recommend" ItemStyle-Width="7%" SortExpression="ManagerRecommend" HeaderStyle-HorizontalAlign="Left"
                                                                        ItemStyle-Wrap="true">
                                                                        <ItemTemplate>
                                                                            <asp:DropDownList ID="DropDownListRecommend" Visible="false" Height="30px" Width="80%" runat="server"></asp:DropDownList>
                                                                            <asp:Label ID="LabelBHRecommend" runat="server" Visible="false" Text='<%# Bind("BHRecommend") %>'></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="OH Promotion/ Recommend" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left"
                                                                        ItemStyle-Wrap="true">
                                                                        <ItemTemplate>
                                                                            <asp:TextBox ID="TextBoxDesignation" Visible="false" runat="server" SkinID="CustomWidthTextBox" MaxLength="100"></asp:TextBox>
                                                                            <asp:Label ID="LabelBHPromotionRecommend" Visible="false" runat="server" Text='<%# Bind("BHPromotionRecommend") %>'></asp:Label>
                                                                            <asp:HiddenField ID="HiddenFieldRatingStatusId" runat="server" Value='<%# Bind("RatingStatusId") %>' />
                                                                            <asp:HiddenField ID="HiddenFieldKPAEmployeeRatingId" runat="server" Value='<%# Bind("KPAEmployeeRatingId") %>' />
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Rating Status" ItemStyle-Width="10%" SortExpression="RatingStatus" HeaderStyle-HorizontalAlign="Left"
                                                                        ItemStyle-Wrap="true">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="LabelRatingStatus" runat="server" Text='<%# Bind("RatingStatus")%>' Style="color: #678197; margin: 0; font-size: 12PX; font-weight: 600;"></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Manager Rating Detail" ItemStyle-Width="5%" HeaderStyle-HorizontalAlign="Left" ItemStyle-Wrap="true">
                                                                        <ItemTemplate>
                                                                            <asp:Button ID="ButtonRateNow" Text="Rate Now" Visible="false" runat="Server" OnClick="ButtonRateNow_Click"  SkinID="0" CssClass="btn btn-edit fas small"/>
                                                                            <asp:Label ID="LabelRateNow" runat="server" Visible="false" Text="N/A"></asp:Label>
                                                                            <asp:HiddenField ID="HiddenFieldKPASaveStatus" runat="server" Value='<%# Bind("Enabled") %>' />
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="5%" ItemStyle-Wrap="true">
                                                                        <HeaderTemplate>
                                                                            <label class="rt-chkbox rt-chkbox-outline">
                                                                                <asp:CheckBox ID="HeaderSelectCheckBox" runat="server" onclick="checkAll(this);" />
                                                                                <span></span>
                                                                            </label>
                                                                        </HeaderTemplate>
                                                                        <ItemTemplate>
                                                                            <label class="rt-chkbox rt-chkbox-outline">
                                                                                <asp:CheckBox ID="SelectCheckBox" Enabled='<%#Bind("Enabled")%>' runat="server" onclick="Check_Click(this);" />
                                                                                <span></span>
                                                                            </label>
                                                                        </ItemTemplate>
                                                                        <ItemStyle HorizontalAlign="Center" />
                                                                    </asp:TemplateField>
                                                                </Columns>
                                                            </asp:GridView>
                                                        </div>
                                                    </ContentTemplate>
                                                </asp:UpdatePanel>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                             </asp:Panel>
                                   <%-- <cc1:ModalPopupExtender ID="EmployeeSearchExtender" runat="server" TargetControlID="HidenButton" PopupControlID="ModalPopUpPanel" BackgroundCssClass="modalBackground"
                                                Drag="True" PopupDragHandleControlID="dragPanel" DynamicServicePath="" Enabled="True" />
                                    <asp:LinkButton runat="server" ID="HidenButton" meta:resourcekey="HidenButtonResource1" />--%>

                                    <div class="himssuHeader7WireBox col-md-12" runat="server" style="width: 100%; margin-right: 5px;">
                                        <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Always">
                                            <ContentTemplate>
                                                <div class="table-responsive">
                                                    <asp:GridView ID="GridViewRank" runat="server" AutoGenerateColumns="False"
                                                        SkinID="" ShowHeader="True" EmptyDataText="No Records Found !!!" CssClass="table table-striped table-bordered table-hover">
                                                        <Columns>
                                                            <asp:TemplateField HeaderText="Rank" ItemStyle-Width="25%" HeaderStyle-HorizontalAlign="Left"
                                                                ItemStyle-Wrap="true">
                                                                <ItemTemplate>
                                                                    <asp:Label ID="LabelRank" runat="server" Text='<%# Bind("Rank") %>'></asp:Label>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderText="%" ItemStyle-Width="25%" HeaderStyle-HorizontalAlign="Left"
                                                                ItemStyle-Wrap="true">
                                                                <ItemTemplate>
                                                                    <asp:Label ID="LabelPer" runat="server" Text='<%# Bind("Per") %>'></asp:Label>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderText="Normal" ItemStyle-Width="25%" HeaderStyle-HorizontalAlign="Left"
                                                                ItemStyle-Wrap="true">
                                                                <ItemTemplate>
                                                                    <asp:Label ID="LabelNormal" runat="server" Text='<%# Bind("Normal") %>'></asp:Label>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderText="Actual" ItemStyle-Width="25%" HeaderStyle-HorizontalAlign="Left"
                                                                ItemStyle-Wrap="true">
                                                                <ItemTemplate>
                                                                    <asp:Label ID="LabelActual" runat="server" Text='<%# Bind("Actual") %>'></asp:Label>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                        </Columns>
                                                    </asp:GridView>
                                                </div>
                                            </ContentTemplate>
                                        </asp:UpdatePanel>
                                    </div>

                                   <div class="alignCenter col-md-12 pTop15 pb5">
                                        <asp:Button ID="ButtonConfirm" Text="Confirm & Submit Ratings" runat="Server" OnClick="ButtonConfirm_Click" SkinID="0" CssClass="btn btn-examcommon fas" />
                                    </div>
                     
                                        </div>
                                   </div>
                                </div>
                            </div>
                        </ContentTemplate>
                    </asp:UpdatePanel>


                        <cc1:ModalPopupExtender ID="EmployeeSearchExtender" runat="server" TargetControlID="HidenButton" PopupControlID="ModalPopUpPanel" BackgroundCssClass="modalBackground"
                            Drag="True" PopupDragHandleControlID="dragPanel" DynamicServicePath="" Enabled="True" />
                        <asp:LinkButton runat="server" ID="HidenButton" meta:resourcekey="HidenButtonResource1" />

                        <asp:Panel ID="ModalPopUpPanel" runat="server" CssClass="dragControl" Width="80%" DefaultButton="SearchButton" meta:resourcekey="ModalPopUpPanelResource1">
                            <div class="card card-box">

                                    <asp:Panel ID="dragPanel" runat="server" CssClass="dragMePanel" Width="100%" meta:resourcekey="dragPanelResource1">
                                                <div id="dragMe1" class="dragMe" style="cursor: move">
                                                    <div class="himsPopupWireBox">
                                                        <div class="himsBoxHeadermain">
                                                            <div>
                                                            </div>
                                                        </div>
                                                        <div class="himsBoxTopper text-center headerFont card-head">
                                                            <div class="fLeft headerText">
                                                                <asp:UpdatePanel ID="UpdatePanel4" runat="server" RenderMode="Inline">
                                                                    <ContentTemplate>
                                                                        <asp:ImageButton ID="CloseImageButton" runat="server" Height="20PX" Width="20PX" ImageUrl="~/Images/closebox.png" Style="margin-left: 995PX" OnClick="CloseImageButton_Click" />
                                                                    </ContentTemplate>
                                                                </asp:UpdatePanel>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </asp:Panel>
                  
                                    <asp:UpdatePanel ID="EmployeeSearchUpdatePanel" runat="server"
                                    RenderMode="Inline">
                                    <ContentTemplate>
                
                                                    <div id="bodyContainer">
                                                        <div class="himsPopupWireBox">
                                                            <div class="himsBoxHeadermain">
                                                                <div>
                                                                </div>
                                                            </div>
                                                            <uc1:MessageControl ID="SearchMessageBox" runat="server" />
                                                                <div class="himsBoxContentmain" style="overflow: hidden">
                                                                <div id="divContentPage1">
                                                                    <div class="spacer">
                                                                        <asp:Image ID="Image1" runat="server" ImageUrl="~/Images/spacer.gif"
                                                                            meta:resourcekey="Image1Resource1" />
                                                                    </div>
                                                                    <div>
                                                                        <div class="himssuHeader5WireBox">
                                                                            <div class="himsBoxHeader">
                                                                                <asp:Panel ID="TopPanel" runat="server" meta:resourcekey="TopPanelResource1">
                                                                                    <div class="leftdiv">
                                                                                    </div>
                                                                                    <div class="himsBoxTitle">
                                                                                        <div class="headerText">
                                                                                            <asp:Label ID="EmployeeSearchHeaderLabel" runat="server" Text="Search"
                                                                                                meta:resourcekey="EmployeeSearchHeaderLabelResource1" Visible="false"></asp:Label>
                                                                                        </div>
                                                                                        <div>
                                                                                        </div>
                                                                                    </div>
                                                                                </asp:Panel>
                                                                            </div>
                                                                            <div class="himsBoxContent  card-body">
                                                                                <asp:Panel ID="Panel2" runat="server" meta:resourcekey="DetailPanelResource1">
                                                                                    <div class="contentHolder">
                                                                                        <asp:Panel ID="Panel3" runat="server" meta:resourcekey="SearchCriteriaPanelResource1">
                                                                                            <div class="pTop5 col-md-6 col-sm-6 col-xs-12">
                                                                                                            <div class="controlLabelWidth">
                                                                                                                <asp:Label ID="EmployeeCodeLabel" runat="server" Text="Employee"
                                                                                                                    meta:resourcekey="EmployeeCodeLabelResource1"></asp:Label>
                                                                                                            </div>
                                                                                                        </div>
                                                                                                    <div class="pTop5 col-md-6 col-sm-6 col-xs-12">
                                                                                                            <div class="controlLabelWidth">
                                                                                                                <asp:Label ID="LabelEmployeeName" runat="server"
                                                                                                                    meta:resourcekey="EmployeeCodeLabelResource1"></asp:Label>
                                                                                                            </div>
                                                                                                        </div>
                                                                                                        <div class="pTop5 col-md-6 col-sm-6 col-xs-12">
                                                                                      
                                                                                                            <div class="controlLabelWidth">
                                                                                                                <asp:Label ID="MobileNumberLabel" runat="server" Text="Rating Period"
                                                                                                                    meta:resourcekey="MobileNumberLabelResource1"></asp:Label>
                                                                                                            </div>
                                                                                                        </div>
                                                                                                    <div class="pTop5 col-md-6 col-sm-6 col-xs-12">
                                                                                                            <div class="controlLabelWidth">
                                                                                                                <asp:Label ID="LabelRatingPeriod" runat="server" meta:resourcekey="MobileNumberLabelResource1"></asp:Label>
                                                                                                            </div>
                                                                                                        </div>
                                                                                
                                                                      
                                                                                        </asp:Panel>

                                                                                        <div id="MainDiv" runat="server">
                                                                                            <div id="EmployeeSearchGridDiv" runat="server">
                                                                         
                                                                                                <div class="himssuHeader7WireBox col-md-12" id="Div4" runat="server">
                                                                                                    <div class="himsBoxHeader" id="GridHeaderDiv" runat="server" visible="False">
                                                                                                        <div class="leftdiv">
                                                                                                        </div>
                                                                                                    </div>
                                                                                                    <div class="himsBoxContent width-100">
                                                                                                        <div class="himsBoxContent">
                                                                                                            <div class="contentHolder">
                                                                                                                <div class="himssuHeader7WireBox" runat="server" >
                                                                                                                    <div class="himsBoxHeader card-head inner">
                                                                                                                        <div class="headerText">
                                                                                                    
                                                                                                                                            <header>
                                                                                                                                                <asp:Label ID="KPALabel2" runat="server" Text="KPA"
                                                                                                                                                    meta:resourcekey="EmployeeCodeLabelResource1"></asp:Label>
                                                                                                                                            </header>
                                                                                                                                        </div>
                                                                                                            
                                                                                                                        </div>
                                                                                              




                                    
                                                        <div class="himsBoxContent">
                                                            <div id="Div3" class="himsBoxContentMsg table-responsive" runat="server">
                                                                <asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Always">
                                                                    <ContentTemplate>
                                                                        <asp:GridView ID="GridViewKPA" runat="server" Width="100%" AutoGenerateColumns="False"
                                                                            SkinID="" ShowHeader="True" PagerSettings-Visible="false"
                                                                            CssClass="table table-striped table-bordered table-hover" OnRowDataBound="GridViewKPA_RowDataBound">
                                                                            <Columns>
                                                                                <asp:TemplateField HeaderText="Parameter" ItemStyle-Width="12%" HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left"
                                                                                    ItemStyle-Wrap="true">
                                                                                    <ItemTemplate>
                                                                                        <asp:Label ID="NameLabel" runat="server" Text='<%# Bind("Name") %>'></asp:Label>
                                                                                    </ItemTemplate>
                                                                                </asp:TemplateField>
                                                                                <asp:TemplateField HeaderText="Type" ItemStyle-Width="7%" HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left"
                                                                                    ItemStyle-Wrap="true">
                                                                                    <ItemTemplate>
                                                                                        <asp:Label ID="TypeNameLabel" runat="server" Text='<%# Bind("TypeName") %>'></asp:Label>
                                                                                    </ItemTemplate>
                                                                                </asp:TemplateField>
                                                                                <asp:TemplateField HeaderText="Reasoning" ItemStyle-Width="23%" HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left"
                                                                                    ItemStyle-Wrap="true">
                                                                                    <ItemTemplate>
                                                                                        <asp:Label ID="RemarksLabel" runat="server" Text='<%# Bind("Remarks") %>'></asp:Label>
                                                                                    </ItemTemplate>
                                                                                </asp:TemplateField>
                                                                                <asp:TemplateField HeaderText="Weightage" ItemStyle-Width="6%" HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left"
                                                                                    ItemStyle-Wrap="true">
                                                                                    <ItemTemplate>
                                                                                        <asp:Label ID="WeightageLabel" runat="server" Text='<%# Bind("Weightage") %>'></asp:Label>
                                                                                    </ItemTemplate>
                                                                                </asp:TemplateField>
                                                                                <asp:TemplateField HeaderText="Emp Rating" ItemStyle-Width="7%" HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left"
                                                                                    ItemStyle-Wrap="true">
                                                                                    <ItemTemplate>
                                                                                        <asp:Label ID="EmpRatingLabel" runat="server" Text='<%# Bind("MyRating") %>'></asp:Label>
                                                                                    </ItemTemplate>
                                                                                </asp:TemplateField>
                                                                                <asp:TemplateField HeaderText="Emp Remark" ItemStyle-Width="18%" HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left"
                                                                                    ItemStyle-Wrap="true">
                                                                                    <ItemTemplate>
                                                                                        <asp:Label ID="EmpRemarkLabel" runat="server" Text='<%# Bind("MyRemark") %>'></asp:Label>
                                                                                    </ItemTemplate>
                                                                                </asp:TemplateField>
                                                                                <asp:TemplateField HeaderText="Your Rating" ItemStyle-Width="8%" HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left"
                                                                                    ItemStyle-Wrap="true">
                                                                                    <ItemTemplate>
                                                                                        <asp:Label ID="MyRatingLabel" runat="server" Text='<%# Bind("ManagerRating") %>' Visible="false"></asp:Label>
                                                                                        <asp:DropDownList ID="RatingDropDownList" Height="20px" Width="75%" runat="server" Visible="false"></asp:DropDownList>
                                                                                    </ItemTemplate>
                                                                                </asp:TemplateField>
                                                                                <asp:TemplateField HeaderText="Your Remark" ItemStyle-Width="18%" HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left"
                                                                                    ItemStyle-Wrap="true">
                                                                                    <ItemTemplate>
                                                                                        <asp:Label ID="YourRemarkLabel" runat="server" Text='<%# Bind("ManagerRemark") %>' Visible="false"></asp:Label>
                                                                                        <asp:TextBox ID="YourRemarkTextBox" Height="20px" runat="server" SkinID="CustomWidthTextBox" Width="95%" Visible="false" MaxLength="100"></asp:TextBox>
                                                                                        <asp:HiddenField ID="HiddenFieldRatingStatusId" runat="server" Value='<%# Bind("RatingStatusId") %>' />
                                                                                        <asp:HiddenField ID="HiddenFieldKPAEmployeeDetailId" runat="server" Value='<%# Bind("KPAEmployeeDetailId") %>' />
                                                                                    </ItemTemplate>
                                                                                </asp:TemplateField>
                                                                            </Columns>
                                                                        </asp:GridView>
                                                                    </ContentTemplate>
                                                                </asp:UpdatePanel>
                                                            </div>
                                                        </div>


                                                           <div class="himsBoxHeader card-head inner">
                                                                <div class="headerText">
                                                                    <header>
                                                                        <asp:Label ID="CompetenciesLabel2" runat="server" Text="Competencies"
                                                                            meta:resourcekey="EmployeeCodeLabelResource1"></asp:Label>
                                                                    </header>
                                                                </div>
                                                           </div>


                                                            <div class="himsBoxContent">
                                                            <div id="Div2" class="himsBoxContentMsg table-responsive" runat="server">
                                                                <asp:UpdatePanel ID="UpdatePanel3" runat="server" UpdateMode="Always">
                                                                    <ContentTemplate>
                                                                        <asp:GridView ID="GridViewCompetencies" runat="server" Width="100%" AutoGenerateColumns="False"
                                                                            SkinID="" ShowHeader="True" PagerSettings-Visible="false"
                                                                            CssClass="table table-striped table-bordered table-hover" OnRowDataBound="GridViewCompetencies_RowDataBound">
                                                                            <Columns>
                                                                                <asp:TemplateField HeaderText="Parameter" ItemStyle-Width="12%" HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left"
                                                                                    ItemStyle-Wrap="true">
                                                                                    <ItemTemplate>
                                                                                        <asp:Label ID="NameLabel" runat="server" Text='<%# Bind("Name") %>'></asp:Label>
                                                                                    </ItemTemplate>
                                                                                </asp:TemplateField>
                                                                                <asp:TemplateField HeaderText="Type" ItemStyle-Width="7%" HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left"
                                                                                    ItemStyle-Wrap="true">
                                                                                    <ItemTemplate>
                                                                                        <asp:Label ID="TypeNameLabel" runat="server" Text='<%# Bind("TypeName") %>'></asp:Label>
                                                                                    </ItemTemplate>
                                                                                </asp:TemplateField>
                                                                                <asp:TemplateField HeaderText="Reasoning" ItemStyle-Width="23%" HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left"
                                                                                    ItemStyle-Wrap="true">
                                                                                    <ItemTemplate>
                                                                                        <asp:Label ID="RemarksLabel" runat="server" Text='<%# Bind("Remarks") %>'></asp:Label>
                                                                                    </ItemTemplate>
                                                                                </asp:TemplateField>
                                                                                <asp:TemplateField HeaderText="Weightage" ItemStyle-Width="6%" HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left"
                                                                                    ItemStyle-Wrap="true">
                                                                                    <ItemTemplate>
                                                                                        <asp:Label ID="WeightageLabel" runat="server" Text='<%# Bind("Weightage") %>'></asp:Label>
                                                                                    </ItemTemplate>
                                                                                </asp:TemplateField>
                                                                                <asp:TemplateField HeaderText="Emp Rating" ItemStyle-Width="7%" HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left"
                                                                                    ItemStyle-Wrap="true">
                                                                                    <ItemTemplate>
                                                                                        <asp:Label ID="EmpRatingLabel" runat="server" Text='<%# Bind("MyRating") %>'></asp:Label>
                                                                                    </ItemTemplate>
                                                                                </asp:TemplateField>
                                                                                <asp:TemplateField HeaderText="Emp Remark" ItemStyle-Width="18%" HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left"
                                                                                    ItemStyle-Wrap="true">
                                                                                    <ItemTemplate>
                                                                                        <asp:Label ID="EmpRemarkLabel" runat="server" Text='<%# Bind("MyRemark") %>'></asp:Label>
                                                                                    </ItemTemplate>
                                                                                </asp:TemplateField>
                                                                                <asp:TemplateField HeaderText="Your Rating" ItemStyle-Width="8%" HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left"
                                                                                    ItemStyle-Wrap="true">
                                                                                    <ItemTemplate>
                                                                                        <asp:Label ID="MyRatingLabel" runat="server" Text='<%# Bind("ManagerRating") %>' Visible="false"></asp:Label>
                                                                                        <asp:DropDownList ID="RatingDropDownList" Width="75%" Height="20px" runat="server" Visible="false"></asp:DropDownList>
                                                                                    </ItemTemplate>
                                                                                </asp:TemplateField>
                                                                                <asp:TemplateField HeaderText="Your Remark" ItemStyle-Width="18%" HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left"
                                                                                    ItemStyle-Wrap="true">
                                                                                    <ItemTemplate>
                                                                                        <asp:Label ID="YourRemarkLabel" runat="server" Text='<%# Bind("ManagerRemark") %>' Visible="false"></asp:Label>
                                                                                        <asp:TextBox ID="YourRemarkTextBox" runat="server" Height="20px" SkinID="CustomWidthTextBox" Width="95%" Visible="false" MaxLength="100"></asp:TextBox>
                                                                                        <asp:HiddenField ID="HiddenFieldRatingStatusId" runat="server" Value='<%# Bind("RatingStatusId") %>' />
                                                                                        <asp:HiddenField ID="HiddenFieldKPAEmployeeDetailId" runat="server" Value='<%# Bind("KPAEmployeeDetailId") %>' />
                                                                                    </ItemTemplate>
                                                                                </asp:TemplateField>
                                                                            </Columns>
                                                                        </asp:GridView>
                                                                    </ContentTemplate>
                                                                </asp:UpdatePanel>
                                                            </div>
                                                        </div>


                                                        </div>
                                                        </div>
                                                        </div>
                                                        </div>
                                                        </div>
                                                        </div>
                                                        </div>
                                                        </div>
                                                        </asp:Panel>
                                                        </div>
                                                        </div>
                                                        </div>
                                                        </div>
                                                        </div>
                                                        </div>
                                                        </div>
                                    </ContentTemplate>
                                </asp:UpdatePanel>
                                    

                                <div class="himsBoxContent width-100">
                                    <table style="margin-left: 10px; width: 98%;">
                                        <tr>
                                            <td style="text-align: center; width: 35%; color: rgb(102, 163, 211); font-size: 13px; font-weight: bold; background: rgb(244, 249, 254); border-width: 1px; border-style: solid; border-color: rgb(229, 239, 248); border-image: initial; padding: 3px;">
                                                <asp:Label ID="Label1" runat="server" Text="Do you recommend an increment for this user?"
                                                    meta:resourcekey="EmployeeCodeLabelResource1"></asp:Label>
                                            </td>
                                            <td style="padding-left: 25px; color: rgb(103, 129, 151); border-width: 1px; border-style: solid; border-color: rgb(229, 239, 248); border-image: initial; background: rgb(255, 255, 255); margin: 0px; padding: 3px;">
                                                <asp:DropDownList runat="server" ID="DropDownListIncrement" SkinID="CustomWidthDropDownList"
                                                    onmouseleave="showHideTooltip()" CssClass="form-control" onmouseenter="showHideTooltip()">
                                                </asp:DropDownList>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td style="text-align: center; color: rgb(102, 163, 211); font-size: 13px; font-weight: bold; background: rgb(244, 249, 254); border-width: 1px; border-style: solid; border-color: rgb(229, 239, 248); border-image: initial; padding: 3px;">
                                                <asp:Label ID="Label4" runat="server" Text="Do you recommend a designation change for this user?"
                                                    meta:resourcekey="MobileNumberLabelResource1"></asp:Label>
                                            </td>
                                            <td style="padding-left: 25px; color: rgb(103, 129, 151); border-width: 1px; border-style: solid; border-color: rgb(229, 239, 248); border-image: initial; background: rgb(255, 255, 255); margin: 0px; padding: 3px;">
                                                <asp:TextBox ID="TextBoxDesignation" runat="server" Width="150px" SkinID="CustomWidthTextBox"
                                                    MaxLength="100"></asp:TextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td style="text-align: center; color: rgb(102, 163, 211); font-size: 13px; font-weight: bold; background: rgb(244, 249, 254); border-width: 1px; border-style: solid; border-color: rgb(229, 239, 248); border-image: initial; padding: 3px;">
                                                <asp:Label ID="Label6" runat="server" Text="Please justify your recommendation briefly"
                                                    meta:resourcekey="MobileNumberLabelResource1"></asp:Label>
                                            </td>
                                            <td style="padding-left: 25px; color: rgb(103, 129, 151); border-width: 1px; border-style: solid; border-color: rgb(229, 239, 248); border-image: initial; background: rgb(255, 255, 255); margin: 0px; padding: 3px;">
                                                <asp:TextBox ID="TextBoxJustify" onmouseleave="showHideTooltip()" SkinID="MultiLineTextbox" Width="550px" runat="server" MaxLength="300"></asp:TextBox>
                                            </td>
                                        </tr>
                                    </table>
                                    </div>

                                <%-- <div class="tableContainer card card-box alignCenter col-md-12 p-b-13 pTop15" runat="server">
                                           
                                    <asp:Button runat="server" ID="OkButton" Enabled="false" Text="&#xf164; Save" OnClick="OkButton_Click" SkinID="0" CssClass="fas btn btn-ok " meta:resourcekey="OkButtonResource1" />
                                                       
                                    <asp:Button ID="CancelButton" runat="server" Enabled="false" CssClass="btn-cancel btn fas" meta:resourcekey="CancelButtonResource1"
                                        OnClick="CancelButton_Click" SkinID="0" Text="&#xf00d; Cancel" />
                                                        
                                </div>--%>

                            </div>
                        </asp:Panel>


    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/assign-organization" )%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js" )%>'></script>
    <script type="text/javascript">

        function checkAll(obj) {
            var objGridview = obj.closest('table');
            var list = objGridview.getElementsByTagName("input");
            for (var i = 0; i < list.length; i++) {
                var objRow = list[i].parentNode.parentNode;
                if (list[i].type == "checkbox" && obj != list[i]) {
                    if (obj.checked) {
                        list[i].checked = true;
                    }
                    else {
                        list[i].checked = false;
                    }
                }
            }
        }
        function Check_Click(obj) {
            var objGridView = obj.closest('table');
            var list = objGridView.getElementsByTagName("input");
            for (var i = 0; i < list.length; i++) {
                var objHeaderChkBox = list[0];
                var checked = true;
                if (list[i].type == "checkbox" && list[i] != objHeaderChkBox) {
                    if (!list[i].checked) {
                        checked = false;
                        break;
                    }
                }
            }
            objHeaderChkBox.checked = checked;
        }
    </script>
</asp:Content>
