<%@ 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  action="HrmOrgSkillMstBaseAction" name="HrmOrgSkillMstForm" type="wenrgise.hrms.webtier.form.HrmOrgSkillMstForm">
<bean:define id="ParentForm" name="HrmOrgSkillMstForm" toScope="request" />
<jsp:include page="GenIconMenu.jsp" flush="true" />
<html:hidden property="detailDataChanged" name="HrmOrgSkillMstForm" />
<html:hidden property="headerDataChanged" name="HrmOrgSkillMstForm" />


<!--Top Most Blue Bar-->
<TABLE cellSpacing=0 bgColor=#bdd0ef>
    <tr>
        <TD  colSpan=12 class=mainHeader ><bean:message  key="hrm.HrmSkillMaster.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 >
        <!--Inspection Header Starts -->
            <TR>
                  <TD class=subHeader colspan=6>Skill Header</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.HrmSkillMaster.skillTypeCode" /></td>
                  <td><enrgise:text  property="skillTypeCode" titleKey="hrm.HrmSkillMaster.skillTypeCode" alt="AN" maxlength="20" size="23" styleClass="required" disabledClass="locked" name="HrmOrgSkillMstForm" onchange="doChangeHeader();" /><enrgise:img height="16" align="center" src="../includes/images/lov.jpg" styleClass="icon" name="HrmOrgSkillMstForm"  property="butSkillTypeCode" onclick="return ShowSkillCode()" /></td>
                  <td class="labelText"><bean:message key="hrm.HrmSkillMaster.skillTypeName" /> </td>
                  <td colspan="3"><enrgise:text  property="skillTypeName"  titleKey="hrm.HrmSkillMaster.skillTypeName" alt="AN" maxlength="40" size="55" styleClass="required" disabledClass="locked" name="HrmOrgSkillMstForm" onchange="doChangeHeader();" /></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>
            <!-- Tab Table Starts -->
            <TABLE cellSpacing=0 cellPadding=0 >
            <tr>                                             
                          <td bgcolor="#4682B4" width="10"><img src="../includes/images/pixel.gif" width="10" height="1" border="0"></td>
                          <td bgcolor="#4682B4" nowrap class=actTabText >Skill Details<img src="../includes/images/pixel.gif" width="10" height="1" border="0"></td>
                          <TD><IMG height=19  src="../includes/images/formtab_r.gif" width=10  border=0></TD>                              
                          <TD width="100%" background="../includes/images/line_t.gif">&nbsp;</TD>
                          <TD background="../includes/images/line_t.gif"><IMG height=1 src="../includes/images/pixel.gif" width=10 border=0></TD>
            </tr>
              <TR >
              
            <!-- Detail table Container starts -->
              <TD colSpan=6>
              <TABLE cellSpacing=0 cellPadding=0 border=0>
                <TBODY>
                 <TR>
                  <TD >
                  <DIV id=divDtlTable style="height:200px">
                    <TABLE  border="0" cellSpacing=0 cellPadding=0>
                     <TBODY>
                          <tr>
                              <TD class=tableHeader width="1%"><input type="checkbox" name="selectAll"  onclick="toggleCheckBox('checked')"  /></TD>
                              <TD class=tableHeader><bean:message key="hrm.HrmSkillMaster.txtSkillCode" /></td>   
                              <TD class=tableHeader><bean:message key="hrm.HrmSkillMaster.txtSkillName" /></td>                                
                          </tr> 
                          <logic:notEmpty name="HrmOrgSkillMstForm" property="arrHrmSkillDtl" >
                            <logic:iterate id="HrmSkill" name="HrmOrgSkillMstForm" property="arrHrmSkillDtl" type="wenrgise.hrms.bean.HrmOrgSkillMstDtlBean" indexId="idx" >
                                         <logic:notEqual name="HrmSkill" property="status" value="D" >
                                            <tr>
                                              <td width="1%"><html:hidden property="status"  name="HrmSkill" /><html:hidden property="detailId"  name="HrmSkill"  /><html:hidden property="itemChecked"  name="HrmSkill"  /><html:checkbox property="checked"  name="HrmOrgSkillMstForm" alt="<%=idx.toString()%>" onclick="boxClicked(this.alt);" onchange="doChangeDetail(this.alt);" /></td>
                                              <TD class=tableText ><enrgise:text property="txtSkillCode" name="HrmSkill" maxlength="20" style="width:100%" styleClass="required" disabledClass="locked" formName="HrmOrgSkillMstForm" alt="<%=idx.toString()%>" onchange="doChangeDetail(this.alt);" /></td>   
                                              <TD class=tableText><enrgise:text property="txtSkillName" name="HrmSkill" maxlength="40" style="width:100%" styleClass="required" disabledClass="locked" formName="HrmOrgSkillMstForm" alt="<%=idx.toString()%>" onchange="doChangeDetail(this.alt);" /></td>                                
                                                <html:hidden property="txtHourlyRate" name="HrmSkill" /><html:hidden property="txtOtRate" name="HrmSkill" />  
                                              </tr>
                          
                                        </logic:notEqual>
                                        <logic:equal name="HrmSkill" property="status" value="D"  >
                                             <tr>
                                              <td width="1%"><html:hidden property="status"  name="HrmSkill" /><html:hidden property="detailId"  name="HrmSkill"  /><html:hidden property="itemChecked"  name="HrmSkill"  /><html:checkbox property="checked" value="check" disabled="true"  name="HrmOrgSkillMstForm"  /></td>
                                              <TD class=tableText ><html:text property="txtSkillCode" name="HrmSkill" maxlength="20" style="width:100%" readonly="true"  styleClass="deletedRow"  /></td>   
                                              <TD class=tableText><html:text property="txtSkillName" name="HrmSkill" maxlength="40" style="width:100%" readonly="true" styleClass="deletedRow" /></td>                                
                                                <html:hidden property="txtHourlyRate" name="HrmSkill" /><html:hidden property="txtOtRate" name="HrmSkill" />  
                                              </tr>
                                        </logic:equal>
                          </logic:iterate>
                        </logic:notEmpty>
                        
                      </TBODY>
                      </TABLE>
                      </DIV>
                      </TD>
                    </TR>
               <tr>
                <td>	
                <jsp:include page="GenDetailMenu.jsp" flush="true" />
		            </TD>
		        </tr>
        </TABLE>
      </td>
     </tr>
  </TABLE>
</td>
</tr>
              <!-- Tab Table Ends -->

      <!-- 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-->
    
</TBODY>
</TABLE>
<html:hidden name="HrmOrgSkillMstForm"  property="screenMode" />
<html:hidden name="HrmOrgSkillMstForm"  property="screenName" value="HrmOrgSkillMst" />
<html:hidden name="HrmOrgSkillMstForm"  property="forwardedPage" />
<html:hidden property="positionRequested" name="HrmOrgSkillMstForm" />
<html:hidden property="headerPrimaryKey" name="HrmOrgSkillMstForm"  />

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

<!-- Hidden Fields for LOV -->
<html:hidden property="lovKey" name="HrmOrgSkillMstForm"  />
<html:hidden property="txtSearchFields" name="HrmOrgSkillMstForm"  />
<html:hidden property="txtDisplayFields" name="HrmOrgSkillMstForm"  />
<html:hidden property="txtIndex" name="HrmOrgSkillMstForm"  />
<input type="hidden" name="multipleFlag" >
<input type="hidden" name="queryParam" >


<html:hidden property="skillCodeID" name="HrmOrgSkillMstForm"  />

<!-- Container Table Ends -->

</html:form>
</body>
</html:html>
<script>
function doChangeHeader()
{
  
  document.forms[0].headerDataChanged.value="true";
}
function doQueryMode()
{

  return "HrmOrgSkillMstQueryModeAction.do";
}


function doInsertMode()
{

  return "HrmOrgSkillMstNewModeAction.do";
}


function doExecute()
{

  return "HrmOrgSkillMstGetHeaderAction.do";
}

function doSave()
{

  return "HrmOrgSkillMstSaveAction.do";
  
}

function doDelete()
{

  return "HrmOrgSkillMstDeleteAction.do";
  
}

function doRefresh()
{

  return "HrmOrgSkillMstRefreshAction.do";
  
}

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

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

function doJumpHeader()
{
  return "HrmOrgSkillMstGetNextHeaderAction.do"; 
}
function doExit()
{
  return "HrmOrgSkillMstExitAction.do"; 
}

function doGetDetail()
{

  return "HrmOrgSkillMstGetDetailAction.do";
}

function doAddRow()
{

  return "HrmOrgSkillMstAddRowAction.do"; 
}

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

function doGetDetailTableName()
{
  return "tableName";
}

function doPrevDetail()
{

  return "HrmOrgSkillMstGetDetailPageAction.do";  
}

function doNextDetail()
{

  return "HrmOrgSkillMstGetDetailPageAction.do";
}

function doJumpDetail()
{
  return  "HrmOrgSkillMstGetDetailPageAction.do"; 
}
function ShowSkillCode()
{
        document.forms[0].lovKey.value = "HrmSkillTypeCode" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmSkillMaster.skillTypeCode,hrm.HrmSkillMaster.skillTypeName";
        document.forms[0].txtDisplayFields.value = "skillCodeID,skillTypeCode,skillTypeName";
        document.forms[0].multipleFlag.value = "false";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmOrgSkillMstForm');
        return true;
       
}
function doGetInsertData()
{}
function boxClicked(val)
{    
    if(document.getElementsByName("checked")[val].checked)
    {      
      document.getElementsByName("itemChecked")[val].value = "Y";      
    }
    else
    {     
      document.getElementsByName("itemChecked")[val].value = "N";     
    }      
}

</script>
                
              
              
              
              
              
              
              
              
              