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

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="~/UserControls/GridViewPager/GridViewPager.ascx" TagName="GridViewPager" TagPrefix="uc1" %>
<%@ Register Src="~/UserControls/DatePicker/DatePickerControl.ascx" TagName="DatePickerControl" TagPrefix="Date" %>
<%@ 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/StudentSearch/StudentSearch.ascx" TagName="StudentSearch" TagPrefix="Std" %>
<%@ 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="213"
                                                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="Label3" runat="server" Text="Search"></asp:Label>
                                        </header>
                                    </div>
                                    <div class="fRight mt-27">
                                        <asp:Button ID="AddNewButtonID" runat="server" OnClick="AddNewButton_Click" SkinID="0" Visible="false"
                                            class="btn btn-add fas" Text="&#xf067; Add" />
                                        <asp:Button ID="PrintButton" runat="server" CssClass="btn btn-print fas" Text="&#xf02f; Print" SkinID="0" OnClick="PrintButton_Click" Visible="false" />
                                    </div>
                                </div>
                            </asp:Panel>
                        </div>
                        <div class="himsBoxContent card-body">
                            <asp:Panel ID="DetailPanel" runat="Server">
                                <div class="contentHolder">
                                    <div id="Div1" class="himssuHeader7WireBox col-md-12" runat="server">
                                        <div id="ReasonMasterDetailDiv" runat="server">
                                            <uc1:MessageControl ID="SearchMessageBox" Visible="false" runat="server" />

                                            <div class="himsBoxHeader" id="PatientRelationDiv" runat="server">
                                                <div class="leftdiv">
                                                </div>
                                                <div class="himsBoxTitle" style="width: 99%">
                                                    <div align="right" class="fRight" style="margin-top: -3px;">
                                                    </div>
                                                </div>

                                            </div>
                                            <div class="himsBoxContent">
                                                <div class="contentHolder">
                                                    <asp:Panel ID="Panel3" runat="server" meta:resourcekey="SearchCriteriaPanelResource1">
                                                        <table style="width: 98%; margin-left: 12px">
                                                            <tr>
                                                                <td style="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: 7px;">
                                                                    <div class="">
                                                                        <div class="controlLabelWidth">
                                                                            <asp:Label ID="EmployeeCodeLabel" runat="server" Text="User"
                                                                                meta:resourcekey="EmployeeCodeLabelResource1"></asp:Label>
                                                                        </div>
                                                                    </div>
                                                                </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: 7px;">
                                                                    <div class="">

                                                                        <div class="">
                                                                            <asp:Label ID="LabelEmployeeName" runat="server"
                                                                                meta:resourcekey="EmployeeCodeLabelResource1"></asp:Label>
                                                                        </div>
                                                                    </div>
                                                                </td>
                                                            </tr>

                                                            <tr>
                                                                <td style="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: 7px;">
                                                                    <div class="">
                                                                        <div class="controlLabelWidth">
                                                                            <asp:Label ID="Label1" runat="server" Text="Rating Period"
                                                                                meta:resourcekey="EmployeeCodeLabelResource1"></asp:Label>
                                                                        </div>
                                                                    </div>
                                                                </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: 7px;">
                                                                    <div class="">

                                                                        <div class="">
                                                                            <asp:DropDownList runat="server" ID="AppraisalsDropDownList" AutoPostBack="true" SkinID="CustomWidthDropDownList"
                                                                                CssClass="form-control" OnSelectedIndexChanged="AppraisalsDropDownList_SelectedIndexChanged">
                                                                            </asp:DropDownList>
                                                                        </div>
                                                                    </div>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                        <div class="cBoth">
                                                        </div>
                                                    </asp:Panel>
                                                </div>
                                            </div>
                                            <div class="himsBoxContent" id="DivDetails" runat="server">
                                                <div class="himsBoxContent">
                                                    <div class="contentHolder">
                                                        <div class="himssuHeader7WireBox col-md-12" runat="server" style="width: 100%; margin-right: 0px;">
                                                            <div class="himsBoxHeader">

                                                                <div class="controlLabelWidth">
                                                                    <table style="width: 100%;">
                                                                        <tr>
                                                                            <td style="width: 100%; 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: 5px;">
                                                                                <div class="">
                                                                                    <div class="controlLabelWidth">
                                                                                        <asp:Label ID="KPALabel2" runat="server" Text="KPA"
                                                                                            meta:resourcekey="EmployeeCodeLabelResource1"></asp:Label>
                                                                                    </div>
                                                                                </div>
                                                                            </td>

                                                                        </tr>
                                                                    </table>
                                                                </div>
                                                            </div>


                                                            <div class="himsBoxContent">
                                                                <div id="Div3" class="himsBoxContentMsg" runat="server">
                                                                    <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Always">
                                                                        <ContentTemplate>
                                                                            <div class="table-responsive">
                                                                                <asp:GridView ID="GridViewKPA" runat="server" 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="15%" 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="10%" 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="25%" 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="10%" 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="Rating" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left"
                                                                                            ItemStyle-Wrap="true">
                                                                                            <ItemTemplate>
                                                                                                <asp:Label ID="RatingLabel" runat="server" Text='<%# Bind("MyRating") %>'></asp:Label>
                                                                                                <asp:DropDownList ID="RatingDropDownList" Width="65%" runat="server"></asp:DropDownList>
                                                                                            </ItemTemplate>
                                                                                        </asp:TemplateField>
                                                                                        <asp:TemplateField HeaderText="Your Remark" ItemStyle-Width="30%" HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left"
                                                                                            ItemStyle-Wrap="true">
                                                                                            <ItemTemplate>
                                                                                                <asp:Label ID="YourRemarkLabel" runat="server" Text='<%# Bind("MyRemark") %>'></asp:Label>
                                                                                                <asp:TextBox ID="YourRemarkTextBox" runat="server" SkinID="CustomWidthTextBox" Width="95%" MaxLength="100"></asp:TextBox>
                                                                                                <asp:HiddenField ID="RatingStatusIdHiddenField" runat="server" Value='<%# Bind("RatingStatusId") %>' />
                                                                                                <asp:HiddenField ID="KPAEmployeeDetailIdHiddenField" runat="server" Value='<%# Bind("KPAEmployeeDetailId") %>' />
                                                                                            </ItemTemplate>
                                                                                        </asp:TemplateField>
                                                                                    </Columns>
                                                                                </asp:GridView>
                                                                            </div>
                                                                        </ContentTemplate>
                                                                    </asp:UpdatePanel>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="himsBoxContent">
                                                    <div class="contentHolder">
                                                        <div class="himssuHeader7WireBox col-md-12" runat="server">
                                                            <div class="himsBoxHeader">
                                                                <div class="controlLabelWidth">
                                                                    <table style="width: 100%;">
                                                                        <tr>
                                                                            <td style="width: 100%; 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: 5px;">
                                                                                <div class="">
                                                                                    <div class="controlLabelWidth">
                                                                                        <asp:Label ID="CompetenciesLabel2" runat="server" Text="Competencies"
                                                                                            meta:resourcekey="EmployeeCodeLabelResource1"></asp:Label>
                                                                                    </div>
                                                                                </div>
                                                                            </td>

                                                                        </tr>
                                                                    </table>
                                                                </div>
                                                            </div>
                                                            <div class="himsBoxContent">
                                                                <div id="Div2" class="himsBoxContentMsg" runat="server">
                                                                    <asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Always">
                                                                        <ContentTemplate>
                                                                            <asp:GridView ID="GridViewCompetencies" runat="server" class="himssuHeader7WireBox col-md-12 table-responsive" AutoGenerateColumns="False"
                                                                                SkinID="" ShowHeader="True" PagerSettings-Visible="false"
                                                                                CssClass="table table-striped table-bordered" OnRowDataBound="GridViewCompetencies_RowDataBound">
                                                                                <Columns>
                                                                                    <asp:TemplateField HeaderText="Title" ItemStyle-Width="15%" 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="10%" 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="25%" 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="10%" 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="Rating" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left"
                                                                                        ItemStyle-Wrap="true">
                                                                                        <ItemTemplate>
                                                                                            <asp:Label ID="RatingLabel" runat="server" Text='<%# Bind("MyRating") %>'></asp:Label>
                                                                                            <asp:DropDownList ID="RatingDropDownList" Width="65%" runat="server"></asp:DropDownList>
                                                                                        </ItemTemplate>
                                                                                    </asp:TemplateField>
                                                                                    <asp:TemplateField HeaderText="Your Remark" ItemStyle-Width="30%" HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left"
                                                                                        ItemStyle-Wrap="true">
                                                                                        <ItemTemplate>
                                                                                            <asp:Label ID="YourRemarkLabel" runat="server" Text='<%# Bind("MyRemark") %>'></asp:Label>
                                                                                            <asp:TextBox ID="YourRemarkTextBox" runat="server" SkinID="CustomWidthTextBox" Width="95%" MaxLength="100"></asp:TextBox>
                                                                                            <asp:HiddenField ID="RatingStatusIdHiddenField" runat="server" Value='<%# Bind("RatingStatusId") %>' />
                                                                                            <asp:HiddenField ID="KPAEmployeeDetailIdHiddenField" runat="server" Value='<%# Bind("KPAEmployeeDetailId") %>' />
                                                                                        </ItemTemplate>
                                                                                    </asp:TemplateField>
                                                                                </Columns>
                                                                            </asp:GridView>
                                                                        </ContentTemplate>
                                                                    </asp:UpdatePanel>
                                                                    <div class="outerBox11 col-md-14">
                                                                        <asp:Label ID="RemarkLabel" runat="server" Text="Employee Remark :" SkinID="CustomWidthLabel" Font-Bold="true" Visible="false"></asp:Label>
                                                                        <asp:TextBox ID="RemarkTextBox" runat="server" onmouseleave="showHideTooltip()" SkinID="MultiLineTextbox" TextMode="MultiLine" MaxLength="500" Visible="false" />
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="himsmainBoxBottom" id="DivButton" runat="server">
                                                <div class="alignCenter col-md-12 pTop15 ">
                                                    <table>
                                                        <tr>
                                                            <td>
                                                                <asp:Button ID="AcceptButton" runat="server" Visible="false" CssClass="btn btn-save fas" meta:resourcekey="CancelButtonResource1" SkinID="0" Text="&#xf0c7; Save" OnClick="AcceptButton_Click" />
                                                            </td>
                                                            <td>&nbsp
                                                            </td>
                                                            <td>
                                                                <asp:Button runat="server" ID="ResetButton" Visible="false" Text="&#xf0e2; Cancel" SkinID="0" class="btn-reset btn fas" meta:resourcekey="OkButtonResource1" OnClick="ResetButton_Click1" />
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </asp:Panel>
                        </div>
                    </div>
                </div>
                </tr>
                    </table>
            </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <script data-main="../../JavaScript/rjs/encrypt/behavior-entry-encrypt" src="../../JavaScript/rjs/require.js">       
    </script>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/behavior-entry")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>

