<%@ 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  scroll=auto>

<html:form  action="HrmNoticeBaseAction" name="HrmPrmNoticeForm" type="wenrgise.hrms.webtier.form.HrmPrmNoticeDetailForm">
<bean:define id="ParentForm" name="HrmPrmNoticeForm" 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()" /><enrgise:img name="ParentForm" property="butInsert" onmouseover='this.src="../includes/images/insert_act.jpg"' onmouseout='this.src="../includes/images/insert.jpg"' alt="Insert (Alt+N)" src="../includes/images/insert.jpg"  onclick="doBaseInsertMode()"/></TD>
    <TD width="2%"></TD>
    <TD ><enrgise:img name="ParentForm" property="butExecute" onmouseover='this.src="../includes/images/execute_act.jpg"' onmouseout='this.src="../includes/images/execute.jpg"' alt="Execute (Ctrl+U)" src="../includes/images/execute.jpg" onclick="doBaseExecute()" /><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 name="ParentForm" property="butDelete" src="../includes/images/delete_dis.jpg" alt="Delete (Ctrl+D)" /><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=12 class=mainHeader ><bean:message  key="hrm.HrmPrmNotice.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 >
        <!--KPA Header Starts -->
            <TR>
                  <TD class=subHeader colspan=6><bean:message  key="hrm.HrmPrmNotice.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.HrmPrmNotice.noticeNo" /></td>
                  <td><enrgise:text  property="noticeNo" disabledClass="required" altKey="hrm.HrmPrmNotice.noticeNo" onchange="doChangeHeader()" maxlength="10" size="23" styleClass="required" /><enrgise:img height="16" align="center" src="../includes/images/lov.jpg" styleClass="icon"  property="butNoticeNo" onclick="ShowNoticeNo()" name="HrmPrmNoticeForm" /></td>
                  <td class="labelText"><bean:message key="hrm.HrmPrmNotice.noticeDate" /></td>             
                  <td><html:text  property="noticeDate" readonly="true" altKey="hrm.HrmPrmNotice.noticeDate" onchange="doChangeHeader()" size="23" styleClass="required"  /><enrgise:img src="../includes/images/cal.gif"  width="15" height="19" align="top" styleClass="icon" property="butNoticeDate"   onclick="showCalendar('noticeDate',this)" name="HrmPrmNoticeForm" /></td>
                  <td class="labelText"><bean:message key="hrm.HrmPrmNotice.desc" /> </td>
                  <td><enrgise:text  property="desc" disabledClass="locked"  altKey="hrm.HrmPrmNotice.desc" onchange="doChangeHeader()" maxlength="255" size="26" styleClass="optional"  /></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><bean:message key="hrm.HrmPrmNotice.detail" /><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%"><html:checkbox property="selectAll" onclick="toggleCheckBox('checked')" /></TD>
                                     <TD class=tableHeader width="20%"><bean:message key="hrm.HrmPrmNotice.txtGrade" /></td>   
                              <TD class=tableHeader width="20%"><bean:message key="hrm.HrmPrmNotice.txtDesignation" /></td>                                
                                                              
                              <TD class=tableHeader width="20%"><bean:message key="hrm.HrmPrmNotice.txtVacancies" /></td>                                
                              <TD class=tableHeader width="20%"><bean:message key="hrm.HrmPrmNotice.txtExamDate" /></td>                                
                                                          
                          </tr> 
                          
                          
                          <logic:iterate id="HrmPrmNotice" name="HrmPrmNoticeForm" property="arylstNoticeDtl" type="wenrgise.hrms.bean.HrmPrmNoticeDtlDtlBean" indexId="idx" >
                        
                         <logic:notEqual name="HrmPrmNotice" property="status" value="D">
                         <tr>
                              <TD class=tableText width="1%"><html:checkbox property="checked"  name="HrmPrmNoticeForm" alt="<%=idx.toString()%>" onclick="boxClicked(this.alt);" /></td>
                                <html:hidden property="status"  name="HrmPrmNotice" />
                                <html:hidden property="itemChecked"  name="HrmPrmNotice" />
                                <html:hidden property="detailId"  name="HrmPrmNotice" />
                                <html:hidden property="txtGradeId"  name="HrmPrmNotice" />
                                <html:hidden property="txtDesigId"  name="HrmPrmNotice" />
                               
                              </TD>
                              
                              <TD class=tableText ><html:text name="HrmPrmNotice" property="txtGrade" readonly="true"  styleClass="required" style="width:92%" size="26"  onchange='<%="doChangeDetail("+idx.toString()+")"%>' /><enrgise:img height="16" align="center" src="../includes/images/lov.jpg" property="butGrade" alt="<%=idx.toString()%>" name="HrmPrmNotice" onclick="return ShowGrade(this.alt);" /></td>
                              <TD class=tableText ><html:text name="HrmPrmNotice" property="txtDesignation" readonly="true"  styleClass="optional" style="width:92%" size="26"  onchange='<%="doChangeDetail("+idx.toString()+")"%>' /><enrgise:img height="16" align="center" src="../includes/images/lov.jpg" property="butDesig" alt="<%=idx.toString()%>" name="HrmPrmNotice" onclick="return ShowDesignation(this.alt);" /></td>
                              <TD class=tableText ><html:text name="HrmPrmNotice" property="txtVacancies" styleClass="required"  onkeydown="isInteger(event)" style="width:100%" size="14"  onchange='<%="doChangeDetail("+idx.toString()+")"%>' /> </td>
                              <TD class=tableText ><html:text name="HrmPrmNotice" property="txtExamDate" styleClass="required"  readonly="true"  style="width:88%" size="14"  onchange='<%="doChangeDetail("+idx.toString()+")"%>'  /><img src="../includes/images/cal.gif"  width=15 height=19 align="top" class="icon" property="butTxtExamDate" alt="<%=idx.toString()%>" onclick="showCalendar('txtExamDate',this)"  /></td>
                              
                          </tr>
                          </logic:notEqual>
                          
                          
                         <logic:equal name="HrmPrmNotice" property="status" value="D">
                         <tr>
                              <TD class=tableText width="1%"><html:checkbox property="checked" value="check" disabled="true"   alt="<%=idx.toString()%>" onclick="boxClicked(this.alt);" /></td>
                                <html:hidden property="status"  name="HrmPrmNotice" /><html:hidden property="itemChecked"  name="HrmPrmNotice" /><html:hidden property="detailId"  name="HrmPrmNotice" />
                                <html:hidden property="txtGradeId"  name="HrmPrmNotice" />
                                <html:hidden property="txtDesigId"  name="HrmPrmNotice" />
                                
                              </TD>
                              
                                <TD class=tableText ><html:text name="HrmPrmNotice" property="txtGrade" styleClass="deletedRow" readonly="true"  style="width:92%" size="26" alt="A" onchange='<%="doChangeDetail("+idx.toString()+")"%>' /><enrgise:img height="16" align="center" src="../includes/images/lov.jpg" property="butGrade" alt="<%=idx.toString()%>" name="HrmPrmNotice" onclick="return ShowGrade(this.alt);" /></td>
                              <TD class=tableText ><html:text name="HrmPrmNotice" property="txtDesignation" styleClass="deletedRow" readonly="true"   style="width:92%" size="26" alt="A" onchange='<%="doChangeDetail("+idx.toString()+")"%>' /><enrgise:img height="16" align="center" src="../includes/images/lov.jpg" property="butDesig" alt="<%=idx.toString()%>" name="HrmPrmNotice" onclick="return ShowDesignation(this.alt);" /></td>
                              <TD class=tableText ><html:text name="HrmPrmNotice" property="txtVacancies" styleClass="deletedRow"  onkeydown="isInteger(event)" style="width:90%" size="14" alt="A" onchange='<%="doChangeDetail("+idx.toString()+")"%>' /> </td>
                              <TD class=tableText ><html:text name="HrmPrmNotice" property="txtExamDate" styleClass="deletedRow"   style="width:85%" size="14" alt="A" onchange='<%="doChangeDetail("+idx.toString()+")"%>'  /> <img src="..\includes\images\cal_dis.gif"  width=15 height=19 align="top" class="icon" property="butTxtExamDate" alt="<%=idx.toString()%>"   /></td>
                              
                          </tr>
                          </logic:equal>
                        </logic:iterate>
                          
                          
                         
                      </TBODY>
                      </TABLE>
                      </DIV>
                      </TD>
                    </TR>
               <tr>
                <td>	
                <jsp:include page="GenDetailMenu.jsp" flush="true" />
		            </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>

<!-- Container Table Ends -->
<!-- These four hidden fields must be present in pages where there is a detail part -->
<html:hidden name="HrmPrmNoticeForm" property="screenName" value="HrmPrmNoticeDtl" />
<html:hidden name="HrmPrmNoticeForm" property="forwardedPage" />
<html:hidden name="HrmPrmNoticeForm" property="positionRequested"  />
<html:hidden name="HrmPrmNoticeForm" property="screenMode"  />
<html:hidden name="HrmPrmNoticeForm" property="firstLoad"  />
<html:hidden property="headerPrimaryKey" name="HrmPrmNoticeForm"  />
<html:hidden property="txtSearchFields" name="HrmPrmNoticeForm"  />
<html:hidden property="txtDisplayFields" name="HrmPrmNoticeForm"  />
<html:hidden property="txtIndex" name="HrmPrmNoticeForm"  />
<html:hidden property="userPageRequested" />
<html:hidden property="userPositionRequested"  />
<html:hidden property="pageRequested" />
<html:hidden property="lovKey" name="HrmPrmNoticeForm"  />
<html:hidden property="detailDataChanged" name="HrmPrmNoticeForm" />
<html:hidden property="headerDataChanged" name="HrmPrmNoticeForm" />
<!-- Hidden fields for Header LOV -->
<html:hidden property="noticeId"  />

<html:hidden property="firstLoad" name="HrmPrmNoticeForm"  />
<!-- Hidden fields for Detail LOV -->


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


<!-- Hidden fields end -->


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







<script>


function doQueryMode()
{

  return "HrmPrmNoticeDtlQueryModeAction.do";
}


function doInsertMode()
{

  return "HrmPrmNoticeDtlNewModeAction.do";
}


function doExecute()
{
  return "HrmPrmNoticeDtlGetHeaderAction.do";
}

function doSave()
{

  return "HrmPrmNoticeDtlSaveAction.do";
  
}

function doDelete()
{

  return "HrmPrmNoticeDtlDeleteAction.do";
  
}

function doRefresh()
{

  return "HrmPrmNoticeDtlRefreshAction.do";
  
}

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

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

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

function doGetDetail()
{

  return "HrmPrmNoticeDtlGetDetailAction.do";
}

function doAddRow()
{

  return "HrmPrmNoticeDtlAddRowAction.do"; 
}

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

function doGetDetailTableName()
{
  return "tableName";
}

function doPrevDetail()
{

  return "HrmPrmNoticeDtlGetDetailPageAction.do";  
}

function doNextDetail()
{

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

  return "HrmPrmNoticeDtlExitAction.do";
}

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



function doOnLoad()
{
 
}


function boxClicked(val)
{    
    if(document.getElementsByName("checked")[val].checked)
    {      
      document.getElementsByName("itemChecked")[val].value = "Y";      
    }
    else
    {     
      document.getElementsByName("itemChecked")[val].value = "N";     
    }      
}










function ShowNoticeNo()
{
        document.forms[0].lovKey.value = "PrmNoticeDtlNotNo" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmPrmNotice.noticeNo";
        document.forms[0].txtDisplayFields.value = "noticeId,noticeNo,noticeDate,desc";
        document.forms[0].multipleFlag.value = "false";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmPrmNoticeForm');
        return true;
}

function ShowPositionNo(i)
{
        document.forms[0].lovKey.value = "PrmNoticeDtlPosNo" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmPrmNotice.txtPositionCode";
        document.forms[0].txtIndex.value=i;
        document.forms[0].txtDisplayFields.value = "txtPosId,txtPositionCode,txtDesignation,txtScale";
        document.forms[0].multipleFlag.value = "false";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmPrmNoticeForm');
        return true;
}


function ShowGrade(i)
{
        document.forms[0].lovKey.value = "PrmNotGrade" + "HrmPrmNoticeForm" + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmPrmKPARating.gradeCode,hrm.HrmPrmKPARating.gradeDesc";
        document.forms[0].txtDisplayFields.value = "txtGradeId,txtGrade";
        document.forms[0].txtIndex.value=i;
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmPrmNoticeForm');
        return true;
}

function ShowDesignation(i)
{
        document.forms[0].lovKey.value = "PrmNotDesig" + "HrmPrmNoticeForm" + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmPrmKPARating.desigCode,hrm.HrmPrmKPARating.desigDesc";
        document.forms[0].txtDisplayFields.value = "txtDesigId,txtDesignation";
        document.forms[0].txtIndex.value=i;
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmPrmNoticeForm');
        return true;
}



function boxClicked(val)
{    
    if(document.getElementsByName("checked")[val].checked)
    {      
      document.getElementsByName("itemChecked")[val].value = "Y";      
    }
    else
    {     
      document.getElementsByName("itemChecked")[val].value = "N";     
    }      
}







</script>