<%@ 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" />
</head>


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

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


<html:hidden property="detailDataChanged" name="HrmPersonalDtlsForm" />
<!--Top Most Blue Bar-->
<TABLE cellSpacing=0 bgColor=#bdd0ef>
    <tr>
        <TD  colSpan=12 class=mainHeader height=10><bean:message key="hrm.HrmEmpPersonalDetails.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','HrmEmpPersJoiningInfoGetTabAction.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','HrmEmpPersJoiningInfoGetTabAction.do')"  ><bean:message key="hrm.HrmEmpPersonalDetails.address" /></enrgise:tab>
                <enrgise:tab name="HrmEmpPersDtlsForm" property="tabJoiningInfo" styleClass="actTabText" disabledClass="lockedTab" src="../includes/images/formtab_r.gif" rows="2" ><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','HrmEmpPersJoiningInfoGetTabAction.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','HrmEmpPersJoiningInfoGetTabAction.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','HrmEmpPersJoiningInfoGetTabAction.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','HrmEmpPersJoiningInfoGetTabAction.do')"  ><bean:message key="hrm.HrmEmpPersonalDetails.pFDetails" /></enrgise:tab>
                <enrgise:tab name="HrmEmpPersDtlsForm" property="tabTrngDtls" styleClass="disTabText" disabledClass="lockedTab" src="../includes/images/formtab_lb.gif" rows="2" onclick= "doGetTab('HrmEmpPersTrngDtls','HrmEmpPersJoiningInfoGetTabAction.do')" ><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','HrmEmpPersJoiningInfoGetTabAction.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','HrmEmpPersJoiningInfoGetTabAction.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','HrmEmpPersJoiningInfoGetTabAction.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','HrmEmpPersJoiningInfoGetTabAction.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','HrmEmpPersJoiningInfoGetTabAction.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','HrmEmpPersJoiningInfoGetTabAction.do')"  ><bean:message key="hrm.HrmEmpPersonalDetails.assetDtls" /></enrgise:tab>
                
                
                <td width="50%"> </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 height="20" colspan="6">
                              
                            
                              
                              </td>
                              
                         </tr> 
                     <bean:define id="HrmPersJoin" name="HrmPersonalDtlsForm" property="hrmEmpPersDtlJoin" type="wenrgise.hrms.bean.HrmEmpPersJoinInfDtlBean"  />
                         
                         
                          <TR>
                                <TD class=subHeader colspan=6>Joining Information</TD>
                         </TR>
                         <TR>
                               <TD colspan=6 bgColor=#4682b4><IMG height=1 src="../includes/images/pixel.gif" width=1 border=0></TD>
                                                               
                                 
                         </TR>
                          <tr>
                              <html:hidden property="status" name="HrmPersJoin" />
                                <html:hidden property="detailId"  name="HrmPersJoin" />
                                <html:hidden property="itemChecked" name="HrmPersJoin" />
                                <html:hidden property="checked"  name="HrmPersonalDtlsForm" />
                                <html:hidden property="baseSiteId" name="HrmPersJoin"  />
                                <html:hidden property="entryModeCode" name="HrmPersJoin"  />
                                <html:hidden property="employeeStatusCode" name="HrmPersJoin"  />
                                <html:hidden property="separationId" name="HrmPersJoin"  />
                                <html:hidden property="costId" name="HrmPersJoin"  />
                                <html:hidden property="accSite" name="HrmPersJoin"  />
                                <html:hidden property="accSiteId" name="HrmPersJoin"  />
                                <html:hidden property="costCode" name="HrmPersJoin"  />
                                <html:hidden property="entryModeId" name="HrmPersJoin"  />
                                <html:hidden property="entryMode" name="HrmPersJoin"  />
                                <html:hidden property="baseSite" name="HrmPersJoin"  />
                                <html:hidden property="empStatId" name="HrmPersJoin"  />
                                <html:hidden property="sepCode" name="HrmPersJoin"  />
                                <html:hidden property="bankId" name="HrmPersJoin"  />
                              <html:hidden property="bankName" name="HrmPersJoin"  />
                              <html:hidden property="jobRespId" name="HrmPersJoin"  />
                              <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetailsJoinInf.compJoiningDate" /></td>
                              <td><html:text  property="compJoiningDate"   name="HrmPersJoin" alt="D" titleKey="hrm.HrmEmpPersonalDetailsJoinInf.compJoiningDate" size="23" styleClass="required" onchange="doChangeDetail(0)" readonly="true" /><enrgise:img name="HrmPersonalDtlsForm" src="../includes/images/cal.gif"  width="15" height="19" align="top" styleClass="lov" property="butCompJoiningDate"   onclick="showCalendar('compJoiningDate',this)" /></td>

                              <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetailsJoinInf.tentativeConfDate" /></td>
                              <td><html:text  property="tentativeConfDate"   name="HrmPersJoin" alt="D" titleKey="hrm.HrmEmpPersonalDetailsJoinInf.tentativeConfDate" size="23" styleClass="optional" onchange="doChangeDetail(0)" readonly="true" /><enrgise:img name="HrmPersonalDtlsForm" src="../includes/images/cal.gif"  width="15" height="19" align="top" styleClass="lov" property="butTentativeConfDate"   onclick="showCalendar('tentativeConfDate',this)" /></td>             

                              <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetailsJoinInf.placeOfInitialPosting" /></td>
                              <td><html:text  property="placeOfInitialPosting"   name="HrmPersJoin"  alt="N" titleKey="hrm.HrmEmpPersonalDetailsJoinInf.placeOfInitialPosting" size="23" styleClass="required" onchange="doChangeDetail(0)" readonly="true" /><enrgise:img name="HrmPersonalDtlsForm" height="16" align="center" src="../includes/images/lov.jpg"  property="butSiteCode"    onclick="return ShowBaseSite(0)" /></td> 
                        </tr>
                       <tr>
                            <!--<td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetailsJoinInf.entryMode" /></td>
                            <td><html:text  property="entryMode"   name="HrmPersJoin"  alt="A" titleKey="hrm.HrmEmpPersonalDetailsJoinInf.entryMode" size="23" styleClass="required" onchange="doChangeDetail(0)" readonly="true" /><enrgise:img name="HrmPersonalDtlsForm" height="16" align="center" src="../includes/images/lov.jpg"  property="butEntryMode"   onclick="return ShowEntryMode(0)" /></td>  -->
                              
                             <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetailsJoinInf.refNo" /></td>
                             <td><html:text  property="refNo" name="HrmPersJoin"   titleKey="hrm.HrmEmpPersonalDetailsJoinInf.refNo" maxlength="40" size="26" styleClass="locked" readonly="true" onchange="doChangeDetail(0)" /></td>              
                        </tr>
                          <tr>
                              
                               
                              <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetailsJoinInf.orderNo" /></td>
                              <td><html:text  property="orderNo" name="HrmPersJoin"  titleKey="hrm.HrmEmpPersonalDetailsJoinInf.orderNo" maxlength="40" size="26" styleClass="locked" readonly="true" onchange="doChangeDetail(0)" /></td>
                              
                                                                                          
                              <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetailsJoinInf.orderDate" /></td>
                              <td><html:text  property="orderDate" name="HrmPersJoin"  titleKey="hrm.HrmEmpPersonalDetailsJoinInf.orderDate" size="26" styleClass="locked" readonly="true" onchange="doChangeDetail(0)" /></td>
                        </tr>
                         <TR>
                                <TD class=subHeader colspan=6>Bank Information</TD>
                         </TR>
                         <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.HrmEmpPersonalDetailsJoinInf.payment" /></td>
                               <td ><enrgise:select property="paymentType"   alt="Cheque"  styleClass="required" name="HrmPersJoin" disabledClass="required"  onchange="doChangeDetail(0);"   >
                                       <enrgise:option value="" ><bean:message   key="hrm.pleaseSelect" /></enrgise:option>
                                       <!-- <enrgise:option value="C" ><bean:message   key="hrm.HrmEmpPersonalDetailsJoinInf.cheque" /></enrgise:option> -->
                                       <enrgise:option value="C" >Cash</enrgise:option>
                                       <enrgise:option value="Q" >Cheque</enrgise:option>
                                       <enrgise:option value="B" ><bean:message   key="hrm.HrmEmpPersonalDetailsJoinInf.bank" /></enrgise:option>
                                     </enrgise:select>
                               </td>
                         </tr>
                        <tr>
                              <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetailsJoinInf.bank" /></td>
                              <td><html:text  property="bankCode"   name="HrmPersJoin"  alt="N" titleKey="hrm.HrmEmpPersonalDetailsJoinInf.bank" size="23" styleClass="optional" onchange="doChangeDetail(0)" readonly="true" /><enrgise:img name="HrmPersonalDtlsForm" height="16" align="center" src="../includes/images/lov.jpg"  property="butBank"   onclick="return ShowBank(0)" /></td>                        
                               
                               
                              <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetailsJoinInf.branchName" /></td>
                              <td><html:text  property="branchName"  onkeypress="isInteger(event)"   name="HrmPersJoin"  alt="N" titleKey="hrm.HrmEmpPersonalDetailsJoinInf.branchName" size="26" styleClass="locked" onchange="doChangeDetail(0)" readonly="true" /></td>
                              
                                                                                          
                              <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetailsJoinInf.accountNumber" /></td>
                              <td><enrgise:text  property="accountNumber"   onkeypress="isInteger(event)"  name="HrmPersJoin"  alt="N" titleKey="hrm.HrmEmpPersonalDetailsJoinInf.accountNumber" maxlength="20" size="26" styleClass="optional" disabledClass="locked" onchange="doChangeDetail(0)" /></td>
                        </tr>
                        
                          <TR>
                                <TD class=subHeader colspan=6>Other Information</TD>
                         </TR>
                         <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.HrmEmpPersonalDetailsJoinInf.employeeStatus" /></td>
                              <td><html:text  property="employeeStatus"   name="HrmPersJoin"  alt="A" titleKey="hrm.HrmEmpPersonalDetailsJoinInf.employeeStatus" size="23" styleClass="required" onchange="doChangeDetail(0)" readonly="true" /><enrgise:img name="HrmPersonalDtlsForm" height="16" align="center" src="../includes/images/lov.jpg"  property="butEmployeeStatus"   onclick="return ShowEmployeeStatus(0)" /></td>              
                              <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetailsJoinInf.statusDate" /></td>
                              <td><html:text  property="statusEffectDate"   name="HrmPersJoin"  alt="D" titleKey="hrm.HrmEmpPersonalDetailsJoinInf.statusDate" size="23" styleClass="required" onchange="doChangeDetail(0)" readonly="true" /><enrgise:img name="HrmPersonalDtlsForm" src="../includes/images/cal.gif"  width="15" height="19" align="top" styleClass="lov" property="butStatusDate"   onclick="showCalendar('statusEffectDate',this)" /></td>             
                              
                              <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetailsJoinInf.retirementDate" /></td>
                              <td><html:text  property="retirementDate" name="HrmPersJoin"  titleKey="hrm.HrmEmpPersonalDetailsJoinInf.retirementDate" size="23" styleClass="optional" onchange="doChangeDetail(0)" readonly="true" /><img name="HrmPersonalDtlsForm" src="../includes/images/cal_dis.gif"  width="15" height="19" align="top" styleClass="lov" property="butRetirementDate"  /></td>             
                             
                             
                        </tr> 
                       
                             
                              
                       <tr> 
                                
                            <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetailsJoinInf.accountingSite" /></td>
                            <td><html:text  property="accountingSite"   name="HrmPersJoin"  alt="N" titleKey="hrm.HrmEmpPersonalDetailsJoinInf.accountingSite" size="23" styleClass="optional" onchange="doChangeDetail(0)" readonly="true" /><enrgise:img name="HrmPersonalDtlsForm" height="16" align="center" src="../includes/images/lov.jpg"  property="butAccSite" onclick="return ShowAccSite(0)" /></td>              
                            <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetailsJoinInf.costCentre" /></td>
                            <td><html:text  property="costCentre"   name="HrmPersJoin"  alt="N" titleKey="hrm.HrmEmpPersonalDetailsJoinInf.costCentre" size="23" styleClass="optional" onchange="doChangeDetail(0)" readonly="true" /><enrgise:img name="HrmPersonalDtlsForm" height="16" align="center" src="../includes/images/lov.jpg"  property="butCostCentre"   onclick="return ShowCostCentre(0)" /></td>              
                            <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetailsJoinInf.separationType" /></td>
                            <td><html:text  property="separationType"    name="HrmPersJoin"  alt="A" titleKey="hrm.HrmEmpPersonalDetailsJoinInf.separationType" size="23" styleClass="optional" onchange="doChangeDetail(0)" readonly="true" /><enrgise:img name="HrmPersonalDtlsForm" height="16" align="center" src="../includes/images/lov.jpg"  property="butSeparationType"   onclick="return ShowSeparationType(0)" /></td>              
                            
                       </tr> 
                       
                       
                       <TR>
                                <TD class=subHeader colspan=6>Job Responsibility</TD>
                         </TR>
                         <TR>
                                 <TD colspan=6 bgColor=#4682b4><IMG height=1 src="../includes/images/pixel.gif" width=1 border=0></TD>
                         </TR>
                         <tr> 
                              <td></td>
                              <td></td>
                              <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetailsJoinInf.responsibility" /></td>
                              <td><html:text  property="jobResp"   name="HrmPersJoin"  alt="A" titleKey="hrm.HrmEmpPersonalDetailsJoinInf.responsibility" size="23" styleClass="optional" onchange="doChangeDetail(0);" readonly="true" /><enrgise:img name="HrmPersJoin" height="16" align="center" src="../includes/images/lov.jpg"  property="butjobResp"   onclick="return ShowJobResp(0)" /></td>              
                              
                              <td></td>
                              <td></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><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="HrmEmpPersJoinInf" />
<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" />
<html:hidden property="detailDataChanged" name="HrmPersonalDtlsForm" value="true"/>

<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 doValidate()
{
  return "HrmPersDtlsJoinValidateAction.do"
}
function doDraftSave()
{
 document.getElementsByName("draftSave")[0].value="true";
 return doBaseSave();
}
function doChangeHeader()
{
 document.getElementsByName("headerDataChanged")[0].value="true"; 
 //HrmPersonalDtlsForm.headerDataChanged.value="true";
}

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


function doInsertMode()
{

  return "HrmPersDtlsJoinNewModeAction.do";
}


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

function doSave()
{
  document.forms[0].detailDataChanged[0].value="true";
  return "HrmPersDtlsJoinSaveAction.do";
  
}

function doDelete()
{

  return "HrmPersDtlsJoinDeleteAction.do";
  
}

function doRefresh()
{

  return "HrmPersDtlsJoinRefreshAction.do";
  
}

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

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

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

function doGetDetail()
{
 
  return "HrmPersDtlsJoinGetDetailAction.do";
}
function doExit()
{
 
  return "HrmPersDtlsJoinExitAction.do";
}

function doAddRow()
{

  return "HrmPersDtlsJoinAddRowAction.do"; 
}

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

function doGetDetailTableName()
{
  return "HrmPersDtlsJoinBatch";
}

function doPrevDetail()
{

  return "HrmPersDtlsJoinGetDetailPageAction.do";  
}

function doNextDetail()
{

  return "HrmPersDtlsJoinGetDetailPageAction.do";
}

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


function doGetInsertData()
{

}
function doOnChangeLov(lovKey)
{
  if(lovKey=="PersDtlsEmpStat" + document.forms[0].screenName.value + document.forms[0].screenMode.value)
  {
    doBaseValidate();
  }
}



function ShowEmployeeNo()
{
        document.forms[0].queryParam.value ="employeeId="+ document.forms[0].empId.value ;
        document.forms[0].lovKey.value = "PersDtlsJoinInfEmpNo" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmEmpPersonalDetailsJoinInf.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;   
}

function ShowBaseSite(i)
{
        document.forms[0].lovKey.value = "PersDtlsJoinBaseSite" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmEmpPersonalDetailsJoinInf.siteCode,hrm.HrmEmpPersonalDetailsJoinInf.siteName";
        document.forms[0].txtIndex.value = i;
        document.forms[0].txtDisplayFields.value = "baseSiteId,baseSite,placeOfInitialPosting";
        document.forms[0].multipleFlag.value = "false";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmPersonalDtlsForm');
        return true;   
}

function ShowEntryMode(i)
{
        document.forms[0].lovKey.value = "PersDtlsJoinEntry" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmEmpPersonalDetailsJoinInf.code";
        document.forms[0].txtIndex.value = i;
        document.forms[0].txtDisplayFields.value = "entryModeId,entryModeCode,entryMode";
        document.forms[0].multipleFlag.value = "false";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmPersonalDtlsForm');
        return true;    
}

function ShowEmployeeStatus(i)
{
        document.forms[0].lovKey.value = "PersDtlsEmpStat" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmEmpPersonalDetailsJoinInf.code,hrm.HrmEmpPersonalDetailsJoinInf.description";
        document.forms[0].txtIndex.value = i;
        document.forms[0].txtDisplayFields.value = "empStatId,employeeStatusCode,employeeStatus";
        document.forms[0].multipleFlag.value = "false";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmPersonalDtlsForm');
        return true;  
}

function ShowSeparationType(i)
{
        document.forms[0].lovKey.value = "PersDtlsSepType" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmEmpPersonalDetailsJoinInf.separationCode,hrm.HrmEmpPersonalDetailsJoinInf.description";
        document.forms[0].txtIndex.value = i;
        document.forms[0].txtDisplayFields.value = "separationId,sepCode,separationType";
        document.forms[0].multipleFlag.value = "false";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmPersonalDtlsForm');
        return true;
}


function ShowCostCentre(i)
{
        document.forms[0].lovKey.value = "PersDtlsCostCentre" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmEmpPersonalDetailsJoinInf.costCode,hrm.HrmEmpPersonalDetailsJoinInf.description";
        document.forms[0].txtIndex.value = i;
        document.forms[0].txtDisplayFields.value = "costId,costCode,costCentre";
        document.forms[0].multipleFlag.value = "false";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmPersonalDtlsForm');
        return true;
        
}

function ShowAccSite(i)
{
        document.forms[0].lovKey.value = "PersDtlsJoinBaseSite" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmEmpPersonalDetailsJoinInf.siteCode,hrm.HrmEmpPersonalDetailsJoinInf.siteName";
        document.forms[0].txtIndex.value = i;
        document.forms[0].txtDisplayFields.value = "accSiteId,accSite,accountingSite";
        document.forms[0].multipleFlag.value = "false";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmPersonalDtlsForm');
        return true;
}

function ShowJobResp(i)
{
        document.forms[0].lovKey.value = "PersDtlsJobResp" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmEmpPersonalDetailsJoinInf.responsibility";
        document.forms[0].txtIndex.value = i;
        document.forms[0].txtDisplayFields.value = "jobRespId,jobResp";
        document.forms[0].multipleFlag.value = "false";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmPersonalDtlsForm');
        return true;
}

function ShowBank(i)
{
        document.forms[0].lovKey.value = "PersDtlsBank" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmEmpPersonalDetailsJoinInf.searchBankCode,hrm.HrmEmpPersonalDetailsJoinInf.searchBranchName";
        document.forms[0].txtIndex.value = i;
        document.forms[0].txtDisplayFields.value = "bankId,bankCode,bankName,branchName";
        document.forms[0].multipleFlag.value = "false";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmPersonalDtlsForm');
        return true;
}

</script>    