<%@ 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="HrmOrgRatingMstForm" action="HrmOrgRatingMstBaseAction" type="wenrgise.hrms.webtier.form.HrmOrgRatingMstForm">
<bean:define id="ParentForm" name="HrmOrgRatingMstForm" toScope="request" />
<jsp:include page="GenIconMenu.jsp" flush="true" />



<!--Top Most Blue Bar-->
<TABLE cellSpacing=0 bgColor=#bdd0ef>
    <tr>
        <TD  colSpan=12 class=mainHeader ><bean:message  key="hrm.HrmRatingMaster.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 >
        <!--Master Information Starts -->
         <TR>
            <TD class=subHeader colspan=6><bean:message key="hrm.HrmRatingMaster.ratingHeader" /></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.HrmRatingMaster.ratingHeaderCode" /></td>
               <td><enrgise:text  property="ratingHeaderCode" titleKey="hrm.HrmRatingMaster.ratingHeaderCode" alt="AN" maxlength="20" size="23" styleClass="required" disabledClass="required" name="HrmOrgRatingMstForm"  onchange="doChangeHeader();" /><enrgise:img height="16" align="center" src="../includes/images/lov.jpg" styleClass="icon"  property="butRatingHeaderCode" name="HrmOrgRatingMstForm" onclick="return ShowRatingCode()"  /></td>
               <td colspan="2"></td>
               <td class="labelText"><bean:message key="hrm.HrmRatingMaster.minimumRating" /> </td>
               <td><enrgise:text  property="minimumRating"  titleKey="hrm.HrmRatingMaster.minimumRating" alt="N" maxlength="2" size="26" styleClass="required" disabledClass="locked" name="HrmOrgRatingMstForm" onkeypress="isNumber(event);"  onchange="doChangeHeader();" /></td>
         </tr>  
         <tr>
               <td class="labelText"><bean:message key="hrm.HrmRatingMaster.qualifyingRating" /></td>
               <td><enrgise:text  property="qualifyingRating" titleKey="hrm.HrmRatingMaster.qualifyingRating" alt="N" maxlength="2" size="26" styleClass="required" disabledClass="locked" name="HrmOrgRatingMstForm" onkeypress="isNumber(event);"  onchange="doChangeHeader();" /></td>
               <td colspan="2"></td>
               <td class="labelText"><bean:message key="hrm.HrmRatingMaster.maximumRating" /> </td>
               <td><enrgise:text  property="maximumRating" titleKey="hrm.HrmRatingMaster.maximumRating" alt="N" maxlength="2" size="26" styleClass="required" disabledClass="locked" name="HrmOrgRatingMstForm" onkeypress="isNumber(event);"  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>
            <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.HrmRatingMaster.ratingDetail" /><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 width="1%"><input type="checkbox" name="selectAll"  onclick="toggleCheckBox('checked')"  /></td>
                          <td class=tableHeader ><bean:message key="hrm.HrmRatingMaster.txtRatingFrom" /></td>
                          <td class=tableHeader ><bean:message  key="hrm.HrmRatingMaster.txtRatingTo" /></td>
                          <td class=tableHeader ><bean:message  key="hrm.HrmRatingMaster.txtRatingGrade" /></td>
                          <td class=tableHeader ><bean:message  key="hrm.HrmRatingMaster.txtDescription" /></td>
                         </tr> 
                       <logic:notEmpty name="HrmOrgRatingMstForm" property="arrHrmRatingDtl" >
                            <logic:iterate id="HrmRating" name="HrmOrgRatingMstForm" property="arrHrmRatingDtl" type="wenrgise.hrms.bean.HrmOrgRatingMstDtlBean" indexId="idx" >
                                           <logic:notEqual name="HrmRating" property="status" value="D" >
                                            <tr>
                                              <td width="1%"><html:hidden property="status"  name="HrmRating" /><html:hidden property="detailId"  name="HrmRating"  /><html:hidden property="itemChecked" name="HrmRating" /><html:checkbox property="checked"  name="HrmOrgRatingMstForm" alt="<%=idx.toString()%>" onclick="boxClicked(this.alt);" /></td>
                                              <TD class=tableText ><enrgise:text property="txtRatingFrom" name="HrmRating" styleClass="required" disabledClass="locked" formName="HrmOrgRatingMstForm" maxlength="4" style="width:100%" alt="<%=idx.toString()%>" onkeypress="isFloat(event);" onchange="doChangeDetail(this.alt)" /></td>   
                                              <TD class=tableText><enrgise:text property="txtRatingTo" name="HrmRating" styleClass="required" disabledClass="locked" formName="HrmOrgRatingMstForm" maxlength="4" style="width:100%" alt="<%=idx.toString()%>" onkeypress="isFloat(event);" onchange="doChangeDetail(this.alt)" /></td>                                
                                              <TD class=tableText ><enrgise:text property="txtRatingGrade" name="HrmRating" titleKey="hrm.HrmRatingMaster.txtRatingGrade" styleClass="required" disabledClass="locked" formName="HrmOrgRatingMstForm" maxlength="10" style="width:100%" alt="<%=idx.toString()%>" onkeypress="isName(event);" onchange="doChangeDetail(this.alt)" /></td>   
                                              <TD class=tableText><enrgise:text property="txtDescription" name="HrmRating" styleClass="required" disabledClass="locked" formName="HrmOrgRatingMstForm" maxlength="40" style="width:100%" alt="<%=idx.toString()%>" onkeypress="isName(event);" onchange="doChangeDetail(this.alt)" /></td>                                
                                           </tr>
                                            </logic:notEqual>
                                            <logic:equal name="HrmRating" property="status" value="D"  >
                                            <tr>
                                              <td width="1%"><html:hidden property="status"  name="HrmRating" /><html:hidden property="detailId"  name="HrmRating"  /><html:hidden property="itemChecked" name="HrmRating" /><html:checkbox property="checked" value="check" disabled="true" name="HrmOrgRatingMstForm" alt="<%=idx.toString()%>" onclick="boxClicked(this.alt);" /></td>
                                              <TD class=tableText ><enrgise:text property="txtRatingFrom" name="HrmRating" styleClass="deletedRow" disabledClass="locked" formName="HrmOrgRatingMstForm" maxlength="10" style="width:100%" alt="<%=idx.toString()%>" onchange="doChangeDetail(this.alt)" /></td>   
                                              <TD class=tableText><enrgise:text property="txtRatingTo" name="HrmRating" styleClass="deletedRow" disabledClass="locked" formName="HrmOrgRatingMstForm" maxlength="10" style="width:100%" alt="<%=idx.toString()%>" onchange="doChangeDetail(this.alt)" /></td>                                
                                              <TD class=tableText ><enrgise:text property="txtRatingGrade" name="HrmRating" styleClass="deletedRow" disabledClass="locked" formName="HrmOrgRatingMstForm" maxlength="10" style="width:100%" alt="<%=idx.toString()%>" onchange="doChangeDetail(this.alt)" /></td>   
                                              <TD class=tableText><enrgise:text property="txtDescription" name="HrmRating" styleClass="deletedRow" disabledClass="locked" formName="HrmOrgRatingMstForm" maxlength="40" style="width:100%" alt="<%=idx.toString()%>" onchange="doChangeDetail(this.alt)" /></td>                                
                                            </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="HrmOrgRatingMstForm"  property="screenMode" />
<html:hidden name="HrmOrgRatingMstForm"  property="screenName" value="HrmOrgRatingMst" />
<html:hidden name="HrmOrgRatingMstForm"  property="forwardedPage" />
<html:hidden property="positionRequested" name="HrmOrgRatingMstForm" />
<html:hidden property="txtIndex" name="HrmOrgRatingMstForm"  />

<html:hidden property="detailDataChanged" name="HrmOrgRatingMstForm" />
<html:hidden property="headerDataChanged" name="HrmOrgRatingMstForm" />

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

<html:hidden property="lovKey" name="HrmOrgRatingMstForm"  />
<html:hidden property="txtSearchFields" name="HrmOrgRatingMstForm"  />
<html:hidden property="txtDisplayFields" name="HrmOrgRatingMstForm"  />
<html:hidden property="ratingCodeId" name="HrmOrgRatingMstForm" />
<input type="hidden" name="multipleFlag" >
<input type="hidden" name="queryParam" >

<!-- Container Table Ends -->

</html:form>
</body>
</html:html>

<script>
function doChangeHeader()
{
 document.forms[0].headerDataChanged.value="true";
}


function doQueryMode()
{

  return "HrmOrgRatingMstQueryModeAction.do";
}


function doInsertMode()
{

  return "HrmOrgRatingMstNewModeAction.do";
}


function doExecute()
{

  return "HrmOrgRatingMstGetHeaderAction.do";
}

function doSave()
{

  return "HrmOrgRatingMstSaveAction.do";
  
}

function doDelete()
{

  return "HrmOrgRatingMstDeleteAction.do";
  
}

function doRefresh()
{

  return "HrmOrgRatingMstRefreshAction.do";
  
}

function doPrevHeader()
{
  return "HrmOrgRatingMstGetNextHeaderAction.do"; 
}
function doExit()
{
  return "HrmOrgRatingMstExitAction.do"; 
}


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

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

function doGetDetail()
{

  return "HrmOrgRatingMstGetDetailAction.do";
}

function doAddRow()
{

  return "HrmOrgRatingMstAddRowAction.do"; 
}

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

function doGetDetailTableName()
{
  return "tableName";
}

function doPrevDetail()
{

  return "HrmOrgRatingMstGetDetailPageAction.do";  
}

function doNextDetail()
{

  return "HrmOrgRatingMstGetDetailPageAction.do";
}

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

function ShowRatingCode()
{
        document.forms[0].lovKey.value = "HrmRatingCode" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmRatingMaster.ratingHeaderCode";
        document.forms[0].txtDisplayFields.value = "ratingCodeId,ratingHeaderCode,minimumRating,qualifyingRating,maximumRating";
        document.forms[0].multipleFlag.value = "false";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmOrgRatingMstForm');
        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>
              
              
              
              
              
              
              
              
              
              
              
              
              
              
              
              
              
              
              
              
              
              
              
   