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,334 @@
<%@ 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 action="HrmOrgCntryMstBaseAction" name="HrmOrgCntryMstForm" type="wenrgise.hrms.webtier.form.HrmOrgCntryMstForm">
<bean:define id="ParentForm" name="HrmOrgCntryMstForm" 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.HrmCountryMaster.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 >
<!--Inspection Header Starts -->
<TR>
<TD class=subHeader colspan=6><bean:message key="hrm.HrmCountryMaster.header" /></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.HrmCountryMaster.countryCode" /></td>
<td><enrgise:text property="countryCode" name="HrmOrgCntryMstForm" titleKey="hrm.HrmCountryMaster.countryCode" alt="AN" maxlength="60" size="23" styleClass="required" disabledClass="required" onchange="doChangeHeader();" onmouseover="this.title=this.value" /><enrgise:img height="16" align="center" styleClass="icon" src="../includes/images/lov.jpg" property="butCountryCode" name="HrmOrgCntryMstForm" onclick= "return ShowCountryCode(); " /></td>
<td class="labelText"><bean:message key="hrm.HrmCountryMaster.countryName" /> </td>
<td colspan="3"><enrgise:text property="countryName" name="HrmOrgCntryMstForm" alt="AN" titleKey="hrm.HrmCountryMaster.countryName" maxlength="255" size="55" styleClass="required" disabledClass="locked" onchange="doChangeHeader();" onmouseover="this.title=this.value" /></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>
<!-- Tab Table Starts -->
<TABLE cellSpacing=0 cellPadding=0 >
<tr>
<td bgcolor="#4682B4" ></td>
<enrgise:tab name="HrmOrgCntryMstForm" property="butCountryTab" styleClass="actTabText" disabledClass="lockedTab" src="../includes/images/formtab_r.gif" ><bean:message key="hrm.HrmCountryMaster.detail" /></enrgise:tab>
<td width="90%"> </td>
</tr>
<TR >
<!-- Detail table Container starts -->
<TD colSpan=6>
<TABLE cellSpacing=0 cellPadding=0 border=0>
<TBODY>
<TR>
<TD >
<DIV id=divDtlTable style="height:250px">
<TABLE border="0" cellSpacing=0 cellPadding=0>
<TBODY>
<tr>
<TD class=tableHeader width="1%"><input type="checkbox" name="selectAll" onclick="toggleCheckBox('checked')" disabled="true" /></td>
<TD class=tableHeader><bean:message key="hrm.HrmCountryMaster.txtCityCode" /></td>
<TD class=tableHeader><bean:message key="hrm.HrmCountryMaster.txtCityName" /></td>
</tr>
<logic:iterate id="HrmCountry" name="HrmOrgCntryMstForm" property="arrHrmCountryDtl" type="wenrgise.hrms.bean.HrmOrgCntryMstDtlBean" indexId="idx" >
<logic:notEqual name="HrmCountry" property="status" value="D" >
<tr class='<bean:write name="HrmOrgCntryMstForm" property="listRowClass"/>' >
<td width="1%"><html:checkbox property="checked" name="HrmOrgCntryMstForm" alt="<%=idx.toString()%>" onclick="boxClicked(this.alt);" disabled="true" />
<html:hidden property="itemChecked" name="HrmCountry" /><html:hidden property="status" name="HrmCountry" /><html:hidden property="detailId" name="HrmCountry" /></td>
<TD class=tableText ><enrgise:text property="txtCityCode" name="HrmCountry" styleClass="required" disabledClass="locked" maxlength="4" style="width:100%" alt="AN" onchange='<%="doChangeDetail("+idx.toString()+")"%>' /></td>
<TD class=tableText><enrgise:text property="txtCityName" name="HrmCountry" styleClass="required" disabledClass="locked" maxlength="40" style="width:100%" alt="A" onkeypress="isAlphabet(event);" onchange='<%="doChangeDetail("+idx.toString()+")"%>' /></td>
</tr>
</logic:notEqual>
<logic:equal name="HrmCountry" property="status" value="D" >
<tr class='<bean:write name="HrmOrgCntryMstForm" property="listRowClass"/>' >
<td><html:checkbox property="checked" name="HrmOrgCntryMstForm" alt="<%=idx.toString()%>" onclick="boxClicked(this.alt);" disabled="true" />
<html:hidden property="itemChecked" name="HrmCountry" /><html:hidden property="status" name="HrmCountry" /><html:hidden property="detailId" name="HrmCountry" /></td>
<TD class=tableText ><enrgise:text property="txtCityCode" name="HrmCountry" formName="HrmOrgCntryMstForm" styleClass="deletedRow" disabledClass="locked" maxlength="60" style="width:100%" alt="<%=idx.toString()%>" onchange="doChangeDetail(this.alt)" /></td>
<TD class=tableText><enrgise:text property="txtCityName" name="HrmCountry" formName="HrmOrgCntryMstForm" styleClass="deletedRow" disabledClass="locked" maxlength="40" style="width:100%" alt="<%=idx.toString()%>" onchange="doChangeDetail(this.alt)" /></td>
</tr>
</logic:equal>
</logic:iterate>
</TBODY>
</TABLE>
</DIV>
</TD>
</TR>
<tr>
<td>
<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> <enrgise:button altKey="wenrgise.common.addRow" name="ParentForm" onclick="doBaseAddRow()" property="butAddRow" styleClass="bottomBarText">&nbsp;&nbsp;Add&nbsp;<u>R</u>ow&nbsp;&nbsp;</enrgise:button><button name="butDelRow" styleClass="bottomBarText" disabled ><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" alt="N" titleKey="wenrgise.common.jumpDetail" /></td>
<td ><enrgise:img name="ParentForm" property="butJumpDetail" altKey="wenrgise.common.go" src="../includes/images/go_dtl.jpg" onmouseover='this.src="../includes/images/go_act.jpg"' onmouseout='this.src="../includes/images/go.jpg"' onclick="doBaseJumpDetail()" /></td>
</TR>
</tbody>
</TABLE>
</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="HrmOrgCntryMstForm" property="screenMode" />
<html:hidden name="HrmOrgCntryMstForm" property="screenName" value="HrmOrgCntryMst" />
<html:hidden name="HrmOrgCntryMstForm" property="forwardedPage" />
<html:hidden property="positionRequested" name="HrmOrgCntryMstForm" />
<html:hidden property="headerPrimaryKey" name="HrmOrgCntryMstForm" />
<html:hidden property="headerDataChanged" name="HrmOrgCntryMstForm" />
<html:hidden property="detailDataChanged" name="HrmOrgCntryMstForm" />
<!-- Hidden Fields for LOV -->
<html:hidden property="lovKey" name="HrmOrgCntryMstForm" />
<html:hidden property="txtSearchFields" name="HrmOrgCntryMstForm" />
<html:hidden property="txtDisplayFields" name="HrmOrgCntryMstForm" />
<html:hidden property="txtIndex" name="HrmOrgCntryMstForm" />
<html:hidden property="userPageRequested" />
<html:hidden property="userPositionRequested" />
<html:hidden property="pageRequested" />
<html:hidden property="countryCodeId" />
<input type="hidden" name="multipleFlag" >
<input type="hidden" name="queryParam" >
<!-- Container Table Ends -->
</html:form>
</body>
</html:html>
<script>
function doChangeHeader()
{
document.forms[0].headerDataChanged.value="true";
}
function doQueryMode()
{
return "HrmOrgCntryMstQueryModeAction.do";
}
function doInsertMode()
{
return "HrmOrgCntryMstNewModeAction.do";
}
function doExecute()
{
return "HrmOrgCntryMstGetHeaderAction.do";
}
function doSave()
{
return "HrmOrgCntryMstSaveAction.do";
}
function doDelete()
{
return "HrmOrgCntryMstDeleteAction.do";
}
function doRefresh()
{
return "HrmOrgCntryMstRefreshAction.do";
}
function doExit()
{
return "HrmOrgCntryMstExitAction.do";
}
function doPrevHeader()
{
return "HrmOrgCntryMstGetNextHeaderAction.do";
}
function doNextHeader()
{
return "HrmOrgCntryMstGetNextHeaderAction.do";
}
function doJumpHeader()
{
return "HrmOrgCntryMstGetNextHeaderAction.do";
}
function doGetDetail()
{
return "HrmOrgCntryMstGetDetailAction.do";
}
function doAddRow()
{
return "HrmOrgCntryMstAddRowAction.do";
}
function doDelRow()
{
return "HrmOrgCntryMstDeleteRowAction.do";
}
function doGetDetailTableName()
{
return "tableName";
}
function doPrevDetail()
{
return "HrmOrgCntryMstGetDetailPageAction.do";
}
function doNextDetail()
{
return "HrmOrgCntryMstGetDetailPageAction.do";
}
function doJumpDetail()
{
return "HrmOrgCntryMstGetDetailPageAction.do";
}
function ShowCountryCode()
{
document.forms[0].lovKey.value = "HrmCountryCode" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
document.forms[0].txtSearchFields.value = "hrm.HrmCountryMaster.countryCode,hrm.HrmCountryMaster.countryName";
document.forms[0].txtDisplayFields.value = "countryCodeId,countryCode,countryName";
document.forms[0].multipleFlag.value = "false";
showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmOrgCntryMstForm');
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";
}
}
</script>