<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-nested.tld" prefix="nested" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/enrgise-html.tld" prefix="enrgise" %>

<%@ page import="wenrgise.common.utility.ReportReader" %>
<%@ page import="wenrgise.common.utility.ParamUtil" %>
<%@ page import="java.lang.String" %>

<html:html>
	<HEAD>
  <html:base/>
		<TITLE><bean:message key="hrm.title" /></TITLE>
     <jsp:include page = "GenIncludes.jsp" />
     <meta http-equiv=pragma content=no-cache>
</head>
<BODY scroll=auto   >

<html:form  action="RepRecrCessStatusJasperAction" name="frmRepRecrCessStatus" type="wenrgise.hrms.webtier.form.RepRecrCessStatusForm" scope="session">
<bean:define id="ParentForm" name="frmRepRecrCessStatus" 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()" />
    <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"  maxlength="3" 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>
<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>

<table>
<TR height=30>
  <TD  colSpan=12 class=mainHeader height=10> RECRUITMENT/CESSATION STATUS REPORT</TD>
</TR>
</TABLE>

<TABLE cellSpacing=0 cellPadding=0 border=0 >
<TBODY>
  <TR>
    <TD>
  <!-- Body table Starts -->
       <TABLE cellSpacing=0 cellPadding=0 >
       <!--Account  Header Row Starts -->
       <TR>
          <TD class=subHeader colspan=6>View Recruitment/Cessation Status </TD>
        </TR>
        <TR>
              <TD colspan=8 bgColor=#4682b4><IMG height=1 src="../includes/images/pixel.gif" width=1 border=0></TD>
	      </TR>

         <tr height="15" >
            <td colspan="6"></td>
         </tr>

        <tr>
              <td width=20% class="labelText"><bean:message key="hrm.Report.txtFromDate" /></td>
              <td width=30% colspan=3><html:text  property="txtFromDate" styleClass = "required" altKey="hrm.Report.txtFromDate" maxlength="20" size="23"   /><enrgise:img name="frmRepRecrCessStatus" src="../includes/images/cal.gif"  width="15" height="19" align="top" styleClass="lov" property="butTxtFromDate"   onclick="showCalendar('txtFromDate',this)" />
              <td width=20% class="labelText"><bean:message key="hrm.Report.txtToDate" /></td>
              <td width=30% colspan=3><html:text  property="txtToDate" styleClass = "required" altKey="hrm.Report.txtToDate" maxlength="20" size="23"   /><enrgise:img name="frmRepRecrCessStatus" src="../includes/images/cal.gif"  width="15" height="19" align="top" styleClass="lov" property="butTxtToDate"   onclick="showCalendar('txtToDate',this)" />
                             
        </tr>

   	 </table>
    </div>

 <table cellspacing=0 cellpadding=0 border=0>
         <!-- Detail Information Row starts -->

 	 <TR height="100">
            <TD colspan=11>

            <!-- Account Config Detail Table Starts -->
           <TABLE cellspacing="0" cellPadding="0" >

              <TR height=10>

		<!-- Detail table Container starts -->
                <TD colspan="16">

		  </td>
               </tr>

<!-- Tab table Row 3 starts -->
               <tr>
		
		</TR>
    <TR>
     <TD align=right bgColor=#4682b4 colSpan=16><IMG height=1 src="../includes/images/pixel.gif" width=1  border=0></TD>
    </TR>

</TABLE>
        </td>
	</tr>

<!-- 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 width=60% bgColor=#4682b4><input class=bottomBarText type=button value="   View Report   " onclick="viewReport();" ></td>                
                        <td><html:select property="downloadOption">
                            <html:option value="C" > Excel DownLoad </html:option>
                            <html:option value="T" > Text DownLoad </html:option>
                            <html:option value="P" > PDF DownLoad </html:option>
                        </html:select></td>
                        <td width=60% bgColor=#4682b4><input class=bottomBarText type=button value="   Download Report   " onclick="downloadReport();" ></td>                
                        <td bgColor=#4682b4></td>
                       
                   </TR>
                </table>
            </td>
          </tr>

</TABLE>

<!-- Container Table Ending Columns Starts-->
    </TD>

</TR>
</TBODY>
</TABLE>

<!-- Container Table Ends -->

<html:hidden name="frmRepRecrCessStatus"  property="screenName" value="RepRecrCessStatusScreen" />
  
<html:hidden property="screenMode" name="frmRepRecrCessStatus" value="U" />
<html:hidden property="positionRequested" name="frmRepRecrCessStatus" />
<html:hidden property="userPageRequested" name="frmRepRecrCessStatus" />
<html:hidden property="userPositionRequested" name="frmRepRecrCessStatus" />
<html:hidden property="pageRequested" name="frmRepRecrCessStatus" />
<html:hidden property="headerDataChanged" name="frmRepRecrCessStatus" />
<html:hidden property="detailDataChanged" name="frmRepRecrCessStatus" />
<html:hidden property="lovKey" name="frmRepRecrCessStatus"  />
<html:hidden property="firstLoad" name="frmRepRecrCessStatus"  /> 
<html:hidden property="txtSearchFields" name="frmRepRecrCessStatus"  />
<html:hidden property="txtDisplayFields" name="frmRepRecrCessStatus"  />
<html:hidden property="txtIndex" name="frmRepRecrCessStatus"  />
<html:hidden property="headerPrimaryKey" name="frmRepRecrCessStatus"  />
<html:hidden property="buttonName" name="frmRepRecrCessStatus"  />
<input type="hidden" name="reportPath" value="/hrms/report/Recruitment_Cessation_Status_For_A_Period.jasper"/>
<input type="hidden" name="reportName" value="RecrCessStatus"/>
<input type="hidden" name="DOWNLOAD" value="C"/>
</html:form>
</body>
</html:html>

  <% ReportReader oReportReader=new ReportReader(); %> 
    <% ParamUtil oParamUtil=new ParamUtil(); %> 

<script language="javascript">


function doGetReport()
{

  var win_option="width=900,height=620,left=50,top=50,modal=yes,"+"toolbar=yes,location=no,directories=no,status=no,menubar=yes,"+"scrollbars=yes,resizable=yes";
  window.open("http://<%=oReportReader.getAppServerName()%>:<%=oReportReader.getAppServerPortNumber()%>/<%=oReportReader.getAppServerReportPathAlias()%>/rwservlet?<%=oParamUtil.getKeyinfo("Hrms","RepRecrCessStatusScreen","RepRecrCessStatusKey").trim()%>&vFROMDATE="+document.forms[0].txtFromDate.value+"&vTODATE="+document.forms[0].txtToDate.value,'',win_option);
}
function viewReport(){
    document.forms[0].submit();
    var target = '/hrms/RepRecrCessStatusJasperAction.do?event=RecrCessStatus&reportPath=/hrms/report/Recruitment_Cessation_Status_For_A_Period.jasper';
    var w = window.open(target);
    w.resizeTo(screen.width,screen.height);
}
function downloadReport() {
    var downloadOption = document.getElementsByName("downloadOption")[0].value;
    var downloadField = document.getElementsByName("DOWNLOAD")[0];
    downloadField.value = downloadOption;
    document.forms[0].submit();
}
 function doValidate()
{  
 return "RepRecrCessStatusValidate.do"; 
  
}
 function doRefresh()
{  
 return  "RepRecrCessStatusRefreshAction.do";
  
}

function lfnLoad()
{  
  if(document.forms[0].firstLoad.value=="")
  {
   doBaseOnLoad();  
  }  
}
function doOnLoad()
{
  return  "RepRecrCessStatusOnLoadAction.do";
}
function doExit()
{
  return  "RepRecrCessStatusExitAction.do";
}
function showCalendar(inputId, butId) {  
   if(butId.alt)
   {
    iIndex=butId.alt;
   }
   else
   {
    iIndex="-1";
   }
   Calendar.setup({inputField	: inputId,
		   ifFormat	: "%d-%b-%Y",
		   button	: butId,
       position: iIndex
  		  });
        
   return false;
}



</script>

<!---- PURCHASE REPORT--------->    
