235 lines
11 KiB
Plaintext
235 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="RepConfidentialFileJasperAction" name="frmRepConfidentialFile" type="wenrgise.hrms.webtier.form.RepConfidentialFileForm" scope="session">
|
|
<bean:define id="ParentForm" name="frmRepConfidentialFile" 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>CONFIDENTIAL FILE 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>Generate Confidential File </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.txtYYMM" /></td>
|
|
<td width=60% colspan=6><html:text property="txtYYMM" titleKey="hrm.Report.txtYYMM" alt="P" maxlength="20" size="23" styleClass="required" readonly="true" onchange="doChangeHeader();" /><enrgise:img height="16" align="center" src="../includes/images/lov.jpg" property="buttxtYearMonth" name="frmRepConfidentialFile" /></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><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="frmRepConfidentialFile" property="screenName" value="RepConfidentialFileScreen" />
|
|
|
|
<html:hidden property="screenMode" name="frmRepConfidentialFile" value="U" />
|
|
<html:hidden property="positionRequested" name="frmRepConfidentialFile" />
|
|
<html:hidden property="userPageRequested" name="frmRepConfidentialFile" />
|
|
<html:hidden property="userPositionRequested" name="frmRepConfidentialFile" />
|
|
<html:hidden property="pageRequested" name="frmRepConfidentialFile" />
|
|
<html:hidden property="headerDataChanged" name="frmRepConfidentialFile" />
|
|
<html:hidden property="detailDataChanged" name="frmRepConfidentialFile" />
|
|
<html:hidden property="lovKey" name="frmRepConfidentialFile" />
|
|
<html:hidden property="firstLoad" name="frmRepConfidentialFile" />
|
|
<html:hidden property="txtSearchFields" name="frmRepConfidentialFile" />
|
|
<html:hidden property="txtDisplayFields" name="frmRepConfidentialFile" />
|
|
<html:hidden property="txtIndex" name="frmRepConfidentialFile" />
|
|
<html:hidden property="headerPrimaryKey" name="frmRepConfidentialFile" />
|
|
<html:hidden property="buttonName" name="frmRepConfidentialFile" />
|
|
<input type="hidden" name="reportPath" value="/hrms/report/Confidential_File_Report.jasper"/>
|
|
<input type="hidden" name="pdfOutPath" value="c:/"/>
|
|
<input type="hidden" name="reportName" value="Confidential_File_Report"/>
|
|
<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","RepConfidentialFileScreen","RepConfidentialFileKey").trim()%>",'',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/RepConfidentialFileJasperAction.do?event=ConfidentialFile&reportPath=/hrms/report/Confidential_File_Report.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 "RepConfidentialFileValidate.do";
|
|
|
|
}
|
|
|
|
function lfnLoad()
|
|
{
|
|
if(document.forms[0].firstLoad.value=="")
|
|
{
|
|
doBaseOnLoad();
|
|
|
|
}
|
|
}
|
|
function doOnLoad()
|
|
{
|
|
return "RepConfidentialFileOnLoadAction.do";
|
|
}
|
|
function doExit()
|
|
{
|
|
return "RepConfidentialFileExitAction.do";
|
|
}
|
|
|
|
|
|
|
|
</script>
|
|
|
|
<!---- PURCHASE REPORT--------->
|