<%@ 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" />
    <meta http-equiv=pragma content=no-cache>
</HEAD>

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

<html:form name="HrmOrgQualMstForm" action="HrmOrgQualMstBaseAction" type="wenrgise.hrms.webtier.form.HrmOrgQualMstForm">
<bean:define id="ParentForm" name="HrmOrgQualMstForm" 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()" /><img  property="butInsert" src="../includes/images/insert_dis.jpg" /></TD>
    <TD width="2%"></TD>
    <TD ><img property="butExecute" src="../includes/images/execute_dis.jpg" /><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()" />
    <img  property="butDelete" src="../includes/images/delete_dis.jpg" /><img 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" onclick="doBaseExit()" onmouseover='this.src="../includes/images/exit_act.jpg"' onmouseout='this.src="../includes/images/exit.jpg"' alt="Exit (Alt+X)"  src="../includes/images/exit.jpg" /><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" /></TD>
    <TD width="50%"></TD>
    <TD ><img property="butPrevHeader" src="../includes/images/butn_prev_dis.jpg" /></td>
    <td class=dtlNavText><bean:write  name="left" /> of 
    <bean:write name="right" /></td>
    <td align=right><img property="butNextHeader" src="../includes/images/butn_next_dis.jpg"  /></td>
    <td align=right><html:text property="newPositionRequested" size="1" onkeydown="isInteger(event)" title=" " alt="N" /></td>
    <td ><img property="butJumpHeader" alt="Go (Ctrl+G)" src="../includes/images/go.jpg"  /></td>
    <td > </td>
</TR>
</TABLE>
<table>
<tr>
  <td colspan="11" class="userText"></td>
</tr>
<enrgise:checkSession/>
</TABLE>

<html:hidden property="detailDataChanged" name="HrmOrgQualMstForm" />


<!--Top Most Blue Bar-->
<TABLE cellSpacing=0 bgColor=#bdd0ef>
    <tr>
        <TD  colSpan=12 class=mainHeader ><bean:message  key="hrm.HrmQualificationMaster.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 border=0>
          <!-- Detail Information Row starts -->
          <TR>
            <TD colspan=6>
            <TABLE cellSpacing=0 cellPadding=0 >
              <TR>
                <TD width=10 bgColor=#4682b4><IMG height=1 src="../includes/images/pixel.gif" width=10 border=0></TD>
                <TD class=actTabText noWrap bgColor=#4682b4><bean:message key="hrm.HrmQualificationMaster.detail" /><IMG height=1 src="../includes/images/pixel.gif" width=10 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>
              <!-- Detail table Container starts -->
              <TD colSpan=6>
              <TABLE cellSpacing=0 cellPadding=0 border=0>
                <TBODY>
                 <TR>
                  <TD >
                  <DIV id=divDtlTable style="height:300px">
                    <TABLE  border="0" cellSpacing=0 cellPadding=0>
                     <TBODY>
                        <tr>
                          <TD class=tableHeader><input type="checkbox" name="selectAll"  onclick="toggleCheckBox('checked')"  /></td>
                          <td class=tableHeader ><bean:message key="hrm.HrmQualificationMaster.txtCode" /></td>
                          <TD class=tableHeader><bean:message  key="hrm.HrmQualificationMaster.txtQualification" /></td>
                          <TD class=tableHeader ><bean:message  key="hrm.HrmQualificationMaster.txtNoOfYears" /></td>
                          <TD class=tableHeader><bean:message  key="hrm.HrmQualificationMaster.txtApprovingAuthority" /></td>
            
                       </tr>  
                       <logic:notEmpty name="HrmOrgQualMstForm" property="arrHrmQualificationDtl" >
                            <logic:iterate id="HrmQualification" name="HrmOrgQualMstForm" property="arrHrmQualificationDtl" type="wenrgise.hrms.bean.HrmOrgQualMstDtlBean" indexId="idx" >
                                           <logic:notEqual name="HrmQualification" property="status" value="D" > 
                                            <tr>
                                              <td class=tableText><html:hidden property="status"  name="HrmQualification" /><html:hidden property="detailId"  name="HrmQualification"  /><html:hidden property="itemChecked" name="HrmQualification" /><html:checkbox property="checked"  name="HrmOrgQualMstForm" alt="<%=idx.toString()%>" onclick="boxClicked(this.alt);" onchange="doChangeDetail(this.alt);" /></td>
                                              <TD class=tableText ><enrgise:text property="txtCode" name="HrmQualification" maxlength="20" style="width:100%" styleClass="required" disabledClass="locked" alt="<%=idx.toString()%>" onchange="doChangeDetail(this.alt);" /></td>   
                                              <TD class=tableText ><enrgise:text property="txtQualification" name="HrmQualification" maxlength="40" style="width:100%" styleClass="required" disabledClass="locked" alt="<%=idx.toString()%>" onchange="doChangeDetail(this.alt);" onmouseover="this.title=this.value" /></td>   
                                              <TD class=tableText ><enrgise:text property="txtNoOfYears" name="HrmQualification" maxlength="2" style="width:100%" styleClass="optional" disabledClass="locked" alt="<%=idx.toString()%>" onkeypress="isInteger(event);" onchange="doChangeDetail(this.alt);" /></td>   
                                              <TD class=tableText ><enrgise:text property="txtApprovingAuthority" name="HrmQualification" maxlength="40" style="width:100%" styleClass="optional" disabledClass="locked" alt="<%=idx.toString()%>" onchange="doChangeDetail(this.alt);" /></td>   
                                            </logic:notEqual>
                                            <logic:equal name="HrmQualification" property="status" value="D"  >
                                               <tr>
                                              <td class=tableText><html:hidden property="status"  name="HrmQualification" /><html:hidden property="detailId"  name="HrmQualification"  /><html:hidden property="itemChecked" name="HrmQualification" /><html:checkbox property="checked" value="check" disabled="true" name="HrmOrgQualMstForm" alt="<%=idx.toString()%>" onclick="boxClicked(this.alt);" /></td>
                                              <TD class=tableText ><enrgise:text property="txtCode" name="HrmQualification" maxlength="20" style="width:100%" styleClass="deletedRow" disabledClass="locked" alt="<%=idx.toString()%>" onchange="doChangeDetail(this.alt);" /></td>   
                                              <TD class=tableText ><enrgise:text property="txtQualification" name="HrmQualification" maxlength="50" style="width:100%" styleClass="deletedRow" disabledClass="locked" alt="<%=idx.toString()%>" onchange="doChangeDetail(this.alt);" /></td>   
                                              <TD class=tableText ><enrgise:text property="txtNoOfYears" name="HrmQualification" maxlength="4" style="width:100%" styleClass="deletedRow" disabledClass="locked" alt="<%=idx.toString()%>" onchange="doChangeDetail(this.alt);" /></td>   
                                              <TD class=tableText ><enrgise:text property="txtApprovingAuthority" name="HrmQualification" maxlength="40" style="width:100%" styleClass="deletedRow" disabledClass="locked" alt="<%=idx.toString()%>" onchange="doChangeDetail(this.alt);" /></td>   
                                            </tr>
                                            </logic:equal>
                             </logic:iterate>
                        </logic:notEmpty>
                      </TBODY>
                      </TABLE>
                      </DIV>
                      </TD>
                    </TR>
               <tr>
                <td>	
                     <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"  onclick="doBaseAddRow()" property="butAddRow"  styleClass="bottomBarText">&nbsp;&nbsp;Add&nbsp;<u>R</u>ow&nbsp;&nbsp;</enrgise:button>
                        <button altKey="wenrgise.common.delRow" property="butDelRow" styleClass="bottomBarText" disabled="true" ><u>D</u>elete Row</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>
		            <td> </td>
               </tr>
        </TABLE>
      </td>
     </tr>
      <TR>
        <TD background="../includes/images/line_r.gif"><IMG src="../includes/images/pixel.gif" border=0></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="HrmOrgQualMstForm"  property="screenMode" />
<html:hidden name="HrmOrgQualMstForm"  property="screenName" value="HrmOrgQualMst" />
<html:hidden name="HrmOrgQualMstForm"  property="forwardedPage" />
<html:hidden property="positionRequested" name="HrmOrgQualMstForm" />

<html:hidden property="userPageRequested"  />
<html:hidden property="userPositionRequested" />
<html:hidden property="pageRequested" />
<html:hidden property="txtIndex" name="HrmOrgQualMstForm"  />
<html:hidden property="headerPrimaryKey" name="HrmOrgQualMstForm" />

<!-- Container Table Ends -->

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

  return "HrmOrgQualMstQueryModeAction.do";
}


function doInsertMode()
{

  return "HrmOrgQualMstNewModeAction.do";
}


function doSave()
{

  return "HrmOrgQualMstSaveAction.do";
  
}

function doDelete()
{

  return "HrmOrgQualMstDeleteAction.do";
  
}

function doRefresh()
{

  return "HrmOrgQualMstRefreshAction.do";
  
}


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

function doAddRow()
{
 document.forms[0].screenMode.value="U";
document.forms[0].headerPrimaryKey.value="Enrgise";
  return "HrmOrgQualMstAddRowAction.do"; 
}

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

function doGetDetailTableName()
{
  return "tableName";
}

function doPrevDetail()
{

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

  return "HrmOrgQualMstExitAction.do";  
}

function doNextDetail()
{

  return "HrmOrgQualMstGetDetailPageAction.do";
}

function doJumpDetail()
{
  return  "HrmOrgQualMstGetDetailPageAction.do"; 
}
function boxClicked(val)
{    
    if(document.getElementsByName("checked")[val].checked)
    {      
      document.getElementsByName("itemChecked")[val].value = "Y";      
    }
    else
    {     
      document.getElementsByName("itemChecked")[val].value = "N";     
    }      
}
</script>             
              
              
              
              
              
              
              
              
              
              
              
              
              
              
              
              
              
              
              
              
              
              
              
              
              
              
              
              
              
              
              
              
              
   