<%@ 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  onkeydown="hotKeys(event);" scroll=auto >

<html:form name="HrmEmpDiscActionForm" action="HrmEmpDiscActionBaseAction" type="wenrgise.hrms.webtier.form.HrmEmpDiscActionForm">
<bean:define id="ParentForm" name="HrmEmpDiscActionForm" 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 ><enrgise:img name="ParentForm" property="butExecute" onmouseover='this.src="../includes/images/execute_act.jpg"' onmouseout='this.src="../includes/images/execute.jpg"' alt="Execute (Ctrl+U)" src="../includes/images/execute.jpg" onclick="doBaseExecute()" /><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><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="hrm.HrmEmpDiscAction.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 class=subHeader colspan=6>Employee Details</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.HrmEmployeeDependantDetails.employeeNo" /></td>
                  <td><html:text name="HrmEmpDiscActionForm" property="employeeNo" alt="N" size="23" styleClass="locked" titleKey="hrm.HrmEmployeeDependantDetails.employeeNo" readonly="true" /><enrgise:img name="HrmEmpDiscActionForm" height="16" align="center"  src="../includes/images/lov.jpg" property="butEmpNo" onclick="return ShowEmplDepEmpNo()" /></td>              
                  <td></td>
                  <td class="labelText"><bean:message key="hrm.HrmEmployeeDependantDetails.employeeName" /></td>
                  <td colspan="2"><html:text  property="employeeName" name="HrmEmpDiscActionForm" alt="A" size="50" styleClass="locked" titleKey="hrm.HrmEmployeeDependantDetails.employeeName" readonly="true" /></td>
                  <td width="14%"></td>
                 </tr>
                 <tr>
                  <td class="labelText"><bean:message key="hrm.HrmEmpDiscAction.caseFlag" /></td>
                    <td><html:select property="caseFlag" alt="caseFlag"  styleClass="required" name="HrmEmpDiscActionForm"   >
            <html:option value="" > Please Select </html:option>
            <html:option value="A" > All Employees </html:option>
            <html:option value="C" > Employees With Cases </html:option>
            
          </html:select></td>
           </tr>
           
            
      </table>
      
      
         <table cellspacing=0 cellpadding=0 border=0>
         <!-- Detail Information Row starts -->
 	 <TR>
       <TD colspan=6>
        <!-- Scrutinized Applicant Details 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 >Disciplinary Actions<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>
                <td width="20%"></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:250px;width:1010px" >
                      <!-- Detail table starts -->
                        <TABLE cellSpacing=0 cellPadding=0>
                         <TBODY>
                          <tr>
                              <TD class=tableHeader width="1%"><input type=checkbox property="selectAll" disabled="true" /></TD>
                              <TD class=tableHeader ><bean:message key="hrm.HrmEmpDiscAction.txtLocation" /></td>
                              <TD class=tableHeader ><bean:message  key="hrm.HrmEmpDiscAction.txtMisconduct" /></td>
                              <TD class=tableHeader ><bean:message  key="hrm.HrmEmpDiscAction.txtFromDate" /></td>
                              <TD class=tableHeader ><bean:message  key="hrm.HrmEmpDiscAction.txtStatus" /></td>
                              <TD class=tableHeader ><bean:message  key="hrm.HrmEmpDiscAction.chrgShtDt" /></td>
                              <TD class=tableHeader ><bean:message  key="hrm.HrmEmpDiscAction.inquiryDt" /></td>
                              <TD class=tableHeader ><bean:message  key="hrm.HrmEmpDiscAction.inqOfficer" /></td>
                              <TD class=tableHeader ><bean:message  key="hrm.HrmEmpDiscAction.txtActionTaken" /></td>
                              <TD class=tableHeader ><bean:message  key="hrm.HrmEmpDiscAction.actionAuth" /></td>
                              <TD class=tableHeader ><bean:message  key="hrm.HrmEmpDiscAction.appealDt" /></td>
                         </tr>
                        <!--Insert Logic Iterate Here-->           
                      <logic:notEmpty name="HrmEmpDiscActionForm" property="arrEmpDisc" > 
                        <logic:iterate id="HrmEmpDisc" name="HrmEmpDiscActionForm" property="arrEmpDisc" type="wenrgise.hrms.bean.HrmEmpDiscActionDtlBean" indexId="idx" >
                          <logic:notEqual name="HrmEmpDisc" property="status" value="D" >
                           <tr>
                              <TD class=tableText width="1%">
                               <html:hidden property="status"  name="HrmEmpDisc" />
                                <html:hidden property="detailId"  name="HrmEmpDisc"  />
                                <html:checkbox property="checked"  name="HrmEmpDiscActionForm"   alt="<%=idx.toString()%>" onclick="boxClicked(this.alt);" disabled="true" />
                                <html:hidden property="itemChecked" name="HrmEmpDisc" />
                                <html:hidden property="txtLocationId" name="HrmEmpDisc" />
                                <html:hidden property="txtToDate" name="HrmEmpDisc" />
                                <html:hidden property="txtRemarks" name="HrmEmpDisc" />
                                <html:hidden property="txtStatusEffectDate" name="HrmEmpDisc" />
                              </TD>
                              <TD class=tableText ><html:text name="HrmEmpDisc"   property="txtLocation" styleClass="required" alt="<%=idx.toString()%>" onchange="doChangeDetail(this.alt);" readonly="true"  /><enrgise:img name="HrmEmpDiscActionForm" height="16" align="center"  alt="<%=idx.toString()%>"  src="../includes/images/lov.jpg" property="butLocation" onclick="return ShowLocation(this.alt);" /></td>
                              
                              <TD class=tableText ><enrgise:select name="HrmEmpDisc" property="txtMisconduct" formName="HrmEmpDiscActionForm" styleClass="required" disabledClass="required" alt="<%=idx.toString()%>"  onchange="doChangeDetail(this.alt);">
                                                                      <enrgise:option value="" ><bean:message key="hrm.pleaseSelect" /></enrgise:option>
                                                     
                                                     <enrgise:option value="THEFT" ><bean:message key="hrm.HrmEmpDiscAction.THEFT" /></enrgise:option>
                                                     <enrgise:option value="TAKING" ><bean:message key="hrm.HrmEmpDiscAction.TAKING" /></enrgise:option>
                                                     <enrgise:option value="POSSESSION" ><bean:message key="hrm.HrmEmpDiscAction.POSSESSION" /></enrgise:option>
                                                     <enrgise:option value="FURNISHING" ><bean:message key="hrm.HrmEmpDiscAction.FURNISHING" /></enrgise:option>
                                                     <enrgise:option value="PREJUDICIAL" ><bean:message key="hrm.HrmEmpDiscAction.PREJUDICIAL" /></enrgise:option>
                                                     <enrgise:option value="WILLFUL" ><bean:message key="hrm.HrmEmpDiscAction.WILLFUL" /></enrgise:option>
                                                     <enrgise:option value="ABSENCE" ><bean:message key="hrm.HrmEmpDiscAction.ABSENCE" /></enrgise:option>
                                                     <enrgise:option value="HABITUAL" ><bean:message key="hrm.HrmEmpDiscAction.HABITUAL" /></enrgise:option>
                                                     <enrgise:option value="NEGLIGENCE" ><bean:message key="hrm.HrmEmpDiscAction.NEGLIGENCE" /></enrgise:option>
                                                     <enrgise:option value="DAMAGE" ><bean:message key="hrm.HrmEmpDiscAction.DAMAGE" /></enrgise:option>
                                                     <enrgise:option value="INTERFERENCE" ><bean:message key="hrm.HrmEmpDiscAction.INTERFERENCE" /></enrgise:option>
                                                     <enrgise:option value="DRUNKENNESS" ><bean:message key="hrm.HrmEmpDiscAction.DRUNKENNESS" /></enrgise:option>
                                                     <enrgise:option value="GAMBLING" ><bean:message key="hrm.HrmEmpDiscAction.GAMBLING" /></enrgise:option>
                                                     <enrgise:option value="SLEEPING" ><bean:message key="hrm.HrmEmpDiscAction.SLEEPING" /></enrgise:option>
                                                     <enrgise:option value="CRIMINAL" ><bean:message key="hrm.HrmEmpDiscAction.CRIMINAL" /></enrgise:option>
                                                     <enrgise:option value="ABSENCEWORK" ><bean:message key="hrm.HrmEmpDiscAction.ABSENCEWORK" /></enrgise:option>
                                                     <enrgise:option value="SMOKING" ><bean:message key="hrm.HrmEmpDiscAction.SMOKING" /></enrgise:option>
                                                     <enrgise:option value="PURCHASING" ><bean:message key="hrm.HrmEmpDiscAction.PURCHASING" /></enrgise:option>
                                                     <enrgise:option value="COMMISSION" ><bean:message key="hrm.HrmEmpDiscAction.COMMISSION" /></enrgise:option>
                                                     <enrgise:option value="ABETMENT" ><bean:message key="hrm.HrmEmpDiscAction.ABETMENT" /></enrgise:option>
                                                     </enrgise:select>
                              </TD>                    
                              <TD class=tableText ><html:text name="HrmEmpDisc" property="txtFromDate" styleClass="required" alt="<%=idx.toString()%>" onchange="doChangeDetail(this.alt);" readonly="true" /><enrgise:img src="../includes/images/cal.gif"  width="15" height="19" align="top" styleClass="lov" name="HrmEmpDiscActionForm" property="butTxtFromDate" alt="<%=idx.toString()%>"  onclick="showCalendar('txtFromDate',this);" /></td>
                              <TD class=tableText ><enrgise:select name="HrmEmpDisc" property="txtStatus" formName="HrmEmpDiscActionForm" styleClass="required" disabledClass="required"  alt="<%=idx.toString()%>" onchange="doChangeDetail(this.alt);"  >
                                                     <enrgise:option value="" ><bean:message key="hrm.pleaseSelect" /></enrgise:option>
                                                     <enrgise:option value="P" ><bean:message key= "hrm.HrmEmpDiscAction.P" /></enrgise:option>
                                                     <enrgise:option value="E" ><bean:message key= "hrm.HrmEmpDiscAction.E" /></enrgise:option>
                                                     <enrgise:option value="C" ><bean:message key= "hrm.HrmEmpDiscAction.C" /></enrgise:option>
                                                    </enrgise:select>
                             </TD>
                                <TD class=tableText ><html:text name="HrmEmpDisc" property="txtChrgShtDate" styleClass="required" alt="<%=idx.toString()%>" onchange="doChangeDetail(this.alt);" readonly="true" /><enrgise:img src="../includes/images/cal.gif"  width="15" height="19" align="top" styleClass="lov" name="HrmEmpDiscActionForm" property="butTxtChrgShtDate" alt="<%=idx.toString()%>"  onclick="showCalendar('txtChrgShtDate',this);" /></td>
                                <TD class=tableText ><html:text name="HrmEmpDisc" property="txtInqDate" styleClass="required" alt="<%=idx.toString()%>" onchange="doChangeDetail(this.alt);" readonly="true" /><enrgise:img src="../includes/images/cal.gif"  width="15" height="19" align="top" styleClass="lov" name="HrmEmpDiscActionForm" property="butTxtInqDate" alt="<%=idx.toString()%>"  onclick="showCalendar('txtInqDate',this);" /></td>
                                <TD class=tableText ><html:text name="HrmEmpDisc"   property="txtInqOfficer" styleClass="required" alt="<%=idx.toString()%>" onchange="doChangeDetail(this.alt);"   />
                                <TD class=tableText ><enrgise:text name="HrmEmpDisc" property="txtActionTaken" maxlength="100" formName="HrmEmpDiscActionForm" styleClass="optional" disabledClass="locked" alt="<%=idx.toString()%>" onchange="doChangeDetail(this.alt);"  /></td>  
                                <TD class=tableText ><html:text name="HrmEmpDisc"   property="txtActionOfficer" styleClass="required" alt="<%=idx.toString()%>" onchange="doChangeDetail(this.alt);"   />
                                <TD class=tableText ><html:text name="HrmEmpDisc" property="txtAppealDate" styleClass="required" alt="<%=idx.toString()%>" onchange="doChangeDetail(this.alt);" readonly="true" /><enrgise:img src="../includes/images/cal.gif"  width="15" height="19" align="top" styleClass="lov" name="HrmEmpDiscActionForm" property="butTxtAppealDate" alt="<%=idx.toString()%>"  onclick="showCalendar('txtAppealDate',this);" /></td>

                                                           
                          </tr> 
                          </logic:notEqual>
                         
                          
                        </logic:iterate>
                      </logic:notEmpty>                        
                                                                
                     </TBODY>
                    </TABLE>
                  </DIV>
                </TD>
              </TR>                     
  
  <!-- Get details starts -->
                        <tr>
                          <td colspan=11>	
                              <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" property="butDelRow" name="ParentForm" disabled="true" ><u>D</u>elete Row</enrgise:button></TD>
                                  <td width=40%></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>		     
                                  <td width="14%"></td>
                                </TR>
                              
                                </tbody>
                              </TABLE>

                          </TD>
                       </tr>
                  </TBODY>
                </TABLE>
              </td>
            </tr>



        </TABLE>
     </td>
	 </tr>
                <!-- Tab Table Ends -->

<!-- Bottom Blue Bar -->
       <TR>
            <td>
              <TABLE  cellspacing="0" cellpadding="0" border=0>
                   <tr>
                        <tr height="20">
                        <td width=45% 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>
                        <td width="14%"></td>
                    </TR>
                </table>
            </td>
          </tr>
 
<!-- Container Table Ending Columns Starts-->
  </TD>
    
</TR>
</TBODY>
</TABLE>

<!-- Container Table Ends -->
<!-- These four hidden fields must be present in pages where there is a detail part -->
<!-- Common Hidden Variables-->
<html:hidden name="HrmEmpDiscActionForm" property="screenName" value="HrmEmpDiscAction" />
<html:hidden name="HrmEmpDiscActionForm" property="forwardedPage" />
<html:hidden name="HrmEmpDiscActionForm" property="positionRequested"  />
<html:hidden name="HrmEmpDiscActionForm" property="screenMode"  />
<html:hidden property="detailDataChanged" name="HrmEmpDiscActionForm" />
<html:hidden property="headerDataChanged" name="HrmEmpDiscActionForm" />
<html:hidden property="headerPrimaryKey" name="HrmEmpDiscActionForm" />
<html:hidden property="userPageRequested" name="HrmEmpDiscActionForm"  />
<html:hidden property="userPositionRequested" name="HrmEmpDiscActionForm"   />
<html:hidden property="pageRequested" name="HrmEmpDiscActionForm"  />
<html:hidden property="lovKey" name="HrmEmpDiscActionForm"  />
<html:hidden property="txtSearchFields" name="HrmEmpDiscActionForm"  />
<html:hidden property="txtDisplayFields" name="HrmEmpDiscActionForm"  />
<html:hidden property="txtIndex" name="HrmEmpDiscActionForm"  />
<input type="hidden" name="multipleFlag" >
<input type="hidden" name="queryParam" >

<!-- Screen Specific variables -->
<html:hidden property="employeeNoId" name="HrmEmpDiscActionForm" />




<!-- Hidden fields end -->
</html:form>
</body>
</html:html>
<script>


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

function doQueryMode()
{

  return "HrmEmpDiscActionQueryModeAction.do";
}


function doInsertMode()
{

  return "HrmEmpDiscActionNewModeAction.do";
}


function doExecute()
{

  return "HrmEmpDiscActionGetHeaderAction.do";
}

function doSave()
{

  return "HrmEmpDiscActionSaveAction.do";
  
}

function doDelete()
{

  return "HrmEmpDiscActionDeleteAction.do";
  
}

function doRefresh()
{

  return "HrmEmpDiscActionRefreshAction.do";
  
}

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

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

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

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

function doAddRow()
{

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

  return "HrmEmpDiscActionExitAction.do"; 
}

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

function doGetDetailTableName()
{
  return "tableName";
}

function doPrevDetail()
{

  return "HrmEmpDiscActionGetDetailPageAction.do";  
}

function doNextDetail()
{

  return "HrmEmpDiscActionGetDetailPageAction.do";
}

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

function ShowEmplDepEmpNo()
{
        
        document.forms[0].lovKey.value = "HrmEmpDiscEmpNo" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmEmployeeDependantDetails.employeeNo,hrm.HrmEmployeeDependantDetails.employeeName";
        
        document.forms[0].txtDisplayFields.value = "headerPrimaryKey,employeeNo,employeeName";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmEmpDiscActionForm');
        return true;
       
}

function ShowEmplInqEmpNo(i)
{
        
        document.forms[0].lovKey.value = "HrmEmpDiscEmpNo" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmEmployeeDependantDetails.employeeNo,hrm.HrmEmployeeDependantDetails.employeeName";
        document.forms[0].txtIndex.value = i;
        document.forms[0].txtDisplayFields.value = "headerPrimaryKey,employeeNo,employeeName";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmEmpDiscActionForm');
        return true;
       
}

function ShowEmplActionEmpNo(i)
{
        
        document.forms[0].lovKey.value = "HrmEmpDiscEmpNo" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmEmployeeDependantDetails.employeeNo,hrm.HrmEmployeeDependantDetails.employeeName";
        document.forms[0].txtIndex.value = i;
        document.forms[0].txtDisplayFields.value = "headerPrimaryKey,employeeNo,employeeName";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmEmpDiscActionForm');
        return true;
       
}

function ShowLocation(i)
{
        document.forms[0].lovKey.value = "HrmEmpDiscLocation" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmEmpDiscAction.txtLocationCode,hrm.HrmEmpDiscAction.txtLocationName";
        document.forms[0].txtIndex.value = i;
        document.forms[0].txtDisplayFields.value = "txtLocationId,txtLocation";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmEmpDiscActionForm');
        return true;
       
}
function doGetInsertData()
{}

</script>