371 lines
16 KiB
Plaintext
371 lines
16 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>
|
|
<html:base />
|
|
<head>
|
|
<TITLE><bean:message key="hrm.title" /></TITLE>
|
|
<jsp:include page="GenIncludes.jsp" flush="true" />
|
|
</head>
|
|
<BODY scroll=auto>
|
|
|
|
<html:form action="HrmAppTempKpaBaseAction" name="HrmAppTempForm" type="wenrgise.hrms.webtier.form.HrmAppraisalTemplateForm">
|
|
<bean:define id="ParentForm" name="HrmAppTempForm" 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.HrmAppraisalTemplateKpa.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.HrmAppraisalTemplateKpa.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.HrmAppraisalTemplateKpa.templateName" /></td>
|
|
<td><enrgise:text property="templateName" altKey="hrm.HrmAppraisalTemplateKpa.templateName" maxlength="255" size="23" styleClass="required" disabledClass="locked" /><enrgise:img src="../includes/images/lov.jpg" height="16" align="center" property="butTemplateName" name="HrmAppTempForm" onclick="ShowTemplateName();" /></td>
|
|
|
|
<td class="labelText"><bean:message key="hrm.HrmAppraisalTemplateKpa.ratingCode" /> </td>
|
|
<td><html:text property="ratingCode" altKey="hrm.HrmAppraisalTemplateKpa.ratingCode" maxlength="255" size="23" styleClass="required" readonly="true" /><enrgise:img src="../includes/images/lov.jpg" height="16" align="center" property="butRatingCode" name="HrmAppTempForm" onclick="ShowRatingCode();" /></td>
|
|
</TR>
|
|
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<td class="labelText"><bean:message key="hrm.HrmAppraisalTemplateKpa.obsolete" /></td>
|
|
<td><enrgise:checkbox property="obsolete" titleKey="hrm.HrmAppraisalTemplateKpa.obsolete" styleClass="optional" disabledClass="locked" onclick="doHeaderCheckBox(this);" onchange="doChangeHeader();" /><html:hidden property="obsolete" name="HrmAppTempForm" /></td>
|
|
|
|
<td class="labelText"><bean:message key="hrm.HrmAppraisalTemplateKpa.applicableToAll" /></td>
|
|
<td><enrgise:checkbox property="applicableToAll" titleKey="hrm.HrmAppraisalTemplateKpa.applicableToAll" styleClass="optional" disabledClass="locked" onclick="doHeaderCheckBox(this);" onchange="doChangeHeader();" /><html:hidden property="applicableToAll" name="HrmAppTempForm" /></td>
|
|
<td class=labelText><bean:message key="hrm.HrmAppraisalTemplateKpa.statusOfHeader" /></td>
|
|
<td ><html:text property="statusOfHeader" size="26" styleClass="locked" readonly="true" 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>
|
|
<!-- Tab Table Starts -->
|
|
<TABLE cellSpacing=0 cellPadding=0 >
|
|
|
|
<tr>
|
|
<td bgcolor="#76A2C7" width="10"><img src="../includes/images/pixel.gif" width="10" height="1" border="0"></td>
|
|
<td bgcolor="#76A2C7" nowrap class=disTabText onclick= "doGetTab('HrmAppraisalTemplateSection','HrmAppraisalTemplateKPAGetTabAction.do')">Template Section<img src="../includes/images/pixel.gif" width="10" height="1" border="0"></td>
|
|
<TD><IMG height=21 src="../includes/images/formtab_lb.gif" width=10 border=0></TD>
|
|
|
|
<td bgcolor="#4682B4" width="10"><img src="../includes/images/pixel.gif" width="10" height="1" border="0"></td>
|
|
<td bgcolor="#4682B4" nowrap class=actTabText >Template KPA<img src="../includes/images/pixel.gif" width="10" height="1" border="0"></td>
|
|
<TD><IMG height=21 src="../includes/images/formtab_r.gif" width=10 border=0></TD>
|
|
|
|
<td background="../includes/images/line_t.gif" width="80%"> </td>
|
|
<td background="../includes/images/line_t.gif"><img src="../includes/images/pixel.gif" width="10" height="1" border="0"></td>
|
|
</tr>
|
|
<TR >
|
|
|
|
<!-- Detail table Container starts -->
|
|
<TD colSpan=8>
|
|
<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%"><html:checkbox property="selectAll" onclick="toggleCheckBox('checked')" /></TD>
|
|
<TD class=tableHeader width="30%"><bean:message key="hrm.HrmAppraisalTemplateKpa.kpaGroupCode" /></td>
|
|
<TD class=tableHeader width="30%"><bean:message key="hrm.HrmAppraisalTemplateKpa.apprKpa" /></td>
|
|
<TD class=tableHeader width="30%"><bean:message key="hrm.HrmAppraisalTemplateKpa.weightage" /></td>
|
|
</tr>
|
|
|
|
<logic:iterate id="HrmApprTempKPA" name="HrmAppTempForm" property="arrAppTempKPA" type="wenrgise.hrms.bean.HrmAppraisalTemplateKpaDtlBean" indexId="idx" >
|
|
<logic:notEqual name="HrmApprTempKPA" property="status" value="D" >
|
|
<tr class='<bean:write name="HrmAppTempForm" property="listRowClass"/>' >
|
|
<td><html:checkbox property="checked" name="HrmAppTempForm" alt="<%=idx.toString()%>" onclick="boxClicked(this.alt);" />
|
|
<html:hidden property="itemChecked" name="HrmApprTempKPA" /><html:hidden property="status" name="HrmApprTempKPA" /><html:hidden property="detailId" name="HrmApprTempKPA" /><html:hidden property="txtKpaId" name="HrmApprTempKPA" />
|
|
|
|
<TD class=tableText ><enrgise:text property="txtKpaGroupCode" name="HrmApprTempKPA" styleClass="required" disabledClass="locked" readonly="true" titleKey="hrm.HrmAppraisalTemplateKpa.kpaGroupCode" size="17" onchange='<%="doChangeDetail("+idx.toString()+")"%>' /><enrgise:img src="../includes/images/lov.jpg" height="15" align="center" styleClass="icon" name="HrmApprTempKPA" property="butKPAGroupCode" alt="<%=idx.toString()%>" onclick="return ShowKPA(this.alt);" /></td>
|
|
<TD class=tableText ><enrgise:text property="txtApprKpa" name="HrmApprTempKPA" styleClass="optional" disabledClass="locked" titleKey="hrm.HrmAppraisalTemplateKpa.apprKpa" onchange='<%="doChangeDetail("+idx.toString()+")"%>' /></td>
|
|
<TD class=tableText ><enrgise:text property="txtWeightage" name="HrmApprTempKPA" styleClass="optional" disabledClass="locked" titleKey="hrm.HrmAppraisalTemplateKpa.weightage" onchange='<%="doChangeDetail("+idx.toString()+")"%>' />
|
|
|
|
</tr>
|
|
</logic:notEqual>
|
|
|
|
<logic:equal name="HrmApprTempKPA" property="status" value="D" >
|
|
<tr class='<bean:write name="HrmAppTempForm" property="listRowClass"/>' >
|
|
<td><html:checkbox property="checked" value="check" disabled="true" name="HrmAppTempForm" alt="<%=idx.toString()%>" onclick="boxClicked(this.alt);" /></td>
|
|
<html:hidden property="itemChecked" name="HrmApprTempKPA" /><html:hidden property="status" name="HrmApprTempKPA" /><html:hidden property="detailId" name="HrmApprTempKPA" /><html:hidden property="txtKpaId" name="HrmApprTempKPA" />
|
|
|
|
<TD class=tableText ><html:text property="txtKpaGroupCode" name="HrmApprTempKPA" styleClass="deletedRow" titleKey="hrm.HrmAppraisalTemplateKpa.kpaGroupCode" size="10" alt="D" onchange='<%="doChangeDetail("+idx.toString()+")"%>' /><enrgise:img src="../includes/images/lov.jpg" height="15" align="center" styleClass="icon" name="HrmAppTempForm" property="butKPAGroupCode" alt="<%=idx.toString()%>" /></td>
|
|
<TD class=tableText ><html:text property="txtApprKpa" name="HrmApprTempKPA" styleClass="deletedRow" titleKey="hrm.HrmAppraisalTemplateKpa.apprKpa" alt="P" onchange='<%="doChangeDetail("+idx.toString()+")"%>' /></td>
|
|
<TD class=tableText ><html:text property="txtWeightage" name="HrmApprTempKPA" styleClass="deletedRow" titleKey="hrm.HrmAppraisalTemplateKpa.weightage" alt="P" onchange='<%="doChangeDetail("+idx.toString()+")"%>' />
|
|
</tr>
|
|
</logic:equal>
|
|
</logic:iterate>
|
|
|
|
</TBODY>
|
|
</TABLE>
|
|
</TD>
|
|
</TR>
|
|
<tr>
|
|
<td colspan="8">
|
|
<jsp:include page="GenDetailMenu.jsp" flush="true" />
|
|
</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><enrgise:button alt="Approve (Alt+P)" onclick="doApprove()" name="HrmAppTempForm" property="butApprove" styleClass="bottomBarText">A<u>p</u>prove</enrgise:button></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="HrmAppTempForm" property="screenName" value="HrmAppraisalTemplateKPA" />
|
|
<html:hidden name="HrmAppTempForm" property="forwardedPage" />
|
|
<html:hidden name="HrmAppTempForm" property="positionRequested" />
|
|
<html:hidden name="HrmAppTempForm" property="screenMode" />
|
|
|
|
|
|
<html:hidden property="userPageRequested" name="HrmAppTempForm" />
|
|
<html:hidden property="userPositionRequested" name="HrmAppTempForm" />
|
|
<html:hidden property="pageRequested" name="HrmAppTempForm" />
|
|
<html:hidden property="txtIndex" name="HrmAppTempForm" />
|
|
|
|
<html:hidden property="lovKey" name="HrmAppTempForm" />
|
|
<html:hidden property="txtSearchFields" name="HrmAppTempForm" />
|
|
<html:hidden property="txtDisplayFields" name="HrmAppTempForm" />
|
|
<html:hidden property="headerDataChanged" name="HrmAppTempForm" />
|
|
<html:hidden property="detailDataChanged" name="HrmAppTempForm" />
|
|
<html:hidden property="headerPrimaryKey" name="HrmAppTempForm" />
|
|
<html:hidden property="buttonName" name="HrmAppTempForm" />
|
|
<input type="hidden" name="queryParam" >
|
|
|
|
<html:hidden property="ratingId" name="HrmAppTempForm" />
|
|
<html:hidden property="templateId" name="HrmAppTempForm" />
|
|
<html:hidden property="headerFlag" name="HrmAppTempForm" />
|
|
|
|
<input type="hidden" name="multipleFlag" >
|
|
</html:form>
|
|
</body>
|
|
</html:html>
|
|
<script>
|
|
function doQueryMode()
|
|
{
|
|
|
|
return "HrmAppTempKpaQueryModeAction.do";
|
|
}
|
|
function doOnLoad()
|
|
{
|
|
if(document.forms[0].firstLoad.value!="false")
|
|
{
|
|
return "HrmAppTempKpaOnLoadAction.do";
|
|
}
|
|
}
|
|
|
|
|
|
function doInsertMode()
|
|
{
|
|
|
|
return "HrmAppTempKpaNewModeAction.do";
|
|
}
|
|
|
|
function doHeaderCheckBox(elem)
|
|
{
|
|
if(elem.checked)
|
|
{
|
|
document.getElementsByName(elem.name)[1].value="on";
|
|
}
|
|
else
|
|
{
|
|
document.getElementsByName(elem.name)[1].value="off";
|
|
}
|
|
}
|
|
|
|
function doExecute()
|
|
{
|
|
|
|
return "HrmAppTempKpaGetHeaderAction.do";
|
|
}
|
|
|
|
function doSave()
|
|
{
|
|
|
|
return "HrmAppTempKpaSaveAction.do";
|
|
|
|
}
|
|
|
|
function doDelete()
|
|
{
|
|
|
|
return "HrmAppTempKpaDeleteAction.do";
|
|
|
|
}
|
|
|
|
function doRefresh()
|
|
{
|
|
|
|
return "HrmAppTempKpaRefreshAction.do";
|
|
|
|
}
|
|
|
|
function doPrevHeader()
|
|
{
|
|
return "HrmAppTempKpaGetNextHeaderAction.do";
|
|
}
|
|
|
|
function doNextHeader()
|
|
{
|
|
return "HrmAppTempKpaGetNextHeaderAction.do";
|
|
}
|
|
|
|
function doJumpHeader()
|
|
{
|
|
return "HrmAppTempKpaFirstGetNextHeaderAction.do";
|
|
}
|
|
|
|
|
|
function doGetDetail()
|
|
{
|
|
|
|
return "HrmAppTempKpaGetDetailAction.do";
|
|
|
|
}
|
|
|
|
function doAddRow()
|
|
{
|
|
|
|
return "HrmAppTempKpaAddRowAction.do";
|
|
}
|
|
|
|
function doDelRow()
|
|
{
|
|
return "HrmAppTempKpaDeleteRowAction.do";
|
|
}
|
|
|
|
|
|
function doPrevDetail()
|
|
{
|
|
|
|
return "HrmAppTempKpaGetDetailPageAction.do";
|
|
}
|
|
|
|
function doNextDetail()
|
|
{
|
|
|
|
return "HrmAppTempKpaGetDetailPageAction.do";
|
|
}
|
|
|
|
function doJumpDetail()
|
|
{
|
|
return "HrmAppTempKpaGetDetailPageAction.do";
|
|
}
|
|
function doExit()
|
|
{
|
|
return "HrmAppTempKpaExitAction.do";
|
|
}
|
|
|
|
function ShowKPA(i)
|
|
{
|
|
document.forms[0].lovKey.value = "AprslKPA" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
|
|
document.forms[0].txtSearchFields.value = "hrm.HrmAppraisalTemplateKpa.kpaGroupCode,hrm.HrmAppraisalTemplateKpa.apprKpa";
|
|
document.forms[0].txtDisplayFields.value = "txtKpaId,txtKpaGroupCode,txtApprKpa";
|
|
document.forms[0].txtIndex.value = i;
|
|
document.forms[0].multipleFlag.value = "false";
|
|
showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmAppTempForm');
|
|
return true;
|
|
}
|
|
function doApprove()
|
|
{
|
|
document.forms[0].buttonName.value="butApprove";
|
|
document.forms[0].action=contextRoot+"HrmmAppTempKpaButtonAction.do";
|
|
document.forms[0].submit();
|
|
}
|
|
|
|
function ShowRatingCode()
|
|
{
|
|
|
|
if(document.forms[0].screenMode.value=="Q")
|
|
{
|
|
|
|
document.forms[0].queryParam.value ="TmplId="+ document.forms[0].templateId.value +" " ;
|
|
|
|
}
|
|
|
|
document.forms[0].lovKey.value = "AprslRatingCodeKPA" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
|
|
document.forms[0].txtSearchFields.value = "hrm.HrmAppraisalTemplate.ratingCode";
|
|
document.forms[0].txtDisplayFields.value = "ratingId,ratingCode";
|
|
document.forms[0].multipleFlag.value = "false";
|
|
showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmAppTempForm');
|
|
return true;
|
|
|
|
}
|
|
|
|
function ShowTemplateName()
|
|
{
|
|
document.forms[0].lovKey.value = "AprslTemplNameKPA" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
|
|
document.forms[0].txtSearchFields.value = "hrm.HrmAppraisalTemplateKpa.templateName";
|
|
document.forms[0].txtDisplayFields.value = "templateId,templateName";
|
|
document.forms[0].multipleFlag.value = "false";
|
|
showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmAppTempForm');
|
|
return true;
|
|
}
|
|
|
|
</script> |