first commit
This commit is contained in:
295
hrmsWeb/hrms/jsp/HrmOrgTehMst.jsp
Normal file
295
hrmsWeb/hrms/jsp/HrmOrgTehMst.jsp
Normal file
@@ -0,0 +1,295 @@
|
||||
<%@ 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="HrmOrgTehMstForm" action="HrmOrgTehMstBaseAction" type="wenrgise.hrms.webtier.form.HrmOrgTehMstForm">
|
||||
<bean:define id="ParentForm" name="HrmOrgTehMstForm" 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="HrmOrgTehMstForm" />
|
||||
|
||||
|
||||
|
||||
<!--Top Most Blue Bar-->
|
||||
<TABLE cellSpacing=0 bgColor=#bdd0ef>
|
||||
<tr>
|
||||
<TD colSpan=12 class=mainHeader ><bean:message key="hrm.HrmTehsilMaster.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.HrmTehsilMaster.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.HrmTehsilMaster.txtCode" /></td>
|
||||
<TD class=tableHeader><bean:message key="hrm.HrmTehsilMaster.txtDescription" /></td>
|
||||
|
||||
</tr>
|
||||
<logic:iterate id="HrmTehsil" name="HrmOrgTehMstForm" property="arrHrmTehsilDtl" type="wenrgise.hrms.bean.HrmOrgTehsilMstDtlBean" indexId="idx" >
|
||||
<logic:notEqual name="HrmTehsil" property="status" value="D" >
|
||||
<tr>
|
||||
<td><html:checkbox property="checked" name="HrmOrgTehMstForm" alt="<%=idx.toString()%>" onclick="boxClicked(this.alt);" />
|
||||
<html:hidden property="itemChecked" name="HrmTehsil" /><html:hidden property="status" name="HrmTehsil" /><html:hidden property="detailId" name="HrmTehsil" /></td>
|
||||
<td ><enrgise:text formName="HrmOrgTehMstForm" property="txtTehsilCode" name="HrmTehsil" maxlength="20" styleClass="required" disabledClass="locked" style="width:100%" titleKey="hrm.HrmTehsilMaster.txtCode" alt="P" onchange='<%="doChangeDetail("+idx.toString()+")"%>' /></td>
|
||||
<td ><enrgise:text formName="HrmOrgTehMstForm" property="txtTehsilName" name="HrmTehsil" maxlength="20" styleClass="required" disabledClass="locked" style="width:100%" titleKey="hrm.HrmTehsilMaster.txtDescription" alt="P" onkeypress="isName(event);" onchange='<%="doChangeDetail("+idx.toString()+")"%>' /></td>
|
||||
|
||||
</tr>
|
||||
</logic:notEqual>
|
||||
<logic:equal name="HrmTehsil" 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="HrmTehsil" /><html:hidden property="status" name="HrmTehsil" /><html:hidden property="detailId" name="HrmTehsil" /></td>
|
||||
<td ><enrgise:text formName="HrmOrgTehMstForm" property="txtTehsilCode" name="HrmTehsil" size="6" styleClass="deletedRow" disabledClass="locked" style="width:100%" alt="<%=idx.toString()%>" onchange="doChangeDetail(this.alt);" /></td>
|
||||
<td ><enrgise:text formName="HrmOrgTehMstForm" property="txtTehsilName" name="HrmTehsil" 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="HrmOrgTehMstForm" property="screenMode" />
|
||||
<html:hidden name="HrmOrgTehMstForm" property="screenName" value="HrmOrgTehMst" />
|
||||
<html:hidden name="HrmOrgTehMstForm" property="forwardedPage" />
|
||||
<html:hidden property="positionRequested" name="HrmOrgTehMstForm" />
|
||||
<html:hidden property="txtIndex" name="HrmOrgTehMstForm" />
|
||||
|
||||
<html:hidden property="userPageRequested" name="HrmOrgTehMstForm" />
|
||||
<html:hidden property="userPositionRequested" name="HrmOrgTehMstForm"/>
|
||||
<html:hidden property="pageRequested" name="HrmOrgTehMstForm" />
|
||||
<html:hidden property="headerPrimaryKey" name="HrmOrgTehMstForm" />
|
||||
|
||||
|
||||
|
||||
<!-- Container Table Ends -->
|
||||
|
||||
</html:form>
|
||||
</body>
|
||||
</html:html>
|
||||
|
||||
<script>
|
||||
|
||||
function doInsertMode()
|
||||
{
|
||||
|
||||
return "HrmOrgTehMstNewModeAction.do";
|
||||
}
|
||||
|
||||
function doQueryMode()
|
||||
{
|
||||
|
||||
return "HrmOrgTehMstQueryModeAction.do"; //Dummy
|
||||
}
|
||||
|
||||
function doSave()
|
||||
{
|
||||
|
||||
return "HrmOrgTehMstSaveAction.do";
|
||||
|
||||
}
|
||||
|
||||
function doDelete()
|
||||
{
|
||||
|
||||
return "HrmOrgTehMstDeleteAction.do";
|
||||
|
||||
}
|
||||
|
||||
function doRefresh()
|
||||
{
|
||||
|
||||
return "HrmOrgTehMstRefreshAction.do";
|
||||
|
||||
}
|
||||
|
||||
|
||||
function doGetDetail()
|
||||
{
|
||||
document.forms[0].screenMode.value="U";
|
||||
return "HrmOrgTehMstGetDetailAction.do";
|
||||
}
|
||||
|
||||
function doAddRow()
|
||||
{
|
||||
document.forms[0].screenMode.value="U";
|
||||
document.forms[0].headerPrimaryKey.value="Enrgise";
|
||||
return "HrmOrgTehMstAddRowAction.do";
|
||||
}
|
||||
|
||||
function doDelRow()
|
||||
{
|
||||
return "HrmOrgTehMstDeleteRowAction.do";
|
||||
}
|
||||
|
||||
function doGetDetailTableName()
|
||||
{
|
||||
return "tableName";
|
||||
}
|
||||
|
||||
function doPrevDetail()
|
||||
{
|
||||
|
||||
return "HrmOrgTehMstGetDetailPageAction.do";
|
||||
}
|
||||
function doExit()
|
||||
{
|
||||
|
||||
return "HrmOrgTehMstExitAction.do";
|
||||
}
|
||||
|
||||
function doNextDetail()
|
||||
{
|
||||
|
||||
return "HrmOrgTehMstGetDetailPageAction.do";
|
||||
}
|
||||
|
||||
function doJumpDetail()
|
||||
{
|
||||
return "HrmOrgTehMstGetDetailPageAction.do";
|
||||
}
|
||||
|
||||
|
||||
function boxClicked(val)
|
||||
{
|
||||
if(document.getElementsByName("checked")[val].checked)
|
||||
{
|
||||
document.getElementsByName("itemChecked")[val].value = "Y";
|
||||
}
|
||||
else
|
||||
{
|
||||
document.getElementsByName("itemChecked")[val].value = "N";
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
Reference in New Issue
Block a user