<%@ 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" />
  <meta http-equiv=pragma content=no-cache>
</head>
<BODY   onkeydown="hotKeys(event);"; scroll=auto >
<html:form name="HrmSepClrLstForm" action="HrmSepClrLstBaseAction" type="wenrgise.hrms.webtier.form.HrmSepClrLstForm">
<bean:define id="ParentForm" name="HrmSepClrLstForm" 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 ><img  property="butQuery" src="../includes/images/query_dis.jpg"><img property="butInsert" src="../includes/images/insert_dis.jpg"  onclick="doBaseInsertMode()"/></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" 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 ><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 ><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>



<!--Top Most Blue Bar-->
<TABLE cellSpacing=0 bgColor=#bdd0ef>
    <tr>
        <TD  colSpan=12 class=mainHeader height=10><bean:message  key="HrmSepClrLst.title" /></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>
            <!-- Tab Table Starts -->
            <TABLE cellSpacing=0 cellPadding=0 >
           <!-- <tr>                                             
                          <td bgcolor="#4682B4"><img src="../includes/images/pixel.gif" width="10" height="1" border="0"></td>
                          <td bgcolor="#4682B4" nowrap class=actTabText ><bean:message  key="hrmTCMTabHeader.title" /><img src="../includes/images/pixel.gif" width="10" height="1" 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">&nbsp;</TD>
                          <TD background="../includes/images/line_t.gif"><IMG height=1 src="../includes/images/pixel.gif" width=10 border=0></TD>
            </tr>-->
            
            <tr>
                <td bgcolor="#4682B4" ></td>
                <enrgise:tab name="HrmSepClrLstForm" property="butSepClrLstDtlTab" styleClass="actTabText" disabledClass="lockedTab" src="../includes/images/formtab_r.gif" ><bean:message key="SepClrLstTabHeader.title" /></enrgise:tab>
                <td width="82%"> </td>
            </tr>  
            
            
              <TR height=10>
              
            <!-- Detail table Container starts -->
              <TD colSpan=5>
              <TABLE cellSpacing=0 cellPadding=0 border=0>
                <TBODY>
                 <TR>
                  <TD >
                  <DIV id=divDtlTable style="height:250px">
                    <TABLE  border="0" cellSpacing=0 cellPadding=0>
                     <TBODY>
                          <tr>
                            <TD class=tableHeader width="1%"><input type=checkbox></TD>
                            <TD class=tableHeader width="60%"><bean:message key="hrm.HrmSepClrLst.description" /></td>
                            <TD class=tableHeader width="60%"><bean:message  key="hrm.HrmSepClrLst.externalInternalFlag" /></td>
                                                      
                         </tr>
                       
                            
                            <logic:iterate id="HrmSepClrLst" name="HrmSepClrLstForm" property="arrHrmSepClrLst" type="wenrgise.hrms.bean.HrmSepClrLstDtlBean" indexId="idx" >
                                         <logic:notEqual name="HrmSepClrLst" property="status" value="D" >
                                             <tr class='<bean:write name="HrmSepClrLstForm" property="listRowClass"/>'  >
                                                <td><html:checkbox property="checked" value="check" name="HrmSepClrLstForm" alt="<%=idx.toString()%>" onclick="boxClicked(this.alt);" />    
                                                <html:hidden property="itemChecked" name="HrmSepClrLst" /><html:hidden property="status" name="HrmSepClrLst" /><html:hidden property="detailId"  name="HrmSepClrLst" /><html:hidden property="type"  name="HrmSepClrLst" /></td>            
                                             
                                              <logic:notEqual  name="HrmSepClrLst" property="status" value="N">
                                              <td class=tableText><html:text readonly="true" property="description"  titleKey="hrm.HrmSepClrLst.description" style="width:60%" maxlength="40" name="HrmSepClrLst" styleClass="required"  alt="P"  onchange='<%="doChangeDetail("+idx.toString()+")"%>' /></td>                         
                                              </logic:notEqual>
                                              <logic:equal name="HrmSepClrLst" property="status" value="N">
                                              <td class=tableText><html:text property="description"  maxlength="40"  titleKey="hrm.HrmSepClrLst.description" style="width:60%" name="HrmSepClrLst" styleClass="required"  alt="P"  onchange='<%="doChangeDetail("+idx.toString()+")"%>' /></td>                         
                                              </logic:equal>
                                             
                                             
                                             
                                            <!--    <TD class=tableText ><enrgise:text property="description" maxlength="40" titleKey="hrm.HrmSepClrLst.description" style="width:50%" name="HrmSepClrLst" formName="HrmSepClrLstForm"  styleClass="required" disabledClass="required" alt="P" onchange='<%="doChangeDetail("+idx.toString()+")"%>' /></td> -->
                                                <TD class=tabletext ><enrgise:select property="type" name="HrmSepClrLst" formName="HrmSepClrLstForm" style="width:85%" styleClass="required" disabledClass="required" titleKey="hrm.HrmSepClrLst.type" alt="P"  onchange='<%="doChangeDetail("+idx.toString()+")"%>'  >
                                                <enrgise:option value="" ><bean:message   key="hrm.pleaseSelect" /></enrgise:option>      
                                                <enrgise:option value="E" > <bean:message key="hrm.HrmSepClrLst.external" /></enrgise:option>
                                                <enrgise:option value="I" > <bean:message key="hrm.HrmSepClrLst.internal" /></enrgise:option>
                                                </enrgise:select></td>
                                              
                                             </tr>
                     
                                        </logic:notEqual>
                                        <logic:equal name="HrmSepClrLst" property="status" value="D"  >
                                              <tr class='<bean:write name="HrmSepClrLstForm" property="listRowClass"/>'  >
                                                  <td><html:checkbox property="checked" value="check" disabled="true" name="HrmSepClrLstForm" alt="<%=idx.toString()%>" onclick="boxClicked(this.alt);" />    
                                                  <html:hidden property="itemChecked" name="HrmSepClrLst" /><html:hidden property="status" name="HrmSepClrLst" /><html:hidden property="detailId"  name="HrmSepClrLst" /><html:hidden property="type"  name="HrmSepClrLst" /></td>            
                                                <!--   <TD class=tableText ><enrgise:text property="description"  titleKey="hrm.HrmSepClrLst.description" name="HrmSepClrLst"  style="width:50%" formName="HrmSepClrLstForm" styleClass="deletedRow" disabledClass="locked" alt="<%=idx.toString()%>"  onchange="doChangeDetail(this.alt);" /></td>  -->
                                                   <td class=tableText><html:text readonly="true" property="description"  titleKey="hrm.HrmSepClrLst.description"  style="width:60%" name="HrmSepClrLst" styleClass="deletedRow"  alt="<%=idx.toString()%>"  onchange='<%="doChangeDetail(this.alt)"%>' /></td>                         
                                                   <TD class=tabletext ><enrgise:select property="type" name="HrmSepClrLst" formName="HrmSepClrLstForm" style="width:85%" styleClass="deletedRow" disabledClass="locked" titleKey="hrm.HrmSepClrLst.type"  alt="<%=idx.toString()%>"  onchange="doChangeDetail(this.alt);"  >
                                                      <enrgise:option value="" ><bean:message   key="hrm.pleaseSelect" /></enrgise:option>      
                                                      <enrgise:option value="E" > <bean:message key="hrm.HrmSepClrLst.external" /></enrgise:option>
                                                      <enrgise:option value="I" > <bean:message key="hrm.HrmSepClrLst.internal" /></enrgise:option>
                                                      </enrgise:select></td>
                                              </tr>
                                        </logic:equal>
                          </logic:iterate>
                       
                      </TBODY>
                      </TABLE>
                      </DIV>
                      </TD>
                    </TR>
           
              <tr>
                <td>	
            
                  <jsp:include page="GenDetailMenu.jsp" flush="true" />
		            </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>
</div>
<!-- Container Table Ends -->
<html:hidden name="HrmSepClrLstForm"  property="screenMode" />
<html:hidden name="HrmSepClrLstForm"  property="screenName" value="HrmSepClrLst" />
<html:hidden name="HrmSepClrLstForm"  property="forwardedPage" />
<html:hidden property="positionRequested" name="HrmSepClrLstForm" />

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

<html:hidden property="lovKey" name="HrmSepClrLstForm"  />
<html:hidden property="txtSearchFields" name="HrmSepClrLstForm"  />
<html:hidden property="txtDisplayFields" name="HrmSepClrLstForm"  />
<html:hidden property="headerPrimaryKey" name="HrmSepClrLstForm"  />

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

<html:hidden property="txtIndex" name="HrmSepClrLstForm"  />
<html:hidden property="firstLoad" name="HrmSepClrLstForm"  />

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

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

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


function doSave()
{

  return "HrmSepClrLstSaveAction.do";
  
}

function doDelRow()
{

  return "HrmSepClrLstDeleteRowAction.do";
  
}

function doRefresh()
{

  return "HrmSepClrLstRefreshAction.do";
  
}


function doGetDetail()
{

  return "HrmSepClrLstGetDetailAction.do";
}

function doAddRow()
{

  return "HrmSepClrLstAddRowAction.do"; 
}

/*function doDelRow()
{
 return "HrmSepClrLstDeleteRowAction.do";  
}*/

function doGetDetailTableName()
{
  return "HrmSepClrLst";
}

function doPrevDetail()
{

  return "HrmSepClrLstGetDetailPageAction.do";  
}

function doNextDetail()
{

  return "HrmSepClrLstGetDetailPageAction.do";
}

function doJumpDetail()
{
  return  "HrmSepClrLstGetDetailPageAction.do"; 
}
function doExit()
{
  return "HrmSepClrLstExitAction.do";
}
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>
              
 