351 lines
14 KiB
Plaintext
351 lines
14 KiB
Plaintext
<%@ 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 onkeydown="hotKeys(event);"; scroll=auto >
|
|
|
|
<html:form name="HrmOrgClassDtlForm" action="HrmOrgClassDtlBaseAction" type="wenrgise.hrms.webtier.form.HrmOrgClassDtlForm">
|
|
<bean:define id="ParentForm" name="HrmOrgClassDtlForm" 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.HrmClassificationDtls.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.HrmClassificationDtls.classificationHeader" /></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.HrmClassificationDtls.code" /></td>
|
|
<td><enrgise:text property="code" name="HrmOrgClassDtlForm" titleKey="hrm.HrmClassificationDtls.code" maxlength="10" size="23" styleClass="required" disabledClass="required" alt="N" onchange="doChangeHeader();" /><enrgise:img name="HrmOrgClassDtlForm" height="16" align="center" src="../includes/images/lov.jpg" property="butClassCode" onclick="return ShowClassCode();" /></td>
|
|
<td colspan="2"></td>
|
|
<td class=labelText><bean:message key="hrm.HrmClassificationDtls.classificationType" /></td>
|
|
<td><enrgise:text property="classificationType" name="HrmOrgClassDtlForm" titleKey="hrm.HrmClassificationDtls.classificationType" maxlength="20" size="26" styleClass="required" disabledClass="locked" alt="AN" onchange="doChangeHeader();" /></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="HrmOrgClassDtlForm" property="butClassTab" styleClass="actTabText" disabledClass="lockedTab" src="../includes/images/formtab_r.gif" ><bean:message key="hrm.HrmClassificationDtls.classificationDetails" /></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><bean:message key="hrm.HrmClassificationDtls.txtClassificationCode" /></td>
|
|
<TD class=tableHeader><bean:message key="hrm.HrmClassificationDtls.txtDescription" /></td>
|
|
<TD class=tableHeader><bean:message key="hrm.HrmClassificationDtls.txtHierarchy" /></td>
|
|
<TD class=tableHeader><bean:message key="hrm.HrmClassificationDtls.txtParentCode" /></td>
|
|
</tr>
|
|
|
|
<logic:iterate id="HrmClass" name="HrmOrgClassDtlForm" property="arrHrmClassDtl" type="wenrgise.hrms.bean.HrmOrgClassDtlBean" indexId="idx" >
|
|
|
|
|
|
<logic:notEqual name="HrmClass" property="status" value="D" >
|
|
<tr class='<bean:write name="HrmOrgClassDtlForm" property="listRowClass"/>' >
|
|
<td width="1%"><html:checkbox property="checked" name="HrmOrgClassDtlForm" alt="<%=idx.toString()%>" onclick="boxClicked(this.alt);" />
|
|
<html:hidden property="status" name="HrmClass" /><html:hidden property="detailId" name="HrmClass" /><html:hidden property="itemChecked" name="HrmClass" /><html:hidden property="txtParentCodeId" name="HrmClass" /><html:hidden property="txtTypeCode" name="HrmClass" /></td>
|
|
<TD class=tableText ><enrgise:text property="txtClassificationCode" name="HrmClass" maxlength="20" style="width:100%" styleClass="required" disabledClass="locked" alt="P" onchange='<%="doChangeDetail("+idx.toString()+")"%>' /></td>
|
|
<TD class=tableText><enrgise:text property="txtDescription" name="HrmClass" maxlength="40" style="width:100%" styleClass="required" disabledClass="locked" onchange='<%="doChangeDetail("+idx.toString()+")"%>' /></td>
|
|
<TD class=tableText ><enrgise:text property="txtHierarchy" name="HrmClass" maxlength="4" style="width:100%" styleClass="optional" disabledClass="locked" onkeypress="isInteger(event);" onchange='<%="doChangeDetail("+idx.toString()+")"%>' /></td>
|
|
<TD class=tableText ><html:text property="txtParentCode" name="HrmClass" readonly="true" maxlength="20" style="width:89%" styleClass="locked" onkeypress="isInteger(event);" onchange='<%="doChangeDetail("+idx.toString()+")"%>' /><enrgise:img name="HrmOrgClassDtlForm" height="16" align="center" src="../includes/images/lov.jpg" property="butTypeCode" alt="<%=idx.toString()%>" onclick="return getClassTypeLOV(this.alt);" /></td>
|
|
|
|
|
|
</tr>
|
|
</logic:notEqual>
|
|
<logic:equal name="HrmClass" property="status" value="D" >
|
|
<tr class='<bean:write name="HrmOrgClassDtlForm" property="listRowClass"/>' >
|
|
<td align="center" width="1%"><html:hidden property="status" name="HrmClass" /><html:hidden property="detailId" name="HrmClass" /><html:hidden property="itemChecked" name="HrmClass" /><html:hidden property="txtParentCodeId" name="HrmClass" />
|
|
<html:checkbox property="checked" value="check" disabled="true" name="HrmOrgClassDtlForm" alt="<%=idx.toString()%>" onclick="boxClicked(this.alt);" onchange="doChangeDetail(this.alt);" /><html:hidden property="txtTypeCode" name="HrmClass" /></td>
|
|
<TD class=tableText ><html:text property="txtClassificationCode" name="HrmClass" style="width:100%" alt="D" onchange='<%="doChangeDetail("+idx.toString()+")"%>' styleClass="deletedRow" readonly="true" /></td>
|
|
<TD class=tableText ><html:text property="txtDescription" name="HrmClass" style="width:100%" alt="D" onchange='<%="doChangeDetail("+idx.toString()+")"%>' styleClass="deletedRow" readonly="true" /></td>
|
|
<TD class=tableText ><html:text property="txtHierarchy" name="HrmClass" style="width:100%" alt="D" onchange='<%="doChangeDetail("+idx.toString()+")"%>' styleClass="deletedRow" readonly="true" /></td>
|
|
<TD class=tableText ><html:text property="txtParentCode" name="HrmClass" style="width:89%" alt="D" onchange='<%="doChangeDetail("+idx.toString()+")"%>' styleClass="deletedRow" readonly="true" /><img name="HrmOrgClassDtlForm" height="16" align="center" disabled="true" src="../includes/images/lov_dis.jpg" property="butTypeCode" 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>
|
|
|
|
<!-- Container Table Ends -->
|
|
<html:hidden name="HrmOrgClassDtlForm" property="screenMode" />
|
|
<html:hidden name="HrmOrgClassDtlForm" property="screenName" value="HrmOrgClassDtl" />
|
|
<html:hidden name="HrmOrgClassDtlForm" property="forwardedPage" />
|
|
<html:hidden property="positionRequested" name="HrmOrgClassDtlForm" />
|
|
|
|
<html:hidden property="userPageRequested" />
|
|
<html:hidden property="userPositionRequested" />
|
|
<html:hidden property="pageRequested" />
|
|
|
|
<!-- Hidden Fields for LOV -->
|
|
<html:hidden property="lovKey" name="HrmOrgClassDtlForm" />
|
|
<html:hidden property="txtSearchFields" name="HrmOrgClassDtlForm" />
|
|
<html:hidden property="txtDisplayFields" name="HrmOrgClassDtlForm" />
|
|
<html:hidden property="txtIndex" name="HrmOrgClassDtlForm" />
|
|
|
|
<html:hidden property="headerPrimaryKey" name="HrmOrgClassDtlForm" />
|
|
<html:hidden property="headerDataChanged" name="HrmOrgClassDtlForm" />
|
|
<html:hidden property="detailDataChanged" name="HrmOrgClassDtlForm" />
|
|
<input type="hidden" name="multipleFlag" >
|
|
<input type="hidden" name="queryParam" >
|
|
<html:hidden property="orgCodeId" name="HrmOrgClassDtlForm" />
|
|
|
|
|
|
</html:form>
|
|
</body>
|
|
</html:html>
|
|
<script>
|
|
|
|
function boxClicked(val)
|
|
{
|
|
if(document.getElementsByName("checked")[val].checked)
|
|
{
|
|
document.getElementsByName("itemChecked")[val].value = "Y";
|
|
}
|
|
else
|
|
{
|
|
document.getElementsByName("itemChecked")[val].value = "N";
|
|
}
|
|
}
|
|
function doChangeHeader()
|
|
{
|
|
document.forms[0].headerDataChanged.value="true";
|
|
}
|
|
|
|
function doQueryMode()
|
|
{
|
|
|
|
return "HrmClassificationQueryModeAction.do";
|
|
}
|
|
|
|
|
|
function doInsertMode()
|
|
{
|
|
|
|
return "HrmClassificationNewModeAction.do";
|
|
}
|
|
|
|
|
|
function doExecute()
|
|
{
|
|
|
|
return "HrmClassificationGetHeaderAction.do";
|
|
}
|
|
|
|
function doSave()
|
|
{
|
|
|
|
return "HrmClassificationSaveAction.do";
|
|
|
|
}
|
|
|
|
function doDelete()
|
|
{
|
|
|
|
return "HrmClassificationDeleteAction.do";
|
|
|
|
}
|
|
|
|
function doRefresh()
|
|
{
|
|
|
|
return "HrmClassificationRefreshAction.do";
|
|
|
|
}
|
|
|
|
function doPrevHeader()
|
|
{
|
|
return "HrmClassificationGetNextHeaderAction.do";
|
|
}
|
|
function doExit()
|
|
{
|
|
return "HrmClassificationExitAction.do";
|
|
}
|
|
function doNextHeader()
|
|
{
|
|
return "HrmClassificationGetNextHeaderAction.do";
|
|
}
|
|
|
|
function doJumpHeader()
|
|
{
|
|
return "HrmClassificationGetNextHeaderAction.do";
|
|
}
|
|
|
|
function doGetDetail()
|
|
{
|
|
|
|
return "HrmClassificationGetDetailAction.do";
|
|
}
|
|
|
|
function doAddRow()
|
|
{
|
|
|
|
return "HrmClassificationAddRowAction.do";
|
|
}
|
|
|
|
function doDelRow()
|
|
{
|
|
return "HrmClassificationDeleteRowAction.do";
|
|
}
|
|
|
|
function doGetDetailTableName()
|
|
{
|
|
return "tableName";
|
|
}
|
|
|
|
function doPrevDetail()
|
|
{
|
|
|
|
return "HrmClassificationGetDetailPageAction.do";
|
|
}
|
|
|
|
function doNextDetail()
|
|
{
|
|
|
|
return "HrmClassificationGetDetailPageAction.do";
|
|
}
|
|
|
|
function doJumpDetail()
|
|
{
|
|
return "HrmClassificationGetDetailPageAction.do";
|
|
}
|
|
function getClassTypeLOV(i)
|
|
{
|
|
document.forms[0].lovKey.value = "ClassParentID" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
|
|
document.forms[0].txtSearchFields.value = "hrm.HrmClassificationDtls.txtParentCode,hrm.HrmClassificationDtls.txtDescription";
|
|
document.forms[0].txtIndex.value = i;
|
|
document.forms[0].txtDisplayFields.value = "txtParentCodeId,txtTypeCode,txtParentCode";
|
|
document.forms[0].queryParam.value = "txtHierarchy="+ document.forms[0].txtHierarchy[i].value + ",code="+ document.forms[0].code.value;
|
|
document.forms[0].multipleFlag.value = "false";
|
|
showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />', 'HrmOrgClassDtlForm');
|
|
if(document.getElementsByName("status")[iIndex])
|
|
{
|
|
if(document.getElementsByName("status")[iIndex].value!="N")
|
|
{
|
|
document.getElementsByName("status")[iIndex].value="U";
|
|
}
|
|
}
|
|
return true;
|
|
}
|
|
|
|
|
|
|
|
function ShowClassCode()
|
|
{
|
|
document.forms[0].lovKey.value = "ClassType" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
|
|
document.forms[0].txtSearchFields.value = "hrm.HrmClassificationDtls.classificationType,hrm.HrmClassificationDtls.code";
|
|
document.forms[0].txtDisplayFields.value = "orgCodeId,code,classificationType";
|
|
document.forms[0].multipleFlag.value="false";
|
|
showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmOrgClassDtlForm');
|
|
return true;
|
|
}
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|