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,409 @@
<%@ 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>
<HEAD>
<html:base />
<TITLE><bean:message key="hrm.title" /></TITLE>
<jsp:include page="GenIncludes.jsp" flush="true" />
<meta http-equiv=pragma content=no-cache>
</HEAD>
<BODY scroll="auto" onkeydown="hotKeys(event);" >
<html:form name="HrmOrgHolCalForm" action="HrmOrgHolCalBaseAction" type="wenrgise.hrms.webtier.form.HrmOrgHolCalForm">
<bean:define id="ParentForm" name="HrmOrgHolCalForm" toScope="request" />
<jsp:include page="GenIconMenu.jsp" flush="true" />
<!--Top Most Blue Bar-->
<TABLE cellSpacing=0 bgColor=#bdd0ef>
<tr>
<TD colSpan=12 class=mainHeader ><bean:message key="hrm.HrmHolidayCalendar.heading" /></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 >
<!--Master Information Starts -->
<TR>
<TD class=subHeader colspan=6><bean:message key="hrm.HrmHolidayCalendar.holidayCalMaster" /></TD>
</TR>
<TR>
<TD colspan=6 bgColor=#4682b4><IMG height=1 src="../includes/images/pixel.gif" width=1 border=0></TD>
</TR>
<td class="labelText"><bean:message key="hrm.HrmHolidayCalendar.calendarName" /></td>
<td><enrgise:text property="calendarName" name="HrmOrgHolCalForm" titleKey="hrm.HrmHolidayCalendar.calendarName" maxlength="20" size="23" styleClass="required" disabledClass="required" onchange="doChangeHeader();" /><enrgise:img name="HrmOrgHolCalForm" height="16" align="center" src="../includes/images/lov.jpg" property="butCalName" onclick="return ShowCalName();" /></td>
<td class="labelText"><bean:message key="hrm.HrmHolidayCalendar.description" /> </td>
<td><enrgise:text property="description" name="HrmOrgHolCalForm" titleKey="hrm.HrmHolidayCalendar.description" maxlength="40" size="26" styleClass="optional" disabledClass="locked" onchange="doChangeHeader();" onmouseover="this.title=this.value" /></td>
</tr>
<tr>
<td class="labelText"><bean:message key="hrm.HrmHolidayCalendar.state" /></td>
<td><html:text property="state" name="HrmOrgHolCalForm" titleKey="hrm.HrmHolidayCalendar.state" maxlength="10" size="23" styleClass="required" readonly="true" onchange="doChangeHeader();" /><enrgise:img name="HrmOrgHolCalForm" height="16" align="center" src="../includes/images/lov.jpg" property="butState" onclick="return ShowState();" /></td>
<td class="labelText"><bean:message key="hrm.HrmHolidayCalendar.fromDate" /> </td>
<td><enrgise:text property="fromDate" name="HrmOrgHolCalForm" titleKey="hrm.HrmHolidayCalendar.fromDate" maxlength="15" size="23" styleClass="required" disabledClass="required" onchange="doChangeHeader();" /><enrgise:img name="HrmOrgHolCalForm" width="15" height="19" align="top" src="../includes/images/cal.gif" property="butFromDate" onclick="showCalendar('fromDate',this)" /></td>
<td class="labelText"><bean:message key="hrm.HrmHolidayCalendar.toDate" /> </td>
<td><enrgise:text property="toDate" name="HrmOrgHolCalForm" titleKey="hrm.HrmHolidayCalendar.toDate" maxlength="15" size="23" styleClass="required" disabledClass="required" onchange="doChangeHeader();" /><enrgise:img name="HrmOrgHolCalForm" width="15" height="19" align="top" src="../includes/images/cal.gif" property="butToDate" onclick="showCalendar('toDate',this)" /></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>
<TABLE cellSpacing=0 cellPadding=0 >
<tr>
<td bgcolor="#4682B4" ></td>
<enrgise:tab name="HrmOrgHolCalForm" property="butHolidayCalTab" styleClass="actTabText" disabledClass="lockedTab" src="../includes/images/formtab_r.gif" ><bean:message key="hrm.HrmHolidayCalendar.holidayCalDetail" /></enrgise:tab>
<td width="82%"> </td>
</tr>
<!-- Detail table Container starts -->
<TD colSpan=6>
<TABLE cellSpacing=0 cellPadding=0 border=0>
<TBODY>
<TR>
<TD >
<DIV id=divDtlTable style="height:300px">
<TABLE border="0" cellSpacing=0 cellPadding=0>
<TBODY>
<tr>
<TD class=tableHeader width="1%"><input type="checkbox" name="selectAll" onclick="toggleCheckBox('checked')" /></td>
<td class=tableHeader width="20%"><bean:message key="hrm.HrmHolidayCalendar.txtHolidayDate" /></td>
<td class=tableHeader width="20%"><bean:message key="hrm.HrmHolidayCalendar.txtHolidayName" /></td>
<td class=tableHeader width="12%"><bean:message key="hrm.HrmHolidayCalendar.txtDay" /></td>
<td class=tableHeader width="20%"><bean:message key="hrm.HrmHolidayCalendar.txtHolidayType" /></td>
</tr>
<logic:iterate id="HrmHolCal" name="HrmOrgHolCalForm" property="arrHrmHolCalDtl" type="wenrgise.hrms.bean.HrmOrgHolCalDtlBean" indexId="idx" >
<logic:notEqual name="HrmHolCal" property="status" value="D" >
<tr class='<bean:write name="HrmOrgHolCalForm" property="listRowClass"/>' >
<td width="1%"><html:hidden property="txtHolTypeId" name="HrmHolCal" /><html:hidden property="itemChecked" name="HrmHolCal" /><html:hidden property="status" name="HrmHolCal" /><html:hidden property="detailId" name="HrmHolCal" /><html:checkbox property="checked" name="HrmOrgHolCalForm" alt="<%=idx.toString()%>" onclick="boxClicked(this.alt);" /></td>
<td ><enrgise:text property="txtHolidayDate" formName="HrmOrgHolCalForm" name="HrmHolCal" size="9" styleClass="required" disabledClass="required" style="width:93%" alt="<%=idx.toString()%>" onchange="doChangeDetail(this.alt);" /><enrgise:img name="HrmOrgHolCalForm" width="15" height="19" align="top" src="../includes/images/cal.gif" property="butTxtFromDate" alt="<%=idx.toString()%>" onclick="showCalendar('txtHolidayDate',this)" /></td>
<td ><enrgise:text property="txtHolidayName" formName="HrmOrgHolCalForm" name="HrmHolCal" maxlength="40" styleClass="required" disabledClass="locked" style="width:100%" alt="<%=idx.toString()%>" onchange="doChangeDetail(this.alt);" /></td>
<td ><html:text property="txtDay" name="HrmHolCal" size="6" styleClass="locked" readonly="true" style="width:100%" alt="<%=idx.toString()%>" onchange="doChangeDetail(this.alt);" /></td>
<td ><html:text property="txtHolidayType" name="HrmHolCal" size="6" styleClass="required" style="width:93%" readonly="true" alt="P" onchange='<%="doChangeDetail("+idx.toString()+")"%>' /><img height="16" align="center" src="../includes/images/lov.jpg" class="icon" name="butHolType" alt="<%=idx.toString()%>" onclick=" return showHolidayType(this.alt);" /></td>
</tr>
</logic:notEqual>
<logic:equal name="HrmHolCal" property="status" value="D" >
<tr class='<bean:write name="HrmOrgHolCalForm" property="listRowClass"/>' >
<td width="1%"><html:hidden property="txtHolTypeId" name="HrmHolCal" /><html:hidden property="itemChecked" name="HrmHolCal" /><html:hidden property="status" name="HrmHolCal" /><html:hidden property="detailId" name="HrmHolCal" /><html:checkbox property="checked" value="check" disabled="true" alt="<%=idx.toString()%>" onclick="boxClicked(this.alt);" /></td>
<TD class=tableText ><html:text property="txtHolidayDate" name="HrmHolCal" style="width:93%" alt="D" onchange='<%="doChangeDetail("+idx.toString()+")"%>' styleClass="deletedRow" readonly="true" /><img name="HrmOrgHolCalForm" width="15" height="19" align="top" disabled="true" src="../includes/images/cal_dis.gif" property="butTxtFromDate" alt="<%=idx.toString()%>" /></td>
<TD class=tableText ><html:text property="txtHolidayName" name="HrmHolCal" style="width:100%" alt="D" onchange='<%="doChangeDetail("+idx.toString()+")"%>' styleClass="deletedRow" readonly="true" /></td>
<td class=tableText ><html:text property="txtDay" name="HrmHolCal" size="6" styleClass="deletedRow" readonly="true" style="width:100%" alt="<%=idx.toString()%>" onchange="doChangeDetail(this.alt);" /></td>
<TD class=tableText ><html:text property="txtHolidayType" name="HrmHolCal" style="width:93%" alt="D" onchange='<%="doChangeDetail("+idx.toString()+")"%>' styleClass="deletedRow" readonly="true" /><img name="HrmOrgHolCalForm" height="16" align="center" disabled="true" src="../includes/images/lov_dis.jpg" property="butHolType" alt="<%=idx.toString()%>" /></td>
</tr>
</logic:equal>
</logic:iterate>
</TBODY>
</TABLE>
</DIV>
</TD>
</TR>
<tr>
<td>
<jsp:include page="GenDetailMenu.jsp" flush="true" />
</TD>
<td> </td>
</tr>
</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 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="HrmOrgHolCalForm" property="screenMode" />
<html:hidden name="HrmOrgHolCalForm" property="screenName" value="HrmOrgHolCal" />
<html:hidden name="HrmOrgHolCalForm" property="forwardedPage" />
<html:hidden property="positionRequested" name="HrmOrgHolCalForm" />
<html:hidden property="calId" name="HrmOrgHolCalForm" />
<html:hidden property="siteId" name="HrmOrgHolCalForm" />
<html:hidden property="siteDesc" name="HrmOrgHolCalForm" />
<html:hidden property="stateId" name="HrmOrgHolCalForm" />
<html:hidden property="stateCode" name="HrmOrgHolCalForm" />
<html:hidden property="userPageRequested" />
<html:hidden property="userPositionRequested" />
<html:hidden property="pageRequested" />
<html:hidden property="lovKey" name="HrmOrgHolCalForm" />
<html:hidden property="txtSearchFields" name="HrmOrgHolCalForm" />
<html:hidden property="txtDisplayFields" name="HrmOrgHolCalForm" />
<html:hidden property="headerPrimaryKey" name="HrmOrgHolCalForm" />
<html:hidden property="headerDataChanged" name="HrmOrgHolCalForm" />
<html:hidden property="detailDataChanged" name="HrmOrgHolCalForm" />
<input type="hidden" name="multipleFlag" >
<input type="hidden" name="queryParam" >
<html:hidden property="txtIndex" name="HrmOrgHolCalForm" />
<html:hidden property="firstLoad" name="HrmOrgHolCalForm" />
<!-- Container Table Ends -->
</html:form>
</body>
</html:html>
<script>
function doChangeHeader()
{
document.forms[0].headerDataChanged.value="true";
}
function doQueryMode()
{
return "HrmOrgHolCalQueryModeAction.do";
}
function doInsertMode()
{
return "HrmOrgHolCalNewModeAction.do";
}
function doExecute()
{
return "HrmOrgHolCalGetHeaderAction.do";
}
function doSave()
{
return "HrmOrgHolCalSaveAction.do";
}
function doDelete()
{
return "HrmOrgHolCalDeleteAction.do";
}
function doRefresh()
{
return "HrmOrgHolCalRefreshAction.do";
}
function doPrevHeader()
{
return "HrmOrgHolCalGetNextHeaderAction.do";
}
function doNextHeader()
{
return "HrmOrgHolCalGetNextHeaderAction.do";
}
function doJumpHeader()
{
return "HrmOrgHolCalGetNextHeaderAction.do";
}
function doGetDetail()
{
return "HrmOrgHolCalGetDetailAction.do";
}
function doAddRow()
{
return "HrmOrgHolCalAddRowAction.do";
}
function doDelRow()
{
return "HrmOrgHolCalDeleteRowAction.do";
}
function doGetDetailTableName()
{
return "tableName";
}
function doPrevDetail()
{
return "HrmOrgHolCalGetDetailPageAction.do";
}
function doExit()
{
return "HrmOrgHolCalExitAction.do";
}
function doNextDetail()
{
return "HrmOrgHolCalGetDetailPageAction.do";
}
function doJumpDetail()
{
return "HrmOrgHolCalGetDetailPageAction.do";
}
function doOnLoad()
{
if(document.forms[0].firstLoad.value!="false")
{
return "HrmOrgHolCalOnLoadAction.do";
}
}
function ShowCalName()
{
document.forms[0].lovKey.value = "CalName" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
document.forms[0].txtSearchFields.value = "hrm.HrmHolidayCalendar.calCode,hrm.HrmHolidayCalendar.calendarName";
document.forms[0].txtDisplayFields.value = "calId,calendarName,description,fromDate,toDate";
document.forms[0].multipleFlag.value="false";
showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmOrgHolCalForm');
return true;
}
function ShowSiteCode()
{
document.forms[0].lovKey.value = "SiteCode" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
document.forms[0].txtSearchFields.value = "hrm.HrmHolidayCalendar.siteCode,hrm.HrmHolidayCalendar.siteDesc";
document.forms[0].txtDisplayFields.value = "siteId,siteDesc,siteCode";
document.forms[0].multipleFlag.value="false";
document.forms[0].queryParam.value="stateCode="+document.forms[0].stateCode.value;
showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmOrgHolCalForm');
return true;
}
function ShowState()
{
document.forms[0].lovKey.value = "State" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
document.forms[0].txtSearchFields.value = "hrm.HrmHolidayCalendar.stateCode,hrm.HrmHolidayCalendar.stateDesc";
document.forms[0].txtDisplayFields.value = "stateId,stateCode,state";
document.forms[0].multipleFlag.value="false";
showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmOrgHolCalForm');
return true;
}
function showHolidayType(i)
{
document.forms[0].lovKey.value = "HolidayType" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
document.forms[0].txtSearchFields.value = "hrm.HrmHolidayCalendar.txtHolidayType";
document.forms[0].txtIndex.value = i;
document.forms[0].txtDisplayFields.value = "txtHolTypeId,txtHolidayType";
document.forms[0].multipleFlag.value="false";
showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmOrgHolCalForm');
return true;
}
function boxClicked(val)
{
if(document.getElementsByName("checked")[val].checked)
{
document.getElementsByName("itemChecked")[val].value = "Y";
}
else
{
document.getElementsByName("itemChecked")[val].value = "N";
}
}
function doGetInsertData()
{}
function doValidate()
{
return "HrmOrgHolCalValidateAction.do";
}
function doOnChangeLov(lovName)
{
if(lovName == 'StateHrmOrgHolCalN')
{
doBaseValidate();
}
if(lovName == 'HolidayTypeHrmOrgHolCalU')
{
document.forms[0].detailDataChanged.value = "true";
}
}
</script>