first commit
This commit is contained in:
361
hrmsWeb/hrms/jsp/HrmOrgCalMst.jsp
Normal file
361
hrmsWeb/hrms/jsp/HrmOrgCalMst.jsp
Normal file
@@ -0,0 +1,361 @@
|
||||
<%@ 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="HrmOrgCalMstForm" action="HrmOrgCalMstBaseAction" type="wenrgise.hrms.webtier.form.HrmOrgCalMstForm">
|
||||
<bean:define id="ParentForm" name="HrmOrgCalMstForm" 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.HrmCalendarMaster.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>Calendar Master Information</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.HrmCalendarMaster.calendarType" /></td>
|
||||
<td><enrgise:text property="calendarType" name="HrmOrgCalMstForm" styleClass="required" disabledClass="locked" size="23" maxlength="20" titleKey="hrm.HrmCalendarMaster.calendarType" alt="AN" onchange="doChangeHeader();" /><enrgise:img height="16" align="center" src="../includes/images/lov.jpg" styleClass="icon" property="butCalType" name="HrmOrgCalMstForm" onclick="return ShowCalType()" /></td>
|
||||
<td class=labelText><bean:message key="hrm.HrmCalendarMaster.startMonth" /></td>
|
||||
<td><enrgise:select property="startMonth" name="HrmOrgCalMstForm" styleClass="required" disabledClass="locked" titleKey="hrm.HrmCalendarMaster.startMonth" alt="N" onchange="doChangeHeader();" >
|
||||
<enrgise:option value="" ><bean:message key="hrm.pleaseSelect" /></enrgise:option>
|
||||
<enrgise:option value="1" ><bean:message key="hrm.jan" /></enrgise:option>
|
||||
<enrgise:option value="2" ><bean:message key="hrm.feb" /></enrgise:option>
|
||||
<enrgise:option value="3" ><bean:message key="hrm.mar" /></enrgise:option>
|
||||
<enrgise:option value="4" ><bean:message key="hrm.apr" /></enrgise:option>
|
||||
<enrgise:option value="5" ><bean:message key="hrm.may" /></enrgise:option>
|
||||
<enrgise:option value="6" ><bean:message key="hrm.jun" /></enrgise:option>
|
||||
<enrgise:option value="7" ><bean:message key="hrm.jul" /></enrgise:option>
|
||||
<enrgise:option value="8" ><bean:message key="hrm.aug" /></enrgise:option>
|
||||
<enrgise:option value="9" ><bean:message key="hrm.sep" /></enrgise:option>
|
||||
<enrgise:option value="10" ><bean:message key="hrm.oct" /></enrgise:option>
|
||||
<enrgise:option value="11" ><bean:message key="hrm.nov" /></enrgise:option>
|
||||
<enrgise:option value="12" ><bean:message key="hrm.dec" /></enrgise:option>
|
||||
</enrgise:select></td>
|
||||
<td class=labelText><bean:message key="hrm.HrmCalendarMaster.duration" /></td>
|
||||
<td><enrgise:text property="duration" name="HrmOrgCalMstForm" maxlength="2" styleClass="required" disabledClass="locked" titleKey="hrm.HrmCalendarMaster.duration" alt="N" size="26" onkeypress="isNumber(event);" 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="HrmOrgCalMstForm" property="butCalendarTab" styleClass="actTabText" disabledClass="lockedTab" src="../includes/images/formtab_r.gif" ><bean:message key="hrm.HrmCalendarMaster.calendarMasterDetails" /></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')" disabled="true" /></td>
|
||||
<!--<TD class=tableHeader><bean:message key="hrm.HrmCalendarMaster.txtSlabNumber" /></td>-->
|
||||
<TD class=tableHeader><bean:message key="hrm.HrmCalendarMaster.txtSlabBeginMonth" /></td>
|
||||
<TD class=tableHeader><bean:message key="hrm.HrmCalendarMaster.txtDuration" /></td>
|
||||
</tr>
|
||||
<logic:notEmpty name="HrmOrgCalMstForm" property="arrHrmCalDtl" >
|
||||
<logic:iterate id="HrmCal" name="HrmOrgCalMstForm" property="arrHrmCalDtl" type="wenrgise.hrms.bean.HrmOrgCalMstDtlBean" indexId="idx" >
|
||||
<logic:notEqual name="HrmCal" property="status" value="D" >
|
||||
<tr class='<bean:write name="HrmOrgCalMstForm" property="listRowClass"/>' >
|
||||
<td align="center" width="1%"><html:hidden property="status" name="HrmCal" /><html:hidden property="detailId" name="HrmCal" /><html:hidden property="itemChecked" name="HrmCal" /><html:checkbox property="checked" name="HrmOrgCalMstForm" alt="<%=idx.toString()%>" onclick="boxClicked(this.alt);" disabled="true" /><html:hidden property="checked" /></td>
|
||||
<html:hidden property="txtSlabNumber" name="HrmCal" />
|
||||
<td><enrgise:text property="txtSlabBeginMonth" maxlength="2" name="HrmCal" formName="HrmOrgCalMstForm" styleClass="required" disabledClass="locked" style="width:100%" alt="A" onkeypress="isInteger(event);" onchange='<%="doChangeDetail("+idx.toString()+")"%>' /></td>
|
||||
<td><enrgise:text property="txtDuration" maxlength="2" name="HrmCal" formName="HrmOrgCalMstForm" styleClass="required" disabledClass="locked" style="width:100%" alt="N" onkeypress="isNumber(event);" onchange='<%="doChangeDetail("+idx.toString()+")"%>' /></td>
|
||||
<html:hidden property="txtSiteId" name="HrmCal" />
|
||||
</tr>
|
||||
</logic:notEqual>
|
||||
<logic:equal name="HrmCal" property="status" value="D" >
|
||||
<tr class='<bean:write name="HrmOrgCalMstForm" property="listRowClass"/>' >
|
||||
<td align="center" width="1%"><html:hidden property="status" name="HrmCal" /><html:hidden property="detailId" name="HrmCal" /><html:hidden property="itemChecked" name="HrmCal" /><html:checkbox property="checked" value="check" disabled="true" name="HrmOrgCalMstForm" alt="<%=idx.toString()%>" onclick="boxClicked(this.alt);" /></td>
|
||||
<html:hidden property="txtSlabNumber" name="HrmCal" />
|
||||
<td><html:text property="txtSlabBeginMonth" maxlength="2" name="HrmCal" styleClass="deletedRow" style="width:100%" readonly="true" /></td>
|
||||
<td><html:text property="txtDuration" maxlength="2" name="HrmCal" styleClass="deletedRow" style="width:100%" readonly="true" /></td> <html:hidden property="txtSiteId" name="HrmCal" />
|
||||
</tr>
|
||||
</logic:equal>
|
||||
</logic:iterate>
|
||||
</logic:notEmpty>
|
||||
</TBODY>
|
||||
</TABLE>
|
||||
</DIV>
|
||||
</TD>
|
||||
</TR>
|
||||
<tr>
|
||||
<td>
|
||||
<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>
|
||||
<button altKey="wenrgise.common.delRow" property="butDelRow" styleClass="bottomBarText" disabled="true" ><u>D</u>elete Row</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>
|
||||
|
||||
</TD>
|
||||
<td> </td>
|
||||
</tr>
|
||||
</TABLE>
|
||||
</td>
|
||||
</tr>
|
||||
<TR>
|
||||
<TD background="../includes/images/line_r.gif"><IMG src="../includes/images/pixel.gif" border=0></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="HrmOrgCalMstForm" property="screenMode" />
|
||||
<html:hidden name="HrmOrgCalMstForm" property="screenName" value="HrmOrgCalMst" />
|
||||
<html:hidden name="HrmOrgCalMstForm" property="forwardedPage" />
|
||||
<html:hidden property="positionRequested" name="HrmOrgCalMstForm" />
|
||||
|
||||
<html:hidden property="userPageRequested" />
|
||||
<html:hidden property="userPositionRequested" />
|
||||
<html:hidden property="pageRequested" />
|
||||
<html:hidden property="headerPrimaryKey" name="HrmOrgCalMstForm" />
|
||||
<html:hidden property="headerDataChanged" name="HrmOrgCalMstForm" />
|
||||
<html:hidden property="detailDataChanged" name="HrmOrgCalMstForm" />
|
||||
<html:hidden property="lovKey" name="HrmOrgCalMstForm" />
|
||||
<html:hidden property="txtSearchFields" name="HrmOrgCalMstForm" />
|
||||
<html:hidden property="txtDisplayFields" name="HrmOrgCalMstForm" />
|
||||
<html:hidden property="txtIndex" name="HrmOrgCalMstForm" />
|
||||
|
||||
<html:hidden property="calendarTypeId" name="HrmOrgCalMstForm" />
|
||||
<input type="hidden" name="multipleFlag" >
|
||||
<input type="hidden" name="queryParam" >
|
||||
|
||||
<!-- Container Table Ends -->
|
||||
|
||||
</html:form>
|
||||
</body>
|
||||
</html:html>
|
||||
|
||||
<script language="javascript">
|
||||
function doChangeHeader()
|
||||
{
|
||||
document.forms[0].headerDataChanged.value="true";
|
||||
}
|
||||
|
||||
|
||||
function doQueryMode()
|
||||
{
|
||||
|
||||
return "HrmOrgCalMstQueryModeAction.do";
|
||||
}
|
||||
|
||||
|
||||
function doInsertMode()
|
||||
{
|
||||
|
||||
return "HrmOrgCalMstNewModeAction.do";
|
||||
}
|
||||
function doExit()
|
||||
{
|
||||
|
||||
return "HrmOrgCalMstExitAction.do";
|
||||
}
|
||||
|
||||
|
||||
function doExecute()
|
||||
{
|
||||
|
||||
return "HrmOrgCalMstGetHeaderAction.do";
|
||||
}
|
||||
|
||||
function doSave()
|
||||
{
|
||||
|
||||
return "HrmOrgCalMstSaveAction.do";
|
||||
|
||||
}
|
||||
|
||||
function doDelete()
|
||||
{
|
||||
|
||||
return "HrmOrgCalMstDeleteAction.do";
|
||||
|
||||
}
|
||||
|
||||
function doRefresh()
|
||||
{
|
||||
|
||||
return "HrmOrgCalMstRefreshAction.do";
|
||||
|
||||
}
|
||||
|
||||
function doPrevHeader()
|
||||
{
|
||||
return "HrmOrgCalMstGetNextHeaderAction.do";
|
||||
}
|
||||
|
||||
function doNextHeader()
|
||||
{
|
||||
return "HrmOrgCalMstGetNextHeaderAction.do";
|
||||
}
|
||||
|
||||
function doJumpHeader()
|
||||
{
|
||||
return "HrmOrgCalMstGetNextHeaderAction.do";
|
||||
}
|
||||
|
||||
function doGetDetail()
|
||||
{
|
||||
|
||||
return "HrmOrgCalMstGetDetailAction.do";
|
||||
}
|
||||
|
||||
function doAddRow()
|
||||
{
|
||||
|
||||
return "HrmOrgCalMstAddRowAction.do";
|
||||
}
|
||||
|
||||
function doDelRow()
|
||||
{
|
||||
return "HrmOrgCalMstDeleteRowAction.do";
|
||||
}
|
||||
|
||||
function doGetDetailTableName()
|
||||
{
|
||||
return "tableName";
|
||||
}
|
||||
|
||||
function doPrevDetail()
|
||||
{
|
||||
|
||||
return "HrmOrgCalMstGetDetailPageAction.do";
|
||||
}
|
||||
|
||||
function doNextDetail()
|
||||
{
|
||||
|
||||
return "HrmOrgCalMstGetDetailPageAction.do";
|
||||
}
|
||||
|
||||
function doJumpDetail()
|
||||
{
|
||||
return "HrmOrgCalMstGetDetailPageAction.do";
|
||||
}
|
||||
function ShowCalType()
|
||||
{
|
||||
document.forms[0].lovKey.value = "HrmCalendarType" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
|
||||
document.forms[0].txtSearchFields.value = "hrm.HrmCalendarMaster.calendarType";
|
||||
document.forms[0].txtDisplayFields.value = "calendarTypeId,calendarType";
|
||||
document.forms[0].multipleFlag.value = "false";
|
||||
showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmOrgCalMstForm');
|
||||
return true;
|
||||
|
||||
}
|
||||
function doGetInsertData()
|
||||
{}
|
||||
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