<%@ 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>
<html:base />
<head>
  <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="HrmPersonalDtlsForm" action="HrmPersonalDtlsTrngDetBaseAction" type="wenrgise.hrms.webtier.form.HrmEmpPersDtlForm">
<bean:define id="ParentForm" name="HrmPersonalDtlsForm" toScope="request" />
<jsp:include page="GenMenu.jsp" flush="true" />
<bean:define id="left" name="ParentForm" property="positionRequested"/>
<bean:define id="right" name="ParentForm" property="totalCount"/>
<table cellSpacing=0 bgColor=#bdd0ef>
<tr height=27>
  <td colSpan=11></td>
</tr>
  <TR > 
    <TD ><enrgise:img name="ParentForm" property="butQuery" onmouseover='this.src="../includes/images/query_act.jpg"' onmouseout='this.src="../includes/images/query.jpg"' alt="Query (Ctrl+Q)" src="../includes/images/query.jpg" onclick="doBaseQueryMode()" /><enrgise:img name="ParentForm" property="butInsert" onmouseover='this.src="../includes/images/insert_act.jpg"' onmouseout='this.src="../includes/images/insert.jpg"' alt="Insert (Alt+N)" src="../includes/images/insert.jpg"  onclick="doBaseInsertMode()"/></TD>
    <TD width="2%"></TD>
    <TD ><enrgise:img name="ParentForm" property="butExecute" onmouseover='this.src="../includes/images/execute_act.jpg"' onmouseout='this.src="../includes/images/execute.jpg"' alt="Execute (Ctrl+U)" src="../includes/images/execute.jpg" onclick="doBaseExecute()" /><enrgise:img name="ParentForm" property="butSave" onmouseover='this.src="../includes/images/save_act.jpg"' onmouseout='this.src="../includes/images/save.jpg"' alt="Save (Ctrl+S)" src="../includes/images/save.jpg" onclick="doBaseSave()" />
    <enrgise:img name="ParentForm" property="butDelete" onmouseover='this.src="../includes/images/delete_act.jpg"' onmouseout='this.src="../includes/images/delete.jpg"' alt="Delete (Ctrl+D)" src="../includes/images/delete.jpg" onclick="doBaseDelete()" /><enrgise:img name="ParentForm" property="butRefresh" onmouseover='this.src="../includes/images/refresh_act.jpg"' onmouseout='this.src="../includes/images/refresh.jpg"' alt="Refresh (Ctrl+R)"  src="../includes/images/refresh.jpg" onclick="doBaseRefresh()" />
    <enrgise:img name="ParentForm" property="butPrint" onmouseover='this.src="../includes/images/print_act.jpg"' onmouseout='this.src="../includes/images/print.jpg"' alt="Print (Ctrl+P)"  src="../includes/images/print.jpg" /></TD>
    <TD width="2%" bgColor=#bdd0ef></TD>
    <TD><enrgise:img name="ParentForm" property="butExit" onmouseover='this.src="../includes/images/exit_act.jpg"' onmouseout='this.src="../includes/images/exit.jpg"' alt="Exit (Alt+X)"  src="../includes/images/exit.jpg"   onclick="doBaseExit()" />
    <enrgise:img name="ParentForm" property="butHelp" onmouseover='this.src="../includes/images/help_act.jpg"' onmouseout='this.src="../includes/images/help.jpg"' alt="Help (Ctrl+?)" src="../includes/images/help.jpg" onclick="doBaseHelp()" /></TD>
    <TD width="50%"></TD>
    <TD ><enrgise:img name="ParentForm" property="butPrevHeader" src='../includes/images/butn_prev.jpg' onmouseover='this.src="../includes/images/butn_prev_act.jpg"' onmouseout='this.src="../includes/images/butn_prev.jpg"' alt="Butn_prev (Ctrl+<)" onclick="doBasePrevHeader()" /></td>
    <td class=dtlNavText><bean:write  name="left" /> of 
    <bean:write name="right" /></td>
    <td align=right><enrgise:img name="ParentForm" property="butNextHeader" src="../includes/images/butn_next.jpg" onmouseover='this.src="../includes/images/butn_next_act.jpg"' onmouseout='this.src="../includes/images/butn_next.jpg"' alt="Butn_next (Ctrl+>)" onclick="doBaseNextHeader()" /></td>
    <td align=right><enrgise:text property="newPositionRequested" size="1"  maxlength="3" onkeydown="isInteger(event)" title="wenrgise.common.jumpDetail" alt="N" disabledClass="locked" styleClass="optional" /></td>
    <td ><enrgise:img name="ParentForm" property="butJumpHeader" alt="Go (Ctrl+G)" src="../includes/images/go.jpg" onmouseover='this.src="../includes/images/go_act.jpg"' onmouseout='this.src="../includes/images/go.jpg"' onclick="doBaseJumpHeader()" /></td>
    <td > </td>
    
</TR>
</table>
<table>
<tr>
  <td colspan="11" class="userText"></td>
</tr>
</TABLE>


<!--Top Most Blue Bar-->
<TABLE cellSpacing="0" bgColor="#bdd0ef">
    <tr>
        <TD  colSpan="12" class="mainHeader" height="10"><bean:message key="hrm.HrmEmpPersonalDetailsTrngDet.mainHeader" /></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 >
        <!--Application Header Starts -->
              <TR>
                    <TD class=subHeader colspan=6><bean:message key="hrm.HrmEmpPersonalDetails.subHeader1" /></TD>
              </TR>
              <TR>
                    <TD colspan=6 bgColor=#4682b4><enrgise:img name="HrmPersonalDtlsForm" property="photo" height="1" src="../includes/images/photo.gif" width="1" border="0" /></TD>
              </TR>
              <tr>
                  <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetails.employeeNo" /></td>
                  <td><html:text  property="employeeNo" alt="N" titleKey="hrm.HrmEmpPersonalDetails.employeeNo" maxlength="10" size="23" styleClass="required" onchange="doChangeHeader();" readonly="true" /><enrgise:img height="16" align="center" src="../includes/images/lov.jpg" name="HrmPersonalDtlsForm"  property="butEmployeeNo" onclick="return ShowEmployeeNo()" /></td>              
                  <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetails.draftFlag" /></td>
                  <td><enrgise:checkbox property="draftFlag"  name="HrmPersonalDtlsForm"  styleClass="optional" disabledClass="locked" /></td>
                  
              </tr>
             <tr>
                  <td class="labelText"></td>
                  <td></td>
                  <td class="labelText"></td>
                  <td></td>
                  <td colspan=2> </td>
              </tr>
              <tr>
                  <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetails.employeeName" /></td>
                  <td colspan="3"><enrgise:text  property="firstName" alt="ALPHA" titleKey="hrm.HrmEmpPersonalDetails.firstName" maxlength="100" size="37" styleClass="required" disabledClass="required" onchange="doChangeHeader();" onkeypress="isName(event)"  /><enrgise:text  property="middleName" alt="ALPHA" titleKey="hrm.HrmEmpPersonalDetails.middleName" maxlength="100" size="37" styleClass="optional" disabledClass="optional" onchange="doChangeHeader();" onkeypress="isName(event)" />
                  <enrgise:text  property="lastName" alt="ALPHA" titleKey="hrm.HrmEmpPersonalDetails.lastName" maxlength="100" size="37" styleClass="required" disabledClass="required" onchange="doChangeHeader();"  onkeypress="isName(event)"  /></td> 
                  <td> </td>                
              </tr>
             <tr height="30">
                    <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="HrmEmpPersDtlsForm" property="tabPersDtls" styleClass="disTabText" disabledClass="lockedTab" src="../includes/images/formtab_lb.gif" rows="2" onclick= "doGetTab('HrmEmpPersDtls','HrmEmpPersTrngDtlsGetTabAction.do')" ><bean:message key="hrm.HrmEmpPersonalDetails.personalDetails" /></enrgise:tab>
                <enrgise:tab name="HrmEmpPersDtlsForm" property="tabAddDtls" styleClass="disTabText" disabledClass="lockedTab" src="../includes/images/formtab_lb.gif" rows="2" onclick= "doGetTab('HrmEmpPersAddDtls','HrmEmpPersTrngDtlsGetTabAction.do')"  ><bean:message key="hrm.HrmEmpPersonalDetails.address" /></enrgise:tab>
                <enrgise:tab name="HrmEmpPersDtlsForm" property="tabJoiningInfo" styleClass="disTabText" disabledClass="lockedTab" src="../includes/images/formtab_lb.gif" rows="2" onclick= "doGetTab('HrmEmpPersJoinInf','HrmEmpPersTrngDtlsGetTabAction.do')"><bean:message key="hrm.HrmEmpPersonalDetails.joiningInfo" /></enrgise:tab>
                <enrgise:tab name="HrmEmpPersDtlsForm" property="tabEmpHist" styleClass="disTabText" disabledClass="lockedTab" src="../includes/images/formtab_lb.gif" rows="2" onclick= "doGetTab('HrmEmpPersEmpHst','HrmEmpPersTrngDtlsGetTabAction.do')"><bean:message key="hrm.HrmEmpPersonalDetails.employeeHistory" /></enrgise:tab>
                <enrgise:tab name="HrmEmpPersDtlsForm" property="tabPriorExp" styleClass="disTabText" disabledClass="lockedTab" src="../includes/images/formtab_lb.gif" rows="2" onclick= "doGetTab('HrmEmpPersPriorExp','HrmEmpPersTrngDtlsGetTabAction.do')"><bean:message key="hrm.HrmEmpPersonalDetails.priorExperience" /></enrgise:tab>
                <enrgise:tab name="HrmEmpPersDtlsForm" property="tabEduDtls" styleClass="disTabText" disabledClass="lockedTab" src="../includes/images/formtab_lb.gif" rows="2" onclick= "doGetTab('HrmEmpPersEduDtls','HrmEmpPersTrngDtlsGetTabAction.do')"><bean:message key="hrm.HrmEmpPersonalDetails.educationDetails" /></enrgise:tab>
                <enrgise:tab name="HrmEmpPersDtlsForm" property="tabPFDtls" styleClass="disTabText" disabledClass="lockedTab" src="../includes/images/formtab_lb.gif"      rows="2" onclick= "doGetTab('HrmEmpPersPFDtls','HrmEmpPersTrngDtlsGetTabAction.do')"  ><bean:message key="hrm.HrmEmpPersonalDetails.pFDetails" /></enrgise:tab>
                <enrgise:tab name="HrmEmpPersDtlsForm" property="tabTrngDtls" styleClass="actTabText" disabledClass="lockedTab" src="../includes/images/formtab_r.gif" rows="2" ><bean:message key="hrm.HrmEmpPersonalDetails.trainingDetails" /></enrgise:tab>
                <enrgise:tab name="HrmEmpPersDtlsForm" property="tabAwardDtls" styleClass="disTabText" disabledClass="lockedTab" src="../includes/images/formtab_lb.gif" rows="2" onclick= "doGetTab('HrmEmpPersAward','HrmEmpPersTrngDtlsGetTabAction.do')"  ><bean:message key="hrm.HrmEmpPersonalDetails.awardDtls" /></enrgise:tab>
                <enrgise:tab name="HrmEmpPersDtlsForm" property="tabInsDtls" styleClass="disTabText" disabledClass="lockedTab" src="../includes/images/formtab_lb.gif" rows="2" onclick= "doGetTab('HrmEmpPersIns','HrmEmpPersTrngDtlsGetTabAction.do')"  ><bean:message key="hrm.HrmEmpPersonalDetails.insDtls" /></enrgise:tab>
                <enrgise:tab name="HrmEmpPersDtlsForm" property="tabHealth" styleClass="disTabText" disabledClass="lockedTab" src="../includes/images/formtab_lb.gif" rows="2" onclick= "doGetTab('HrmEmpPersHealth','HrmEmpPersTrngDtlsGetTabAction.do')"  ><bean:message key="hrm.HrmEmpPersonalDetails.health" /></enrgise:tab>
                <!--<enrgise:tab name="HrmEmpPersDtlsForm" property="tabLng" styleClass="disTabText" disabledClass="lockedTab" src="../includes/images/formtab_lb.gif" rows="2" onclick= "doGetTab('HrmPersLngDtls','HrmEmpPersTrngDtlsGetTabAction.do')"  ><bean:message key="hrm.HrmEmpPersonalDetails.languageDtls" /></enrgise:tab>-->
                <enrgise:tab name="HrmEmpPersDtlsForm" property="tabRef" styleClass="disTabText" disabledClass="lockedTab" src="../includes/images/formtab_lb.gif" rows="2" onclick= "doGetTab('HrmEmpPersRef','HrmEmpPersTrngDtlsGetTabAction.do')"  ><bean:message key="hrm.HrmEmpPersonalDetails.refDtls" /></enrgise:tab>
                
                <!--Added By SUBHAM For New Requirement Of Asset Details Tab -->
                
                <enrgise:tab name="HrmEmpPersDtlsForm" property="tabAsset" styleClass="disTabText" disabledClass="lockedTab" src="../includes/images/formtab_lb.gif" rows="2" onclick= "doGetTab('HrmEmpPersAsset','HrmEmpPersTrngDtlsGetTabAction.do')"  ><bean:message key="hrm.HrmEmpPersonalDetails.assetDtls" /></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:270px" >
  		           	<!-- Detail table starts -->
                        <TABLE cellSpacing=0 cellPadding=0>
                        <TBODY>
                          <tr>
                          <TD class=tableHeader width="1%"><html:checkbox property="selectAll" onclick="toggleCheckBox('checked')" disabled="true" /></TD>
                              <TD class=tableHeader><bean:message  key="hrm.HrmEmpPersonalDetailsTrngDet.courseName" /></td>
                              <TD class=tableHeader><bean:message  key="hrm.HrmEmpPersonalDetailsTrngDet.instName" /></td>
                              <TD class=tableHeader ><bean:message  key="hrm.HrmEmpPersonalDetailsTrngDet.fromDate" /></td>
                              <TD class=tableHeader ><bean:message  key="hrm.HrmEmpPersonalDetailsTrngDet.toDate" /></td>
                              <TD class=tableHeader ><bean:message key="hrm.HrmEmpPersonalDetailsTrngDet.calendarName" /></td>
                              <TD class=tableHeader ><bean:message  key="hrm.HrmEmpPersonalDetailsTrngDet.rating" /></td>
                              <TD class=tableHeader ><bean:message  key="hrm.HrmEmpPersonalDetailsTrngDet.participation" /></td>
                              <TD class=tableHeader ><bean:message  key="hrm.HrmEmpPersonalDetailsTrngDet.resonNonPart" /></td>
                          </tr>
                           <logic:iterate id="HrmPersDtlsTrng" name="HrmPersonalDtlsForm" property="arrEmpPersDtlTrng" type="wenrgise.hrms.bean.HrmEmpPersTrngDtlsDtlBean" indexId="idx" >
                            <logic:notEqual name="HrmPersDtlsTrng" property="status" value="D" >
                            
                              <tr class='<bean:write name="HrmPersonalDtlsForm" property="listRowClass"/>'  >
                                <td width="1%"><html:hidden property="status"  name="HrmPersDtlsTrng" /><html:hidden property="detailId"  name="HrmPersDtlsTrng"  /><html:hidden property="itemChecked" name="HrmPersDtlsTrng" /><html:checkbox property="checked"  name="HrmPersonalDtlsForm" alt="<%=idx.toString()%>" disabled="true"  /></td>
                                <TD class=tableText ><html:text property="txtCourseName" name="HrmPersDtlsTrng" styleClass="locked" style="width:100%" alt="<%=idx.toString()%>" onchange="doChangeDetail(this.alt);" readonly="true"  /></td>  
                                <TD class=tableText ><html:text property="txtNameOfInst" name="HrmPersDtlsTrng" styleClass="locked" style="width:100%" alt="<%=idx.toString()%>" onchange="doChangeDetail(this.alt);" readonly="true"    /></td>  
                                <TD class=tableText ><html:text property="txtFromDate" name="HrmPersDtlsTrng" styleClass="locked" style="width:100%" alt="A" onchange='<%="doChangeDetail("+idx.toString()+")"%>' readonly="true"   /></td>
                                <TD class=tableText><html:text property="txtToDate" name="HrmPersDtlsTrng" styleClass="locked" style="width:100%" alt="<%=idx.toString()%>" onchange="doChangeDetail(this.alt);"  readonly="true"   /></td>  
                                <TD class=tableText><html:text property="txtCalendarName" name="HrmPersDtlsTrng" styleClass="locked" style="width:100%" alt="<%=idx.toString()%>" onchange="doChangeDetail(this.alt);" readonly="true"   /></td>   
                                <TD class=tableText ><html:text property="txtRating" name="HrmPersDtlsTrng" styleClass="locked" style="width:100%" alt="<%=idx.toString()%>" onchange="doChangeDetail(this.alt);" readonly="true"   /></td>
                                <TD class=tableText><html:checkbox property="txtParticipation" name="HrmPersDtlsTrng" styleClass="locked" alt="<%=idx.toString()%>" onchange="doChangeDetail(this.alt);" disabled="true"  /><html:hidden property="txtParticipation" name="HrmPersDtlsTrng" /></td>   
                                 <TD class=tableText><html:text property="txtNonPart" name="HrmPersDtlsTrng" styleClass="locked" style="width:100%" alt="<%=idx.toString()%>" onchange="doChangeDetail(this.alt);" readonly="true"   /></td>   
                               </tr>
                             </logic:notEqual>
                             
                             
                        </logic:iterate>
                        
                        </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><enrgise:button name="HrmPersonalDtlsForm" property="butDraftSave"  onclick="return doDraftSave();"  ><u>D</u>raft<u></u> Save</enrgise:button></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="HrmPersonalDtlsForm" property="screenName" value="HrmEmpPersTrngDtls" />
<html:hidden name="HrmPersonalDtlsForm" property="forwardedPage" />
<html:hidden name="HrmPersonalDtlsForm" property="positionRequested" />
<html:hidden name="HrmPersonalDtlsForm" property="screenMode" />

<html:hidden property="txtIndex" name="HrmPersonalDtlsForm"  />
<html:hidden property="userPageRequested" name="HrmPersonalDtlsForm" />
<html:hidden property="userPositionRequested"  name="HrmPersonalDtlsForm" />
<html:hidden property="pageRequested"  name="HrmPersonalDtlsForm" />
<html:hidden property="selectAll" value="check" name="HrmPersonalDtlsForm" />

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

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

<!-- Screen Specific variables -->
<html:hidden property="empNumberId" name="HrmPersonalDtlsForm"  />

<html:hidden property="draftSave" name="HrmPersonalDtlsForm"  />
<html:hidden property="empId" name="HrmPersonalDtlsForm" />
<!-- Hidden fields end -->

</html:form>
</body>
</html:html>
<script language="javascript">

function doDraftSave()
{
 document.getElementsByName("draftSave")[0].value="true";
 return doBaseSave();
}
function doChangeHeader()
{
 document.getElementsByName("headerDataChanged")[0].value="true"; 
 //document.forms[0].headerDataChanged.value="true";
}

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


function doInsertMode()
{

  return "HrmPersonalDtlsTrngDetNewModeAction.do";
}


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

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

function doDelete()
{

  return "HrmPersonalDtlsTrngDetDeleteAction.do";
  
}

function doRefresh()
{

  return "HrmPersonalDtlsTrngDetRefreshAction.do";
  
}

function doPrevHeader()
{
  return "HrmPersonalDtlsTrngDetGetNextHeaderAction.do"; 
}

function doNextHeader()
{
  return "HrmPersonalDtlsTrngDetGetNextHeaderAction.do"; 
}

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

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

function doAddRow()
{

  return "HrmPersonalDtlsTrngDetAddRowAction.do"; 
}

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

function doGetDetailTableName()
{
  
}

function doPrevDetail()
{

  return "HrmPersonalDtlsTrngDetGetDetailPageAction.do";  
}
function doExit()
{

  return "HrmPersonalDtlsTrngDetExitAction.do";  
}

function doNextDetail()
{

  return "HrmPersonalDtlsTrngDetGetDetailPageAction.do";
}

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


function doGetInsertData()
{

}
function ShowEmployeeNo()
{
        document.forms[0].queryParam.value ="employeeId="+ document.forms[0].empId.value ;
        document.forms[0].lovKey.value = "TrngDtlsEmpNo" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmEmpPersonalDetails.employeeNo,hrm.HrmEmpPersonalDetailsAddress.name";
        document.forms[0].txtDisplayFields.value = "empNumberId,employeeNo,firstName,middleName,lastName";
        document.forms[0].multipleFlag.value = "false";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmPersonalDtlsForm');
        return true;
        
}
</script>
