296 lines
14 KiB
Plaintext
296 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="HrmOrgDistMstForm" action="HrmOrgDistMstBaseAction" type="wenrgise.hrms.webtier.form.HrmOrgDistMstForm">
|
|
<bean:define id="ParentForm" name="HrmOrgDistMstForm" toScope="request" />
|
|
<jsp:include page="GenMenu.jsp" flush="true" />
|
|
<bean:define id="left" name="ParentForm" property="positionRequested"/>
|
|
<bean:define id="right" name="ParentForm" property="totalCount"/>
|
|
<table cellSpacing=0 bgColor=#bdd0ef>
|
|
<tr height=27>
|
|
<td colSpan=11></td>
|
|
</tr>
|
|
<TR >
|
|
<TD ><enrgise:img name="ParentForm" property="butQuery" onmouseover='this.src="../includes/images/query_act.jpg"' onmouseout='this.src="../includes/images/query.jpg"' alt="query (Ctrl+Q)" src="../includes/images/query.jpg" onclick="doBaseQueryMode()" /><img property="butInsert" src="../includes/images/insert_dis.jpg" /></TD>
|
|
<TD width="2%"></TD>
|
|
<TD ><img property="butExecute" src="../includes/images/execute_dis.jpg" /><enrgise:img name="ParentForm" property="butSave" onmouseover='this.src="../includes/images/save_act.jpg"' onmouseout='this.src="../includes/images/save.jpg"' alt="Save (Ctrl+S)" src="../includes/images/save.jpg" onclick="doBaseSave()" />
|
|
<img property="butDelete" src="../includes/images/delete_dis.jpg" /><img property="butRefresh" onmouseover='this.src="../includes/images/refresh_act.jpg"' onmouseout='this.src="../includes/images/refresh.jpg"' alt="Refresh (Ctrl+R)" src="../includes/images/refresh.jpg" onclick="doBaseRefresh()" />
|
|
<enrgise:img name="ParentForm" property="butPrint" onmouseover='this.src="../includes/images/print_act.jpg"' onmouseout='this.src="../includes/images/print.jpg"' alt="Print (Ctrl+P)" src="../includes/images/print.jpg" /></TD>
|
|
<TD width="2%" bgColor=#bdd0ef></TD>
|
|
<TD><enrgise:img name="ParentForm" property="butExit" onclick="doBaseExit()" onmouseover='this.src="../includes/images/exit_act.jpg"' onmouseout='this.src="../includes/images/exit.jpg"' alt="Exit (Alt+X)" src="../includes/images/exit.jpg" /><enrgise:img name="ParentForm" property="butHelp" onmouseover='this.src="../includes/images/help_act.jpg"' onmouseout='this.src="../includes/images/help.jpg"' alt="Help (Ctrl+?)" src="../includes/images/help.jpg" /></TD>
|
|
<TD width="50%"></TD>
|
|
<TD ><img property="butPrevHeader" src="../includes/images/butn_prev_dis.jpg" /></td>
|
|
<td class=dtlNavText><bean:write name="left" /> of
|
|
<bean:write name="right" /></td>
|
|
<td align=right><img property="butNextHeader" src="../includes/images/butn_next_dis.jpg" /></td>
|
|
<td align=right><html:text property="newPositionRequested" size="1" onkeydown="isInteger(event)" title=" " alt="N" /></td>
|
|
<td ><img property="butJumpHeader" alt="Go (Ctrl+G)" src="../includes/images/go.jpg" /></td>
|
|
<td > </td>
|
|
</TR>
|
|
</TABLE>
|
|
<table>
|
|
<tr>
|
|
<td colspan="11" class="userText"></td>
|
|
</tr>
|
|
<enrgise:checkSession/>
|
|
</TABLE>
|
|
|
|
<html:hidden property="detailDataChanged" name="HrmOrgDistMstForm" />
|
|
|
|
|
|
|
|
<!--Top Most Blue Bar-->
|
|
<TABLE cellSpacing=0 bgColor=#bdd0ef>
|
|
<tr>
|
|
<TD colSpan=12 class=mainHeader ><bean:message key="hrm.HrmDistrictMaster.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 border=0>
|
|
<!-- Detail Information Row starts -->
|
|
<TR>
|
|
<TD colspan=6>
|
|
<TABLE cellSpacing=0 cellPadding=0 >
|
|
<TR>
|
|
<TD width=10 bgColor=#4682b4><IMG height=1 src="../includes/images/pixel.gif" width=10 border=0></TD>
|
|
<TD class=actTabText noWrap bgColor=#4682b4><bean:message key="hrm.HrmDistrictMaster.detail" /><IMG height=1 src="../includes/images/pixel.gif" width=10 border=0></TD>
|
|
<TD><IMG height=19 src="../includes/images/formtab_r.gif" width=10 border=0></TD>
|
|
<TD width="100%" background="../includes/images/line_t.gif"> </TD>
|
|
<TD background="../includes/images/line_t.gif"><IMG height=1 src="../includes/images/pixel.gif" width=10 border=0></TD>
|
|
</TR>
|
|
<!-- Detail table Container starts -->
|
|
<TD colSpan=6>
|
|
<TABLE cellSpacing=0 cellPadding=0 border=0>
|
|
<TBODY>
|
|
<TR>
|
|
<TD >
|
|
<DIV id=divDtlTable style="height:260px">
|
|
<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.HrmDistrictMaster.txtCode" /></td>
|
|
<TD class=tableHeader><bean:message key="hrm.HrmDistrictMaster.txtDescription" /></td>
|
|
|
|
</tr>
|
|
<logic:iterate id="HrmDistrict" name="HrmOrgDistMstForm" property="arrHrmDistrictDtl" type="wenrgise.hrms.bean.HrmOrgDistrictMstDtlBean" indexId="idx" >
|
|
<logic:notEqual name="HrmDistrict" property="status" value="D" >
|
|
<tr>
|
|
<td><html:checkbox property="checked" name="HrmOrgDistMstForm" alt="<%=idx.toString()%>" onclick="boxClicked(this.alt);" />
|
|
<html:hidden property="itemChecked" name="HrmDistrict" /><html:hidden property="status" name="HrmDistrict" /><html:hidden property="detailId" name="HrmDistrict" /></td>
|
|
<td ><enrgise:text formName="HrmOrgDistMstForm" property="txtDistrictCode" name="HrmDistrict" maxlength="20" styleClass="required" disabledClass="locked" style="width:100%" titleKey="hrm.HrmDistrictMaster.txtCode" alt="P" onchange='<%="doChangeDetail("+idx.toString()+")"%>' /></td>
|
|
<td ><enrgise:text formName="HrmOrgDistMstForm" property="txtDistrictName" name="HrmDistrict" maxlength="20" styleClass="required" disabledClass="locked" style="width:100%" titleKey="hrm.HrmDistrictMaster.txtDescription" alt="P" onkeypress="isName(event);" onchange='<%="doChangeDetail("+idx.toString()+")"%>' /></td>
|
|
|
|
</tr>
|
|
</logic:notEqual>
|
|
<logic:equal name="HrmDistrict" property="status" value="D" >
|
|
<tr>
|
|
<td><html:checkbox property="checked" value="check" disabled="true" alt="<%=idx.toString()%>" onclick="boxClicked(this.alt);" />
|
|
<html:hidden property="itemChecked" name="HrmDistrict" /><html:hidden property="status" name="HrmDistrict" /><html:hidden property="detailId" name="HrmDistrict" /></td>
|
|
<td ><enrgise:text formName="HrmOrgDistMstForm" property="txtDistrictCode" name="HrmDistrict" size="6" styleClass="deletedRow" disabledClass="locked" style="width:100%" alt="<%=idx.toString()%>" onchange="doChangeDetail(this.alt);" /></td>
|
|
<td ><enrgise:text formName="HrmOrgDistMstForm" property="txtDistrictName" name="HrmDistrict" size="53" styleClass="deletedRow" disabledClass="locked" style="width:100%" alt="<%=idx.toString()%>" onchange="doChangeDetail(this.alt);" /></td>
|
|
</tr>
|
|
</logic:equal>
|
|
</logic:iterate>
|
|
|
|
<!--Insert Logic Iterate Here-->
|
|
</TBODY>
|
|
</TABLE>
|
|
</DIV>
|
|
</TD>
|
|
</TR>
|
|
|
|
<!-- Get details starts -->
|
|
<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"> Get De<u>t</u>ail </enrgise:button> <enrgise:button altKey="wenrgise.common.addRow" name="ParentForm" onclick="doBaseAddRow()" property="butAddRow" styleClass="bottomBarText"> Add <u>R</u>ow </enrgise:button><enrgise:button altKey="wenrgise.common.delRow" name="ParentForm" onclick="doBaseDelRow()"
|
|
property="butDelRow" styleClass="bottomBarText" ><u>D</u>elete Row</enrgise: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 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>
|
|
</TBODY>
|
|
</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="HrmOrgDistMstForm" property="screenMode" />
|
|
<html:hidden name="HrmOrgDistMstForm" property="screenName" value="HrmOrgDistMst" />
|
|
<html:hidden name="HrmOrgDistMstForm" property="forwardedPage" />
|
|
<html:hidden property="positionRequested" name="HrmOrgDistMstForm" />
|
|
<html:hidden property="txtIndex" name="HrmOrgDistMstForm" />
|
|
|
|
<html:hidden property="userPageRequested" name="HrmOrgDistMstForm" />
|
|
<html:hidden property="userPositionRequested" name="HrmOrgDistMstForm"/>
|
|
<html:hidden property="pageRequested" name="HrmOrgDistMstForm" />
|
|
<html:hidden property="headerPrimaryKey" name="HrmOrgDistMstForm" />
|
|
|
|
|
|
|
|
<!-- Container Table Ends -->
|
|
|
|
</html:form>
|
|
</body>
|
|
</html:html>
|
|
|
|
<script>
|
|
|
|
function doInsertMode()
|
|
{
|
|
|
|
return "HrmOrgDistMstNewModeAction.do";
|
|
}
|
|
|
|
function doQueryMode()
|
|
{
|
|
|
|
return "HrmOrgDistMstQueryModeAction.do"; //Dummy
|
|
}
|
|
|
|
function doSave()
|
|
{
|
|
|
|
return "HrmOrgDistMstSaveAction.do";
|
|
|
|
}
|
|
|
|
function doDelete()
|
|
{
|
|
|
|
return "HrmOrgDistMstDeleteAction.do";
|
|
|
|
}
|
|
|
|
function doRefresh()
|
|
{
|
|
|
|
return "HrmOrgDistMstRefreshAction.do";
|
|
|
|
}
|
|
|
|
|
|
function doGetDetail()
|
|
{
|
|
document.forms[0].screenMode.value="U";
|
|
return "HrmOrgDistMstGetDetailAction.do";
|
|
}
|
|
|
|
function doAddRow()
|
|
{
|
|
document.forms[0].screenMode.value="U";
|
|
document.forms[0].headerPrimaryKey.value="Enrgise";
|
|
return "HrmOrgDistMstAddRowAction.do";
|
|
}
|
|
|
|
function doDelRow()
|
|
{
|
|
return "HrmOrgDistMstDeleteRowAction.do";
|
|
}
|
|
|
|
function doGetDetailTableName()
|
|
{
|
|
return "tableName";
|
|
}
|
|
|
|
function doPrevDetail()
|
|
{
|
|
|
|
return "HrmOrgDistMstGetDetailPageAction.do";
|
|
}
|
|
function doExit()
|
|
{
|
|
|
|
return "HrmOrgDistMstExitAction.do";
|
|
}
|
|
|
|
function doNextDetail()
|
|
{
|
|
|
|
return "HrmOrgDistMstGetDetailPageAction.do";
|
|
}
|
|
|
|
function doJumpDetail()
|
|
{
|
|
return "HrmOrgDistMstGetDetailPageAction.do";
|
|
}
|
|
|
|
|
|
function boxClicked(val)
|
|
{
|
|
if(document.getElementsByName("checked")[val].checked)
|
|
{
|
|
document.getElementsByName("itemChecked")[val].value = "Y";
|
|
}
|
|
else
|
|
{
|
|
document.getElementsByName("itemChecked")[val].value = "N";
|
|
}
|
|
}
|
|
|
|
</script>
|