<%@ 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 name="HrmPrmGenAssForm" action="HrmPrmGenAssBaseAction" type="wenrgise.hrms.webtier.form.HrmPrmGenAssForm">
<bean:define id="ParentForm" name="HrmPrmGenAssForm" 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()" /><enrgise:img name="ParentForm" property="butInsert" onmouseover='this.src="../includes/images/insert_act.jpg"' onmouseout='this.src="../includes/images/insert.jpg"' alt="Insert (Alt+N)" src="../includes/images/insert.jpg"  onclick="doBaseInsertMode()"/></TD>
    <TD width="2%"></TD>
    <TD ><img name="ParentForm" 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()" />
    <enrgise:img name="ParentForm" property="butDelete" onmouseover='this.src="../includes/images/delete_act.jpg"' onmouseout='this.src="../includes/images/delete.jpg"' alt="Delete (Ctrl+D)" src="../includes/images/delete.jpg" onclick="doBaseDelete()" /><enrgise:img name="ParentForm" 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" onmouseover='this.src="../includes/images/exit_act.jpg"' onmouseout='this.src="../includes/images/exit.jpg"' alt="Exit (Alt+X)"  src="../includes/images/exit.jpg"   onclick="doBaseExit()" />
    <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" onclick="doBaseHelp()" /></TD>    <TD width="50%"></TD>
    <TD ><enrgise:img name="ParentForm" property="butPrevHeader" src='../includes/images/butn_prev.jpg' onmouseover='this.src="../includes/images/butn_prev_act.jpg"' onmouseout='this.src="../includes/images/butn_prev.jpg"' alt="Butn_prev (Ctrl+<)" onclick="doBasePrevHeader()" /></td>
    <td class=dtlNavText><bean:write  name="left" /> of 
    <bean:write name="right" /></td>
    <td align=right><enrgise:img name="ParentForm" property="butNextHeader" src="../includes/images/butn_next.jpg" onmouseover='this.src="../includes/images/butn_next_act.jpg"' onmouseout='this.src="../includes/images/butn_next.jpg"' alt="Butn_next (Ctrl+>)" onclick="doBaseNextHeader()" /></td>
    <td align=right><enrgise:text property="newPositionRequested" size="1" onkeydown="isInteger(event)" title="wenrgise.common.jumpDetail" alt="N" disabledClass="locked" styleClass="optional" /></td>
    <td ><enrgise:img name="ParentForm" property="butJumpHeader" alt="Go (Ctrl+G)" src="../includes/images/go.jpg" onmouseover='this.src="../includes/images/go_act.jpg"' onmouseout='this.src="../includes/images/go.jpg"' onclick="doBaseJumpHeader()" /></td>
    <td > </td>
</TR>
</TABLE>
<table>
<tr>
  <td colspan="11" class="userText"></td>
</tr>
<enrgise:checkSession/>
</TABLE>

<html:hidden property="detailDataChanged" name="HrmPrmGenAssForm" />

<!--Top Most Blue Bar-->
<TABLE cellSpacing=0 bgColor=#bdd0ef>
    <tr>
        <TD  colSpan=12 class=mainHeader height=10><bean:message key="hrm.HrmPrmGenAss.mainHeader" /></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.HrmPrmGenAssSubHeader.title" /></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.HrmPrmGenAss.siteCode" /></td>
               <td><html:text  property="siteCode"  maxlength="10" size="23" styleClass="required" readonly="true"/><enrgise:img height="16" align="center" src="../includes/images/lov.jpg" property="butSiteID" name="HrmPrmGenAssForm" onclick="ShowSiteID()" /></td>
                <td colspan="2"></td>
               <td class="labelText"><bean:message key="hrm.HrmPrmGenAss.prmNo" /></td>
               <td><html:text  property="prmNo"  maxlength="10" size="23" styleClass="required" readonly="true" /><enrgise:img height="16" align="center" src="../includes/images/lov.jpg" property="butPrmID" name="HrmPrmGenAssForm" onclick="ShowPrmID()" /></td>
           </tr>
           </tr>
           <tr height="10">
                <td colspan="6"></td>
            </tr>
         </table>
        
      <!-- Bottom Blue Bar -->
      <TR>
        <td>
          <TABLE  cellspacing="0" cellpadding="0" border=0>
            <tr>
                <td width=40%  bgColor=#4682b4></td>
                <td align=center bgColor=#4682b4><enrgise:button name="HrmPrmGenAssForm"   onclick="doBaseSave()" property="butGenerate" styleClass="bottomBarText"> <u>G</u>enerate  </enrgise:button></td>
                <td  width=40% 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="HrmPrmGenAssForm"  property="screenMode" />
<html:hidden name="HrmPrmGenAssForm"  property="screenName" value="HrmPrmGenAss" />
<html:hidden name="HrmPrmGenAssForm"  property="forwardedPage" />
<html:hidden property="positionRequested" name="HrmPrmGenAssForm" />
<html:hidden property="txtIndex" name="HrmPrmGenAssForm"  />

<input type="hidden" name="multipleFlag" >
<input type="hidden" name="queryParam" >

<html:hidden property="userPageRequested" />
<html:hidden property="userPositionRequested" />
<html:hidden property="pageRequested" />

<html:hidden property="siteId" name="HrmPrmGenAssForm" />
<html:hidden property="lovKey" name="HrmPrmGenAssForm" />
<html:hidden property="txtSearchFields" name="HrmPrmGenAssForm" />
<html:hidden property="txtDisplayFields" name="HrmPrmGenAssForm" />

<html:hidden property="headerDataChanged" name="HrmPrmGenAssForm" />
<html:hidden property="detailDataChanged" value="false" />
<html:hidden property="buttonName" name="HrmPrmGenAssForm" />
<html:hidden property="headerPrimaryKey" name="HrmPrmGenAssForm" />
<html:hidden property="siteId" name="HrmPrmGenAssForm"  />
<html:hidden property="prmId" name="HrmPrmGenAssForm" />
<html:hidden property="posInfHdrId" name="HrmPrmGenAssForm" />
<html:hidden property="firstLoad" name="HrmPrmGenAssForm"  />

</html:form>
</body>
</html:html>

<SCRIPT>

function doQueryMode()
{
  return "HrmPrmGenAssQueryModeAction.do";
}

function doInsertMode()
{
  return "HrmPrmGenAssNewModeAction.do";
}


function doExecute()
{
  return "HrmPrmGenAssGetHeaderAction.do";
}


function doDelete()
{
  return "HrmPrmGenAssDeleteAction.do";
}

function doRefresh()
{
  return "HrmPrmGenAssRefreshAction.do"; 
}

function doPrevHeader()
{
  return "HrmPrmGenAssGetNextHeaderAction.do"; 
}

function doNextHeader()
{
  return "HrmPrmGenAssGetNextHeaderAction.do"; 
}

function doJumpHeader()
{
  return "HrmPrmGenAssGetNextHeaderAction.do"; 
}

function doGetDetail()
{
  return "HrmPrmGenAssGetDetailAction.do";
}

function doAddRow()
{
  return "HrmPrmGenAssAddRowAction.do"; 
}

function doDelRow()
{
 return "HrmPrmGenAssDeleteRowAction.do";  
}

function doGetDetailTableName()
{
  return "tableName";
}

function doPrevDetail()
{
  return "HrmPrmGenAssGetDetailPageAction.do";  
}

function doNextDetail()
{
  return "HrmPrmGenAssGetDetailPageAction.do";
}

function doJumpDetail()
{
  return  "HrmPrmGenAssGetDetailPageAction.do"; 
}

function ShowSiteID()
{
    document.forms[0].lovKey.value = "Site" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
    document.forms[0].txtSearchFields.value = "hrm.HrmPrmGenAss.siteCode";
    document.forms[0].txtDisplayFields.value = "siteId,siteCode";  
    document.forms[0].txtIndex.value = ""; 
    showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />', 'HrmPrmGenAssForm');
    return true;
}

function ShowPrmID()
{
   document.forms[0].lovKey.value = "HrmPrmNo" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
   document.forms[0].txtSearchFields.value = "hrm.HrmPrmGenAss.prmNo";
   document.forms[0].txtDisplayFields.value = "prmId,prmNo";  
   document.forms[0].txtIndex.value = ""; 
   showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />', 'HrmPrmGenAssForm');
   return true;
}

function doOnChangeLov(lovName)
{
  if(lovName == 'HrmAttSftRosterGenSiteCodeHrmPrmGenAssQ')
  {
    doBaseValidate();
  } 
}

function doValidate()
{
  return "HrmAttSftRosGenValidateAction.do";
}
function doExit()
{
  return "HrmAttShiftRosterGenExitAction.do";
}

function doSave()
{
  document.getElementsByName("headerDataChanged")[0].value = "false";
  return "HrmPrmGenAssGetButtonAction.do"; 
}

function doOnLoad()
{
  if(document.forms[0].firstLoad.value!="false")
  {
    return "HrmPrmGenAssOnLoadAction.do";
  }
}

function doOnChangeLov()
{

}

</script>
                
              
              
              
              
              
              
              
              
              
