<%@ 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="HrmATDTransCnclOrderForSingleEmpForm" action="HrmATDTransCnclOrderForSingleEmpBaseAction" type="wenrgise.hrms.webtier.form.HrmATDTransCnclOrderSingleEmpForm">
<bean:define id="ParentForm" name="HrmATDTransCnclOrderForSingleEmpForm" 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()" /><enrgise:img name="ParentForm" property="butInsert" onmouseover='this.src="../includes/images/insert_act.jpg"' onmouseout='this.src="../includes/images/insert.jpg"' alt="Insert (Alt+N)" src="../includes/images/insert.jpg"  onclick="doBaseInsertMode()"/></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()" /><img property="butRefresh" src="../includes/images/refresh.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>

<!--Top Most Blue Bar-->
<TABLE cellSpacing=0 bgColor=#bdd0ef>
    <tr>
        <TD  colSpan=12 class=mainHeader height=10><bean:message  key="hrm.HrmTransCnclOrderForSingleEmp.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.HrmATDTransCnclOrderForSingleEmp.subHeader1" /></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.HrmATDTransCnclOrderForSingleEmp.appNo" /></td>
                <td ><html:text  property="appNo" name="HrmATDTransCnclOrderForSingleEmpForm" alt="N" titleKey="hrm.HrmATDTransCnclOrderForSingleEmp.appNo" size="23" styleClass="required" onchange="doChangeHeader();" readonly="true" /><enrgise:img height="16" align="center" src="../includes/images/lov.jpg" name="HrmATDTransCnclOrderForSingleEmpForm" property="butAppNo" onclick=" return ShowApplnNo()"  /></td>  
                <td class="labelText"><bean:message key="hrm.HrmATDTransCnclOrderForSingleEmp.appDate" /></td>
                <td><enrgise:text  property="appDate" name="HrmATDTransCnclOrderForSingleEmpForm" titleKey="hrm.HrmATDTransCnclOrderForSingleEmp.appDate" size="26" styleClass="optional" disabledClass="locked"  onchange="doChangeHeader();" /></td>              
                <td class="labelText"><bean:message key="hrm.HrmATDTransCnclOrderForSingleEmp.employeeName" /></td>
                <td ><enrgise:text  property="employeeName" name="HrmATDTransCnclOrderForSingleEmpForm" disabledClass="locked"  titleKey="hrm.HrmATDTransCnclOrderForSingleEmp.employeeName" size="26" styleClass="optional"  onchange="doChangeHeader();" /></td>
            </tr>
            
           <tr>
                <td class="labelText"><bean:message key="hrm.HrmATDTransCnclOrderForSingleEmp.transOrderNo" /></td>
                <td ><enrgise:text  property="transOrderNo" name="HrmATDTransCnclOrderForSingleEmpForm" disabledClass="locked" readonly="true" titleKey="hrm.HrmATDTransCnclOrderForSingleEmp.transOrderNo" size="26" styleClass="optional"  onchange="doChangeHeader();" /></td>
                <td class="labelText"><bean:message key="hrm.HrmATDTransCnclOrderForSingleEmp.transOrderDate" /></td>
                <td ><html:text  property="transOrderDate" name="HrmATDTransCnclOrderForSingleEmpForm" titleKey="hrm.HrmATDTransCnclOrderForSingleEmp.transOrderDate" size="26" styleClass="locked" readonly="true"  onchange="doChangeHeader();" /></td>
                <td class="labelText"><bean:message key="hrm.HrmATDTransCnclOrderForSingleEmp.transEffectDate" /></td>
                <td ><html:text  property="transEffectDate" name="HrmATDTransCnclOrderForSingleEmpForm" titleKey="hrm.HrmATDTransCnclOrderForSingleEmp.transEffectDate" size="26" styleClass="locked" readonly="true" onchange="doChangeHeader();" /></td>
            </tr>
  
            <TR>
                  <TD class=subHeader colspan=6><bean:message  key="hrm.HrmATDTransCnclOrderForSingleEmp.subHeader2" /></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.HrmATDTransCnclOrderForSingleEmp.orderNo" /></td>
                <td ><enrgise:text  property="orderNo" name="HrmATDTransCnclOrderForSingleEmpForm" alt="N" titleKey="hrm.HrmATDTransCnclOrderForSingleEmp.orderNo" readonly="true"  maxlength="40" size="23" styleClass="required" disabledClass="locked"  onchange="doChangeHeader();" /><enrgise:img height="16" align="center" src="../includes/images/lov.jpg" name="HrmATDTransCnclOrderForSingleEmpForm" property="butOrderNo" onclick=" return ShowCnclOrderNo()"  /></td>  
                <td class="labelText"><bean:message key="hrm.HrmATDTransCnclOrderForSingleEmp.orderDate" /></td>
                <td><html:text  property="orderDate" name="HrmATDTransCnclOrderForSingleEmpForm" titleKey="hrm.HrmATDTransCnclOrderForSingleEmp.orderDate" size="23" readonly="true" styleClass="required"  onchange="doChangeHeader();" /><enrgise:img width="16" height="19" align="top" src="../includes/images/cal.gif" property="butOrderDate" name="HrmATDTransCnclOrderForSingleEmpForm"  onclick="showCalendar('orderDate',this)" /></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="required" readonly="true" onchange="doChangeHeader();" /><enrgise:img height="16" align="center" src="../includes/images/lov.jpg" name="HrmATDTransCnclOrderForSingleEmpForm"  property="butApproverNo" onclick="return ShowApprover()" /></td>
                <td class="labelText"><bean:message key="hrm.HrmATDTransCnclOrderForSingleEmp.cancStatus" /></td>
                <td><html:select property="cancStatus" name="HrmATDTransCnclOrderForSingleEmpForm"  styleClass="optional" onchange="doChangeHeader();" disabled="true" >
                      <html:option value="" ><bean:message   key="hrm.pleaseSelect" /></html:option>      
                      <html:option value="N" > <bean:message key="hrm.HrmATDTransCnclOrderForSingleEmp.new" /></html:option>
                      <html:option value="A" > <bean:message key="hrm.HrmATDTransCnclOrderForSingleEmp.approved" /></html:option>
                      <html:option value="P" > <bean:message key="hrm.HrmATDTransCnclOrderForSingleEmp.pending" /></html:option>
                      <html:option value="R" > <bean:message key="hrm.HrmATDTransCnclOrderForSingleEmp.rejected" /></html:option>
                    </html:select></td>
             </tr>
            <!--
            
              <TR>
                  
                  <td class="labelText"><bean:message key="hrm.HrmATDTransCnclOrderForSingleEmp.cnclDeferFlag" /></td>
                  <td><enrgise:select property="cancDefFlag" name="HrmATDTransCnclOrderForSingleEmpForm"  styleClass="required" disabledClass="required" onchange="doChangeHeader(); doBaseValidate();" >
                      <enrgise:option value="" ><bean:message   key="hrm.pleaseSelect" /></enrgise:option>      
                      <enrgise:option value="D" > <bean:message key="hrm.HrmATDTransCnclOrderForSingleEmp.defer" /></enrgise:option>
                      <enrgise:option value="C" > <bean:message key="hrm.HrmATDTransCnclOrderForSingleEmp.cancel" /></enrgise:option>
                    </enrgise:select></td>
                  <td colspan=="4"></td>
             </TR> -->
             
            
           <tr height="10">
                <td colspan="6"></td>
           </tr>
         </table>
         <!--
     <table cellspacing=0 cellpadding=0 border=0>
    <TR>
       <TD colspan=6>
         <TABLE cellSpacing=0 cellPadding=0 >
         <tr>
                <TD  bgColor=#4682b4></TD>
                <enrgise:tab name="HrmATDTransCnclOrderForSingleEmpForm" property="tabTransCnclOrderEmp" styleClass="actTabText" disabledClass="required" src="../includes/images/formtab_r.gif"><bean:message  key="hrm.HrmATDTransCnclOrderForSingleEmp.subHeader3" /></enrgise:tab>
                <td width="83%"> </td>
             
             </tr>
            
  <TR >
  <TD colspan="37">
    <TABLE cellSpacing=0 cellPadding=0 border=0>
      <TBODY>
       <TR>
         <TD >
           <DIV id=divDtlTable style="height:90px" >
  			<TABLE  border="0" cellSpacing=0 cellPadding=0 >
          <TBODY>
            <tr>
                <td class=tableHeader height="20" colspan="6"></td>
            </tr> 
                         
          
         
           <tr height="6">
                <td colspan="6"></td>   
               
            </tr>
           <tr>
                <td class="labelText"><bean:message key="hrm.HrmATDTransCnclOrderForSingleEmp.defDate" /></td>
                <td ><html:text  property="defDate" name="HrmATDTransCnclOrderForSingleEmpForm" titleKey="hrm.HrmATDTransCnclOrderForSingleEmp.defDate" size="23" readonly="true" styleClass="optional"  onchange="doChangeHeader();" /><enrgise:img width="16" height="19" align="top" src="../includes/images/cal.gif" property="butDefDate" name="HrmATDTransCnclOrderForSingleEmpForm" onclick="showCalendar('DefDate',this)" /></td>
                <td colspan=="2"></td>
                <td class="labelText"><bean:message key="hrm.HrmATDTransCnclOrderForSingleEmp.defPeriod" /></td>
                <td ><enrgise:text  property="defPeriod" name="HrmATDTransCnclOrderForSingleEmpForm" disabledClass="locked"  titleKey="hrm.HrmATDTransCnclOrderForSingleEmp.defPeriod" onkeypress="isInteger(event)" maxlength="4" size="26" styleClass="optional"  onchange="doChangeHeader();" /></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></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="HrmATDTransCnclOrderForSingleEmpForm" value="HrmATDTransCnclOrderForSingleEmp" />
<html:hidden name="HrmATDTransCnclOrderForSingleEmpForm"  property="forwardedPage" />
<html:hidden property="positionRequested" name="HrmATDTransCnclOrderForSingleEmpForm" />
<html:hidden property="screenMode" name="HrmATDTransCnclOrderForSingleEmpForm"  />

<html:hidden property="userPageRequested" name="HrmATDTransCnclOrderForSingleEmpForm" />
<html:hidden property="userPositionRequested" name="HrmATDTransCnclOrderForSingleEmpForm" />
<html:hidden property="pageRequested" name="HrmATDTransCnclOrderForSingleEmpForm" />
<html:hidden property="headerDataChanged" name="HrmATDTransCnclOrderForSingleEmpForm" />
<!------ addded for LOV ----->
<html:hidden property="lovKey" name="HrmATDTransCnclOrderForSingleEmpForm"  />
<html:hidden property="txtSearchFields" name="HrmATDTransCnclOrderForSingleEmpForm"  />
<html:hidden property="txtDisplayFields" name="HrmATDTransCnclOrderForSingleEmpForm"  />
<html:hidden property="txtIndex" name="HrmATDTransCnclOrderForSingleEmpForm"  />
<html:hidden property="appNoId" name="HrmATDTransCnclOrderForSingleEmpForm"  />
<html:hidden property="employeeId" name="HrmATDTransCnclOrderForSingleEmpForm"  />

<html:hidden property="orderId" name="HrmATDTransCnclOrderForSingleEmpForm"  />
<html:hidden property="approverNoId" name="HrmATDTransCnclOrderForSingleEmpForm"  />
<html:hidden property="headerPrimaryKey" name="HrmATDTransCnclOrderForSingleEmpForm"  />
<html:hidden property="headerPrimaryKey1" name="HrmATDTransCnclOrderForSingleEmpForm"  />

<input type="hidden" name="multipleFlag" >
<input type="hidden" name="queryParam" >
<html:hidden property="buttonName" name="HrmATDTransCnclOrderForSingleEmpForm"  />
<html:hidden property="firstLoad" name="HrmATDTransCnclOrderForSingleEmpForm"  />
</html:form>
</body>
</html:html>

<script>

function doChangeHeader()
{
 if(document.forms[0].screenMode.value=="U" || document.forms[0].screenMode.value=="N")
 document.forms[0].headerDataChanged.value="true";
}

function doQueryMode()
{
  document.forms[0].headerDataChanged.value="false";
  return "HrmATDTransCnclOrderForSingleEmpQueryModeAction.do";
}

function doValidate()
{
 return "HrmATDTransCnclOrderForSingleEmpValidateAction.do";
}


function doInsertMode()
{
  document.forms[0].headerDataChanged.value="false";
  return "HrmATDTransCnclOrderForSingleEmpNewModeAction.do";
}


function doExecute()
{

  return "HrmATDTransCnclOrderForSingleEmpGetHeaderAction.do";
}

function doSave()
{

  return "HrmATDTransCnclOrderForSingleEmpSaveAction.do";
  
}

function doDelete()
{

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

  return "HrmATDTransCnclOrderForSingleEmpExitAction.do";
  
}

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

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

function doJumpHeader()
{
  return "HrmATDTransCnclOrderForSingleEmpFirstGetNextHeaderAction.do"; 
}
function doOnLoad()
{
  if(document.forms[0].firstLoad.value!="false")
  {
    return  "HrmATDTransCnclOrderForSingleEmpOnLoadAction.do"; 
  }
}
function ShowApplnNo()
{
        document.forms[0].lovKey.value = "TrnsfrCnclOrdrApplnNo" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmATDTransCnclOrderForSingleEmp.appNo";
        document.forms[0].txtDisplayFields.value="appNoId,appNo,appDate,employeeName,transOrderNo,transOrderDate,transEffectDate";
        document.forms[0].multipleFlag.value = "false";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmATDTransCnclOrderForSingleEmpForm');
        return true;
}

function ShowCnclOrderNo()
{
        document.forms[0].lovKey.value = "TrnsfrCnclOrdrNo" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmATDTransCnclOrderForSingleEmp.orderNo";
        document.forms[0].txtDisplayFields.value = "orderId,orderNo";
        document.forms[0].multipleFlag.value = "false";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmATDTransCnclOrderForSingleEmpForm');
        return true;
}   

function doGetInsertData()
{
}
function doApprove()
{
  document.forms[0].buttonName.value="butApprove";
 return "HrmATDTransCnclOrderForSingleEmpGetButtonAction.do";
}
function doReject()
{
  document.forms[0].buttonName.value="butReject";
  return "HrmATDTransCnclOrderForSingleEmpGetButtonAction.do";
}
function doSubmit()
{
  document.forms[0].buttonName.value="butSubmit";
  return "HrmATDTransCnclOrderForSingleEmpGetButtonAction.do";
}

function ShowApprover()
{
        document.forms[0].lovKey.value = "TransCnclOrderApproverNo" + 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" />','HrmATDTransCnclOrderForSingleEmpForm');
        return true;
        
}
</script>

