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,461 @@
<%@ 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" />
</head>
<BODY onkeydown="hotKeys(event);" scroll=auto>
<html:form name="HrmClaimMstForm" action="HrmClaimMstBaseAction" type="wenrgise.hrms.webtier.form.HrmClaimMstForm">
<bean:define id="ParentForm" name="HrmClaimMstForm" toScope="request" />
<jsp:include page="GenIconMenu.jsp" flush="true" />
<!--Top Most Blue Bar-->
<TABLE cellSpacing=0 bgColor=#bdd0ef>
<tr>
<TD colSpan=12 class=mainHeader height=10><bean:message key="hrm.HrmClaimMst.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 >
<!--Claim Header Starts -->
<TR>
<TD class=subHeader colspan=6><bean:message key="hrm.HrmClaimMst.SubHeader" /></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.HrmClaimMst.claimCode" /></td>
<td colspan="3"><enrgise:text property="claimCode" titleKey="hrm.HrmClaimMst.claimCode" size="23" styleClass="required" disabledClass="locked" onchange="doChangeHeader();" /><enrgise:img name="HrmClaimMstForm" height="16" align="center" src="../includes/images/lov.jpg" property="butClaimCode" onclick="return ShowClaimCode()" />
<enrgise:text property="claimName" titleKey="hrm.HrmClaimMst.claimName" disabledClass="locked" size="86" styleClass="locked" onchange="doChangeHeader();" /></td>
<td class="labelText"><bean:message key="hrm.HrmClaimMst.docReqFlag" /></td>
<td><enrgise:checkbox property="docReqFlag" name="HrmClaimMstForm" titleKey="hrm.HrmClaimMst.docReqFlag" styleClass="optional" disabledClass="locked" onchange="doChangeHeader();" onclick="doHeaderCheckBox(this);" /><html:hidden property="docReqFlag" name="HrmClaimMstForm"/></td>
</TR>
<tr>
<td class=labelText ><bean:message key="hrm.HrmClaimMst.calendarName" /></td>
<td><html:text property="calendarName" titleKey="hrm.HrmClaimMst.calendarName" size="23" styleClass="locked" onchange="doChangeHeader();" /><enrgise:img name="HrmClaimMstForm" height="16" align="center" src="../includes/images/lov.jpg" property="butCalendarCode" onclick="return ShowCalendarCode()" /></td>
<td class="labelText"><bean:message key="hrm.HrmClaimMst.payrollFlag" /></td>
<td><enrgise:select property="payrollFlag" altKey="hrm.HrmClaimMst.payrollFlag" styleClass="required" disabledClass="locked" onchange="doChangeHeader();" >
<enrgise:option value="" ><bean:message key="hrm.pleaseSelect" /></enrgise:option>
<enrgise:option value="Y" styleClass="labelText" > <bean:message key="hrm.HrmClaimMst.y" /></enrgise:option>
<enrgise:option value="N" styleClass="labelText" > <bean:message key="hrm.HrmClaimMst.n" /></enrgise:option>
</enrgise:select>
</td>
</tr>
<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>
<!-- Tab Table Starts -->
<TABLE cellSpacing=0 cellPadding=0 >
<tr>
<td bgcolor="#4682B4"><img src="../includes/images/pixel.gif" width="10" height="1" border="0"></td>
<td bgcolor="#4682B4" nowrap class=actTabText ><bean:message key="hrm.HrmClaimMst.detail" /><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="85%" 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 height=10>
<!-- Detail table Container starts -->
<TD colSpan=5>
<TABLE cellSpacing=0 cellPadding=0 border=0>
<TBODY>
<TR>
<TD >
<DIV id=divDtlTable style="height:200px;width:1010px">
<TABLE border="0" cellSpacing=0 cellPadding=0 id="HrmClaimMst">
<TBODY>
<tr>
<TD class=tableHeader width="1%"><html:checkbox property="selectAll" onclick="toggleCheckBox('checked')" /></TD>
<TD class=tableHeader width="13%" ><bean:message key="hrm.HrmClaimMst.claimDetailCode" /></td>
<TD class=tableHeader width="12%"><bean:message key="hrm.HrmClaimMst.maxCalLimit" /></td>
<TD class=tableHeader width="13%" ><bean:message key="hrm.HrmLoanMst.greaterLesserFlag" /></td>
<TD class=tableHeader width="12%"><bean:message key="hrm.HrmClaimMst.maxLimit" /></td>
<TD class=tableHeader width="12%" ><bean:message key="hrm.HrmClaimMst.amount" /></td>
<TD class=tableHeader width="14%" ><bean:message key="hrm.HrmClaimMst.effectFromDate" /></td>
<TD class=tableHeader width="14%" ><bean:message key="hrm.HrmClaimMst.effectToDate" /></td>
<TD class=tableHeader width="9%" ><bean:message key="hrm.HrmClaimMst.appliedToAll" /></td>
</tr>
<logic:notEmpty name="HrmClaimMstForm" property="arylstHrmClaimMst" >
<logic:iterate id="HrmClaimMst" name="HrmClaimMstForm" property="arylstHrmClaimMst" type="wenrgise.hrms.bean.HrmClaimMstDtlBean" indexId="idx" >
<logic:notEqual name="HrmClaimMst" property="status" value="D" >
<tr>
<td ><html:hidden property="status" name="HrmClaimMst" /><html:hidden property="detailId" name="HrmClaimMst" /><html:hidden property="itemChecked" name="HrmClaimMst" /><html:checkbox property="checked" name="HrmClaimMstForm" alt="<%=idx.toString()%>" onclick="boxClicked(this.alt);" /></td>
<TD class=tableText ><html:text property="txtClaimDetailCode" name="HrmClaimMst" maxlength="60" size="25" alt="<%=idx.toString()%>" styleClass="required" onchange="doChangeDetail(this.alt);" /></td>
<TD class=tableText ><html:text property="txtMaxCalLimit" name="HrmClaimMst" maxlength="6" size="25" alt="<%=idx.toString()%>" styleClass="optional" onchange="doChangeDetail(this.alt);" /></td>
<TD ><html:select property="txtGreaterLesserFlag" name="HrmClaimMst" styleClass="required" onchange='<%="doChangeDetail("+idx.toString()+");doBaseValidate()"%>' >
<html:option value="" ><bean:message key="hrm.pleaseSelect" /></html:option>
<html:option value="G" ><bean:message key="hrm.HrmClaimMst.greater" /></html:option>
<html:option value="L" ><bean:message key="hrm.HrmClaimMst.lesser" /></html:option>
<html:option value="F" ><bean:message key="hrm.HrmClaimMst.amount" /></html:option>
</html:select>
</td>
<logic:equal property="txtGreaterLesserFlag" name="HrmClaimMst" value="G">
<TD class=tableText ><html:text property="txtMaxLimit" styleClass="required" onkeypress="isInteger(event)" maxlength="8" name="HrmClaimMst" alt="<%=idx.toString()%>" onchange="doChangeDetail(this.alt);" /></td>
<TD class=tableText><html:text property="txtFlatAmount" styleClass="required" maxlength="6" onkeypress="isFloat(event)" name="HrmClaimMst" alt="<%=idx.toString()%>" onchange="doChangeDetail(this.alt);" /></td>
</logic:equal>
<logic:equal property="txtGreaterLesserFlag" name="HrmClaimMst" value="L">
<TD class=tableText ><html:text property="txtMaxLimit" styleClass="required" onkeydown="isInteger(event)" maxlength="8" name="HrmClaimMst" alt="<%=idx.toString()%>" onchange="doChangeDetail(this.alt);" /></td>
<TD class=tableText><html:text property="txtFlatAmount" styleClass="required" maxlength="6" onkeydown="isFloat(event)" name="HrmClaimMst" alt="<%=idx.toString()%>" onchange="doChangeDetail(this.alt);" /></td>
</logic:equal>
<logic:equal property="txtGreaterLesserFlag" name="HrmClaimMst" value="F">
<TD class=tableText ><html:text property="txtMaxLimit" styleClass="locked" value="" readonly="true" maxlength="8" name="HrmClaimMst" alt="<%=idx.toString()%>" onchange="doChangeDetail(this.alt);" /></td>
<TD class=tableText><html:text property="txtFlatAmount" styleClass="required" maxlength="6" onkeydown="isFloat(event)" name="HrmClaimMst" alt="<%=idx.toString()%>" onchange="doChangeDetail(this.alt);" /></td>
</logic:equal>
<logic:equal property="txtGreaterLesserFlag" name="HrmClaimMst" value="">
<TD class=tableText ><html:text property="txtMaxLimit" value="" styleClass="optional" readonly="true" onkeydown="isInteger(event)" maxlength="8" name="HrmClaimMst" alt="<%=idx.toString()%>" onchange="doChangeDetail(this.alt);" /></td>
<TD class=tableText><html:text property="txtFlatAmount" value="" styleClass="optional" readonly="true" maxlength="6" onkeydown="isFloat(event)" name="HrmClaimMst" alt="<%=idx.toString()%>" onchange="doChangeDetail(this.alt);" /></td>
</logic:equal>
<TD class=tableText><html:text property="txtEffectFromDate" styleClass="required" name="HrmClaimMst" readonly="true" alt="<%=idx.toString()%>" onchange="doChangeDetail(this.alt);" /><enrgise:img name="HrmClaimMstForm" width="16" height="19" align="top" src="../includes/images/cal.gif" property="butTxtEffectFromDate" alt="<%=idx.toString()%>" onclick="showCalendar('txtEffectFromDate',this)" /></td>
<TD class=tableText><html:text property="txtEffectToDate" styleClass="optional" name="HrmClaimMst" readonly="true" alt="<%=idx.toString()%>" onchange="doChangeDetail(this.alt);" /><enrgise:img name="HrmClaimMstForm" width="16" height="19" align="top" src="../includes/images/cal.gif" property="butTxtEffectToDate" alt="<%=idx.toString()%>" onclick="showCalendar('txtEffectToDate',this)" /></td>
<TD class=tableText><html:checkbox property="txtAppliedToAll" styleClass="optional" name="HrmClaimMst" onchange='<%="doChangeDetail("+idx.toString()+")"%>' /><html:hidden property="txtAppliedToAll" name="HrmClaimMst" /></td>
</tr>
</logic:notEqual>
<logic:equal name="HrmClaimMst" property="status" value="D" >
<tr>
<td ><html:hidden property="status" name="HrmClaimMst" /><html:hidden property="detailId" name="HrmClaimMst" /><html:hidden property="itemChecked" name="HrmClaimMst" /><html:checkbox property="checked" name="HrmClaimMstForm" alt="<%=idx.toString()%>" onclick="boxClicked(this.alt);" disabled="true" /></td>
<TD class=tableText ><html:text property="txtClaimDetailCode" name="HrmClaimMst" alt="<%=idx.toString()%>" size="25" styleClass="deletedRow" readonly="true" onchange="doChangeDetail(this.alt);" /></td>
<html:hidden property="txtGreaterLesserFlag" name="HrmClaimMst" />
<TD class=tableText ><html:text property="txtMaxCalLimit" styleClass="deletedRow" readonly="true" name="HrmClaimMst" alt="<%=idx.toString()%>" size="25" onchange="doChangeDetail(this.alt);" /></td>
<TD ><html:select property="txtGreaterLesserFlag" name="HrmClaimMst" styleClass="locked" onchange='<%="doChangeDetail("+idx.toString()+")"%>' disabled="true" >
<html:option value="" ><bean:message key="hrm.pleaseSelect" /></html:option>
<html:option value="G" ><bean:message key="hrm.HrmClaimMst.greater" /></html:option>
<html:option value="L" ><bean:message key="hrm.HrmClaimMst.lesser" /></html:option>
<html:option value="F" ><bean:message key="hrm.HrmClaimMst.amount" /></html:option>
</html:select>
</td>
<TD class=tableText ><html:text property="txtMaxLimit" styleClass="deletedRow" readonly="true" name="HrmClaimMst" alt="<%=idx.toString()%>" onchange="doChangeDetail(this.alt);" /></td>
<TD class=tableText><html:text property="txtFlatAmount" styleClass="deletedRow" readonly="true" name="HrmClaimMst" alt="<%=idx.toString()%>" onchange="doChangeDetail(this.alt);" /></td>
<TD class=tableText><html:text property="txtEffectFromDate" styleClass="deletedRow" readonly="true" name="HrmClaimMst" alt="<%=idx.toString()%>" onchange="doChangeDetail(this.alt);" /><img name="HrmClaimMstForm" width="16" height="19" align="top" src="../includes/images/cal_dis.gif" property="butTxtEffectFromDate" alt="<%=idx.toString()%>" /></td>
<TD class=tableText><html:text property="txtEffectToDate" styleClass="deletedRow" readonly="true" name="HrmClaimMst" alt="<%=idx.toString()%>" onchange="doChangeDetail(this.alt);" /><img name="HrmClaimMstForm" width="16" height="19" align="top" src="../includes/images/cal_dis.gif" property="butTxtEffectToDate" alt="<%=idx.toString()%>" /></td>
<TD class=tableText><html:checkbox property="txtAppliedToAll" styleClass="deletedRow" name="HrmClaimMst" alt="<%=idx.toString()%>" onclick="doCheckInitialise(this,this.alt);" onchange="doChangeDetail(this.alt);" disabled="true" /><html:hidden property="txtAppliedToAll" name="HrmClaimMst" /></td>
</tr>
</logic:equal>
</logic:iterate>
</logic:notEmpty>
</TBODY>
</TABLE>
</DIV>
</TD>
</TR>
<tr>
<td colspan="6">
<!--Buttons for Add Row and Save row-->
<jsp:include page="GenDetailMenu.jsp" flush="true" />
</TD>
<td> </td>
</tr>
</TABLE>
</td>
</tr>
<TR>
<TD background="../includes/images/line_r.gif"><IMG src="../includes/images/pixel.gif" border=0></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 bgColor=#4682b4></td>
<td align=right bgColor=#4682b4><img src="../includes/images/man.jpg"></td>
</TR>
</table>
</td>
</tr>
<!-- Container Table Ending Columns Starts-->
</TBODY>
</TABLE>
<html:hidden name="HrmClaimMstForm" property="screenMode" />
<html:hidden name="HrmClaimMstForm" property="screenName" value="HrmClaimMst" />
<html:hidden name="HrmClaimMstForm" property="forwardedPage" />
<html:hidden property="positionRequested" name="HrmClaimMstForm" />
<html:hidden property="lovKey" name="HrmClaimMstForm" />
<html:hidden property="txtSearchFields" name="HrmClaimMstForm" />
<html:hidden property="txtDisplayFields" name="HrmClaimMstForm" />
<html:hidden property="txtIndex" name="HrmClaimMstForm" />
<html:hidden property="userPageRequested" />
<html:hidden property="userPositionRequested" />
<html:hidden property="pageRequested" />
<input type="hidden" name="multipleFlag" >
<input type="hidden" name="queryParam" >
<html:hidden property="claimCodeId" name="HrmClaimMstForm" />
<html:hidden property="calendarId" name="HrmClaimMstForm" />
<html:hidden property="beginMonth" name="HrmClaimMstForm" />
<html:hidden property="durationMonth" name="HrmClaimMstForm" />
<html:hidden property="headerPrimaryKey" name="HrmClaimMstForm" />
<html:hidden property="headerDataChanged" name="HrmClaimMstForm" />
<html:hidden property="detailDataChanged" name="HrmClaimMstForm" />
<html:hidden property="firstLoad" name="HrmClaimMstForm" />
<!-- Container Table Ends -->
</html:form>
</body>
</html:html>
<script>
function doCheckInitialise(elem, i)
{
i=i*2;
if(elem.checked){
document.getElementsByName(elem.name)[i+1].value="on";
}
else{
document.getElementsByName(elem.name)[i+1].value="off";
}
}
function doChangeHeader()
{
document.forms[0].headerDataChanged.value="true";
}
function doQueryMode()
{
return "HrmClaimMstQueryModeAction.do";
}
function doExit()
{
return "HrmClaimMstExitAction.do";
}
function doInsertMode()
{
return "HrmClaimMstNewModeAction.do";
}
function doExecute()
{
return "HrmClaimMstGetHeaderAction.do";
}
function doHeaderCheckBox(elem)
{
if(elem.checked){
document.getElementsByName(elem.name)[1].value="on";
}
else{
document.getElementsByName(elem.name)[1].value="off";
}
}
function doSave()
{
var oTable = document.getElementById(doGetDetailTableName());
if(oTable == null)
{
return;
}
var iTr2 = parseInt(oTable.rows.length)-1;
for(i=0; i<iTr2; i++)
{
if(document.getElementsByName("txtAppliedToAll")[i].checked)
{
document.getElementsByName("txtAppliedToAll")[i].value = "Y";
}
else
{
document.getElementsByName("txtAppliedToAll")[i].value = "N";
}
}
return "HrmClaimMstSaveAction.do";
}
function doDelete()
{
return "HrmClaimMstDeleteAction.do";
}
function doRefresh()
{
return "HrmClaimMstRefreshAction.do";
}
function doPrevHeader()
{
return "HrmClaimMstGetNextHeaderAction.do";
}
function doNextHeader()
{
return "HrmClaimMstGetNextHeaderAction.do";
}
function doJumpHeader()
{
return "HrmClaimMstGetNextHeaderAction.do";
}
function doGetDetail()
{
return "HrmClaimMstGetDetailAction.do";
}
function doAddRow()
{
return "HrmClaimMstAddRowAction.do";
}
function doDelRow()
{
return "HrmClaimMstDeleteRowAction.do";
}
function doGetDetailTableName()
{
return "HrmClaimMst";
}
function doPrevDetail()
{
return "HrmClaimMstGetDetailPageAction.do";
}
function doNextDetail()
{
return "HrmClaimMstGetDetailPageAction.do";
}
function doJumpDetail()
{
return "HrmClaimMstGetDetailPageAction.do";
}
function doOnLoad()
{
if(document.forms[0].firstLoad.value!="false")
{
return "HrmClaimMstOnLoadAction.do";
}
}
function ShowClaimCode()
{
document.forms[0].lovKey.value = "HrmClaimCode" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
document.forms[0].txtSearchFields.value = "hrm.HrmClaimMst.claimCode,hrm.HrmClaimMst.claimName";
document.forms[0].txtDisplayFields.value = "claimCodeId,claimCode,claimName";
document.forms[0].multipleFlag.value = "false";
showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmClaimMstForm');
return true;
}
function ShowCalendarCode()
{
document.forms[0].lovKey.value = "ClaimCalendarCode" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
document.forms[0].txtSearchFields.value = "hrm.HrmAdvMst.calendar";
document.forms[0].txtDisplayFields.value = "calendarId,calendarName,beginMonth,durationMonth";
showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmClaimMstForm');
return true;
}
function doGetInsertData()
{
}
function boxClicked(val)
{
if(document.getElementsByName("checked")[val].checked)
{
document.getElementsByName("itemChecked")[val].value = "Y";
}
else
{
document.getElementsByName("itemChecked")[val].value = "N";
}
}
function doValidate()
{
return "HrmClaimMstValidateAction.do";
}
function preSaveDetail()
{
for(i=0 ; i < document.forms[0].txtAppliedToAll.length; i++)
{
document.forms[0].txtAppliedToAll[i].checked=false
}
}
</script>