<%@ 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="HrmATDTransOrderForSingleEmpForm" action="HrmATDTransOrderForSingleEmpBaseAction" type="wenrgise.hrms.webtier.form.HrmATDTransOrderForSingleEmpForm">
<bean:define id="ParentForm" name="HrmATDTransOrderForSingleEmpForm" toScope="request" />
<jsp:include page="GenIconMenu.jsp" flush="true" />


<!--Top Most Blue Bar--> 
<TABLE cellSpacing=0 bgColor=#bdd0ef>
    <tr>
        <TD  colSpan=12 class=mainHeader height=10><bean:message  key="hrm.HrmATDTransOrderForSingleEmp.mainHeader" /></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.HrmATDTransOrderForSingleEmp.subHeader" /></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.HrmATDTransOrderForSingleEmp.orderNo" /></td>
                <td ><enrgise:text  property="orderNo" name="HrmATDTransOrderForSingleEmpForm" alt="N" titleKey="hrm.HrmATDTransOrderForSingleEmp.orderNo" maxlength="40" size="23" styleClass="required" disabledClass="required"  onchange="doChangeHeader();" /><enrgise:img height="16" align="center" src="../includes/images/lov.jpg" name="HrmATDTransOrderForSingleEmpForm" property="butOrderNo" onclick="return ShowTransferOrderNo()"  /></td>  
                <td colspan="2"></td>
                <td class="labelText"><bean:message key="hrm.HrmATDTransOrderForSingleEmp.orderDate" /></td>
                <td><enrgise:text  property="orderDate" name="HrmATDTransOrderForSingleEmpForm" titleKey="hrm.HrmATDTransOrderForSingleEmp.orderDate" size="23" styleClass="optional" disabledClass="required"  onchange="doChangeHeader();" /><enrgise:img width="16" height="19" align="top" src="../includes/images/cal.gif" property="butOrderDate" name="HrmATDTransOrderForSingleEmpForm"  onclick="showCalendar('orderDate',this)" /></td>              
                
                
            </tr>
            <tr>
                <td class="labelText"><bean:message key="hrm.HrmATDTransOrderForSingleEmp.orderType" /></td>
                <td><enrgise:select property="orderType" name="HrmATDTransOrderForSingleEmpForm"  styleClass="optional" disabledClass="locked" onchange="doChangeHeader(); doBaseValidate();" >
                      <!--
                      <enrgise:option value="" ><bean:message   key="hrm.pleaseSelect" /></enrgise:option>      
                      -->
                      <enrgise:option value="" > <bean:message key="hrm.HrmATDTransOrderForSingleEmp.locational" /></enrgise:option>
                      <enrgise:option value="S" > <bean:message key="hrm.HrmATDTransOrderForSingleEmp.sectional" /></enrgise:option>
                </enrgise:select></td>
                <td colspan="2"></td>
                <td class="labelText"><bean:message key="hrm.HrmATDTransOrderForSingleEmp.orderStatus" /></td>
                <td><html:select property="orderStatus" name="HrmATDTransOrderForSingleEmpForm"  styleClass="locked" onchange="doChangeHeader();" disabled="true" >
                      <html:option value="" ><bean:message   key="hrm.pleaseSelect" /></html:option>      
                      <html:option value="N" > <bean:message key="hrm.HrmATDTransOrderForSingleEmp.new" /></html:option>
                      <html:option value="A" > <bean:message key="hrm.HrmATDTransOrderForSingleEmp.approved" /></html:option>
                      <html:option value="P" > <bean:message key="hrm.HrmATDTransOrderForSingleEmp.pending" /></html:option>
                      <html:option value="R" > <bean:message key="hrm.HrmATDTransOrderForSingleEmp.rejected" /></html:option>
                    </html:select><html:hidden property="orderStatus" /></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>
        <!-- Personal Details Table Starts -->
         <TABLE cellSpacing=0 cellPadding=0 >
         <tr>
                <TD  bgColor=#4682b4></TD>
                <enrgise:tab name="HrmATDTransOrderForSingleEmpForm" property="tabTransOrderEmp" styleClass="actTabText" disabledClass="lockedTab" src="../includes/images/formtab_r.gif"><bean:message  key="hrm.HrmATDTransOrderForSingleEmp.subHeader1" /></enrgise:tab>
                
                <td width="83%"> </td>
             
             </tr>
            
  <TR >
  <!-- Detail table Container starts -->
  <TD colspan="11">
    <TABLE cellSpacing=0 cellPadding=0 border=0>
      <TBODY>
       <TR>
         <TD >
  			<TABLE  border="0" cellSpacing=0 cellPadding=0 >
          <TBODY>
            <tr>
                <td class=tableHeader height="10" colspan="6">
            </tr> 
                         
                 
           <tr height="8">
                <td colspan="6"></td>   
               
           </tr>
           <tr>
           
           <!-- commented out for KCCB's downsizing reuirement-->
           <!--
                <td class="labelText"><bean:message key="hrm.HrmATDTransOrderForSingleEmp.applnNo" /></td>
                <td ><enrgise:text  property="applnNo" name="HrmATDTransOrderForSingleEmpForm"  disabledClass="required" titleKey="hrm.HrmATDTransOrderForSingleEmp.applnNo" size="23" styleClass="required"  onchange="doChangeHeader();" /><enrgise:img height="16" align="center" src="../includes/images/lov.jpg" property="butApplnNo" name="HrmATDTransOrderForSingleEmpForm"  onclick="return ShowApplicationNo()"  /></td>
                <td class="labelText"><bean:message key="hrm.HrmTransferApplcn.employeeName" /></td>
                <td ><enrgise:text  property="empName" name="HrmATDTransOrderForSingleEmpForm"  disabledClass="locked"  titleKey="hrm.HrmTransferApplcn.employeeName" size="26" styleClass="optional"  onchange="doChangeHeader();" /></td>
                <td class="labelText"><bean:message key="hrm.HrmLeaveLedgerTransc.applicationDate" /></td>
                <td ><enrgise:text  property="applicationDate" name="HrmATDTransOrderForSingleEmpForm"   disabledClass="locked"  titleKey="hrm.HrmLeaveLedgerTransc.applicationDate" size="26" styleClass="optional"  onchange="doChangeHeader();" /></td>   
           
           
           
           </tr>
           <tr>
                <td class="labelText"><bean:message key="hrm.HrmATDTransOrderForSingleEmp.fromDesignation" /></td>
                <td ><html:text  property="fromDesignation"  name="HrmATDTransOrderForSingleEmpForm" titleKey="hrm.HrmATDTransOrderForSingleEmp.fromDesignation" size="26" styleClass="locked"  onchange="doChangeHeader();" readonly="true" /></td>
                <td class="labelText"><bean:message key="hrm.HrmATDTransOrderForSingleEmp.fromSite" /></td>
                <td ><html:text  property="fromSite"  name="HrmATDTransOrderForSingleEmpForm" titleKey="hrm.HrmATDTransOrderForSingleEmp.fromSite" size="26" styleClass="locked"  onchange="doChangeHeader();" readonly="true" /></td>
                <td class="labelText"><bean:message key="hrm.HrmATDTransOrderForSingleEmp.fromWorkGroup" /></td>
                <td ><html:text  property="fromWorkGroup"  name="HrmATDTransOrderForSingleEmpForm" titleKey="hrm.HrmATDTransOrderForSingleEmp.fromWorkGroup" size="26" styleClass="locked"  onchange="doChangeHeader();" readonly="true" /></td>
            </tr>
            <tr>
                <td class="labelText"><bean:message key="hrm.HrmATDTransOrderForSingleEmp.toDesignation" /></td>
                <td ><html:text  property="toDesignation"  name="HrmATDTransOrderForSingleEmpForm" titleKey="hrm.HrmATDTransOrderForSingleEmp.toDesignation" size="26" styleClass="locked"  onchange="doChangeHeader();" readonly="true" /></td>
                <td class="labelText"><bean:message key="hrm.HrmATDTransOrderForSingleEmp.toSite" /></td>
                <td ><html:text  property="toSite"  name="HrmATDTransOrderForSingleEmpForm" titleKey="hrm.HrmATDTransOrderForSingleEmp.toSite" size="23" styleClass="locked"  onchange="doChangeHeader();doOnChangeLov();" readonly="true" /><enrgise:img height="16" align="center" styleClass="icon" src="../includes/images/lov.jpg" property="butToSite" name="HrmATDTransOrderForSingleEmpForm"  onclick="return ShowToSite()"  /></td>
                <td class="labelText"><bean:message key="hrm.HrmATDTransOrderForSingleEmp.toWorkGroup" /></td>
                <td ><html:text  property="toWorkGroup"  name="HrmATDTransOrderForSingleEmpForm" titleKey="hrm.HrmATDTransOrderForSingleEmp.toWorkGroup" size="26" styleClass="locked"  onchange="doChangeHeader();" readonly="true" /></td>
            </tr>
           
            <tr>
                <td class="labelText"><bean:message key="hrm.HrmATDTransOrderForSingleEmp.trnsfrEffectDate" /></td>
                <td ><enrgise:text  property="trnsfrEffectDate" name="HrmATDTransOrderForSingleEmpForm"  disabledClass="required" titleKey="hrm.HrmATDTransOrderForSingleEmp.trnsfrEffectDate" size="23" styleClass="required"  onchange="doChangeHeader();" /><enrgise:img width="16" height="19" align="top" styleClass="icon" src="../includes/images/cal.gif" property="butTrnsfrEffectDate" name="HrmATDTransOrderForSingleEmpForm"    onclick="showCalendar('trnsfrEffectDate',this)" /></td>        
                <td class="labelText"><bean:message key="hrm.HrmATDTransOrderForSingleEmp.reportingDate" /></td>
                <td ><enrgise:text  property="reportingDate"  name="HrmATDTransOrderForSingleEmpForm" disabledClass="required" titleKey="hrm.HrmATDTransOrderForSingleEmp.reportingDate" size="23" styleClass="required"  onchange="doChangeHeader();" /><enrgise:img width="16" height="19" align="top" styleClass="icon" src="../includes/images/cal.gif" property="butReportingDate" name="HrmATDTransOrderForSingleEmpForm"   onclick="showCalendar('reportingDate',this)" /></td>              
                <td class="labelText"><bean:message key="hrm.HrmATDTransOrderForSingleEmp.noOfDays" /></td>
                <td ><enrgise:text  property="noOfDays"  name="HrmATDTransOrderForSingleEmpForm" disabledClass="locked" titleKey="hrm.HrmATDTransOrderForSingleEmp.noOfDays" size="26" styleClass="optional"  maxlength="2" onchange="doChangeHeader();" onkeypress="isInteger(event)" /></td>
                
            </tr>
            <tr>
                <td class="labelText"><bean:message key="hrm.HrmATDTransOrderForSingleEmp.selfOfcFlag"  /></td>
                <td ><html:text  property="selfOffice"  name="HrmATDTransOrderForSingleEmpForm" titleKey="hrm.HrmATDTransOrderForSingleEmp.selfOfcFlag" size="26" styleClass="locked" onchange="doChangeHeader();"  readonly="true" /></td>
                <td><html:select property="selfOffice" styleClass="required"  onchange="doChangeHeader()" > 
                    <html:option value="O" ><bean:message key="hrm.HrmATDTransOrderForSingleEmp.office" /></html:option>
                    <html:option value="S" ><bean:message key="hrm.HrmATDTransOrderForSingleEmp.self" /></html:option>
                    </html:select>
                </td>
                <td class="labelText"><bean:message key="hrm.HrmATDTransOrderForSingleEmp.reportingEmpId" /></td>
                <td ><html:text  property="reportingEmpId"  name="HrmATDTransOrderForSingleEmpForm" titleKey="hrm.HrmATDTransOrderForSingleEmp.reportingEmpId" size="23" styleClass="optional"  onchange="doChangeHeader();" readonly="true" /><enrgise:img height="16" align="center" styleClass="icon" src="../includes/images/lov.jpg" property="butReportingEmpId" name="HrmATDTransOrderForSingleEmpForm"  onclick="return ShowEmployeeName()"  /></td>
            </tr>
             <tr>
                <td class="labelText"><bean:message key="hrm.HrmATDTransOrderForSingleEmp.approvedBy" /></td>
                <td><html:text  property="approverName" titleKey="hrm.HrmATDTransOrderForSingleEmp.approvedBy" size="23" styleClass="locked" readonly="true" onchange="doChangeHeader();" /><enrgise:img height="16" align="center" src="../includes/images/lov.jpg" name="HrmATDTransOrderForSingleEmpForm"  property="butApproverNo" onclick="return ShowApprover()" /></td>
                <td class="labelText"><bean:message key="hrm.HrmATDTransOrderForSingleEmp.remarks"  /></td>
                <td ><enrgise:textarea  property="remarks"  name="HrmATDTransOrderForSingleEmpForm" styleClass="required"  disabledClass="locked" titleKey="hrm.HrmATDTransOrderForSingleEmp.remarks" cols="28" rows="2" onchange="doChangeHeader();" ></enrgise:textarea></td>
               
            </tr>
            -->
            <tr>
                <td class="labelText"><bean:message key="hrm.HrmATDTransOrderForSingleEmp.empNo" /></td>
                <td ><enrgise:text  property="empID" name="HrmATDTransOrderForSingleEmpForm"  disabledClass="required" titleKey="hrm.HrmATDTransOrderForSingleEmp.empNo" size="23" styleClass="required"  onchange="doChangeHeader();" /><enrgise:img height="16" align="center" src="../includes/images/lov.jpg" property="butApplnNo" name="HrmATDTransOrderForSingleEmpForm"  onclick="return ShowEmployeeNo()"  /></td>
                <td class="labelText"><bean:message key="hrm.HrmTransferApplcn.employeeName" /></td>
                <td ><enrgise:text  property="empName" name="HrmATDTransOrderForSingleEmpForm"  disabledClass="locked"  titleKey="hrm.HrmTransferApplcn.employeeName" size="26" styleClass="optional"  onchange="doChangeHeader();" /></td>
                <td class="labelText"><bean:message key="hrm.HrmATDTransOrderForSingleEmp.fromSite" /></td>
                <td ><html:text  property="fromSite"  name="HrmATDTransOrderForSingleEmpForm" titleKey="hrm.HrmATDTransOrderForSingleEmp.fromSite" size="26" styleClass="locked"  onchange="doChangeHeader();" readonly="true" /></td>

            </tr>
            
            <tr>
               <td class="labelText"><bean:message key="hrm.HrmATDTransOrderForSingleEmp.toSite" /></td>
               <td ><html:text  property="toSite"  name="HrmATDTransOrderForSingleEmpForm" titleKey="hrm.HrmATDTransOrderForSingleEmp.toSite" size="23" styleClass="locked"  onchange="doChangeHeader();doOnChangeLov();" readonly="true" /><enrgise:img height="16" align="center" styleClass="icon" src="../includes/images/lov.jpg" property="butToSite" name="HrmATDTransOrderForSingleEmpForm"  onclick="return ShowToSite()"  /></td>
              <td class="labelText"><bean:message key="hrm.HrmATDTransOrderForSingleEmp.reportingEmpId" /></td>
              <td ><html:text  property="reportingEmpId"  name="HrmATDTransOrderForSingleEmpForm" titleKey="hrm.HrmATDTransOrderForSingleEmp.reportingEmpId" size="23" styleClass="optional"  onchange="doChangeHeader();" readonly="true" /><enrgise:img height="16" align="center" styleClass="icon" src="../includes/images/lov.jpg" property="butReportingEmpId" name="HrmATDTransOrderForSingleEmpForm"  onclick="return ShowEmployeeName()"  /></td>

            </tr>
            <tr>
                 <td class="labelText"><bean:message key="hrm.HrmATDTransOrderForSingleEmp.reportingDate" /></td>
                 <td ><enrgise:text  property="reportingDate"  name="HrmATDTransOrderForSingleEmpForm" disabledClass="required" titleKey="hrm.HrmATDTransOrderForSingleEmp.reportingDate" size="23" styleClass="required"  onchange="doChangeHeader();" /><enrgise:img width="16" height="19" align="top" styleClass="icon" src="../includes/images/cal.gif" property="butReportingDate" name="HrmATDTransOrderForSingleEmpForm"   onclick="showCalendar('reportingDate',this)" /></td>              
                  <td class="labelText"><bean:message key="hrm.HrmATDTransOrderForSingleEmp.remarks"  /></td>
                 <td ><enrgise:textarea  property="remarks"  name="HrmATDTransOrderForSingleEmpForm" styleClass="required"  disabledClass="locked" titleKey="hrm.HrmATDTransOrderForSingleEmp.remarks" cols="28" rows="2" onchange="doChangeHeader();" ></enrgise:textarea></td>

            </tr>
            
            
            <tr height="8">
                <td colspan="6"></td>   
               
            </tr>
  
          </TBODY>
          </TABLE>
          

      </TD>
    </TR>                  


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



        </TABLE>
     </td>
	 </tr>
 
<!-- 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>
                        <enrgise:button name="HrmATDTransOrderForSingleEmpForm"   onclick="cancelTransfer();" property="butCancelTransfer" styleClass="bottomBarText"> Cancel Transfer </enrgise:button></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-->
  </TD>
    
</TR>
</TBODY>
</TABLE>
<!-- Container Table Ends -->

<html:hidden property="screenName" name="HrmATDTransOrderForSingleEmpForm" value="HrmATDTransOrderForSingleEmp" />
<html:hidden name="HrmATDTransOrderForSingleEmpForm"  property="forwardedPage" />
<html:hidden property="positionRequested" name="HrmATDTransOrderForSingleEmpForm" />
<html:hidden property="screenMode" name="HrmATDTransOrderForSingleEmpForm"  />

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

<!------ addded for LOV ----->

<html:hidden property="lovKey" name="HrmATDTransOrderForSingleEmpForm"  />
<html:hidden property="txtSearchFields" name="HrmATDTransOrderForSingleEmpForm"  />
<html:hidden property="txtDisplayFields" name="HrmATDTransOrderForSingleEmpForm"  />
<html:hidden property="txtIndex" name="HrmATDTransOrderForSingleEmpForm"  />
<html:hidden property="headerDataChanged" name="HrmATDTransOrderForSingleEmpForm"  />
<html:hidden property="detailDataChanged" name="HrmATDTransOrderForSingleEmpForm"  />
<html:hidden property="headerPrimaryKey" name="HrmATDTransOrderForSingleEmpForm"  />
<html:hidden property="headerPrimaryKey1" name="HrmATDTransOrderForSingleEmpForm"  />
<html:hidden property="fromSiteID" name="HrmATDTransOrderForSingleEmpForm"  />
<html:hidden property="toSiteID" name="HrmATDTransOrderForSingleEmpForm"  />
<html:hidden property="empID" name="HrmATDTransOrderForSingleEmpForm"  />
<html:hidden property="reptEmpID" name="HrmATDTransOrderForSingleEmpForm"  />
<html:hidden property="reptEmpGrade" name="HrmATDTransOrderForSingleEmpForm"  />
<html:hidden property="orderNoID" name="HrmATDTransOrderForSingleEmpForm"  />
<html:hidden property="applnNoID" name="HrmATDTransOrderForSingleEmpForm"  />
<html:hidden property="approverNoId" name="HrmATDTransOrderForSingleEmpForm"  />
<html:hidden property="buttonName" name="HrmATDTransOrderForSingleEmpForm"  />
<input type="hidden" name="multipleFlag" >
<input type="hidden" name="queryParam" >


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

<script>

function cancelTransfer()
{
    
    document.forms[0].buttonName.value="butCancelTransfer";
    //alert(document.forms[0].buttonName.value);
    document.forms[0].action = contextRoot+"HrmATDTransOrderForSingleEmpGetButtonAction.do";
    document.forms[0].submit();
}

function doChangeHeader()
{
  document.forms[0].headerDataChanged.value="true";
}

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


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


function doExecute()
{

  return "HrmATDTransOrderForSingleEmpGetHeaderAction.do";
}

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

function doDelete()
{

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

  return "HrmATDTransOrderForSingleEmpExitAction.do";
  
}

function doRefresh()
{

  return "HrmATDTransOrderForSingleEmpRefreshAction.do";
  
}

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

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

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


function ShowTransferOrderNo()
{
        document.forms[0].lovKey.value = "HrmTransOrderCode" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmATDTransOrderForSingleEmp.orderNo";
        document.forms[0].txtDisplayFields.value = "orderNoID,orderNo,orderDate,orderType,orderStatus";
        document.forms[0].multipleFlag.value = "false";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmATDTransOrderForSingleEmpForm');
        return true;
       
}



function ShowToSite()
{
        document.forms[0].lovKey.value = "HrmToSiteCode" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmATDTransOrderForSingleEmp.toSite";
        document.forms[0].txtDisplayFields.value = "toSiteID,toSite";
        document.forms[0].multipleFlag.value="false";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmATDTransOrderForSingleEmpForm');
        return true;
}

//function ShowApplicationNo()
//{
       // document.forms[0].lovKey.value = "HrmApplicationNo" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        //document.forms[0].txtSearchFields.value = "hrm.HrmATDTransOrderForSingleEmp.applnNo";
        //document.forms[0].txtDisplayFields.value = "applnNoID,applnNo,empName,empID,applicationDate,fromSite,fromDesignation,toDesignation,fromSiteID,fromWorkGroup,toWorkGroup,selfOffice";
        //document.forms[0].multipleFlag.value = "false";
        //showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmATDTransOrderForSingleEmpForm');
        //return true;
//}

function ShowEmployeeName()
{
        document.forms[0].lovKey.value = "TransReptEmpNo" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmATDTransOrderForSingleEmp.empNo,hrm.HrmTransferOrder.empName";
        document.forms[0].txtDisplayFields.value = "reptEmpID,reportingEmpId,reptEmpGrade";
        document.forms[0].queryParam.value="toSiteID="+document.forms[0].toSiteID.value;
        document.forms[0].multipleFlag.value="false";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmATDTransApplForm');
        return true;
}

function doGetInsertData()
{
 
}


function doValidate()
{
    return "HrmATDTransOrderForSingleEmpValidateAction.do";
}
function ShowApprover()
{
        document.forms[0].lovKey.value = "TransOrderApproverNo" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmTransferOrder.empNo,hrm.HrmTransferOrder.empName";
        document.forms[0].txtDisplayFields.value = "approverNoId,approverName";
        document.forms[0].multipleFlag.value = "false";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmATDTransOrderForSingleEmpForm');
        return true;
        
}
function doOnLoad()
{
  if(document.forms[0].firstLoad.value!="false")
  {
    return  "HrmATDTransOrderForSingleEmpOnLoadAction.do"; 
  }
}
function doOnChangeLov(lovName)
{
   if(lovName=="HrmToSiteCodeHrmATDTransOrderForSingleEmpN" || lovName=="HrmToSiteCodeHrmATDTransOrderForSingleEmpU" )
    {
      doBaseValidate();
    }
}

function ShowEmployeeNo()
{
        document.forms[0].lovKey.value = "HrmApplicationNo" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmTransferOrder.empNo,hrm.HrmTransferApplcn.employeeName";
        document.forms[0].txtDisplayFields.value = "empID,empName,fromSite,fromSiteID";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmATDTransApplForm');
        return true;
}
function ShowEmployeeNo1()
{
        document.forms[0].lovKey.value = "HrmApplicationNo" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmTransferOrder.empNo,hrm.HrmTransferApplcn.employeeName";
        document.forms[0].txtDisplayFields.value = "applnNo,empName,fromSite,fromSiteID";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmATDTransApplForm');
        return true;
}

</script>

