<%@ 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="HrmOrgLangMstForm" action="HrmOrgLangMstBaseAction" type="wenrgise.hrms.webtier.form.HrmOrgLangMstForm">
<bean:define id="ParentForm" name="HrmOrgLangMstForm" 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()" /><img  property="butInsert" src="../includes/images/insert_dis.jpg" /></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" /><img 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"  onclick="doBaseExit()" onmouseover='this.src="../includes/images/exit_act.jpg"' onmouseout='this.src="../includes/images/exit.jpg"' alt="Exit (Alt+X)"  src="../includes/images/exit.jpg" /><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" /></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 ><img property="butJumpHeader" alt="Go (Ctrl+G)" src="../includes/images/go.jpg"  /></td>
    <td > </td>
</TR>
</TABLE>
<table>
<tr>
  <td colspan="11" class="userText"></td>
</tr>
<enrgise:checkSession/>
</TABLE>

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



<!--Top Most Blue Bar-->
<TABLE cellSpacing=0 bgColor=#bdd0ef>
    <tr>
        <TD  colSpan=12 class=mainHeader ><bean:message  key="hrm.HrmLanguageMaster.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 border=0>
          <!-- Detail Information Row starts -->
          <TR>
            <TD colspan=6>
            <TABLE cellSpacing=0 cellPadding=0 >
              <TR>
                <TD width=10 bgColor=#4682b4><IMG height=1 src="../includes/images/pixel.gif" width=10 border=0></TD>
                <TD class=actTabText noWrap bgColor=#4682b4><bean:message key="hrm.HrmLanguageMaster.detail" /><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%" 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>
              <!-- Detail table Container starts -->
              <TD colSpan=6>
              <TABLE cellSpacing=0 cellPadding=0 border=0>
                <TBODY>
                 <TR>
                  <TD >
                  <DIV id=divDtlTable style="height:260px">
                    <TABLE  border="0" cellSpacing=0 cellPadding=0>
                     <TBODY>
                        <tr>
                          <TD class="tableHeader" width="1%"><input type="checkbox" name="selectAll"  onclick="toggleCheckBox('checked')"  /></td>
                          <td class=tableHeader ><bean:message key="hrm.HrmLanguageMaster.txtCode" /></td>
                          <TD class=tableHeader><bean:message  key="hrm.HrmLanguageMaster.txtDescription" /></td>
                          
                       </tr> 
                             <logic:iterate id="HrmLanguage" name="HrmOrgLangMstForm" property="arrHrmLanguageDtl" type="wenrgise.hrms.bean.HrmOrgLangMstDtlBean"  indexId="idx"  >
                               <logic:notEqual name="HrmLanguage" property="status" value="D" >
                                 <tr>
                                     <td><html:checkbox property="checked" name="HrmOrgLangMstForm" alt="<%=idx.toString()%>" onclick="boxClicked(this.alt);" />    
                                     <html:hidden property="txtLanguageType" name="HrmLanguage" />
                                     <html:hidden property="itemChecked" name="HrmLanguage" /><html:hidden property="status" name="HrmLanguage" /><html:hidden property="detailId"  name="HrmLanguage" /></td>            
                                     <td ><enrgise:text formName="HrmOrgLangMstForm" property="txtCode" name="HrmLanguage" maxlength="20" styleClass="required" disabledClass="locked"  style="width:100%" titleKey="hrm.HrmLanguageMaster.txtCode" alt="P"  onchange='<%="doChangeDetail("+idx.toString()+")"%>' /></td>
                                     <td ><enrgise:text formName="HrmOrgLangMstForm" property="txtDescription" name="HrmLanguage"  maxlength="20" styleClass="required" disabledClass="locked" style="width:100%" titleKey="hrm.HrmLanguageMaster.txtDescription" alt="P" onkeypress="isName(event);" onchange='<%="doChangeDetail("+idx.toString()+")"%>'  /></td>

                                 </tr>
                              </logic:notEqual>
                              <logic:equal name="HrmLanguage" property="status" value="D"  >
                                   <tr>
                                     <td><html:checkbox property="checked" value="check" disabled="true" alt="<%=idx.toString()%>" onclick="boxClicked(this.alt);"  />
                                     <html:hidden property="txtLanguageType" name="HrmLanguage" /><html:hidden property="itemChecked" name="HrmLanguage" /><html:hidden property="status" name="HrmLanguage" /><html:hidden property="detailId"  name="HrmLanguage" /></td>            
                                     <td ><enrgise:text  formName="HrmOrgLangMstForm" property="txtCode" name="HrmLanguage"  size="6" styleClass="deletedRow" disabledClass="locked"  style="width:100%"  alt="<%=idx.toString()%>"  onchange="doChangeDetail(this.alt);" /></td>
                                     <td ><enrgise:text formName="HrmOrgLangMstForm"  property="txtDescription" name="HrmLanguage" size="53"  styleClass="deletedRow" disabledClass="locked" style="width:100%"  alt="<%=idx.toString()%>"  onchange="doChangeDetail(this.alt);"  /></td>
                                   </tr>
                              </logic:equal>
                              </logic:iterate>
                
                      <!--Insert Logic Iterate Here-->                                                      
                     </TBODY>
                    </TABLE>
                  </DIV>
                </TD>
              </TR>                     
  
              <!-- Get details starts -->
              <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">&nbsp;Get&nbsp;De<u>t</u>ail&nbsp;</enrgise:button> <enrgise:button altKey="wenrgise.common.addRow" name="ParentForm"  onclick="doBaseAddRow()" property="butAddRow"  styleClass="bottomBarText">&nbsp;&nbsp;Add&nbsp;<u>R</u>ow&nbsp;&nbsp;</enrgise:button><enrgise:button altKey="wenrgise.common.delRow" name="ParentForm" onclick="doBaseDelRow()"
                    property="butDelRow" styleClass="bottomBarText" ><u>D</u>elete Row</enrgise: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>
                </TBODY>
              </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="HrmOrgLangMstForm"  property="screenMode" />
<html:hidden name="HrmOrgLangMstForm"  property="screenName" value="HrmOrgLangMst" />
<html:hidden name="HrmOrgLangMstForm"  property="forwardedPage" />
<html:hidden property="positionRequested" name="HrmOrgLangMstForm" />
<html:hidden property="txtIndex" name="HrmOrgLangMstForm"  />

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



<!-- Container Table Ends -->

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

function doInsertMode()
{

  return "HrmOrgLangMstNewModeAction.do";
}

function doQueryMode()
{

  return "HrmOrgLangMstQueryModeAction.do";   //Dummy
}

function doSave()
{
 
  return "HrmOrgLangMstSaveAction.do";
  
}

function doDelete()
{

  return "HrmOrgLangMstDeleteAction.do";
  
}

function doRefresh()
{

  return "HrmOrgLangMstRefreshAction.do";
  
}


function doGetDetail()
{
document.forms[0].screenMode.value="U";
return "HrmOrgLangMstGetDetailAction.do";
}

function doAddRow()
{
document.forms[0].screenMode.value="U";
document.forms[0].headerPrimaryKey.value="Enrgise";
  return "HrmOrgLangMstAddRowAction.do"; 
}

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

function doGetDetailTableName()
{
  return "tableName";
}

function doPrevDetail()
{

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

  return "HrmOrgLangMstExitAction.do";  
}

function doNextDetail()
{

  return "HrmOrgLangMstGetDetailPageAction.do";
}

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


function boxClicked(val)
{    
    if(document.getElementsByName("checked")[val].checked)
    {      
      document.getElementsByName("itemChecked")[val].value = "Y";      
    }
    else
    {     
      document.getElementsByName("itemChecked")[val].value = "N";     
    }      
}

</script>             
              
              
              
              
              
              
              
              
                 
              
              
              
              
   