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

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

<html:form  action="HrmTCMstBaseAction" name="HrmRecTestCentreMstForm" type="wenrgise.hrms.webtier.form.HrmRecTestCentreMstForm">
<bean:define id="ParentForm" name="HrmRecTestCentreMstForm" 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.HrmTestCentreMaster.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 -->
<!--container table starts -->

<TABLE cellSpacing=0 cellPadding=0 border=0 >
<TBODY>
  <TR>
    <TD colspan="4">
        
      <!-- Body table Starts -->
      <TABLE cellSpacing=0 cellPadding=0 border=0>
               <!--Query Row Starts -->
               <TR>
                     <td   class="subHeader">Test Centre Details</td>
               </TR>
                <tr>
                    <td bgcolor="#4682B4"  align="right"  colspan=6 ><img src="../includes/images/pixel.gif" width="100%" height="1" border="0"></td>
                </tr>
                <tr>
                <td>
                <TABLE  cellspacing="0" cellpadding="0" border=0>
                <tr>
                    <td class="labelText"><bean:message key="hrm.HrmTestCentreMaster.testCentreCode" /></td>
                    <td colspan="3"><enrgise:text name="HrmRecTestCentreMstForm" property="testCentreCode" size="23" styleClass="required" disabledClass="locked" titleKey="hrm.HrmTestCentreMaster.testCentreCode" onchange="doChangeHeader();" /><enrgise:img height="16" align="center" styleClass="icon" src="../includes/images/lov.jpg" name="HrmRecTestCentreMstForm" property="butTestCentreCode" onclick="return ShowTCMstCode()" />
                                    <enrgise:text name="HrmRecTestCentreMstForm" property="testCentreName" maxlength="255" size="89" styleClass="locked" disabledClass="locked" readonly="true" alt="A" titleKey="hrm.HrmTestCentreMaster.testCentreName" onchange="doChangeHeader();" /></td>
                    <td colspan="2"></td>
                </tr>
                
                
              <tr>
                   <td class="labelText"><bean:message key="hrm.HrmTestCentreMaster.phone" /></td>
                   <td><enrgise:text name="HrmRecTestCentreMstForm"  onkeydown="isInteger(event)" maxlength="11" property="phone" size="26" styleClass="optional" disabledClass="locked" alt="N" titleKey="hrm.HrmTestCentreMaster.phone" onchange="doChangeHeader();" /></td>
                   <td class="labelText" ><bean:message  key="hrm.HrmTestCentreMaster.fax" /></td>
                   <td><enrgise:text name="HrmRecTestCentreMstForm" onkeydown="isInteger(event)" maxlength="11" property="fax" size="23" styleClass="optional" disabledClass="locked" alt="N" titleKey="hrm.HrmTestCentreMaster.fax" onchange="doChangeHeader();" /></td>
                   <td></td>
                   <td></td>
              </tr>     
                   
              
              <tr>
                   <td class="labelText"><bean:message key="hrm.HrmTestCentreMaster.address" /></td>
                   <td colspan="5"><enrgise:textarea name="HrmRecTestCentreMstForm" property="address" cols="28" rows="2" styleClass="required" disabledClass="locked" titleKey="hrm.HrmTestCentreMaster.address" onchange="doChangeHeader();" /></td>
                  
            </tr>
              <tr height="10">
                  <td colspan="6"></td>
              </tr>               
              </table>
                </td>
               </tr>
               
                       
                
           </table>
        
           </td>
           </tr>
        
        
        
        
        
       
 <!-- Bottom Blue Bar -->
             <TR>
            <td>
              <TABLE  cellspacing="0" cellpadding="0" border=0>
                     <tr>
                        <td colspan="5" 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 -->
<!-- These four hidden fields must be present in pages where there is a detail part -->
<html:hidden  property="screenName" value="HrmTestCentreMaster" />
<html:hidden  property="forwardedPage" />
<html:hidden  property="positionRequested"  />
<html:hidden  property="screenMode"  />
<html:hidden property="headerPrimaryKey" name="HrmRecTestCentreMstForm"   />
<html:hidden property="headerDataChanged" name="HrmRecTestCentreMstForm" />
<html:hidden property="firstLoad" name="HrmRecTestCentreMstForm"   />
<html:hidden property="userPageRequested" />
<html:hidden property="userPositionRequested"  />
<html:hidden property="pageRequested" />

<!-- Hidden Header LOV  -->
<html:hidden property="lovKey" name="HrmRecTestCentreMstForm"  />
<html:hidden property="txtSearchFields" name="HrmRecTestCentreMstForm"  />
<html:hidden property="txtDisplayFields" name="HrmRecTestCentreMstForm"  />
<html:hidden property="txtIndex" name="HrmRecTestCentreMstForm"  />

<html:hidden property="testCentreCodeId" name="HrmRecTestCentreMstForm" />

</html:form>
</body>
</html:html>
<script>
function doQueryMode()
{

  return "HrmTCMstQueryModeAction.do";
}


function doInsertMode()
{

  return "HrmTCMstNewModeAction.do";
}


function doExecute()
{

  return "HrmTCMstGetHeaderAction.do";
}

function doSave()
{

  return "HrmTCMstSaveAction.do";
  
}

function doDelete()
{

  return "HrmTCMstDeleteAction.do";
  
}

function doRefresh()
{

  return "HrmTCMstRefreshAction.do";
  
}

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

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

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

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

function doAddRow()
{

  return "HrmTCMstAddRowAction.do"; 
}

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

function doGetDetailTableName()
{
  return "tableName";
}

function doPrevDetail()
{

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

  return "HrmTCMstExitAction.do";  
}
function doNextDetail()
{

  return "HrmTCMstGetDetailPageAction.do";
}

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








function ShowTCMstCode()
{
        document.forms[0].lovKey.value = "HrmTCMstCode" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmTestCentreMaster.testCentreCode,hrm.HrmTestCentreMaster.testCentreName";
        document.forms[0].txtDisplayFields.value = "testCentreCodeId,testCentreCode,testCentreName";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmRecTestCentreMstForm');
        return true;
       
}
function doGetInsertData()
{}


</script>


