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,437 @@
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/enrgise-html.tld" prefix="enrgise" %>
<html:html>
<html:base />
<head>
<TITLE><bean:message key="hrm.title" /></TITLE>
<jsp:include page="GenIncludes.jsp" flush="true" />
<meta http-equiv=pragma content=no-cache>
</head>
<BODY onkeydown="hotKeys(event);"; scroll=auto>
<html:form name="HrmLvCancQueryForm" action="HrmCancelQueryBaseAction" type="wenrgise.hrms.webtier.form.HrmLvCancQueryForm">
<bean:define id="ParentForm" name="HrmLvCancQueryForm" 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()" /><img property="butInsert" src="../includes/images/insert_dis.jpg" /></TD>
<TD width="2%"></TD>
<TD ><img property="butExecute" alt="Execute (Ctrl+U)" src="../includes/images/execute_dis.jpg" /><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()" /><img 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" onclick="doBaseExit()" onmouseover='this.src="../includes/images/exit_act.jpg"' onmouseout='this.src="../includes/images/exit.jpg"' alt="Exit (Alt+X)" src="../includes/images/exit.jpg" /><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" /></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><html:text property="newPositionRequested" size="1" onkeydown="isInteger(event)" title=" " alt="N" /></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>
<table>
<tr>
<td colspan="11" class="userText"></td>
</tr>
<enrgise:checkSession/>
</TABLE>
<!--Top Most Blue Bar-->
<TABLE cellSpacing=0 bgColor=#bdd0ef>
<tr>
<TD colSpan=12 class=mainHeader height=10><bean:message key="hrm.HrmLeaveCancellationQuery.mainHeader" /></TD>
</TR>
</TABLE>
<!--// Display Errors -->
<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>
<!--// Display Errors -->
<TABLE cellSpacing=0 cellPadding=0 border=0 >
<TR>
<TD>
<TABLE cellSpacing=0 cellPadding=0 >
<!-- Header Starts -->
<TR>
<TD class=subHeader colspan=6><bean:message key="hrm.HrmLeaveCancellationQuery.subHeader1" /></TD>
</TR>
<TR>
<TD colspan=6 bgColor=#4682b4><IMG height=1 src="../includes/images/pixel.gif" width=1 border=0></TD>
</TR>
<tr>
<td class="labelText"><bean:message key="hrm.HrmLeaveCancellationQuery.employeeNumber" /></td>
<td><enrgise:text property="employeeNumber" name="HrmLvCancQueryForm" titleKey="hrm.HrmLeaveCancellationQuery.employeeNumber" maxlength="10" onkeypress="isInteger(event)" size="23" alt="P" styleClass="required" disabledClass="required" /><enrgise:img height="16" align="center" src="../includes/images/lov.jpg" property="butEmployeeNumber" name="HrmLvCancQueryForm" onclick="return ShowEmpNo();doOnChangeLov(lovKey)" /></td>
<td class="labelText"><bean:message key="hrm.HrmLeaveCancellationQuery.leaveType" /></td>
<td><html:text property="leaveType" titleKey="hrm.HrmLeaveCancellationQuery.leaveType" size="23" styleClass="optional" readonly="true" /><enrgise:img height="16" align="center" src="../includes/images/lov.jpg" property="butLeaveType" name="HrmLvCancQueryForm" onclick="return ShowEmpType();" /></td>
<td class="labelText"><bean:message key="hrm.HrmLeaveCancellationQuery.leaveDescription" /></td>
<td><html:text property="leaveDescription" name="HrmLvCancQueryForm" titleKey="hrm.HrmLeaveCancellationQuery.leaveDescription" maxlength="40" size="26" alt="P" styleClass="locked" readonly="true" /></td>
</tr>
<tr>
<td class="labelText"><bean:message key="hrm.HrmLeaveCancellationQuery.cancelFromDate" /></td>
<td><html:text property="cancelFromDate" name="HrmLvCancQueryForm" titleKey="hrm.HrmLeaveCancellationQuery.cancelFromDate" size="23" styleClass="optional" readonly="true" alt="D" /><enrgise:img width="16" height="19" align="top" styleClass="icon" name="HrmLvCancQueryForm" src="../includes/images/cal.gif" property="butCancelFromDate" onclick="showCalendar('cancelFromDate',this)" /></td>
<td class="labelText"><bean:message key="hrm.HrmLeaveCancellationQuery.cancelToDate" /></td>
<td><html:text property="cancelToDate" name="HrmLvCancQueryForm" titleKey="hrm.HrmLeaveCancellationQuery.cancelToDate" size="23" styleClass="optional" readonly="true" alt="D" /><enrgise:img width="16" height="19" align="top" styleClass="icon" name="HrmLvCancQueryForm" src="../includes/images/cal.gif" property="butCancelToDate" onclick="showCalendar('cancelToDate',this)" /></td>
<td class="labelText"><bean:message key="hrm.HrmLeaveCancellationQuery.cancellationStatus" /></td>
<td><enrgise:select property="cancellationStatus" name="HrmLvCancQueryForm" alt="cancellationStatus" styleClass="optional" disabledClass="locked" >
<enrgise:option value="" ><bean:message key="hrm.pleaseSelect" /></enrgise:option>
<enrgise:option value="Y" > <bean:message key="hrm.HrmLeaveCancellationQuery.full" /></enrgise:option>
<enrgise:option value="N" > <bean:message key="hrm.HrmLeaveCancellationQuery.partial" /></enrgise:option>
</enrgise:select></td>
</tr>
<tr height="10">
<td colspan="6"></td>
</tr>
</table>
<table cellspacing=0 cellpadding=0 border=0>
<!-- Detail Information Row starts -->
<TR>
<TD colspan=6>
<!-- Details Table Starts -->
<TABLE cellSpacing=0 cellPadding=0 >
<tr>
<td bgcolor="#4682B4" width="10"><img src="../includes/images/pixel.gif" width="10" height="1" border="0"></td>
<td bgcolor="#4682B4" nowrap class=actTabText >Cancellation Details<img src="../includes/images/pixel.gif" width="10" height="1" border="0"></td>
<TD><IMG height=19 src="../includes/images/formtab_r.gif" width=10 border=0></TD>
<TD width="100%" background="../includes/images/line_t.gif">&nbsp;</TD>
<TD background="../includes/images/line_t.gif"><IMG height=1 src="../includes/images/pixel.gif" width=10 border=0></TD>
</tr>
<TR >
<!-- Detail table Container starts -->
<TD colspan=11>
<TABLE cellSpacing=0 cellPadding=0 border=0>
<TBODY>
<TR>
<TD >
<DIV id=divDtlTable style="height:280px" >
<!-- Detail table starts -->
<TABLE cellSpacing=0 cellPadding=0>
<TBODY>
<tr>
<TD class=tableHeader width="1%"><input type=checkbox disabled=true styleClass=locked></TD>
<TD class=tableHeader width="5%"><bean:message key="hrm.HrmLeaveCancellationQuery.transId" /></td>
<TD class=tableHeader width="9%"><bean:message key="hrm.HrmLeaveCancellationQuery.leaveCodes" /></td>
<TD class=tableHeader width="9%"><bean:message key="hrm.HrmLeaveCancellationQuery.appliedLeaveDate" /></td>
<TD class=tableHeader width="9%"><bean:message key="hrm.HrmLeaveCancellationQuery.cancellationDate" /></td>
<TD class=tableHeader width="9%"><bean:message key="hrm.HrmLeaveCancellationQuery.cancellationType" /></td>
<TD class=tableHeader width="6%"><bean:message key="hrm.HrmLeaveCancellationQuery.cancelStatus" /></td>
</tr>
<logic:iterate id="HrmCancelScreen" name="HrmLvCancQueryForm" property="arylstLvCnclQuery" type="wenrgise.hrms.bean.HrmLvCancQueryDtlBean" indexId="idx" >
<tr class='<bean:write name="HrmLvCancQueryForm" property="listRowClass" />' >
<TD ><html:hidden property="status" name="HrmCancelScreen" /><html:hidden property="detailId" name="HrmCancelScreen" /><html:hidden property="selectAll" /></td>
<TD align="center" ><html:link action="LinkHrmEmpLeaveCanc" paramId="transId" paramProperty="txtTransId" paramName="HrmCancelScreen" styleClass="labelText" >VIEW</html:link></td>
<TD class=tableText ><html:text property="txtLeaveCodes" name="HrmCancelScreen" style="width:100%" alt="P" maxlength="20" onchange='<%="doChangeDetail("+idx.toString()+")"%>' styleClass="locked" readonly="true" /></td>
<TD class=tableText ><html:text property="txtAppliedLeaveDate" name="HrmCancelScreen" style="width:100%" alt="D" onchange='<%="doChangeDetail("+idx.toString()+")"%>' styleClass="locked" readonly="true" /></td>
<TD class=tableText><html:text property="txtCancellationDate" name="HrmCancelScreen" style="width:100%" alt="D" onchange='<%="doChangeDetail("+idx.toString()+")"%>' styleClass="locked" readonly="true" /></td>
<!--09/02/06>
<-->
<td><html:select property="txtCancellationType" name="HrmCancelScreen" style="width:100%" alt="A" onchange='<%="doChangeDetail("+idx.toString()+")"%>' styleClass="locked" disabled="true" >
<html:option value="" ><bean:message key="hrm.pleaseSelect" /></html:option>
<html:option value="Y" > <bean:message key="hrm.HrmLeaveCancellationQuery.full" /></html:option>
<html:option value="" > <bean:message key="hrm.HrmLeaveCancellationQuery.partial" /></html:option>
</html:select></td>
<!--end 09/02/06>
<-->
<td><html:select property="txtCancelStatus" name="HrmCancelScreen" style="width:100%" alt="A" onchange='<%="doChangeDetail("+idx.toString()+")"%>' styleClass="locked" disabled="true" >
<html:option value="" ><bean:message key="hrm.pleaseSelect" /></html:option>
<html:option value="A" > <bean:message key="hrm.HrmLeaveCancellationQuery.approved" /></html:option>
<html:option value="R" > <bean:message key="hrm.HrmLeaveCancellationQuery.rejected" /></html:option>
<html:option value="P" > <bean:message key="hrm.HrmLeaveCancellationQuery.pending" /></html:option>
<html:option value="N" > <bean:message key="hrm.HrmLeaveCancellationQuery.new" /></html:option>
</html:select></td>
</tr>
</logic:iterate>
</TBODY>
</TABLE>
</DIV>
</TD>
</TR>
<!-- Get details starts -->
<tr>
<bean:define id="pageNo" name="ParentForm" property="pageRequested" toScope="request" />
<bean:define id="maxPage" name="ParentForm" property="totalPageCount" toScope="request" />
<TABLE border=0>
<tbody>
<TR>
<TD ><enrgise:button altKey="wenrgise.common.getDetail" onclick="doBaseGetDetail()" property="butGetDetail" name="ParentForm" styleClass="bottomBarText">&nbsp;Get&nbsp;De<u>t</u>ail&nbsp;</enrgise:button><button onclick="doBaseAddRow()" name="butAddRow" disabled="true" styleClass="bottomBarText">&nbsp;&nbsp;Add&nbsp;<u>R</u>ow&nbsp;&nbsp;</button><button onclick="doBaseDelRow()"
name="butDelRow" disabled="true" styleClass="bottomBarText" ><u>D</u>elete Row</button></TD>
<td width=50%></td>
<TD ><enrgise:img name="ParentForm" property="butPrevDetail" src="../includes/images/butn_dtl_prev.jpg" onmouseover='this.src="../includes/images/butn_dtl_prev_act.jpg"' onmouseout='this.src="../includes/images/butn_dtl_prev.jpg"' alt="Butn_prev (Alt+<)" onclick="doBasePrevDetail()"/></td>
<td class=dtlNavText><bean:write name="pageNo" /> of
<bean:write name="maxPage" /></td></td>
<td align=right><enrgise:img name="ParentForm" property="butNextDetail" src="../includes/images/butn_dtl_next.jpg" onmouseover='this.src="../includes/images/butn_dtl_next_act.jpg"' onmouseout='this.src="../includes/images/butn_dtl_next.jpg"' alt="Butn_next (Alt+>)" onclick="doBaseNextDetail()"/></td>
<td align=right><enrgise:text property="newPageRequested" size="1" onkeydown="isInteger(event)" styleClass="optional" disabledClass="locked" /></td>
<td ><enrgise:img name="ParentForm" property="butJumpDetail" altKey="wenrgise.common.go" src="../includes/images/go_dtl.jpg" onclick="doBaseJumpDetail()" /></td>
</TR>
</tr>
</TBODY>
</TABLE>
</td>
</tr>
</TABLE>
</td>
</tr>
<!-- Tab Table Ends -->
<!-- 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 bgColor=#4682b4></td>
<td align=right bgColor=#4682b4><img src="../includes/images/man.jpg"></td>
</TR>
</table>
</td>
</tr>
<!-- Container Table Ending Columns Starts-->
</TD>
</TR>
</TBODY>
</TABLE>
<!-- Container Table Ends -->
<html:hidden property="screenName" name="HrmLvCancQueryForm" value="HrmEmployeeLeaveCancellationQueryScreen" />
<html:hidden name="HrmLvCancQueryForm" property="forwardedPage" />
<html:hidden property="positionRequested" name="HrmLvCancQueryForm" />
<html:hidden property="screenMode" name="HrmLvCancQueryForm" />
<html:hidden property="userPageRequested" name="HrmLvCancQueryForm" />
<html:hidden property="userPositionRequested" name="HrmLvCancQueryForm" />
<html:hidden property="pageRequested" name="HrmLvCancQueryForm" />
<html:hidden property="headerDataChanged" name="HrmLvCancQueryForm" />
<html:hidden property="detailDataChanged" name="HrmLvCancQueryForm" />
<input type="hidden" name="multipleFlag" >
<input type="hidden" name="queryParam" >
<!-- Hidden Fields for LOV -->
<html:hidden property="lovKey" name="HrmLvCancQueryForm" />
<html:hidden property="txtSearchFields" name="HrmLvCancQueryForm" />
<html:hidden property="txtDisplayFields" name="HrmLvCancQueryForm" />
<html:hidden property="transId" name="HrmLvCancQueryForm" />
<html:hidden property="hdnDetailId" name="HrmLvCancQueryForm" />
<html:hidden property="txtIndex" name="HrmLvCancQueryForm" />
<html:hidden property="firstLoad" name="HrmLvCancQueryForm" />
<html:hidden property="empId" name="HrmLvCancQueryForm" />
<html:hidden property="empName" name="HrmLvCancQueryForm" />
<html:hidden property="leaveTypeId" name="HrmLvCancQueryForm" />
</html:form>
</body>
</html:html>
<script language="javascript">
function doChangeHeader()
{
if(document.forms[0].screenMode.value=="U" || document.forms[0].screenMode.value=="N")
document.forms[0].headerDataChanged.value="false";
}
function doQueryMode()
{
return "HrmCancelQueryQueryModeAction.do";
}
function doInsertMode()
{
return "HrmCancelQueryNewModeAction.do";
}
function doExecute()
{
return "HrmCancelQueryGetHeaderAction.do";
}
function doSave()
{
return "HrmCancelQuerySaveAction.do";
}
function doDelete()
{
return "HrmCancelQueryDeleteAction.do";
}
function doRefresh()
{
return "HrmCancelQueryRefreshAction.do";
}
function doPrevHeader()
{
return "HrmCancelQueryGetNextHeaderAction.do";
}
function doNextHeader()
{
return "HrmCancelQueryGetNextHeaderAction.do";
}
function doJumpHeader()
{
return "HrmCancelQueryGetNextHeaderAction.do";
}
function doGetDetail()
{
return "HrmCancelQueryGetDetailAction.do";
}
function doAddRow()
{
return "HrmCancelQueryAddRowAction.do";
}
function doDelRow()
{
return "HrmCancelQueryDeleteRowAction.do";
}
function doExit()
{
return "HrmCancelQueryExitAction.do";
}
function doGetDetailTableName()
{
return "HrmCancelQuery";
}
function doPrevDetail()
{
return "HrmCancelQueryGetDetailPageAction.do";
}
function doNextDetail()
{
return "HrmCancelQueryGetDetailPageAction.do";
}
function doJumpDetail()
{
return "HrmCancelQueryGetDetailPageAction.do";
}
function doOnLoad()
{
if(document.forms[0].firstLoad.value!="false")
{
return "HrmCancelQueryOnLoadAction.do";
}
}
function setCheckedValues(val)
{
document.forms[0].txtIndex.value=val;
document.forms[0].transId.value=document.getElementsByName("txtTransId")[val].value;
}
function ShowNextPage()
{
window.open("<html:rewrite page="/hrms/jsp/HrmEmployeeLeaveCancellationBatchScreen.jsp" />","_self");
return true;
}
function ShowEmpNo()
{
document.forms[0].lovKey.value = "CancelLeaveEmpNo" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
document.forms[0].txtSearchFields.value = "hrm.HrmLeaveChangeQuery.employeeNumber,hrm.HrmLeaveChangeQuery.employeeName";
document.forms[0].txtDisplayFields.value = "empId,employeeNumber,empName";
document.forms[0].multipleFlag.value = "false";
showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmLvCancQueryForm');
return true;
}
function ShowEmpType()
{
document.forms[0].lovKey.value = "CancelLeaveType" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
document.forms[0].txtSearchFields.value = "hrm.HrmLeaveCancellationQuery.leaveType,hrm.HrmLeaveCancellationQuery.leaveDescription";
document.forms[0].txtDisplayFields.value = "leaveTypeId,leaveType,leaveDescription";
document.forms[0].multipleFlag.value="false";
showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmLvCancQueryForm');
return true;
}
function doGetInsertData()
{
}
function doValidate()
{
return "HrmCancelQueryValidateAction.do";
}
function doOnChangeLov(lovName)
{
if(lovName == 'CancelLeaveEmpNoHrmEmployeeLeaveCancellationQueryScreenQ')
{
doBaseValidate();
}
}
</script>