<%@ 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" onkeydown="hotKeys(event);";>

<html:form  action="RepIncrDueJasperAction" name="HrmReportInputForm" type="wenrgise.hrms.webtier.form.ReportInputForm" scope="session">
<bean:define id="ParentForm" name="HrmReportInputForm" toScope="request" />
<jsp:include page="GenIconMenu.jsp" flush="true" />


<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>EMPLOYEE INCREMENT DUE 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> Employee wise Increment Due Report </TD>
        </TR>
        <TR>
              <TD colspan=6 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=40% class="labelText"><bean:message key="hrm.Report.txtMonth" /></td>
                  <td>
                  <enrgise:select property="txtMonth" name="HrmReportInputForm"  alt="txtMonth"  styleClass="optional" formName="HrmReportInputForm"  disabledClass="locked" onchange="doBaseValidate();"  >
                  <enrgise:option value="" ><bean:message   key="hrm.pleaseSelect" /></enrgise:option>      
                  <enrgise:option value="1" > <bean:message key="hrm.jan" /></enrgise:option>
                  <enrgise:option value="2" > <bean:message key="hrm.feb" /></enrgise:option>
                  <enrgise:option value="3" > <bean:message key="hrm.mar" /></enrgise:option>
                  <enrgise:option value="4" > <bean:message key="hrm.apr" /></enrgise:option>
                  <enrgise:option value="5" > <bean:message key="hrm.may" /></enrgise:option>
                  <enrgise:option value="6" > <bean:message key="hrm.jun" /></enrgise:option>
                  <enrgise:option value="7" > <bean:message key="hrm.jul" /></enrgise:option>
                  <enrgise:option value="8" > <bean:message key="hrm.aug" /></enrgise:option>
                  <enrgise:option value="9" > <bean:message key="hrm.sep" /></enrgise:option>
                  <enrgise:option value="10" > <bean:message key="hrm.oct" /></enrgise:option>
                  <enrgise:option value="11" > <bean:message key="hrm.nov" /></enrgise:option>
                  <enrgise:option value="12" > <bean:message key="hrm.dec" /></enrgise:option>
                  </enrgise:select>
                  </td>
              </td>
        </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="   Generate Report   " onclick="doGetReport();" ></td-->
                        <td width=60% bgColor=#4682b4><input class=bottomBarText type=button value="   View Report   " onclick="viewReport();" ></td>
                        <!--<td width=60% bgColor=#4682b4><input class=bottomBarText type=button value="   Download Excel   " onclick="downloadReport();" ></td>-->
                        <td width=60% bgColor=#4682b4><input class=bottomBarText type=button value="   Download CSV   " onclick="downloadCSV();" ></td>
                        <td width=60% bgColor=#4682b4><input class=bottomBarText type=button value="   Download PDF   " onclick="downloadPDF();" ></td>
                       
                   </TR>
                </table>
            </td>
          </tr>

</TABLE>

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

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

<!-- Container Table Ends -->

<html:hidden name="HrmReportInputForm"  property="screenName" value="RepIncrDue" />

<html:hidden property="screenMode" name="HrmReportInputForm" value="Q" />
<html:hidden property="positionRequested" name="HrmReportInputForm" />
<html:hidden property="userPageRequested" name="HrmReportInputForm" />
<html:hidden property="userPositionRequested" name="HrmReportInputForm" />
<html:hidden property="pageRequested" name="HrmReportInputForm" />
<html:hidden property="headerDataChanged" name="HrmReportInputForm" />
<html:hidden property="detailDataChanged" name="HrmReportInputForm" />
<html:hidden property="lovKey" name="HrmReportInputForm"  />
<html:hidden property="firstLoad" name="HrmReportInputForm"  /> 
<html:hidden property="txtSearchFields" name="HrmReportInputForm"  />
<html:hidden property="txtDisplayFields" name="HrmReportInputForm"  />
<html:hidden property="txtIndex" name="HrmReportInputForm"  />
<html:hidden property="headerPrimaryKey" name="HrmReportInputForm"  />
<html:hidden property="buttonName" name="HrmReportInputForm"  />
<input type="hidden" name="reportPath" value="/hrms/report/Increment_Due_Report.jasper"/>
<input type="hidden" name="pdfOutPath" value="c:/"/>
<input type="hidden" name="reportName" value="Increment_Due_Report"/>
<input type="hidden" name="DOWNLOAD" value="E"/>


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

<script language="javascript">


function viewReport(){
    var button = document.getElementsByName('button');
    button.value='Download';
    var downloadOption = '';
	  var downloadField = document.getElementsByName("DOWNLOAD");
    downloadField.value = downloadOption;
    var target = '/hrms/RepIncrDueJasperAction.do?reportName=Increment_Due_Report&reportPath=/hrms/report/Increment_Due_Report.jasper';
    var w = window.open(target);
    w.resizeTo(screen.width,screen.height);
}
function downloadPDF(){
    var button = document.getElementsByName('button');
    button.value='Download';
    var downloadOption = '';
	  var downloadField = document.getElementsByName("DOWNLOAD");
    downloadField.value = downloadOption;
    var target = '/hrms/RepIncrDueJasperAction.do?reportName=Increment_Due_Report&reportPath=/hrms/report/Increment_Due_Report.jasper&DOWNLOAD=P';
    var w = window.open(target);
    w.resizeTo(screen.width,screen.height);
}
function downloadCSV(){
    var button = document.getElementsByName('button');
    button.value='Download';
    var downloadOption = '';
	  var downloadField = document.getElementsByName("DOWNLOAD");
    downloadField.value = downloadOption;
    var target = '/hrms/RepIncrDueJasperAction.do?reportName=Increment_Due_Report&reportPath=/hrms/report/Increment_Due_Report.jasper&DOWNLOAD=C';
    var w = window.open(target);
    w.resizeTo(screen.width,screen.height);
}
function downloadReport(){
    var button = document.getElementsByName('button');
    button.value='Download';
    var downloadOption = '';
	  var downloadField = document.getElementsByName("DOWNLOAD");
    //downloadField.value = downloadOption;
    //document.forms[0].submit();
    var target = '/hrms/RepIncrDueJasperAction.do?reportName=Increment_Due_Report&reportPath=/hrms/report/Increment_Due_Report.jasper&DOWNLOAD=E';
    var w = window.open(target);
    w.resizeTo(screen.width,screen.height);
}
function doValidate()
{  
 return "RepIncrDueValidateAction.do"; 
  
}

function lfnLoad()
{  
  if(document.forms[0].firstLoad.value=="")
  {
   doBaseOnLoad();  
  }  
}
function doOnLoad()
{
  return  "RepIncrDueOnLoadAction.do";
}
function doExit()
{
  return  "RepAllIndiaManpowerExitAction.do";
}

</script>