<%@ 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  action="HrmSepClrTmplMstBaseAction" name="HrmSepClrTmplMstForm" type="wenrgise.hrms.webtier.form.HrmSepClrTmplMstForm">
<bean:define id="ParentForm" name="HrmSepClrTmplMstForm" toScope="request" />
<jsp:include page="GenIconMenu.jsp" flush="true" />
<html:hidden property="detailDataChanged" name="HrmSepClrTmplMstForm" />
<html:hidden property="headerDataChanged" name="HrmSepClrTmplMstForm" />


<!--Top Most Blue Bar-->
<TABLE cellSpacing=0 bgColor=#bdd0ef>
    <tr>
        <TD  colSpan=12 class=mainHeader ><bean:message  key="hrm.HrmSepClrTmplMst.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 >
        <!--Inspection Header Starts -->
            
            <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.HrmSepClrTmplMst.tmplDesc" /></td>
                  <td><enrgise:text  property="tmplDesc" titleKey="hrm.HrmSepClrTmplMst.tmplDesc" maxlength="20" size="23" styleClass="required" disabledClass="locked" name="HrmSepClrTmplMstForm" onchange="doChangeHeader();" /><enrgise:img height="16" align="center" src="../includes/images/lov.jpg" styleClass="icon" name="HrmSepClrTmplMstForm"  property="butTmplDesc" onclick="return showTmplDesc()" /></td>
                  <td class="labelText"><bean:message key="hrm.HrmSepClrTmplMst.obsoleteFlag" /> </td>
                  <td colspan="3"><enrgise:checkbox  property="obsoleteFlag"  titleKey="hrm.HrmSepClrTmplMst.obsoleteFlag"  styleClass="required" disabledClass="locked" name="HrmSepClrTmplMstForm" onchange="doChangeHeader();" /></td>
                  <html:hidden property="obsoleteFlag" />
                  <html:hidden property="tmplDescId" />
            </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>
            <!-- Tab Table Starts -->
            <TABLE cellSpacing=0 cellPadding=0 >
            <tr>                                             
                          <td bgcolor="#4682B4" width="10"><img src="../includes/images/pixel.gif" width="10" height="1" border="0"></td>
                          <td bgcolor="#4682B4" nowrap class=actTabText ><bean:message key="hrm.HrmSepClrTmplMst.txtClrDesc" /><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 >
              
            <!-- Detail table Container starts -->
              <TD colSpan=6>
              <TABLE cellSpacing=0 cellPadding=0 border=0>
                <TBODY>
                 <TR>
                  <TD >
                  <DIV id=divDtlTable style="height:200px">
                    <TABLE  border="0" cellSpacing=0 cellPadding=0>
                     <TBODY>
                          <tr>
                              <TD class=tableHeader width="1%"><input type="checkbox" name="selectAll" /></TD>
                              <TD class=tableHeader><bean:message key="hrm.HrmSepClrTmplMst.txtClrDesc" /></td>   
                          </tr> 
                         <logic:notEmpty name="HrmSepClrTmplMstForm" property="arrHrmSepClrTmplMst">
                          <logic:iterate id="oSepClrTmplMst" name="HrmSepClrTmplMstForm" property="arrHrmSepClrTmplMst" type="wenrgise.hrms.bean.HrmSepClrTmplMstDtlBean" indexId="idx" >
                            <logic:notEqual name="oSepClrTmplMst" property="status" value="D" >
                              <tr>
                              <td width="1%"><html:hidden property="status"  name="oSepClrTmplMst" /><html:hidden property="detailId"  name="oSepClrTmplMst"  /><html:hidden property="itemChecked"  name="oSepClrTmplMst"  /><html:checkbox property="checked"  name="HrmSepClrTmplMstForm" alt="<%=idx.toString()%>" onclick="boxClicked(this.alt);" onchange="doChangeDetail(this.alt);" /></td>
                              <TD class=tableText ><html:text property="txtClrDesc" name="oSepClrTmplMst" maxlength="20" style="width:50%" styleClass="required" readonly="true" alt="<%=idx.toString()%>" onchange="doChangeDetail(this.alt);" /><img height="16" align="center" src="../includes/images/lov.jpg" class="icon" onclick='<%="showClrDesc("+ idx.toString() +")"%>' /></td>   
                              <html:hidden property="txtClrDescId" name="oSepClrTmplMst" />
                              </tr>
                            </logic:notEqual>
                            <logic:equal name="oSepClrTmplMst" property="status" value="D"  >
                              <tr>
                              <td width="1%"><html:hidden property="status"  name="oSepClrTmplMst" /><html:hidden property="detailId"  name="oSepClrTmplMst"  /><html:hidden property="itemChecked"  name="oSepClrTmplMst"  /><html:checkbox property="checked"  name="HrmSepClrTmplMstForm" alt="<%=idx.toString()%>" onclick="boxClicked(this.alt);" onchange="doChangeDetail(this.alt);" /></td>
                              <TD class=tableText ><html:text property="txtClrDesc" name="oSepClrTmplMst" maxlength="20" style="width:50%" styleClass="locked" readonly="true" alt="<%=idx.toString()%>" onchange="doChangeDetail(this.alt);" /><img height="16" align="center" src="../includes/images/lov_dis.jpg"  /></td>   
                              <html:hidden property="txtClrDescId" name="oSepClrTmplMst" />
                              </tr>
                            </logic:equal>
                          </logic:iterate>
                        </logic:notEmpty>
                        
                      </TBODY>
                      </TABLE>
                      </DIV>
                      </TD>
                    </TR>
               <tr>
                <td>	
                <jsp:include page="GenDetailMenu.jsp" flush="true" />
		            </TD>
		        </tr>
        </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="HrmSepClrTmplMstForm"  property="screenMode" />
<html:hidden name="HrmSepClrTmplMstForm"  property="screenName" value="HrmSepClrTmplMst" />
<html:hidden name="HrmSepClrTmplMstForm"  property="forwardedPage" />
<html:hidden property="positionRequested" name="HrmSepClrTmplMstForm" />
<html:hidden property="headerPrimaryKey" name="HrmSepClrTmplMstForm"  />
<html:hidden property="firstLoad" name="HrmSepClrTmplMstForm"  />

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

<!-- Hidden Fields for LOV -->
<html:hidden property="lovKey" name="HrmSepClrTmplMstForm"  />
<html:hidden property="txtSearchFields" name="HrmSepClrTmplMstForm"  />
<html:hidden property="txtDisplayFields" name="HrmSepClrTmplMstForm"  />
<html:hidden property="txtIndex" name="HrmSepClrTmplMstForm"  />
<input type="hidden" name="multipleFlag" >
<input type="hidden" name="queryParam" >



<!-- Container Table Ends -->

</html:form>
</body>
</html:html>
<script>
function doChangeHeader()
{ 
  document.forms[0].headerDataChanged.value="true";
}
function doQueryMode()
{
  return "HrmSepClrTmplMstQueryModeAction.do";
}


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


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

function doSave()
{
  if(document.forms[0].obsoleteFlag[0].checked){
    document.forms[0].obsoleteFlag[0].checked=false;
    document.forms[0].obsoleteFlag[1].value="on";
  }
  else{
    document.forms[0].obsoleteFlag[1].value="off";
  }
  return "HrmSepClrTmplMstSaveAction.do";
  
}

function doDelete()
{

  return "HrmSepClrTmplMstDeleteAction.do";
  
}
function doExit()
{

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

  return "HrmSepClrTmplMstRefreshAction.do";
  
}

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

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

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

function doGetDetail()
{

  return "HrmSepClrTmplMstGetDetailAction.do";
}

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

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

function doGetDetailTableName()
{
  return "tableName";
}

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

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

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

function showClrDesc(iIndex)
{
        document.forms[0].lovKey.value = "HrmClrDesc" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "";
        document.forms[0].txtDisplayFields.value = "txtClrDescId,txtClrDesc";
        document.forms[0].multipleFlag.value = "false";
        document.forms[0].txtIndex.value = iIndex;
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmSepClrTmplMstForm');
             
        if(document.getElementsByName("status")[iIndex])
        {
          if(document.getElementsByName("status")[iIndex].value!="N")
          {
            document.getElementsByName("status")[iIndex].value="U";
          }
        }
        return true;
}

function showTmplDesc()
{
    document.forms[0].lovKey.value = "HrmTmplDesc" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
    document.forms[0].txtSearchFields.value = "";
    document.forms[0].txtDisplayFields.value = "tmplDescId,tmplDesc,obsoleteFlag";
    document.forms[0].multipleFlag.value = "false";
    showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmSepClrTmplMstForm');
  
   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";     
    }      
}
function doOnLoad()
{
  if(document.forms[0].firstLoad.value!="false")
  {
    return  "HrmSepClrTmplMstOnLoadAction.do"; 
  }
}
</script>
                
              
              
              
              
              
              
              
              
              