<%@ 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 onkeydown="hotKeys(event);" scroll=auto>

<html:form name="HrmTrngFacMstForm" action="HrmFacMstBaseAction" type="wenrgise.hrms.webtier.form.HrmTrngFacMstForm">
<bean:define id="ParentForm" name="HrmTrngFacMstForm" 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.HrmFacMst.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 >
        <!-- Header Starts -->
            <TR>
                  <TD class=subHeader colspan=6><bean:message  key="hrm.HrmFacMst.subHeaderr" /></TD>
            </TR>
            <TR>
                  <TD colspan=7 bgColor=#4682b4><IMG height=1 src="../includes/images/pixel.gif" width=1 border=0></TD>
            </TR>
            <tr>
                 <td class="labelText"><bean:message key="hrm.HrmFacMst.facultyType" /></td>
                 <td><enrgise:select property="facultyType" name="HrmTrngFacMstForm" alt="facultyType"  styleClass="required" disabledClass="required" onchange="doChangeHeader();doBaseValidate(); " >
                    <enrgise:option value="" ><bean:message   key="hrm.pleaseSelect" /></enrgise:option>      
                    <enrgise:option value="E" > <bean:message key="hrm.HrmFacMst.external" /></enrgise:option>
                    <enrgise:option value="I" > <bean:message key="hrm.HrmFacMst.internal" /></enrgise:option>
                  </enrgise:select></td> 
                 
                 <td class="labelText"><bean:message key="hrm.HrmFacMst.employeeNo" /></td>
                 <td ><html:text  property="employeeNo" name="HrmTrngFacMstForm" titleKey="hrm.HrmFacMst.employeeNo" onkeypress="isInteger(event)" maxlength="10" size="23" styleClass="required" readonly="true" onchange="doChangeHeader()" /><enrgise:img height="16" align="center" styleClass="icon" name="HrmTrngFacMstForm" src="../includes/images/lov.jpg" property="butEmployeeNo" onclick=" return ShowEmpNo()" /></td>
                 
            </tr>
            <tr>
                <td class="labelText"><bean:message key="hrm.HrmFacMst.baseInstitution"  /></td>
                <td  colspan="3"><html:text  property="baseInstitution" name="HrmTrngFacMstForm" titleKey="hrm.HrmFacMst.baseInstitution" maxlength="10" size="23" styleClass="required" readonly="true" onchange="doChangeHeader()" /><enrgise:img height="16" align="center" styleClass="icon" name="HrmTrngFacMstForm" src="../includes/images/lov.jpg" property="butBaseInstitution" onclick=" return ShowBaseInst()" />
                <html:text  property="institutionName"  maxlength="10" size="72" styleClass="locked" readonly="true" /></td>
             </tr>
             <tr>
                  <td class="labelText"><bean:message key="hrm.HrmFacMst.employeeName" /></td>
                  <td colspan="3"><enrgise:text property="firstName" maxlength="20" name="HrmTrngFacMstForm" titleKey="hrm.HrmFacMst.firstName" onkeypress="isName(event)" size="26" styleClass="required" disabledClass="locked" onchange="doChangeHeader()" /><enrgise:text property="middleName" maxlength="20" name="HrmTrngFacMstForm" titleKey="hrm.HrmFacMst.middleName" onkeypress="isName(event)" size="15" styleClass="optional" disabledClass="locked" onchange="doChangeHeader()" /><enrgise:text property="lastName" maxlength="20" name="HrmTrngFacMstForm" titleKey="hrm.HrmFacMst.lastName" onkeypress="isName(event)" size="22" styleClass="required" disabledClass="locked" onchange="doChangeHeader()" /></td>
                     
           
        <!--   <tr>
                  <td class="labelText"><bean:message key="hrm.HrmFacMst.firstName" /></td>
                  <td><enrgise:text property="firstName" maxlength="20" name="HrmTrngFacMstForm" titleKey="hrm.HrmFacMst.firstName" onkeypress="isName(event)" size="26" styleClass="required" disabledClass="locked" onchange="doChangeHeader()" /></td>
                  <td class="labelText"><bean:message key="hrm.HrmFacMst.middleName" /></td>
                  <td><enrgise:text property="middleName" maxlength="20" name="HrmTrngFacMstForm" titleKey="hrm.HrmFacMst.middleName" onkeypress="isName(event)" size="26" styleClass="optional" disabledClass="locked" onchange="doChangeHeader()" /></td>
                  <td class="labelText"><bean:message key="hrm.HrmFacMst.lastName" /></td>
                  <td><enrgise:text property="lastName" maxlength="20" name="HrmTrngFacMstForm" titleKey="hrm.HrmFacMst.lastName" onkeypress="isName(event)" size="26" styleClass="required" disabledClass="locked" onchange="doChangeHeader()" /></td>

          </tr>-->
          
        
               <td class="labelText"><bean:message key="hrm.HrmFacMst.experience" /></td>
                <td><enrgise:text property="experience" maxlength="2" name="HrmTrngFacMstForm" titleKey="hrm.HrmFacMst.experience" onkeypress="isNumber(event)" size="12" styleClass="optional" disabledClass="locked" onchange="doChangeHeader()" />&nbsp Years</td>
               
            </tr>
          
          


           <tr height="10">
                  <td colspan="6"></td>
            </tr>
        </table>
      
      
     <table cellspacing=0 cellpadding=0 border=0>
         <!-- Detail Information Row starts -->
 	 
<!-- Bottom Blue Bar -->
       <TR>
            <td>
              <TABLE  cellspacing="0" cellpadding="0" border=0>
                    <tr>
                        <td width=40% align=center bgColor=#4682b4></td>
                        <td  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 -->
<html:hidden name="HrmTrngFacMstForm" property="screenName" value="HrmTrngFacMst" />
<html:hidden name="HrmTrngFacMstForm" property="forwardedPage" />
<html:hidden name="HrmTrngFacMstForm" property="positionRequested"  />
<html:hidden name="HrmTrngFacMstForm" property="screenMode" />

<html:hidden property="userPageRequested" name="HrmTrngFacMstForm" />
<html:hidden property="userPositionRequested" name="HrmTrngFacMstForm" />
<html:hidden property="pageRequested" name="HrmTrngFacMstForm" />
<html:hidden property="headerDataChanged" name="HrmTrngFacMstForm" />

<html:hidden property="lovKey" name="HrmTrngFacMstForm"  />
<html:hidden property="txtSearchFields" name="HrmTrngFacMstForm"  />
<html:hidden property="txtDisplayFields" name="HrmTrngFacMstForm"  />
<html:hidden property="txtIndex" name="HrmTrngFacMstForm"  />

<html:hidden property="trgFacMstEmpId" name="HrmTrngFacMstForm"  />
<html:hidden property="trgFacMstInstCode" name="HrmTrngFacMstForm"  />




<html:hidden property="headerPrimaryKey" name="HrmTrngFacMstForm"  />

<input type="hidden" name="multipleFlag" >
<input type="hidden" name="queryParam" >



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

function doChangeHeader()
{
 if(document.forms[0].screenMode.value=="U" || document.forms[0].screenMode.value=="N")
 document.forms[0].headerDataChanged.value="true";
}
function doValidate()
{
 return "HrmFacMasterValidateAction.do"; 
 
}
function doQueryMode()
{
 
  return "HrmFacMasterQueryModeAction.do";
}


function doInsertMode()
{

  return "HrmFacMasterNewModeAction.do";
}


function doExecute()
{

  return "HrmFacMasterGetHeaderAction.do";
}

function doSave()
{
  return "HrmFacMasterSaveAction.do";
  
}

function doDelete()
{

  return "HrmFacMasterDeleteAction.do";
  
}

function doRefresh()
{

  return "HrmFacMasterRefreshAction.do";
  
}

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

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

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

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

function doAddRow()
{

  return "HrmFacMasterAddRowAction.do"; 
}

function doDelRow()
{
 return "HrmFacMasterDeleteRowAction.do";  
}
function doExit()
{
 return "HrmFacMasterExitAction.do";  
}
function doGetDetailTableName()
{
  return "HrmFacMaster";
}

function doPrevDetail()
{

  return "HrmFacMasterGetDetailPageAction.do";  
}

function doNextDetail()
{

  return "HrmFacMasterGetDetailPageAction.do";
}

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

 
function ShowEmpNo()
{
      document.forms[0].lovKey.value = "TrgFacMstEmpNo" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
      document.forms[0].txtSearchFields.value = "hrm.HrmFacMst.employeeNo,hrm.HrmFacMst.employeeName";
      document.forms[0].txtDisplayFields.value = "trgFacMstEmpId,employeeNo,firstName,middleName,lastName";
      document.forms[0].multipleFlag.value="false";
      showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmTrngFacMstForm');
      return true;
}
function ShowBaseInst()
{
      document.forms[0].lovKey.value = "TrgFacMstBaseInst" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
      document.forms[0].txtSearchFields.value = "hrm.HrmFacMst.baseInstitution,hrm.HrmFacMst.instituteName";
      document.forms[0].txtDisplayFields.value = "trgFacMstInstCode,baseInstitution,institutionName";
      document.forms[0].multipleFlag.value="false";
      document.forms[0].queryParam.value="facultyType="+document.forms[0].facultyType.value;
      showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmTrngFacMstForm');
      return true;
} 
function doOnChangeLov(lovKey)
{
  if(lovKey=="TrgFacMstBaseInst" + document.forms[0].screenName.value + document.forms[0].screenMode.value) {
    document.forms[0].headerDataChanged.value="false";
  }
}
</script>