<%@ 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="HrmTrngEmpHistForm" action="HrmEmpTrngHistBaseAction" type="wenrgise.hrms.webtier.form.HrmTrngEmpHistForm">
<bean:define id="ParentForm" name="HrmTrngEmpHistForm" 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  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()" /><img  src="../includes/images/save_dis.jpg"  />
    <img  src="../includes/images/delete_dis.jpg" /><img  src="../includes/images/refresh_dis.jpg"  />
    <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>

</TABLE>




<!--Top Most Blue Bar-->
<TABLE cellSpacing=0 bgColor=#bdd0ef>
    <tr>
        <TD  colSpan=12 class=mainHeader height=10><bean:message  key="hrm.HrmEmpTrngHistMainHeader.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 >
        <!--Inspection Header Starts -->
            <TR>
                  <TD class=subHeader colspan=6><bean:message  key="hrm.HrmEmpTrngHistSubHeader.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.HrmEmpTrngHist.calendarName" /></td>
                  <td ><enrgise:text  property="calendarName" name="HrmTrngEmpHistForm" titleKey="hrm.HrmEmpTrngHist.calendarName" size="23" styleClass="optional" disabledClass="locked" onchange="doChangeHeader();" /><enrgise:img height="16" align="center" src="../includes/images/lov.jpg" styleClass="icon"  property="butCalendarName" name="HrmTrngEmpHistForm"  onclick="return ShowTrngEmpHistCal()" /> </td>
                  
                  <td class=labelText><bean:message key="hrm.HrmEmpTrngHist.course" /></td>
                  <td ><enrgise:text  property="course" name="HrmTrngEmpHistForm" titleKey="hrm.HrmEmpTrngHist.course" size="23" styleClass="required" disabledClass="required" onchange="doChangeHeader();" /><enrgise:img height="16" align="center" src="../includes/images/lov.jpg" styleClass="icon"  property="butCourse" name="HrmTrngEmpHistForm"  onclick="return ShowTrngEmpHistCrs()" /> </td>
                  
                 <td class=labelText><bean:message key="hrm.HrmEmpTrngHist.empNo" /></td>
                  <td ><enrgise:text  property="empNo" name="HrmTrngEmpHistForm" titleKey="hrm.HrmEmpTrngHist.empNo" maxlength="15" size="23" styleClass="optional" disabledClass="locked" onchange="doChangeHeader();" /><enrgise:img height="16" align="center" src="../includes/images/lov.jpg" styleClass="icon"  property="butEmpNo" name="HrmTrngEmpHistForm"  onclick="return ShowTrngEmpHistEmpNo()" /> </td>

                                  
            </TR>
            
             <tr>
                  <td class="labelText"><bean:message key="hrm.HrmEmpTrngHist.institutionName" /></td>
                  <td><enrgise:text property="institutionName" name="HrmTrngEmpHistForm" titleKey="hrm.HrmEmpTrngHist.institutionName" size="26" styleClass="locked" disabledClass="optional" onchange="doChangeHeader()" /></td>
                  <td class="labelText"><bean:message key="hrm.HrmEmpTrngHist.fromDate" /></td>
                  <td><enrgise:text property="fromDate" name="HrmTrngEmpHistForm" titleKey="hrm.HrmEmpTrngHist.fromDate" size="26" styleClass="locked" disabledClass="optional" onchange="doChangeHeader()" /></td>
                  <td class="labelText"><bean:message key="hrm.HrmEmpTrngHist.toDate" /></td>
                  <td><enrgise:text property="toDate" name="HrmTrngEmpHistForm" titleKey="hrm.HrmEmpTrngHist.toDate" size="26" styleClass="locked" disabledClass="optional" onchange="doChangeHeader()" /></td>

            </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"><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="HrmTrngEmpHistForm" property="butTrngHstTab" styleClass="actTabText" disabledClass="lockedTab" src="../includes/images/formtab_r.gif" ><bean:message key="hrm.HrmEmpTrngHistTabHeader.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%"><html:checkbox property="selectAll" onclick="toggleCheckBox('checked')" /></TD>
                            <TD class=tableHeader width="5%"><bean:message key="hrm.HrmEmpTrngHist.employeeNo" /></td>
                            <TD class=tableHeader width="5%"><bean:message  key="hrm.HrmEmpTrngHist.name" /></td>
                            <TD class=tableHeader width="7%"><bean:message key="hrm.HrmEmpTrngHist.participation" /></td>
                            <TD class=tableHeader width="8%"><bean:message  key="hrm.HrmEmpTrngHist.reasonForNonParticipation" /></td>
                            <TD class=tableHeader width="5%"><bean:message key="hrm.HrmEmpTrngHist.rating" /></td>
                            <TD class=tableHeader width="2%"><bean:message  key="hrm.HrmEmpTrngHist.trainingAttendanceDetail" /></td>                         
                         </tr>
                        
                             <logic:iterate id="HrmEmpHist" name="HrmTrngEmpHistForm" property="arrEmpTrngHist" type="wenrgise.hrms.bean.HrmTrngEmpHistDtlBean" indexId="idx" >
                              <logic:notEqual name="HrmEmpHist" property="status" value="D" >
                                             <tr class='<bean:write name="HrmTrngEmpHistForm" property="listRowClass"/>'  >
                                                <td><html:checkbox property="checked" value="check" name="HrmTrngEmpHistForm" alt="<%=idx.toString()%>" onclick="boxClicked(this.alt);" />    
                                                <html:hidden property="itemChecked" name="HrmEmpHist" />
                                                <html:hidden property="status" name="HrmEmpHist" />
                                                <html:hidden property="detailId"  name="HrmEmpHist" />
                                                <html:hidden property="empId"  name="HrmEmpHist" />
                                                </td>            
                                                <TD class=tableText ><enrgise:text property="txtEmployeeNo" size="15" titleKey="hrm.HrmEmpTrngHist.employeeNo" name="HrmEmpHist" formName="HrmTrngEmpHistForm" style="width:100%" styleClass="optional" disabledClass="locked" alt="P" onchange='<%="doChangeDetail("+idx.toString()+")"%>' /></td>
                                                <TD class=tableText ><enrgise:text property="txtName" size="15" titleKey="hrm.HrmEmpTrngHist.name" name="HrmEmpHist" formName="HrmTrngEmpHistForm" style="width:100%" styleClass="optional" disabledClass="locked" alt="P" onchange='<%="doChangeDetail("+idx.toString()+")"%>' /></td>
                                          
                                                <td><enrgise:select property="txtParticipation" name="HrmEmpHist" formName="HrmTrngEmpHistForm" style="width:100%" alt="A" onchange='<%="doChangeDetail("+idx.toString()+")"%>' styleClass="optional" disabledClass="locked" >
                                                      <enrgise:option value="" ><bean:message   key="hrm.pleaseSelect" /></enrgise:option>      
                                                      <enrgise:option value="Y" > <bean:message key="hrm.HrmEmpTrngHist.yes" /></enrgise:option>
                                                      <enrgise:option value="N" > <bean:message key="hrm.HrmEmpTrngHist.no" /></enrgise:option>
                                                    </enrgise:select></td> 
                                              
                                          
                                               <TD class=tableText ><enrgise:text property="txtReasonForNonParticipation" size="15" titleKey="hrm.HrmEmpTrngHist.reasonForNonParticipation" name="HrmEmpHist" formName="HrmTrngEmpHistForm" style="width:100%" styleClass="optional" disabledClass="locked" alt="P" onchange='<%="doChangeDetail("+idx.toString()+")"%>' /></td>
                                               <TD class=tableText ><enrgise:text property="txtRating" size="15" titleKey="hrm.HrmEmpTrngHist.rating" name="HrmEmpHist" formName="HrmTrngEmpHistForm" style="width:100%" styleClass="optional" disabledClass="locked" alt="P" onchange='<%="doChangeDetail("+idx.toString()+")"%>' /></td>
                                   
                                  <!--    <TD class=tableText ><enrgise:text property="txtTrainingAttendanceDetail" name="HrmEmpHist" formName="HrmTrngEmpHistForm" style="width:95%" styleClass="optional" disabledClass="locked" titleKey="hrm.HrmEmpTrngHist.trainingAttendanceDetail" alt="P" onchange='<%="doChangeDetail("+idx.toString()+")"%>' /><enrgise:img width="16" height="19" align="top" styleClass="icon" src="../includes/images/lov.jpg" property="buttxtTrainingAttendanceDetail"
                                  name="HrmTrngEmpHistForm" alt="<%=idx.toString()%>"  onclick="return ShowTrngEmpHistEmpNo('HrmTrngEmpHistForm',this)" /></td>   -->           
                                    
                                               <td align="center"><html:button styleClass="bottomBarText"  property="txtTrainingAttendanceDetail"  onclick='<%="ShowAttendanceDtl("+idx.toString()+")"%>' ><bean:message   key="hrm.HrmEmpTrngHist.AttendanceDtl" /></html:button></td>
                                          
                                             </tr>
                     
                                        </logic:notEqual>
                                        <logic:equal name="HrmEmpHist" property="status" value="D"  >
                                              <tr class='<bean:write name="HrmTrngEmpHistForm" property="listRowClass"/>'  >
                                                  <td><html:checkbox property="checked" value="check" disabled="true" name="HrmTrngEmpHistForm" alt="<%=idx.toString()%>" onclick="boxClicked(this.alt);" />    
                                                  <html:hidden property="itemChecked" name="HrmEmpHist" /><html:hidden property="status" name="HrmEmpHist" /><html:hidden property="detailId"  name="HrmEmpHist" /></td>            
                                                   <TD class=tableText ><enrgise:text property="txtEmployeeNo" size="15" titleKey="hrm.HrmEmpTrngHist.employeeNo" name="HrmEmpHist" style="width:100%" formName="HrmTrngEmpHistForm" styleClass="deletedRow" disabledClass="locked" alt="<%=idx.toString()%>"  onchange="doChangeDetail(this.alt);" /></td>
                                                   <TD class=tableText ><enrgise:text property="txtName" size="15" titleKey="hrm.HrmEmpTrngHist.name" name="HrmEmpHist" style="width:100%" formName="HrmTrngEmpHistForm" styleClass="deletedRow" disabledClass="locked" alt="<%=idx.toString()%>"  onchange="doChangeDetail(this.alt);" /></td>
                                              </tr>
                                        </logic:equal>          
                            </logic:iterate>
                          
                       
                       
                       
                       
                       
                      </TBODY>
                      </TABLE>
                      </DIV>
                      </TD>
                    </TR>
            <!--   <tr>
                <td>	
                <!--Buttons for Add Row and Save row-->
              <!--    <jsp:include page="GenDetailMenu.jsp" flush="true" />
		            </TD>
		            <td> </td>
               </tr> -->
               <tr>
                       <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  onclick="doBaseGetDetail()" name="HrmTrngEmpHistForm"  property="butGetDetail"  styleClass="bottomBarText">&nbsp;Get&nbsp;De<u>t</u>ail&nbsp;</enrgise:button> <button onclick="doBaseAddRow()" name="butAddRow" disabled="true" styleClass="bottomBarText">&nbsp;&nbsp;Add&nbsp;<u>R</u>ow&nbsp;&nbsp;</button><button  onclick="doBaseDelRow()"
                            name="butDelRow" disabled="true" styleClass="bottomBarText" ><u>D</u>elete Row</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>
                            <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" /></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>
                    </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="HrmTrngEmpHistForm"  property="screenMode" />
<html:hidden name="HrmTrngEmpHistForm"  property="screenName" value="HrmTrngEmpHist" />
<html:hidden name="HrmTrngEmpHistForm"  property="forwardedPage" />
<html:hidden property="positionRequested" name="HrmTrngEmpHistForm" />

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

<html:hidden property="lovKey" name="HrmTrngEmpHistForm"  />
<html:hidden property="txtSearchFields" name="HrmTrngEmpHistForm"  />
<html:hidden property="txtDisplayFields" name="HrmTrngEmpHistForm"  />
<html:hidden property="headerDataChanged" name="HrmTrngEmpHistForm" />
<html:hidden property="detailDataChanged" name="HrmTrngEmpHistForm" />

<html:hidden property="txtIndex" name="HrmTrngEmpHistForm"  />
<html:hidden property="calId" name="HrmTrngEmpHistForm" />
<html:hidden property="empNoId" name="HrmTrngEmpHistForm" />
<html:hidden property="empName" name="HrmTrngEmpHistForm" />

<html:hidden property="calDtlId" name="HrmTrngEmpHistForm" />

<input type="hidden" name="multipleFlag" >
<input type="hidden" name="queryParam" >
<html:hidden property="buttonName" name="HrmTrngEmpHistForm"  />
<input type="hidden" name="reportPath" value="/hrms/report/Training_Details.jasper"/>
<input type="hidden" name="reportName" value="Training_Details"/>
<input type="hidden" name="DOWNLOAD" value="E"/>
</html:form>
</body>
</html:html>

<script language="javascript">

function viewReport(){
    var button = document.getElementsByName('button');
    button.value='Download';
    var downloadOption = '';
	  var downloadField = document.getElementsByName("DOWNLOAD");
    downloadField.value = downloadOption;
    var target = '/hrms/HrmEmpTrngHistJasperAction.do?reportName=Training_Details&reportPath=/hrms/report/Training_Details.jasper';
    var w = window.open(target);
    w.resizeTo(screen.width,screen.height);
}
function downloadPDF(){
    var button = document.getElementsByName('button');
    button.value='Download';
    var downloadOption = '';
	  var downloadField = document.getElementsByName("DOWNLOAD");
    downloadField.value = downloadOption;
    var target = '/hrms/HrmEmpTrngHistJasperAction.do?reportName=Training_Details&reportPath=/hrms/report/Training_Details.jasper&DOWNLOAD=P';
    var w = window.open(target);
    w.resizeTo(screen.width,screen.height);
}
function downloadCSV(){
    var button = document.getElementsByName('button');
    button.value='Download';
    var downloadOption = '';
	  var downloadField = document.getElementsByName("DOWNLOAD");
    downloadField.value = downloadOption;
    var target = '/hrms/HrmEmpTrngHistJasperAction.do?reportName=Training_Details&reportPath=/hrms/report/Training_Details.jasper&DOWNLOAD=C';
    var w = window.open(target);
    w.resizeTo(screen.width,screen.height);
}
function downloadReport(){
    var button = document.getElementsByName('button');
    button.value='Download';
    var downloadOption = '';
	  var downloadField = document.getElementsByName("DOWNLOAD");
    //downloadField.value = downloadOption;
    //document.forms[0].submit();
    var target = '/hrms/HrmEmpTrngHistJasperAction.do?reportName=Training_Details&reportPath=/hrms/report/Training_Details.jasper&DOWNLOAD=E';
    var w = window.open(target);
    w.resizeTo(screen.width,screen.height);
}

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


function doInsertMode()
{

  return "HrmTrngHistNewModeAction.do";
}


function doExecute()
{

  return "HrmTrngHistGetHeaderAction.do";
}

function doSave()
{

  return "HrmTrngHistSaveAction.do";
  
}

function doDelete()
{

  return "HrmTrngHistDeleteAction.do";
  
}

function doRefresh()
{

  return "HrmTrngHistRefreshAction.do";
  
}

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

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

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

function doGetDetail()
{

  return "HrmTrngHistGetDetailAction.do";
}

function doAddRow()
{

  return "HrmTrngHistAddRowAction.do"; 
}

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

function doGetDetailTableName()
{
  return "HrmTrngHist";
}

function doPrevDetail()
{

  return "HrmTrngHistGetDetailPageAction.do";  
}

function doNextDetail()
{

  return "HrmTrngHistGetDetailPageAction.do";
}

function doJumpDetail()
{
  return  "HrmTrngHistGetDetailPageAction.do"; 
}
function doExit()
{
  return  "HrmTrngHistExitAction.do"; 
}

function doGetInsertData()
{}
function doOnChangeLov(lovName)
{
   if((lovName=="TrngEmpHistCalLOVHrmTrngEmpHistQ"))
    {
      doBaseValidate();
    }
}
function doValidate()
{
  return "HrmTrngHistValidateAction.do"; 
}



function ShowNextPage(val)
{     
        
        window.open("<html:rewrite page="/hrms/jsp/HrmTrngEmpAttendance.jsp" />","_self");
        return true;
        document.forms[0].hdnDetailId.value=document.getElementsByName("DetailId")[val].value; 
          
}
function ShowTrngEmpHistEmpNo()
{
        document.forms[0].lovKey.value = "TrngEmpHistEmpLOV" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmEmpTrngHistForm.employeeNo,hrm.HrmEmpTrngHistForm.employeeName";
        document.forms[0].txtDisplayFields.value = "EmpNoId,empNo,empName";
        document.forms[0].multipleFlag.value="false";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmTrngEmpHistForm');
        return true;
}
function ShowTrngEmpHistCrs()
{
        document.forms[0].lovKey.value = "TrngEmpHistCrsLOV" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmEmpTrngHistForm.courseName,hrm.HrmEmpTrngHistForm.instName";
        document.forms[0].txtDisplayFields.value = "calId,calendarName,course,institutionName,fromDate,toDate";
        document.forms[0].multipleFlag.value="false";
        document.forms[0].queryParam.value = "calendarName="+ document.forms[0].calendarName.value;
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmTrngEmpHistForm');
        return true;
}
function ShowTrngEmpHistCal()
{
        document.forms[0].lovKey.value = "TrngEmpHistCalLOV" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmEmpTrngHistForm.calendarName";
        document.forms[0].txtDisplayFields.value = "calId,calendarName";
        document.forms[0].multipleFlag.value="false";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmTrngEmpHistForm');
        return true;
}




function ShowAttendanceDtl(i)
{
        document.forms[0].lovKey.value = "AttendanceDtl" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
     
        document.forms[0].multipleFlag.value="false";
        if(document.getElementsByName("empId")[i].value=="")
        {
          document.getElementsByName("empId")[i].value=" "
        }
        if(document.forms[0].calDtlId.value=="")
        {
          document.forms[0].calDtlId.value=" "
        }
        document.forms[0].queryParam.value="empId="+ document.getElementsByName("empId")[i].value + ",calId="+ document.forms[0].calId.value;
        showLov('<html:rewrite page="/hrms/jsp/GenDisplayScreen.jsp" />','HrmTrngEmpHistForm');
        return true;
        
       
}


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

</script>
              
 