250 lines
11 KiB
Plaintext
250 lines
11 KiB
Plaintext
<%@ 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="RepDistnOfManpowerJasperAction" name="frmRepDistnOfManpower" type="wenrgise.hrms.webtier.form.RepDistnOfManpowerForm" scope="session">
|
|
<bean:define id="ParentForm" name="frmRepDistnOfManpower" 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>DISTRIBUTION OF MANPOWER ON A PARTICULAR DATE</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> Manpower Distribution 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.txtDate"/>--></td>
|
|
<td width=60% colspan="6"><html:hidden property="txtDate" titleKey="hrm.Report.txtDate" alt="P" styleClass="required" onchange="doChangeHeader();" value="01-Jan-2006" /><!--<enrgise:img name="frmRepDistnOfManpower" src="../includes/images/cal.gif" width="15" height="19" align="top" styleClass="lov" property="butTxtDate" onclick="showCalendar('txtDate',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="frmRepDistnOfManpower" property="screenName" value="RepDistnOfManpowerScreen" />
|
|
|
|
<html:hidden property="screenMode" name="frmRepDistnOfManpower" value="U" />
|
|
<html:hidden property="positionRequested" name="frmRepDistnOfManpower" />
|
|
<html:hidden property="userPageRequested" name="frmRepDistnOfManpower" />
|
|
<html:hidden property="userPositionRequested" name="frmRepDistnOfManpower" />
|
|
<html:hidden property="pageRequested" name="frmRepDistnOfManpower" />
|
|
<html:hidden property="headerDataChanged" name="frmRepDistnOfManpower" />
|
|
<html:hidden property="detailDataChanged" name="frmRepDistnOfManpower" />
|
|
<html:hidden property="lovKey" name="frmRepDistnOfManpower" />
|
|
<html:hidden property="firstLoad" name="frmRepDistnOfManpower" />
|
|
<html:hidden property="txtSearchFields" name="frmRepDistnOfManpower" />
|
|
<html:hidden property="txtDisplayFields" name="frmRepDistnOfManpower" />
|
|
<html:hidden property="txtIndex" name="frmRepDistnOfManpower" />
|
|
<html:hidden property="headerPrimaryKey" name="frmRepDistnOfManpower" />
|
|
<html:hidden property="buttonName" name="frmRepDistnOfManpower" />
|
|
<input type="hidden" name="reportPath" value="/hrms/report/AllIndiaManpowerList.jasper"/>
|
|
<input type="hidden" name="pdfOutPath" value="c:/"/>
|
|
<input type="hidden" name="reportName" value="AllIndiaManpowerList"/>
|
|
<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","RepDistnOfManpowerScreen","RepDistnOfManpowerKey").trim()%>&USER_DATE="+frmRepDistnOfManpower.txtDate.value,'',win_option);
|
|
|
|
}
|
|
function viewReport(){
|
|
var button = document.getElementsByName('button');
|
|
button.value='Download';
|
|
var downloadOption = 'P';
|
|
var downloadField = document.getElementsByName("DOWNLOAD");
|
|
downloadField.value = downloadOption;
|
|
var target = '/hrms/RepDistnOfManpowerJasperAction.do?event=DistnOfManpower&reportPath=/hrms/report/AllIndiaManpowerList.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 "RepDistnOfManpowerValidate.do";
|
|
|
|
}
|
|
|
|
function lfnLoad()
|
|
{
|
|
if(frmRepDistnOfManpower.firstLoad.value=="")
|
|
{
|
|
doBaseOnLoad();
|
|
|
|
}
|
|
}
|
|
function doOnLoad()
|
|
{
|
|
return "RepDistnOfManpowerOnLoadAction.do";
|
|
}
|
|
function doExit()
|
|
{
|
|
return "RepDistnOfManpowerExitAction.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>
|
|
|
|
|