<%@ 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="HrmATDTransCnclApplForm" action="HrmATDTransCnclApplBaseAction" type="wenrgise.hrms.webtier.form.HrmATDTransCnclApplForm">
<bean:define id="ParentForm" name="HrmATDTransCnclApplForm" 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.HrmCancApplcn.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 >
        <!-- Header Starts -->
            <TR>
                  <TD class=subHeader colspan=6><bean:message key="hrm.HrmCancApplcn.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.HrmCancApplcn.applnNo" /></td>
                <td ><enrgise:text  property="applnNo" name="HrmATDTransCnclApplForm" titleKey="hrm.HrmCancApplcn.applnNo" maxlength="40" size="23" styleClass="required" disabledClass="required" onchange="doChangeHeader()" /><enrgise:img height="16" align="center" styleClass="icon" name="HrmATDTransCnclApplForm" src="../includes/images/lov.jpg" property="butApplnNo" onclick="return ShowApplnNo()" /></td>
                <td class="labelText"><bean:message key="hrm.HrmCancApplcn.empNo" /></td>
                <td colspan="3" ><enrgise:text  property="empNo" name="HrmATDTransCnclApplForm" titleKey="hrm.HrmCancApplcn.empNo" maxlength="10" size="23" styleClass="required" disabledClass="required" onchange="doChangeHeader()" /><enrgise:img height="16" align="center" styleClass="icon" name="HrmATDTransCnclApplForm" src="../includes/images/lov.jpg" property="butEmpNo" onclick="return ShowEmployeeNo()" />
                <enrgise:text  property="empName" name="HrmATDTransCnclApplForm" titleKey="hrm.HrmCancApplcn.empName" size="67" styleClass="optional" disabledClass="locked"  /> </td>
                     
            </tr>
            <tr>
                <td class="labelText"><bean:message key="hrm.HrmCancApplcn.applnDate" /></td>
                <td><enrgise:text  property="applnDate" name="HrmATDTransCnclApplForm"  titleKey="hrm.HrmCancApplcn.applnDate" size="23" styleClass="required" disabledClass="required" onchange="doChangeHeader()" /><enrgise:img width="16" height="19" align="top" styleClass="icon" name="HrmATDTransCnclApplForm" src="../includes/images/cal.gif" property="butApplnDate"   onclick="showCalendar('applnDate',this)" /></td>              
                <td class="labelText"><bean:message key="hrm.HrmCancApplcn.ofcNoteNo" /></td>
                <td><enrgise:text  property="ofcNoteNo" name="HrmATDTransCnclApplForm"  titleKey="hrm.HrmCancApplcn.ofcNoteNo" maxlength="40" size="23" styleClass="optional" disabledClass="optional" onchange="doChangeHeader()" /><enrgise:img height="16" align="center" styleClass="icon" name="HrmATDTransCnclApplForm" src="../includes/images/lov.jpg" property="butOfcNoteNo" onclick="return ShowOfcNoteNo()" /></td>
                <td class="labelText"><bean:message key="hrm.HrmCancApplcn.ofcNoteDate" /></td>
                <td><html:text  property="ofcNoteDate" name="HrmATDTransCnclApplForm" titleKey="hrm.HrmCancApplcn.ofcNoteDate" size="23" styleClass="optional" readonly="true" onchange="doChangeHeader()" /><enrgise:img width="16" height="19" align="top" styleClass="icon" name="HrmATDTransCnclApplForm" src="../includes/images/cal.gif" property="butOfcNoteDate" onclick="showCalendar('ofcNoteDate',this)" /></td>              
            </tr>
            <tr>
                  <td class="labelText"><bean:message key="hrm.HrmCancApplcn.reason" /></td>
                  <td colspan="5"><enrgise:textarea  property="reason" name="HrmATDTransCnclApplForm" titleKey="hrm.HrmCancApplcn.reason" cols="65" rows="2" styleClass="required" disabledClass="locked" onchange="doChangeHeader()" ></enrgise:textarea>
                           
            </tr>
             <tr height="10">
               <td colspan="6"></td>
            </tr>

            <TR>
                  <TD class=subHeader colspan=6><bean:message key="hrm.HrmCancApplcn.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.HrmCancApplcn.orderNo" /></td>
                  <td><enrgise:text property="orderNo" name="HrmATDTransCnclApplForm" titleKey="hrm.HrmCancApplcn.orderNo" size="26" styleClass="optional" disabledClass="locked" onchange="doChangeHeader()" /></td>
                  <td class="labelText"><bean:message key="hrm.HrmCancApplcn.trnOrderType" /></td>
                  <td><enrgise:text property="trnOrderType" name="HrmATDTransCnclApplForm" titleKey="hrm.HrmCancApplcn.trnOrderType" size="26" styleClass="optional" disabledClass="locked" onchange="doChangeHeader()" /></td>
                  <td class="labelText"><bean:message key="hrm.HrmCancApplcn.orderDate" /></td>
                  <td><enrgise:text property="orderDate" name="HrmATDTransCnclApplForm" titleKey="hrm.HrmCancApplcn.orderDate" size="26" styleClass="optional" disabledClass="locked" onchange="doChangeHeader()" /></td>
                    
            </tr>
            
            <tr>
                  
                  <td class="labelText"><bean:message key="hrm.HrmCancApplcn.fromSite" /></td>
                  <td><enrgise:text property="fromSite" name="HrmATDTransCnclApplForm" titleKey="hrm.HrmCancApplcn.fromSite" size="26" styleClass="optional" disabledClass="locked" onchange="doChangeHeader()" /></td>
                  <td class="labelText"><bean:message key="hrm.HrmCancApplcn.toSite" /></td>
                  <td><enrgise:text property="toSite" name="HrmATDTransCnclApplForm" titleKey="hrm.HrmCancApplcn.toSite" size="26" styleClass="optional" disabledClass="locked" onchange="doChangeHeader()" /></td>  
                  <td class="labelText"><bean:message key="hrm.HrmCancApplcn.effectDate" /></td>
                  <td><enrgise:text property="effectDate" name="HrmATDTransCnclApplForm" titleKey="hrm.HrmCancApplcn.effectDate" size="26" styleClass="optional" disabledClass="locked" onchange="doChangeHeader()" /></td>
                    
            </tr>
            
            <tr>
                  <td class="labelText"><bean:message key="hrm.HrmCancApplcn.fromDesignation" /></td>
                  <td><html:text property="fromDesignation" name="HrmATDTransCnclApplForm" titleKey="hrm.HrmCancApplcn.fromDesignation" size="26" styleClass="locked" readonly="true" onchange="doChangeHeader()" /></td>

                  <td class="labelText"><bean:message key="hrm.HrmCancApplcn.toDesignation" /></td>
                  <td><html:text property="toDesignation" name="HrmATDTransCnclApplForm" titleKey="hrm.HrmCancApplcn.toDesignation" size="26" styleClass="locked" readonly="true" onchange="doChangeHeader()" /></td>
           </tr>
           <tr>
                  <td class="labelText"><bean:message key="hrm.HrmCancApplcn.fromWorkgroup" /></td>
                  <td><enrgise:text property="fromWorkGroup" name="HrmATDTransCnclApplForm" titleKey="hrm.HrmCancApplcn.fromWorkgroup" size="26" styleClass="optional" disabledClass="locked" onchange="doChangeHeader()" /></td>

                  <td class="labelText"><bean:message key="hrm.HrmCancApplcn.toWorkgroup" /></td>
                  <td><enrgise:text property="toWorkGroup" name="HrmATDTransCnclApplForm" titleKey="hrm.HrmCancApplcn.toWorkgroup" size="26" styleClass="optional" disabledClass="locked" onchange="doChangeHeader()" /></td>
           </tr>
           <tr height="10">
                  <td colspan="6"></td>
            </tr>
        </table>
      
      
     <table cellspacing=0 cellpadding=0 border=0>
         <!-- Detail Information Row starts -->
 	 
<!-- 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 name="HrmATDTransCnclApplForm" property="screenName" value="HrmATDTransCnclAppl" />
<html:hidden name="HrmATDTransCnclApplForm" property="forwardedPage" />
<html:hidden name="HrmATDTransCnclApplForm" property="positionRequested"  />
<html:hidden name="HrmATDTransCnclApplForm" property="screenMode"  />

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

<html:hidden property="applnNoId" name="HrmATDTransCnclApplForm"  />
<html:hidden property="ofcNoteId" name="HrmATDTransCnclApplForm"  />
<html:hidden property="orderDtlId" name="HrmATDTransCnclApplForm"  />
<html:hidden property="empId" name="HrmATDTransCnclApplForm"  />

<html:hidden property="lovKey" name="HrmATDTransCnclApplForm"  />

<html:hidden property="txtSearchFields" name="HrmATDTransCnclApplForm"  />
<html:hidden property="txtDisplayFields" name="HrmATDTransCnclApplForm"  />
<html:hidden property="txtIndex" name="HrmATDTransCnclApplForm"  />
<html:hidden property="generatedBy" name="HrmATDTransCnclApplForm"  />

<input type="hidden" name="multipleFlag" >
<input type="hidden" name="queryParam" >

<html:hidden property="buttonName" name="HrmATDTransCnclApplForm"  />
</html:form>
</body>
</html:html>
 
            
<script language="javascript">

function doQueryMode()
{

  return "HrmATDTransCnclApplQueryModeAction.do";
}

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

}
function doInsertMode()
{

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

  return "HrmATDTransCnclApplExitAction.do";
}

function doExecute()
{

  return "HrmATDTransCnclApplGetHeaderAction.do";
}

function doSave()
{

  return "HrmATDTransCnclApplSaveAction.do";
  
}

function doDelete()
{

  return "HrmATDTransCnclApplDeleteAction.do";
  
}

function doRefresh()
{

  return "HrmATDTransCnclApplRefreshAction.do";
  
}

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

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

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

function doGetDetail()
{

  return "HrmATDTransCnclApplGetDetailAction.do";
}

function doAddRow()
{

  return "HrmATDTransCnclApplAddRowAction.do"; 
}

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

function doGetDetailTableName()
{
  return "HrmATDTransCnclAppl";
}

function doPrevDetail()
{

  return "HrmATDTransCnclApplGetDetailPageAction.do";  
}

function doNextDetail()
{

  return "HrmATDTransCnclApplGetDetailPageAction.do";
}

function doJumpDetail()
{
  return  "HrmATDTransCnclApplGetDetailPageAction.do"; 
}
function doOnLoad()
{
  if(document.forms[0].firstLoad.value!="false")
  {
    return  "HrmATDTransCnclApplOnLoadAction.do"; 
  }
}
function ShowApplnNo()
{
        document.forms[0].lovKey.value = "TrnsfrCnclApplnNo" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmCancApplcn.applnNo";
        document.forms[0].txtDisplayFields.value = "applnNoId,applnNo";
        document.forms[0].multipleFlag.value = "false";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmATDTransCnclApplForm');
        return true;
}
   
function ShowEmployeeNo()
{
        document.forms[0].lovKey.value = "TrnsfrCnclEmpNo" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmCancApplcn.empNo,hrm.HrmCancApplcn.empName";
        document.forms[0].txtDisplayFields.value = "orderDtlId,empNo,empName,empId,orderNo,orderDate,fromWorkGroup,toWorkGroup,fromDesignation,toDesignation,trnOrderType,fromSite,toSite,effectDate";
        document.forms[0].multipleFlag.value = "false";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmATDTransCnclApplForm');
        return true;
        
}

function ShowOfcNoteNo()
{
        document.forms[0].lovKey.value = "TrnsfrCnclOfcNoteNo" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmCancApplcn.ofcNoteNo";
        document.forms[0].txtDisplayFields.value = "ofcNoteId,ofcNoteNo";
        document.forms[0].multipleFlag.value = "false";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmATDTransCnclApplForm');
        return true;
}

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