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


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

<html:form name="HrmRecScrutAppMtnForm" action="HrmScrutApplMtnBaseAction" type="wenrgise.hrms.webtier.form.HrmRecScrutAppMtnForm">
<bean:define id="ParentForm" name="HrmRecScrutAppMtnForm" 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 ><img name="ParentForm" property="butQuery" src="../includes/images/query_dis.jpg" /><img name="ParentForm" property="butQuery" src="../includes/images/insert_dis.jpg" /></TD>
    <TD width="2%"></TD>
    <TD ><img name="ParentForm" 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()" />
    <enrgise:img name="ParentForm" property="butDelete" onmouseover='this.src="../includes/images/delete_act.jpg"' onmouseout='this.src="../includes/images/delete.jpg"' alt="Delete (Ctrl+D)" src="../includes/images/delete.jpg" onclick="doBaseDelete()" /><enrgise:img name="ParentForm" 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" onmouseover='this.src="../includes/images/exit_act.jpg"' onmouseout='this.src="../includes/images/exit.jpg"' alt="Exit (Alt+X)"  src="../includes/images/exit.jpg"   onclick="doBaseExit()" />
    <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" onclick="doBaseHelp()" /></TD>
    <TD width="50%"></TD>
    <TD ><enrgise:img name="ParentForm" property="butPrevHeader" src='../includes/images/butn_prev.jpg' onmouseover='this.src="../includes/images/butn_prev_act.jpg"' onmouseout='this.src="../includes/images/butn_prev.jpg"' alt="Butn_prev (Ctrl+<)" onclick="doBasePrevHeader()" /></td>
    <td class=dtlNavText><bean:write  name="left" /> of 
    <bean:write name="right" /></td>
    <td align=right><enrgise:img name="ParentForm" property="butNextHeader" src="../includes/images/butn_next.jpg" onmouseover='this.src="../includes/images/butn_next_act.jpg"' onmouseout='this.src="../includes/images/butn_next.jpg"' alt="Butn_next (Ctrl+>)" onclick="doBaseNextHeader()" /></td>
    <td align=right><enrgise:text property="newPositionRequested" size="1" onkeydown="isInteger(event)" title="wenrgise.common.jumpDetail" alt="N" disabledClass="locked" styleClass="optional" /></td>
    <td ><enrgise:img name="ParentForm" property="butJumpHeader" alt="Go (Ctrl+G)" src="../includes/images/go.jpg" onmouseover='this.src="../includes/images/go_act.jpg"' onmouseout='this.src="../includes/images/go.jpg"' onclick="doBaseJumpHeader()" /></td>
    <td > </td>
</TR>
</TABLE>
<table>
<tr>
  <td colspan="11" class="userText"></td>
</tr>
<enrgise:checkSession/>
</TABLE>

<!--Top Most Blue Bar-->
<TABLE cellSpacing=0 bgColor=#bdd0ef>
    <tr>
        <TD  colSpan=11 class=mainHeader height=10><bean:message key="hrm.HrmScrutinizingApplicant.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>Application 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" width="13%"><bean:message key="hrm.HrmScrutinizingApplicant.referenceNo" /></td>
                  <td width="15%"><html:text  property="referenceNo"  readonly="true" styleClass="required"   titleKey="hrm.HrmScrutinizingApplicant.referenceNo" maxlength="10" size="23" name="HrmRecScrutAppMtnForm" /><enrgise:img height="16" align="center" src="../includes/images/lov.jpg" property="butReferenceNo" name="HrmRecScrutAppMtnForm" onclick="ShowRefNo()" /></td>              
                  <td class="labelText" width="13%"><bean:message key="hrm.HrmScrutinizingApplicant.adForDesignation" /></td>
                  <td width="15%"><html:text  property="adForDesignation"  readonly="true" styleClass="required"   titleKey="hrm.HrmScrutinizingApplicant.adForDesignation" maxlength="10" size="23"  name="HrmRecScrutAppMtnForm" /><enrgise:img height="16" align="center" src="../includes/images/lov.jpg" property="butAdForDesig" name="HrmRecScrutAppMtnForm" onclick="ShowDesigNo()" /></td>              
                  <td class="labelText" width="13%" ><bean:message key="hrm.HrmScrutinizingApplicant.applicationStage" /></td>
                   <td width="15%"><enrgise:select property="stage" titleKey="hrm.HrmScrutinizingApplicant.stage" styleClass="optional" disabledClass="required" onchange="doChangeHeader();" >
                            <enrgise:option value="" ><bean:message   key="hrm.pleaseSelect" /></enrgise:option>      
                            <enrgise:option value="I" > <bean:message key="hrm.HrmScrutinizingApplicant.i" /></enrgise:option>
                            <enrgise:option value="W" > <bean:message key="hrm.HrmScrutinizingApplicant.w" /></enrgise:option>
                            <enrgise:option value="G" > <bean:message key="hrm.HrmScrutinizingApplicant.g" /></enrgise:option>
                            <enrgise:option value="IV" > <bean:message key="hrm.HrmScrutinizingApplicant.iv" /></enrgise:option>
                            
                     </enrgise:select></td>
                
           </tr>       
            
            
            
            
            <tr>
                <td></td>
            </tr>
            
            
            
            <tr>
                   <td colspan="2" ></td>
                   
                           <td colspan="2" height=15% align="center"><enrgise:button alt="Generate Eligible Applicant"   name="ParentForm" styleClass="bottomBarText" onclick="doBaseGetDetail()"  property="butGEA"  >Generate Eligible Applicant</enrgise:button></td>
                                                
                   <td colspan="2"></td>
            </tr>
            
           
           <!--  <TD ><enrgise:button altKey="wenrgise.common.getDetail"  onclick="doBaseGetDetail()" property="butGetDetail" name="ParentForm" styleClass="bottomBarText">&nbsp;Get De<u>t</u>ail&nbsp;</enrgise:button>-->
                     
         
       <tr height="10" >
               <td colspan="6"></td>
         </tr>
        </table>
      
      
         <table cellspacing=0 cellpadding=0 border=0>
         <!-- Detail Information Row starts -->
 	 <TR>
       <TD colspan=6>
        <!-- Scrutinized Applicant Details 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 >Scrutinized Applicant 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=5>
                <TABLE cellSpacing=0 cellPadding=0 border=0>
                  <TBODY>
                   <TR>
                     <TD >
                       <DIV id=divDtlTable style="height:250px;" > 
  			<!-- Detail table starts -->
                        <TABLE cellSpacing=0 cellPadding=0>
                         <TBODY>
                          <tr>
                          
                              
                              <TD class=tableHeader width="1%"><html:checkbox property="selectAll" /></TD>
                              <TD class=tableHeader ><bean:message key="hrm.HrmScrutinizingApplicant.rank" /></td>
                              <TD class=tableHeader ><bean:message  key="hrm.HrmScrutinizingApplicant.applicantNo" /></td>
                              <TD class=tableHeader ><bean:message  key="hrm.HrmScrutinizingApplicant.applicantName" /></td>
                              <TD class=tableHeader ><bean:message  key="hrm.HrmScrutinizingApplicant.writtemMarksA" /></td>
                              <TD class=tableHeader ><bean:message key="hrm.HrmScrutinizingApplicant.writtemMarksB" /></td>
                              <TD class=tableHeader ><bean:message  key="hrm.HrmScrutinizingApplicant.interviewMarks" /></td>
                              <TD class=tableHeader ><bean:message  key="hrm.HrmScrutinizingApplicant.totalScore" /></td>
                              <TD class=tableHeader ><bean:message  key="hrm.HrmScrutinizingApplicant.expYrs" /></td>
                              <!--TD class=tableHeader ><bean:message key="hrm.HrmScrutinizingApplicant.eligibility" /></td-->
                              <TD class=tableHeader ><bean:message  key="hrm.HrmScrutinizingApplicant.testCenter" /></td>
                             
                         </tr>
                         
                         
                          <logic:iterate id="appDtl" name="HrmRecScrutAppMtnForm" property="arylstScrutApplDtl" type="wenrgise.hrms.bean.HrmRecScrutAppMtnDtlBean" indexId="idx" >                                             
                                            
                         <tr>
                              <html:hidden property="status"   name="appDtl" />
                                                 <html:hidden property="detailId" name="appDtl" />
                                                 <html:hidden property="itemChecked" name="appDtl" />
                                                 <html:hidden property="txtApplicantId" name="appDtl" />
                                                 <html:hidden property="txtStageId" name="appDtl" />
                              <TD class=tableText width="1%"><html:checkbox property="selectAll" /></TD>
                              <TD class=tableText ><html:text readonly="true" name="appDtl"   property="txtRank" styleClass="optional" size="10" alt="N" onchange='<%="doChangeDetail("+idx.toString()+")"%>' /></td>
                              <TD class=tableText ><html:text readonly="true" name="appDtl"   property="txtApplicantNo" styleClass="optional" size="14" alt="N" onchange='<%="doChangeDetail("+idx.toString()+")"%>' /></td>
                              <TD class=tableText ><html:text readonly="true" name="appDtl"   property="txtApplicantName" styleClass="optional" size="14" alt="A" onchange='<%="doChangeDetail("+idx.toString()+")"%>' /></td>
                              <TD class=tableText ><html:text readonly="true" name="appDtl"   property="txtWrittemMarksA" styleClass="optional" size="14" alt="N" onchange='<%="doChangeDetail("+idx.toString()+")"%>' /></td>
                              <TD class=tableText ><html:text readonly="true" name="appDtl"   property="txtWrittemMarksB" styleClass="optional" size="14" alt="N" onchange='<%="doChangeDetail("+idx.toString()+")"%>' /></td>
                              <TD class=tableText ><html:text readonly="true" name="appDtl"   property="txtInterviewMarks" styleClass="optional" size="14" alt="N" onchange='<%="doChangeDetail("+idx.toString()+")"%>' /></td>
                              <TD class=tableText ><html:text readonly="true" name="appDtl"   property="txtTotalScore" styleClass="optional" size="14" alt="N" onchange='<%="doChangeDetail("+idx.toString()+")"%>' /></td>
                              <TD class=tableText ><html:text name="appDtl"  readonly="true"   property="txtExpYrs" styleClass="optional" size="14" alt="N" onchange='<%="doChangeDetail("+idx.toString()+")"%>' /></td>
                             <!--TD>
                                  <html:select property="txtEligibility"    name="appDtl" styleClass="required" style="width:100%" onchange='<%="doChangeDetail("+idx.toString()+")"%>' > 
                                                          <html:option value="" ><bean:message key="hrm.pleaseSelect" /></html:option> 
                                                          <html:option value="N"><bean:message key="hrm.HrmScrutinizingApplicant.false" /></html:option> 
                                                          <html:option value="Y"><bean:message key="hrm.HrmScrutinizingApplicant.true"   /></html:option>
                                                                          
                                                          
                                   </html:select>

                              </TD-->
                              <TD class=tableText ><enrgise:text  formName="HrmRecScrutAppMtnForm" name="appDtl" disabledClass="locked"  property="txtTestCenter" styleClass="optional" size="10" alt="A" onchange='<%="doChangeDetail("+idx.toString()+")"%>' /></td>
                            </tr>
                         
                         </logic:iterate>                          
           <!--Insert Logic Iterate Here-->                                                      
                     </TBODY>
                    </TABLE>
                  </DIV>
                </TD>
              </TR>                     
  
  <!-- Get details starts -->
                
                  </TBODY>
                </TABLE>
              </td>
            </tr>

        </TABLE>
     </td>
	 </tr>
                <!-- Tab Table Ends -->

<!-- Bottom Blue Bar -->
       <TR>
            <td>
              <TABLE  cellspacing="0" cellpadding="0" border=0>
                    <tr>
                        <td bgColor=#4682b4 width="8%"></td>
                        <td  bgColor=#4682b4></td>
                        <td align=center bgColor=#4682b4>
                        <button class="bottomBarText"  name="butGWL"  >Generate Written Letter</button>
                        <button class="bottomBarText"  name="butGIL"  >Generate Interview Letter</button>
                        <button class="bottomBarText"  name="butGCL" >Generate Call Letter</button></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="HrmRecScrutAppMtnForm" property="screenName" value="HrmScrutinizingApplicant" />
<html:hidden name="HrmRecScrutAppMtnForm" property="forwardedPage" />
<html:hidden name="HrmRecScrutAppMtnForm" property="positionRequested"  />
<html:hidden property="headerPrimaryKey" name="HrmRecScrutAppMtnForm" />
<html:hidden name="HrmRecScrutAppMtnForm" property="screenMode"  />
<html:hidden property="detailDataChanged" name="HrmRecScrutAppMtnForm" />




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


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

<!-- Hidden Header Id For LOV -->
<html:hidden property="referenceNoId" />
<html:hidden property="adForDesignationId" />
<html:hidden property="testCenterId" />
<input type="hidden" name="multipleFlag" >
<input type="hidden" name="queryParam" >
<!--Hidden Detail Id For LOV -->


<!-- Hidden fields end -->

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

function doOnLoad()
{
 
}







function doQueryMode()
{

  return "HrmScrutApplMtnQueryModeAction.do";
}


function doInsertMode()
{

  return "HrmScrutApplMtnNewModeAction.do";
}


function doExecute()
{

  return "HrmScrutApplMtnGetHeaderAction.do";
}

function doSave()
{

  return "HrmScrutApplMtnSaveAction.do";
  
}

function doDelete()
{

  return "HrmScrutApplMtnDeleteAction.do";
  
}

function doRefresh()
{

  return "HrmScrutApplMtnRefreshAction.do";
  
}

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

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

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

function doGetDetail()
{ 

     return "HrmScrutApplMtnGetDetailAction.do";
}

function doAddRow()
{

  return "HrmScrutApplMtnAddRowAction.do"; 
}

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

function doGetDetailTableName()
{
  return "tableName";
}

function doPrevDetail()
{

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

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

  return "HrmScrutApplMtnGetDetailPageAction.do";
}

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


function ShowRefNo()
{
        document.forms[0].lovKey.value = "RecScrutRefNo" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmScrutinizingApplicant.referenceNo";
        document.forms[0].txtDisplayFields.value = "referenceNoId,referenceNo";
        document.forms[0].multipleFlag.value = "false";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmRecScrutAppMtnForm');
        return true;
}





function ShowDesigNo()
{
        
        
        document.forms[0].lovKey.value = "DesigNo" +  document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmScrutinizingApplicant.adForDesignation";
        document.forms[0].queryParam.value ="RefId="+ document.forms[0].referenceNoId.value +" " ;
        document.forms[0].txtDisplayFields.value = "headerPrimaryKey,adForDesignation";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmRecScrutAppMtnForm');
        return true;
        
}









</script>