<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/enrgise-html.tld" prefix="enrgise" %>

<html:html>
<head>
  <html:base />
  <TITLE><bean:message  key="hrm.title" /></TITLE>
  <jsp:include page="GenIncludes.jsp" flush="true" />
  <meta http-equiv=pragma content=no-cache>
</head>

<BODY scroll="auto" onkeydown="hotKeys(event);">

<html:form name="HrmAprslForm" action="HrmEmpAprslDtlsBaseAction" type="wenrgise.hrms.webtier.form.HrmAprslForm">
<bean:define id="ParentForm" name="HrmAprslForm" toScope="request" />
<jsp:include page="GenIconMenu.jsp" flush="true" />


<!--Top Most Blue Bar-->
<TABLE cellSpacing=0 bgColor=#bdd0ef>
    <tr>
        <TD  colSpan=12 class=mainHeader height=10><bean:message key="hrm.EmpAprsl.heading" /></TD>
    </TR>
</TABLE>
<!--//  Display Errors -->
<enrgise:errors/>
<logic:messagesPresent message="true">
<Table>
    <html:messages id="message" message="true">
    <TR><TD>
      <bean:write name="message"/>
    </TD></TR>
    </html:messages>      
</Table>
</logic:messagesPresent>
<!--//  Display Errors --> 

<TABLE cellSpacing=0 cellPadding=0 border=0 >
    <TR>
        <TD>
        
        <TABLE cellSpacing=0 cellPadding=0 >
        <!--Master Information Starts -->
        
         <TR>
            <TD colspan=6 bgColor=#4682b4><IMG height=1 src="../includes/images/pixel.gif" width=1 border=0></TD>
         </TR>
         <tr>
            <td class=labelText><bean:message key="hrm.EmpAprsl.empCode" /></td>
            <td><html:text  property="empNo"  maxlength="15" size="26" styleClass="locked" readonly="true" onchange="doChangeHeader();" /></td>
         
            <td class=labelText><bean:message key="hrm.EmpAprsl.empName" /></td>
            <td><html:text  property="empName"  maxlength="15" size="26" styleClass="locked" readonly="true" onchange="doChangeHeader();" /></td>
            <td class=labelText><bean:message key="hrm.EmpAprsl.stOrderNo" /></td>
            <td ><html:text  property="stOrderNo" altKey="hrm.EmpAprsl.stOrderNo" maxlength="25" size="23" styleClass="locked" readonly="true" onchange="doChangeHeader();" /><enrgise:img height="16" name="HrmAprslForm" align="center"  src="../includes/images/lov.jpg" property="butStOrder" onclick="return ShowStartOrder();"   /></td>
           
           </tr>

          <tr>
          
          
            <td class=labelText><bean:message key="hrm.EmpAprsl.fromDate" /></td>
            <td ><html:text property="fromDate" name="HrmAprslForm" titleKey="hrm.EmpAprsl.fromDate" alt="D" maxlength="15" size="26" styleClass="locked" readonly="true"  onchange="doChangeHeader();"  /></td>
            
          <td class=labelText><bean:message key="hrm.EmpAprsl.toDate" /></td>
            <td ><html:text  property="toDate" name="HrmAprslForm" titleKey="hrm.EmpAprsl.toDate" alt="D" maxlength="15" size="26" styleClass="locked" readonly="true"  onchange="doChangeHeader();"  /></td>
            <td class=labelText><bean:message key="hrm.EmpAprsl.aprslPeriod" /></td>
            <td><html:text  property="aprslPeriod"  maxlength="15" size="26" styleClass="locked" readonly="true" onchange="doChangeHeader();" /></td>
            
          </tr>
          
          <tr>
            <td class=labelText><bean:message key="hrm.EmpAprsl.aprslLevel" /></td>
            <td><html:text  property="aprslLevel" altKey="hrm.EmpAprsl.aprslLevel" maxlength="25" size="26" styleClass="locked" readonly="true" onchange="doChangeHeader();" /></td>
            
               <logic:notEqual property="approvalFlag" name="HrmAprslForm" value="A" >
               <td class="labelText"><bean:message key="hrm.EmpAprsl.jrLvlRating" /></td>
               <td ><enrgise:text  property="finalRating" altKey="hrm.EmpAprsl.jrLvlRating" maxlength="25" size="26" styleClass="optional" disabledClass="locked" onchange="doChangeHeader();" /></td>
                </logic:notEqual>
               <logic:equal property="approvalFlag" name="HrmAprslForm" value="A" >
               <td class="labelText"><bean:message key="hrm.EmpAprsl.finalRating" /></td>
               <td ><enrgise:text  property="finalRating" altKey="hrm.EmpAprsl.finalRating" maxlength="25" size="26" styleClass="optional" disabledClass="locked" onchange="doChangeHeader();" /></td>
               </logic:equal>

             <td class="labelText"><bean:message key="hrm.EmpAprsl.approvalflag" /></td>
              <td><html:select disabled="true"  property="approvalFlag" alt="approvalFlag"  styleClass="locked" name="HrmAprslForm" onchange="doChangeHeader();" >
              <html:option value="" ><bean:message   key="hrm.pleaseSelect" /></html:option>      
              <html:option value="N" > <bean:message key="hrm.HrmLvAppln.new" /></html:option>
              <html:option value="P" > <bean:message key="hrm.HrmLvAppln.pending" /></html:option>
              <html:option value="A" > <bean:message key="hrm.HrmLvAppln.approved" /></html:option>
              <html:option value="R" > <bean:message key="hrm.HrmLvAppln.rejected" /></html:option>
              <html:option value="V" > <bean:message key="hrm.HrmLvAppln.revised" /></html:option>
             </html:select></td> 
          
          </tr>
          
          
          <tr height=10>
            <td colspan=6></td>
          </tr>
          </table>  
  
      <table cellspacing=0 cellpadding=0 border=0>
      <!-- Detail Information Row starts -->
      <TR>
       <TD colspan=6>
        <!-- Personal Details Table Starts -->
         <TABLE cellSpacing=0 cellPadding=0 >
           <tr>
                <enrgise:tab name="HrmAprslForm" property="butKPATab" styleClass="disTabText" disabledClass="lockedTab" src="../includes/images/formtab_lb.gif" rows="2" onclick= "doGetTab('HrmAprslKPA','HrmEmpAprslDtlsGetTabAction.do')"  ><bean:message key="hrm.EmpAprsl.kpa" /></enrgise:tab>
                <enrgise:tab name="HrmAprslForm" property="butGoalsTab" styleClass="disTabText" disabledClass="lockedTab" src="../includes/images/formtab_lb.gif" rows="2" onclick= "doGetTab('HrmAprslGoals','HrmEmpAprslDtlsGetTabAction.do')"><bean:message key="hrm.EmpAprsl.goals" /></enrgise:tab>
                <enrgise:tab name="HrmAprslForm" property="butTrngReqTab" styleClass="disTabText" disabledClass="lockedTab" src="../includes/images/formtab_lb.gif" rows="2" onclick= "doGetTab('HrmAprslTrngReq','HrmEmpAprslDtlsGetTabAction.do')"><bean:message key="hrm.EmpAprsl.TrngReq" /></enrgise:tab>
                <enrgise:tab name="HrmAprslForm" property="butPersDtls" styleClass="actTabText" disabledClass="lockedTab" src="../includes/images/formtab_r.gif" rows="2" ><bean:message key="hrm.EmpAprsl.EmpDtls" /></enrgise:tab>
                
                
                <td width="45%"> </td>
             
     
          </tr>                  
          <TR >
          <!-- Detail table Container starts -->
              <TD colspan="40">
                <TABLE cellSpacing=0 cellPadding=0 border=0>
                  <TBODY>
                   <TR>
                     <TD >
                       <DIV id=divDtlTable style="height:300px" >
                       <!-- Detail table starts -->
                  
                     
                   
                        <TABLE cellSpacing=0 cellPadding=0>
                         <TBODY>
                         <tr>
                              <td class=tableHeader height="20" colspan="6"></td>
                         </tr> 
                         
                         <bean:define id="hrmAprslEmpDtls" name="HrmAprslForm" property="hrmAprslEmp" type="wenrgise.hrms.bean.HrmAprslEmpDtlsBean"  />
                        
                         <TR>
                          
                          <html:hidden property="status"  name="hrmAprslEmpDtls" />
                          <html:hidden property="detailId"  name="hrmAprslEmpDtls" />
                          <html:hidden property="itemChecked" name="hrmAprslEmpDtls" />
                          <html:hidden  property="selectAll" />
                          
                          
                         </TR>
                          <TR height="6">
                              <TD colspan=6></TD>
                          </TR>
                          
                         <tr> 
                              <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetails.grade" /></td>
                              <td><html:text  property="grade" alt="A" name="hrmAprslEmpDtls"   titleKey="hrm.HrmEmpPersonalDetails.grade" maxlength="10" size="23" styleClass="locked" onchange="doChangeDetail(0)" readonly="true" /></td>              
                              <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetails.designation" /></td>
                              <td><html:text  property="designation" alt="A" name="hrmAprslEmpDtls"   titleKey="hrm.HrmEmpPersonalDetails.designation" maxlength="10" size="23" styleClass="locked" onchange="doChangeDetail(0)" readonly="true" /></td>
                              <td class="labelText"><bean:message key="hrm.HrmEmpAprslPersonalDetails.presLoc" /></td>
                              <td><html:text  property="presLoc" alt="A" name="hrmAprslEmpDtls"   titleKey="hrm.HrmEmpAprslPersonalDetails.presLoc" maxlength="10" size="23" styleClass="locked" onchange="doChangeDetail(0)" readonly="true" /></td>              
                         </tr> 
                         <tr> 
                         
                              <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetails.dateofBirth" /></td>
                              <td><html:text  property="dateofBirth" name="hrmAprslEmpDtls"  alt="D" titleKey="hrm.HrmEmpPersonalDetails.dateofBirth" maxlength="10" size="23" styleClass="locked" onchange="doChangeDetail(0)" readonly="true" /></td>
                              <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetails.joiningStaffDate" /></td>
                              <td><html:text  property="joiningStaffDate" name="hrmAprslEmpDtls"  alt="D" titleKey="hrm.HrmEmpPersonalDetails.joiningStaffDate" maxlength="10" size="23" styleClass="locked" onchange="doChangeDetail(0)" readonly="true" /></td>
                              <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetails.joiningOfficerDate" /></td>
                              <td><html:text  property="joiningOfficerDate" name="hrmAprslEmpDtls"  alt="D" titleKey="hrm.HrmEmpPersonalDetails.joiningOfficerDate" maxlength="10" size="23" styleClass="locked" onchange="doChangeDetail(0)" readonly="true" /></td>  
                              
                         </tr> 
                         <tr>
                              <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetails.lastPromDate" /></td>
                              <td><html:text  property="lastPromDate" name="hrmAprslEmpDtls"  alt="ALPHA" titleKey="hrm.HrmEmpPersonalDetails.lastPromDate" maxlength="10" size="23" styleClass="locked" onchange="doChangeDetail(0)" readonly="true" /></td>              
                              <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetails.lastPay" /></td>
                              <td><html:text  property="lastPay" name="hrmAprslEmpDtls"  alt="ALPHA" titleKey="hrm.HrmEmpPersonalDetails.lastPay" maxlength="10" size="23" styleClass="locked" onchange="doChangeDetail(0)" readonly="true" /></td>              
                              <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetails.qual" /></td>
                              <td><html:text  property="qual" name="hrmAprslEmpDtls" onkeypress="isName(event)"   alt="ALPHA" titleKey="hrm.HrmEmpPersonalDetails.qual" maxlength="20" size="26" styleClass="locked" readonly="true" onchange="doChangeDetail(0)" /></td>              
                          </tr>
                          <tr>
                               <td  class="labelText"   ><bean:message key="hrm.HrmEmpPersonalDetails.rating" /></td>
                               <td colspan="4"><html:text name="hrmAprslEmpDtls" property="empRating1" titleKey="hrm.HrmEmpPersonalDetails.rating1" maxlength="30" size="23" styleClass="locked" readonly="true" onchange="doChangeDetail(0)" onkeypress="isName(event)"  />              
                                  <html:text name="hrmAprslEmpDtls" property="empRating2" titleKey="hrm.HrmEmpPersonalDetails.rating2" maxlength="30" size="19" styleClass="locked" readonly="true" onchange="doChangeDetail(0)" onkeypress="isName(event)"   />
                                  <html:text name="hrmAprslEmpDtls" property="empRating3" titleKey="hrm.HrmEmpPersonalDetails.rating3" maxlength="30" size="23" styleClass="locked" readonly="true" onchange="doChangeDetail(0)"  onkeypress="isName(event)"  /></td>     
                         </tr>
                         
                         <tr> 
                               <td  class="labelText"   ><bean:message key="hrm.HrmEmpPersonalDetails.incr" /></td>
                               <td colspan="4"><html:text  property="incr1" name="hrmAprslEmpDtls" titleKey="hrm.HrmEmpPersonalDetails.incr1" maxlength="30" size="23" styleClass="locked" readonly="true" onchange="doChangeDetail(0)" onkeypress="isName(event)"  />              
                                  <html:text  property="incr2" name="hrmAprslEmpDtls" titleKey="hrm.HrmEmpPersonalDetails.incr2" maxlength="30" size="19" styleClass="locked" readonly="true" onchange="doChangeDetail(0)" onkeypress="isName(event)"   />
                                  <html:text  property="incr3" name="hrmAprslEmpDtls" titleKey="hrm.HrmEmpPersonalDetails.incr3" maxlength="30" size="23" styleClass="locked" readonly="true" onchange="doChangeDetail(0)"  onkeypress="isName(event)"  /></td>     
                         </tr>
                                                       
                     </TBODY>
                    </TABLE>
                    
                  </DIV>
                </TD>
              </TR>                     
  
              <!-- Get details starts -->
                     <TABLE border=0>
                        <tbody>
                         <tr>
                          <td colspan=11>	
                          <bean:define id="pageNo" name="ParentForm" property="pageRequested" toScope="request" />
                          <bean:define id="maxPage" name="ParentForm" property="totalPageCount" toScope="request" />
                             <TABLE border=0>
                                <tbody>
                                <TR>
                                  <TD ><enrgise:button altKey="wenrgise.common.getDetail"  onclick="doBaseGetDetail()" property="butGetDetail" name="ParentForm" styleClass="bottomBarText">&nbsp;Get&nbsp;De<u>t</u>ail&nbsp;</enrgise:button> <enrgise:button altKey="wenrgise.common.addRow" name="ParentForm"  disabled="true" property="butAddRow"  styleClass="bottomBarText">&nbsp;&nbsp;Add&nbsp;<u>R</u>ow&nbsp;&nbsp;</enrgise:button><enrgise:button altKey="wenrgise.common.delRow" name="ParentForm" disabled="true"
                                  property="butDelRow" styleClass="bottomBarText" ><u>D</u>elete Row</enrgise:button></TD>
                                  <td width=50%></td>	
                                  <TD ><enrgise:img name="ParentForm" property="butPrevDetail" src="../includes/images/butn_dtl_prev.jpg" onmouseover='this.src="../includes/images/butn_dtl_prev_act.jpg"' onmouseout='this.src="../includes/images/butn_dtl_prev.jpg"' alt="Butn_prev (Alt+<)"  onclick="doBasePrevDetail()"/></td>
                                  <td class=dtlNavText><bean:write  name="pageNo" /> of <bean:write name="maxPage" /></td>
                                  <td  align=right><enrgise:img name="ParentForm" property="butNextDetail" src="../includes/images/butn_dtl_next.jpg" onmouseover='this.src="../includes/images/butn_dtl_next_act.jpg"' onmouseout='this.src="../includes/images/butn_dtl_next.jpg"' alt="Butn_next (Alt+>)" onclick="doBaseNextDetail()"/></td>
                                  <td  align=right><enrgise:text property="newPageRequested" size="1" onkeydown="isInteger(event)" styleClass="optional" disabledClass="locked" alt="N" titleKey="wenrgise.common.jumpDetail" /></td>
                                  <td ><enrgise:img name="ParentForm" property="butJumpDetail" altKey="wenrgise.common.go" src="../includes/images/go_dtl.jpg" onmouseover='this.src="../includes/images/go_act.jpg"' onmouseout='this.src="../includes/images/go.jpg"' onclick="doBaseJumpDetail()" /></td>		     
                                </TR>
                              
                                </tbody>
                              </TABLE>
                             
                          </TD>
                      </tr>
                      
                    </tbody>
                   </TABLE>
             
                  </TBODY>
                </TABLE>
              </td>
            </tr>



        </TABLE>
     </td>
	 </tr>
 
    <!-- Bottom Blue Bar -->
       <TR>
            <td>
              <TABLE  cellspacing="0" cellpadding="0" border=0>
                    <tr height="20">
                        <td width=45% align=center bgColor=#4682b4></td>
                        <td  bgColor=#4682b4></td>
                        <td bgColor=#4682b4></td>
                        <td align=right bgColor=#4682b4><img src="../includes/images/man.jpg"></td>
                        
                   </TR>
                </table>
            </td>
          </tr>
    
  <!-- Container Table Ending Columns Starts-->
  </TD>
    
</TR>
</TBODY>
</TABLE>

<!-- Container Table Ends -->
<!-- Common Hidden Variables-->
<html:hidden name="HrmAprslForm" property="screenName" value="HrmAprslEmpDtls" />
<html:hidden name="HrmAprslForm" property="forwardedPage" />
<html:hidden name="HrmAprslForm" property="positionRequested" />
<html:hidden name="HrmAprslForm" property="screenMode" />

<html:hidden property="txtIndex" name="HrmAprslForm"  />
<html:hidden property="userPageRequested" name="HrmAprslForm" />
<html:hidden property="userPositionRequested"  name="HrmAprslForm" />
<html:hidden property="pageRequested"  name="HrmAprslForm" />

<html:hidden property="lovKey" name="HrmAprslForm"  />
<html:hidden property="txtSearchFields" name="HrmAprslForm"  />
<html:hidden property="txtDisplayFields" name="HrmAprslForm"  />
<html:hidden property="headerPrimaryKey" name="HrmAprslForm" />
<html:hidden property="headerDataChanged" name="HrmAprslForm" />
<input type="hidden" name="multipleFlag" >
<input type="hidden" name="queryParam" >

<html:hidden property="firstLoad" name="HrmAprslForm" />

<!-- Screen Specific variables -->

<!-- Hidden fields end -->

</html:form>
</body>
</html:html>

<script language="javascript">

function doChangeHeader()
{
 document.forms[0].headerDataChanged.value="true";
}

function doQueryMode()
{
 
  return "HrmAprslEmpPersDtlsQueryModeAction.do";
}


function doInsertMode()
{

  return "HrmAprslEmpPersDtlsNewModeAction.do";
}

 function doOnLoad()
{
  if(document.forms[0].firstLoad.value!="false")
  {
    return  "HrmAprslEmpPersDtlsOnLoadAction.do"; 
  }
}

function doExecute()
{
   return "HrmAprslEmpPersDtlsGetHeaderAction.do";
}

function doSave()
{
  document.forms[0].headerDataChanged.value="Y";
  return "HrmAprslEmpPersDtlsSaveAction.do";
  
}

function doDelete()
{

  return "HrmAprslEmpPersDtlsDeleteAction.do";
  
}

function doRefresh()
{

  return "HrmAprslEmpPersDtlsRefreshAction.do";
  
}

function doPrevHeader()
{
  return "HrmAprslEmpPersDtlsGetNextHeaderAction.do"; 
}
function doExit()
{
  return "HrmAprslEmpPersDtlsExitAction.do"; 
}
function doNextHeader()
{
  return "HrmAprslEmpPersDtlsGetNextHeaderAction.do"; 
}

function doJumpHeader()
{
  return "HrmAprslEmpPersDtlsFirstGetNextHeaderAction.do"; 
}

function doGetDetail()
{
  return "HrmAprslEmpPersDtlsGetDetailAction.do";
}

function doAddRow()
{

  return "HrmAprslEmpPersDtlsAddRowAction.do"; 
}

function doDelRow()
{
 return "HrmAprslEmpPersDtlsDeleteRowAction.do";  
}


function doPrevDetail()
{

  return "HrmAprslEmpPersDtlsGetDetailPageAction.do";  
}

function doNextDetail()
{

  return "HrmAprslEmpPersDtlsGetDetailPageAction.do";
}

function doJumpDetail()
{
  return  "HrmAprslEmpPersDtlsGetDetailPageAction.do"; 
}



</script>  