first commit

This commit is contained in:
2025-07-28 13:56:49 +05:30
commit e9eb805edb
3438 changed files with 520990 additions and 0 deletions

View File

@@ -0,0 +1,256 @@
<%@ 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="RepTrainingDetailsJasperAction" name="frmRepTrainingDetails" type="wenrgise.hrms.webtier.form.RepTrainingDetailsForm" scope="session">
<bean:define id="ParentForm" name="frmRepTrainingDetails" 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>TRAINING DETAILS 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 Training Details </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 class=labelText><bean:message key="hrm.HrmEmpTrngHist.empNo" /></td>
<td ><enrgise:text property="empNo" name="frmRepTrainingDetails" titleKey="hrm.HrmEmpTrngHist.empNo" maxlength="15" size="23" styleClass="optional" disabledClass="locked" onchange="doOnChangeLov()" /><enrgise:img height="16" align="center" src="../includes/images/lov.jpg" styleClass="icon" property="butEmpId" name="frmRepTrainingDetails" onclick="return ShowTrngEmpHistEmpNo()" /> </td>
<td ><enrgise:text property="empName" name="frmRepTrainingDetails" titleKey="hrm.HrmEmpTrngHist.empName" maxlength="15" size="23" styleClass="optional" disabledClass="locked" /></td>
</tr>
<tr>
<td class="labelText"><bean:message key="hrm.HrmEmpTrngHist.fromDate" /></td>
<td><enrgise:text property="fromDate" name="frmRepTrainingDetails" titleKey="hrm.HrmEmpTrngHist.fromDate" size="26" styleClass="required" readonly="true" disabledClass="locked" onchange="doOnChangeLov()" /><enrgise:img src="../includes/images/cal.gif" width="15" height="19" align="top" styleClass="lov" name="frmRepTrainingDetails" property="butFromDate" onclick="showCalendar('fromDate',this)" /></td>
<td class="labelText"><bean:message key="hrm.HrmEmpTrngHist.toDate" /></td>
<td><enrgise:text property="toDate" name="frmRepTrainingDetails" titleKey="hrm.HrmEmpTrngHist.toDate" size="26" styleClass="required" readonly="true" disabledClass="locked" onchange="doOnChangeLov()" /><enrgise:img src="../includes/images/cal.gif" width="15" height="19" align="top" styleClass="lov" name="frmRepTrainingDetails" property="butToDate" onclick="showCalendar('toDate',this)" /></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=" View Report " onclick="viewReport();" ></td>
<td width=60% bgColor=#4682b4><input class=bottomBarText type=button value=" Download Report " onclick="downloadPDF();" ></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="frmRepTrainingDetails" property="screenName" value="RepTrainingDetailsScreen" />
<html:hidden property="screenMode" name="frmRepTrainingDetails" value="Q" />
<html:hidden property="positionRequested" name="frmRepTrainingDetails" />
<html:hidden property="userPageRequested" name="frmRepTrainingDetails" />
<html:hidden property="userPositionRequested" name="frmRepTrainingDetails" />
<html:hidden property="pageRequested" name="frmRepTrainingDetails" />
<html:hidden property="headerDataChanged" name="frmRepTrainingDetails" />
<html:hidden property="detailDataChanged" name="frmRepTrainingDetails" />
<html:hidden property="lovKey" name="frmRepTrainingDetails" />
<html:hidden property="firstLoad" name="frmRepTrainingDetails" />
<html:hidden property="txtSearchFields" name="frmRepTrainingDetails" />
<html:hidden property="txtDisplayFields" name="frmRepTrainingDetails" />
<html:hidden property="txtIndex" name="frmRepTrainingDetails" />
<html:hidden property="headerPrimaryKey" name="frmRepTrainingDetails" />
<html:hidden property="buttonName" name="frmRepTrainingDetails" />
<html:hidden property="empNoId" name="frmRepTrainingDetails" />
<input type="hidden" name="reportPath" value="/hrms/report/Training_Details.jasper"/>
<input type="hidden" name="reportName" value="Training_Details"/>
<input type="hidden" name="DOWNLOAD" value="C"/>
</html:form>
</body>
</html:html>
<% ReportReader oReportReader=new ReportReader(); %>
<% ParamUtil oParamUtil=new ParamUtil(); %>
<script language="javascript">
function viewReport(){
document.forms[0].submit();
var target = '/hrms/RepTrainingDetailsJasperAction.do?event=TrainingDetails&reportPath=/hrms/report/Training_Details.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/RepTrainingDetailsJasperAction.do?reportName=Training_Details&reportPath=/hrms/report/Training_Details.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/RepTrainingDetailsJasperAction.do?reportName=Training_Details&reportPath=/hrms/report/Training_Details.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/RepTrainingDetailsJasperAction.do?reportName=Training_Details&reportPath=/hrms/report/Training_Details.jasper&DOWNLOAD=E';
var w = window.open(target);
w.resizeTo(screen.width,screen.height);
}
function doValidate()
{
return "RepTrainingDetailsValidate.do";
}
function lfnLoad()
{
if(document.forms[0].firstLoad.value=="")
{
doBaseOnLoad();
}
}
function doOnLoad()
{
return "RepTrainingDetailsOnLoadAction.do";
}
function doExit()
{
return "RepTrainingDetailsExitAction.do";
}
function ShowTrngEmpHistEmpNo()
{
document.forms[0].lovKey.value = "TrngEmpHistEmpLOV" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
document.forms[0].txtSearchFields.value = "hrm.HrmEmpTrngHistForm.employeeNo,hrm.HrmEmpTrngHistForm.employeeName";
document.forms[0].txtDisplayFields.value = "EmpNoId,empNo,empName";
showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','frmRepTrainingDetails');
return true;
}
function doOnChangeLov()
{
doBaseValidate();
}
</script>
<!---- PURCHASE REPORT--------->