first commit
This commit is contained in:
348
hrmsWeb/hrms/jsp/WFLDocAttrDtl.jsp
Normal file
348
hrmsWeb/hrms/jsp/WFLDocAttrDtl.jsp
Normal file
@@ -0,0 +1,348 @@
|
||||
<%@ 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="WFL.title" /></TITLE>
|
||||
<jsp:include page="GenIncludes.jsp" flush="true" />
|
||||
|
||||
</head>
|
||||
|
||||
<BODY onkeydown="hotKeys(event);" onload="doBaseOnLoad();" scroll=no>
|
||||
|
||||
<html:form name="WFLDocAttrForm" action="WFLDocAttrBaseAction" type="wenrgise.workflow.webtier.form.WFLDocAttrDtlForm">
|
||||
<bean:define id="ParentForm" name="WFLDocAttrForm" toScope="request" />
|
||||
<bean:define id="pageNo" name="WFLDocAttrForm" property="pageRequested" />
|
||||
<bean:define id="maxPage" name="WFLDocAttrForm" property="totalPageCount" />
|
||||
<jsp:include page="GenIconMenu.jsp" flush="true" />
|
||||
<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>
|
||||
<!--Top Most Blue Bar-->
|
||||
<TABLE cellSpacing=0 bgColor=#bdd0ef>
|
||||
<tr>
|
||||
<TD colSpan=12 class=mainHeader height=10><bean:message key="WFL.WFLDocAttrDtl.heading" /></TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
<TABLE cellSpacing=0 cellPadding=0 border=0 >
|
||||
<TR>
|
||||
<TD>
|
||||
|
||||
<TABLE cellSpacing=0 cellPadding=0 >
|
||||
<!--Order Information Starts -->
|
||||
<TR>
|
||||
<TD class=subHeader colspan=6><bean:message key="WFL.WFLDocAttrDtl.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="WFL.WFLDocAttrDtl.documentCode" /></td>
|
||||
<td><enrgise:text name="WFLDocAttrForm" property="documentCode" maxlength="20" size="23" styleClass="required" disabledClass="locked" alt="P" titleKey="WFL.WFLDocAttrDtl.documentCode" onchange="doChangeHeader();" /><enrgise:img name="WFLDocAttrForm" height="16" align="center" styleClass="icon" src="../includes/images/lov.jpg" property="butDocumentCode" onclick="return ShowDocumentCode()" /></td>
|
||||
<td class="labelText"><bean:message key="WFL.WFLDocAttrDtl.documentDesc" /></td>
|
||||
|
||||
<td><enrgise:text name="WFLDocAttrForm" property="documentDesc" maxlength="255" size="52" styleClass="required" disabledClass="locked" alt="P" titleKey="WFL.WFLDocAttrDtl.documentDesc" onchange="doChangeHeader();" /></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="labelText"><bean:message key="WFL.WFLDocAttrDtl.maxAppLevel" /></td>
|
||||
<td><enrgise:text name="WFLDocAttrForm" property="maxAppLevel" maxlength="20" size="23" styleClass="optional" disabledClass="locked" alt="P" titleKey="WFL.WFLDocAttrDtl.maxAppLevel" onchange="doChangeHeader();" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="10"></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
<table cellspacing=0 cellpadding=0 border=0>
|
||||
<!-- Detail Information Row starts -->
|
||||
<TR>
|
||||
<TD colspan=3>
|
||||
<!-- Personal Details Table Starts -->
|
||||
<TABLE cellSpacing=0 cellPadding=0 >
|
||||
<tr>
|
||||
<TD width=5 bgColor=#4682b4><IMG height=1 src="../includes/images/pixel.gif" width=5 border=0></TD>
|
||||
<TD class=actTabText noWrap bgColor=#4682b4 ><bean:message key="WFL.WFLDocAttrDtl.attrDetails" /><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%"></td>
|
||||
</tr>
|
||||
<TR >
|
||||
<TD width=2 bgColor=#4682b4><IMG height=1 src="../includes/images/pixel.gif" width=2 border=0></TD>
|
||||
<!-- Detail table Container starts -->
|
||||
<TD colspan=15>
|
||||
<TABLE cellSpacing=0 cellPadding=0 border=0>
|
||||
<TBODY>
|
||||
<TR>
|
||||
<TD >
|
||||
<DIV id=divDtlTable style="height:400px" >
|
||||
<!-- Detail table starts -->
|
||||
<TABLE cellSpacing=0 cellPadding=0 border=0>
|
||||
<TBODY>
|
||||
<tr>
|
||||
<TD class=tableHeader width="1%"><input type=checkbox></TD>
|
||||
<TD class=tableHeader ><bean:message key="WFL.WFLDocAttrDtl.attbName" /></td>
|
||||
<TD class=tableHeader ><bean:message key="WFL.WFLDocAttrDtl.type" /></td>
|
||||
<TD class=tableHeader ><bean:message key="WFL.WFLDocAttrDtl.desc" /></td>
|
||||
<TD class=tableHeader ><bean:message key="WFL.WFLDocAttrDtl.lovKey" /></td>
|
||||
</tr>
|
||||
<!--Insert Logic Iterate Here-->
|
||||
<logic:iterate id="WFLDocAttrDtl" name="WFLDocAttrForm" property="arylstDocAttrDetail" type="wenrgise.workflow.bean.WflDocMstAttrDtlBean" indexId="idx" >
|
||||
<logic:notEqual name="WFLDocAttrDtl" property="status" value="D" >
|
||||
<tr>
|
||||
<TD class=tableText width="1%">
|
||||
<html:hidden property="status" name="WFLDocAttrDtl" />
|
||||
<html:hidden property="detailId" name="WFLDocAttrDtl" />
|
||||
<enrgise:checkbox property="checked" name="WFLDocAttrForm" disabledClass="locked" onclick='<%="boxClicked("+idx.toString()+")"%>' />
|
||||
<html:hidden property="itemChecked" name="WFLDocAttrDtl" />
|
||||
<html:hidden property="docTypeHdrId" name="WFLDocAttrDtl" />
|
||||
<TD class=tableText ><enrgise:text name="WFLDocAttrDtl" property="txtAttrName" maxlength="30" styleClass="required" disabledClass="required" style="width:90%" alt="P" onchange='<%="doChangeDetail("+idx.toString()+")"%>' /></td>
|
||||
<TD class=tableText ><html:select name="WFLDocAttrDtl" property="txtType" styleClass="required" style="width:90%" alt="P" onchange='<%="doChangeDetail("+idx.toString()+")"%>' >
|
||||
<html:option value="" ><bean:message key="WFL.pleaseSelect" /></html:option>
|
||||
<html:option value="S" ><bean:message key="WFL.WFLDocAttrDtl.string" /></html:option>
|
||||
<html:option value="N" ><bean:message key="WFL.WFLDocAttrDtl.numeric" /></html:option>
|
||||
</html:select></td>
|
||||
<TD class=tableText ><enrgise:text name="WFLDocAttrDtl" property="txtDesc" maxlength="60" styleClass="required" disabledClass="required" style="width:90%" alt="P" onchange='<%="doChangeDetail("+idx.toString()+")"%>' /></td>
|
||||
<TD class=tableText ><enrgise:text name="WFLDocAttrDtl" property="txtLovKey" maxlength="60" styleClass="required" disabledClass="required" style="width:90%" alt="P" onchange='<%="doChangeDetail("+idx.toString()+")"%>' /></td>
|
||||
</tr>
|
||||
</logic:notEqual>
|
||||
<logic:equal name="WFLDocAttrDtl" property="status" value="D" >
|
||||
<tr>
|
||||
<TD class=tableText width="1%">
|
||||
<html:hidden property="status" name="WFLDocAttrDtl" />
|
||||
<html:hidden property="detailId" name="WFLDocAttrDtl" />
|
||||
<html:checkbox property="checked" name="WFLDocAttrForm" disabled="true" onclick='<%="boxClicked("+idx.toString()+")"%>' />
|
||||
<html:hidden property="itemChecked" name="WFLDocAttrDtl" />
|
||||
<html:hidden property="docTypeHdrId" name="WFLDocAttrDtl" />
|
||||
<TD class=tableText ><html:text name="WFLDocAttrDtl" property="txtAttrName" styleClass="deletedRow" readonly="true" style="width:90%" alt="P" onchange='<%="doChangeDetail("+idx.toString()+")"%>' /></td>
|
||||
<TD class=tableText ><html:select name="WFLDocAttrDtl" property="txtType" styleClass="deletedRow" style="width:90%" alt="P" onchange='<%="doChangeDetail("+idx.toString()+")"%>' >
|
||||
<html:option value="" ><bean:message key="WFL.pleaseSelect" /></html:option>
|
||||
<html:option value="S" ><bean:message key="WFL.WFLDocAttrDtl.string" /></html:option>
|
||||
<html:option value="N" ><bean:message key="WFL.WFLDocAttrDtl.numeric" /></html:option></td>
|
||||
</html:select></td>
|
||||
<TD class=tableText ><html:text name="WFLDocAttrDtl" property="txtDesc" styleClass="deletedRow" readonly="true" style="width:90%" alt="P" onchange='<%="doChangeDetail("+idx.toString()+")"%>' /></td>
|
||||
<TD class=tableText ><enrgise:text name="WFLDocAttrDtl" property="txtLovKey" maxlength="60" styleClass="required" disabledClass="required" style="width:90%" alt="P" onchange='<%="doChangeDetail("+idx.toString()+")"%>' /></td>
|
||||
</tr>
|
||||
</logic:equal>
|
||||
</logic:iterate>
|
||||
|
||||
</TBODY>
|
||||
</TABLE>
|
||||
</DIV>
|
||||
</TD>
|
||||
</TR>
|
||||
|
||||
<!-- Get details starts -->
|
||||
<tr>
|
||||
<td colspan=11>
|
||||
<jsp:include page="GenDetailMenu.jsp" />
|
||||
</TD>
|
||||
</tr>
|
||||
</TBODY>
|
||||
</TABLE>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
</TABLE>
|
||||
</td>
|
||||
</tr>
|
||||
<!-- Tab Table Ends -->
|
||||
|
||||
<!-- Bottom Blue Bar -->
|
||||
<TR>
|
||||
<td>
|
||||
<TABLE cellspacing="0" cellpadding="0" border=0>
|
||||
<tr height="20">
|
||||
<td colspan="5" bgColor=#4682b4></td>
|
||||
<td align=right bgColor=#4682b4><img src="../includes/images/man.jpg" ></td>
|
||||
|
||||
</TR>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<!-- Container Table Ending Columns Starts-->
|
||||
</TD>
|
||||
|
||||
</TR>
|
||||
</TBODY>
|
||||
</TABLE>
|
||||
|
||||
<!-- Container Table Ends -->
|
||||
<html:hidden property="screenName" value="WFLDoctAttrDetail" />
|
||||
<html:hidden property="forwardedPage" />
|
||||
<html:hidden property="positionRequested" />
|
||||
<html:hidden property="screenMode" />
|
||||
<html:hidden property="headerPrimaryKey" name="WFLDocAttrForm" />
|
||||
<html:hidden property="headerDataChanged" name="WFLDocAttrForm" />
|
||||
<html:hidden property="detailDataChanged" name="WFLDocAttrForm" />
|
||||
<html:hidden property="userPageRequested" />
|
||||
<html:hidden property="userPositionRequested" />
|
||||
<html:hidden property="pageRequested" />
|
||||
<!-- These four hidden fields must be present in pages where there is a detail part -->
|
||||
|
||||
<!-- Hidden Header LOV -->
|
||||
<html:hidden property="firstLoad" />
|
||||
|
||||
<html:hidden property="lovKey" name="WFLDocAttrForm" />
|
||||
<html:hidden property="txtSearchFields" name="WFLDocAttrForm" />
|
||||
<html:hidden property="txtDisplayFields" name="WFLDocAttrForm" />
|
||||
<html:hidden property="txtIndex" name="WFLDocAttrForm" />
|
||||
|
||||
|
||||
|
||||
</html:form>
|
||||
</body>
|
||||
</html:html>
|
||||
<script>
|
||||
|
||||
function doOnLoad()
|
||||
{
|
||||
if(document.forms[0].firstLoad.value=="" ){
|
||||
return "WFLDocAttrOnLoadAction.do";
|
||||
}
|
||||
}
|
||||
|
||||
function doQueryMode()
|
||||
{
|
||||
|
||||
return "WFLDocAttrQueryModeAction.do";
|
||||
}
|
||||
|
||||
|
||||
function doInsertMode()
|
||||
{
|
||||
|
||||
return "WFLDocAttrNewModeAction.do";
|
||||
}
|
||||
|
||||
|
||||
function doExecute()
|
||||
{
|
||||
|
||||
return "WFLDocAttrGetHeaderAction.do";
|
||||
}
|
||||
|
||||
|
||||
function doSave()
|
||||
{
|
||||
|
||||
return "WFLDocAttrSaveAction.do";
|
||||
}
|
||||
|
||||
function doDelete()
|
||||
{
|
||||
|
||||
return "WFLDocAttrDeleteAction.do";
|
||||
|
||||
}
|
||||
|
||||
function doRefresh()
|
||||
{
|
||||
|
||||
return "WFLDocAttrRefreshAction.do";
|
||||
|
||||
}
|
||||
|
||||
function doPrevHeader()
|
||||
{
|
||||
return "WFLDocAttrGetNextHeaderAction.do";
|
||||
}
|
||||
|
||||
function doNextHeader()
|
||||
{
|
||||
return "WFLDocAttrGetNextHeaderAction.do";
|
||||
}
|
||||
|
||||
function doJumpHeader()
|
||||
{
|
||||
return "WFLDocAttrGetNextHeaderAction.do";
|
||||
}
|
||||
|
||||
function doGetDetail()
|
||||
{
|
||||
return "WFLDocAttrGetDetailAction.do";
|
||||
}
|
||||
|
||||
function doAddRow()
|
||||
{
|
||||
|
||||
return "WFLDocAttrAddRowAction.do";
|
||||
}
|
||||
|
||||
function doDelRow()
|
||||
{
|
||||
return "WFLDocAttrDeleteRowAction.do";
|
||||
}
|
||||
|
||||
function doGetDetailTableName()
|
||||
{
|
||||
return "tableName";
|
||||
}
|
||||
|
||||
function doPrevDetail()
|
||||
{
|
||||
|
||||
return "WFLDocAttrGetDetailPageAction.do";
|
||||
}
|
||||
|
||||
function doNextDetail()
|
||||
{
|
||||
|
||||
return "WFLDocAttrGetDetailPageAction.do";
|
||||
}
|
||||
|
||||
function doJumpDetail()
|
||||
{
|
||||
return "WFLDocAttrGetDetailPageAction.do";
|
||||
}
|
||||
|
||||
|
||||
|
||||
function ShowDocumentCode()
|
||||
{
|
||||
document.forms[0].lovKey.value = "DocCode" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
|
||||
document.forms[0].txtSearchFields.value = "WFL.WFLDocAttrDtl.documentCode";
|
||||
document.forms[0].txtDisplayFields.value = "headerPrimaryKey,documentCode,documentDesc";
|
||||
showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','WFLDocAttrDtlForm');
|
||||
return true;
|
||||
|
||||
}
|
||||
function doGetInsertData()
|
||||
{}
|
||||
|
||||
function doValidate()
|
||||
{
|
||||
return "WFLDocAttrValidateAction.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