<%@ 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="HrmATDDptnOrderForSingleEmpForm" action="HrmATDDptnOrderForSingleEmpBaseAction" type="wenrgise.hrms.webtier.form.HrmATDDptnOrderForSingleEmpForm">
<bean:define id="ParentForm" name="HrmATDDptnOrderForSingleEmpForm" 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.HrmDeputationOrder.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.HrmDeputationOrder.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.HrmDeputationOrder.applnNo" /></td>
                <td ><enrgise:text  property="applnNo" name="HrmATDDptnOrderForSingleEmpForm"  styleClass="required" disabledClass="required" titleKey="hrm.HrmDeputationOrder.applnNo" size="23" onchange="doChangeHeader();" /><enrgise:img height="16" align="center" src="../includes/images/lov.jpg" name="HrmATDDptnOrderForSingleEmpForm" property="butApplnNo" onclick="return ShowApplnNo()"  /></td>  
                <td class="labelText"><bean:message key="hrm.HrmTransferApplcn.employeeName" /></td>
                <td ><enrgise:text  property="employeeName" name="HrmATDDptnOrderForSingleEmpForm"   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="HrmATDDptnOrderForSingleEmpForm"   disabledClass="locked"  titleKey="hrm.HrmLeaveLedgerTransc.applicationDate" size="26" styleClass="optional"  onchange="doChangeHeader();" /></td>   
               
            </tr>
            <tr>
                <td class="labelText"><bean:message key="hrm.HrmDeputationOrder.toOrg" /></td>
                <td ><enrgise:text  property="toOrg" name="HrmATDDptnOrderForSingleEmpForm"   disabledClass="locked"  titleKey="hrm.HrmDeputationOrder.toOrg" size="26" styleClass="optional"  onchange="doChangeHeader();" /></td>
                <td class="labelText"><bean:message key="hrm.HrmDeputationOrder.toPost" /></td>
                <td ><enrgise:text  property="toPost" name="HrmATDDptnOrderForSingleEmpForm"   disabledClass="locked"  titleKey="hrm.HrmDeputationOrder.toPost" size="26" styleClass="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>
        <!-- Personal Details Table Starts -->
         <TABLE cellSpacing=0 cellPadding=0 >
         <tr>
                <TD  bgColor=#4682b4></TD>
                <enrgise:tab name="HrmATDDptnOrderForSingleEmpForm" property="tabDeputOrderEmp" styleClass="actTabText" disabledClass="required" src="../includes/images/formtab_r.gif"><bean:message  key="hrm.HrmDeputationOrder.subHeader" /></enrgise:tab>
                <td width="80%"> </td>
             
             </tr>
            
  <TR >
  <!-- Detail table Container starts -->
  <TD colspan="37">
    <TABLE cellSpacing=0 cellPadding=0 border=0>
      <TBODY>
       <TR>
         <TD >
           <DIV id=divDtlTable style="height:200px" >
  			<TABLE  border="0" cellSpacing=0 cellPadding=0 >
          <TBODY>
            <tr>
                <td class=tableHeader height="20" colspan="6"></td>
            </tr> 
                         
            <tr height="8">
                <td colspan="6"></td>   
               
            </tr>
             <tr>
                <td class="labelText"><bean:message key="hrm.HrmDeputationOrder.orderNo" /></td>
                <td ><enrgise:text  property="orderNo" name="HrmATDDptnOrderForSingleEmpForm" alt="N" titleKey="hrm.HrmDeputationOrder.orderNo" maxlength="10" size="23" styleClass="required" disabledClass="required"  onchange="doChangeHeader();" /><enrgise:img height="16" align="center" src="../includes/images/lov.jpg" name="HrmATDDptnOrderForSingleEmpForm" property="butOrderNo" onclick="return ShowDeputnOrdNo()"  /></td>  
                <td class="labelText"><bean:message key="hrm.HrmDeputationOrder.orderDate" /></td>
                <td><enrgise:text  property="orderDate" name="HrmATDDptnOrderForSingleEmpForm" titleKey="hrm.HrmDeputationOrder.orderDate" size="23" styleClass="required" disabledClass="required"  onchange="doChangeHeader();" /><enrgise:img width="16" height="19" align="top" styleClass="icon" name="HrmATDDptnOrderForSingleEmpForm" src="../includes/images/cal.gif" property="butOrderDate"   onclick="showCalendar('orderDate',this)" /></td>              
                <td class="labelText"><bean:message key="hrm.HrmDeputationOrder.orderStatus" /></td>
                <td><html:select property="orderStatus" alt="orderStatus"  styleClass="locked" disabled="true" >
                    <html:option value="" ><bean:message   key="hrm.pleaseSelect" /></html:option>      
                    <html:option value="N" > <bean:message key="hrm.HrmDeputationApplicn.new" /></html:option>
                    <html:option value="P" > <bean:message key="hrm.HrmDeputationApplicn.pending" /></html:option>
                    <html:option value="A" > <bean:message key="hrm.HrmDeputationApplicn.approved" /></html:option>
                    <html:option value="R" > <bean:message key="hrm.HrmDeputationApplicn.rejected" /></html:option>
                    </html:select></td> 
           </tr>
            <tr>
                <td class="labelText"><bean:message key="hrm.HrmDeputationOrder.deputType" /></td>
                <td><enrgise:select property="deputType" name="HrmATDDptnOrderForSingleEmpForm"  styleClass="optional" disabledClass="locked" onchange="doChangeHeader();" >
                      <enrgise:option value="" ><bean:message   key="hrm.pleaseSelect" /></enrgise:option>      
                      <enrgise:option value="F" > <bean:message key="hrm.HrmDeputationOrder.F" /></enrgise:option>
                      <enrgise:option value="O" > <bean:message key="hrm.HrmDeputationOrder.O" /></enrgise:option>
                      <enrgise:option value="W" > <bean:message key="hrm.HrmDeputationOrder.W" /></enrgise:option>
                    </enrgise:select></td>
                <td class="labelText"><bean:message key="hrm.HrmDeputationOrder.deptnEffectDate" /></td>
                <td ><enrgise:text  property="deptnEffectDate" name="HrmATDDptnOrderForSingleEmpForm"   disabledClass="required" titleKey="hrm.HrmDeputationOrder.deptnEffectDate" size="23" styleClass="required"  onchange="doChangeHeader();" /><enrgise:img width="16" height="19" align="top" styleClass="icon" name="HrmATDDptnOrderForSingleEmpForm" src="../includes/images/cal.gif" property="butDeptnEffectDate"   onclick="showCalendar('deptnEffectDate',this)" /></td>              
                <td class="labelText"><bean:message key="hrm.HrmDeputationOrder.reportingDate" /></td>
                <td ><enrgise:text  property="reportingDate" name="HrmATDDptnOrderForSingleEmpForm"   disabledClass="required" titleKey="hrm.HrmDeputationOrder.reportingDate" size="23" styleClass="required"  onchange="doChangeHeader();" /><enrgise:img width="16" height="19" align="top" styleClass="icon" name="HrmATDDptnOrderForSingleEmpForm" src="../includes/images/cal.gif" property="butReportingDate"   onclick="showCalendar('reportingDate',this)" /></td> 
            </tr>
            
           
            <tr>
                <td class="labelText"><bean:message key="hrm.HrmDeputationOrder.phone" /></td>
                <td ><enrgise:text  property="phone" name="HrmATDDptnOrderForSingleEmpForm" alt="N" titleKey="hrm.HrmDeputationOrder.phone" maxlength="20" size="26" styleClass="optional" disabledClass="required" onkeypress="isInteger(event)" onchange="doChangeHeader();" /></td>  
                <td class="labelText"><bean:message key="hrm.HrmDeputationOrder.mobilePhone" /></td>
                <td><enrgise:text  property="mobilePhone" name="HrmATDDptnOrderForSingleEmpForm" titleKey="hrm.HrmDeputationOrder.mobilePhone" maxlength="20" size="26" styleClass="optional" disabledClass="locked" onkeypress="isInteger(event)" onchange="doChangeHeader();" /></td>              
                <td class="labelText"><bean:message key="hrm.HrmDeputationOrder.fax" /></td>
                <td><enrgise:text  property="fax" name="HrmATDDptnOrderForSingleEmpForm" titleKey="hrm.HrmDeputationOrder.fax" maxlength="20" size="26" styleClass="optional" disabledClass="locked" onkeypress="isInteger(event)" onchange="doChangeHeader();" /></td>              
                
           </tr>
            <tr>
                <td class="labelText"><bean:message key="hrm.HrmDeputationOrder.remarks"  /></td>
                <td><enrgise:textarea  property="remarks" name="HrmATDDptnOrderForSingleEmpForm"   styleClass="optional"  disabledClass="locked" titleKey="hrm.HrmDeputationOrder.remarks" cols="28" rows="2" onchange="doChangeHeader();" ></enrgise:textarea></td>
                <td class="labelText"><bean:message key="hrm.HrmDeputationOrder.eMail" /></td>
                <td><enrgise:text  property="email" name="HrmATDDptnOrderForSingleEmpForm" titleKey="hrm.HrmDeputationOrder.eMail" size="26" styleClass="optional" disabledClass="locked"  onchange="doChangeHeader();"  onblur="invalidEmail(this.form);" /></td>              
                <td class="labelText"><bean:message key="hrm.HrmDeputationOrder.reptBackDate" /></td>
                <td><enrgise:text  property="reptBackDate" name="HrmATDDptnOrderForSingleEmpForm" titleKey="hrm.HrmDeputationOrder.reptBackDate" size="23" styleClass="optional" disabledClass="locked"  onchange="doChangeHeader();" /><enrgise:img width="16" height="19" align="top" styleClass="icon" name="HrmATDDptnOrderForSingleEmpForm" src="../includes/images/cal.gif" property="butReptBackDate"   onclick="showCalendar('reptBackDate',this)" /></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="HrmATDDptnOrderForSingleEmpForm" value="HrmATDDptnOrderForSingleEmp" />
<html:hidden name="HrmATDDptnOrderForSingleEmpForm"  property="forwardedPage" />
<html:hidden property="positionRequested" name="HrmATDDptnOrderForSingleEmpForm" />
<html:hidden property="screenMode" name="HrmATDDptnOrderForSingleEmpForm"  />


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

<!------ addded for LOV ----->
<html:hidden property="headerPrimaryKey" name="HrmATDDptnOrderForSingleEmpForm"  />
<html:hidden property="detailDataChanged" name="HrmATDDptnOrderForSingleEmpForm"  />
<html:hidden property="headerDataChanged" name="HrmATDDptnOrderForSingleEmpForm"  />

<html:hidden property="lovKey" name="HrmATDDptnOrderForSingleEmpForm"  />
<html:hidden property="txtSearchFields" name="HrmATDDptnOrderForSingleEmpForm"  />
<html:hidden property="txtDisplayFields" name="HrmATDDptnOrderForSingleEmpForm"  />

<html:hidden property="orderNoId" name="HrmATDDptnOrderForSingleEmpForm"  />
<html:hidden property="applnNoId" name="HrmATDDptnOrderForSingleEmpForm"  />
<html:hidden property="firstLoad" name="HrmATDDptnOrderForSingleEmpForm"  />

<html:hidden property="employeeNoId" name="HrmATDDptnOrderForSingleEmpForm"  />

<html:hidden property="hdnOrderStatus" name="HrmATDDptnOrderForSingleEmpForm"  />

<input type="hidden" name="multipleFlag" >
<input type="hidden" name="queryParam" >
<html:hidden property="buttonName" name="HrmATDDptnOrderForSingleEmpForm"  />

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

<script language="javascript">

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 "HrmATDDptnOrderForSingleEmpQueryModeAction.do";
}


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


function doExecute()
{

  return "HrmATDDptnOrderForSingleEmpGetHeaderAction.do";
}

function doSave()
{

  return "HrmATDDptnOrderForSingleEmpSaveAction.do";
  
}

function doDelete()
{

  return "HrmATDDptnOrderForSingleEmpDeleteAction.do";
  
}


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

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

function doJumpHeader()
{
  return "HrmATDDptnOrderForSingleEmpFirstGetNextHeaderAction.do"; 
}
function doExit()
{
  return "HrmATDDptnOrderExitAction.do"; 
}
function doOnLoad()
{
  if(document.forms[0].firstLoad.value!="false")
  {
    return  "HrmATDDptnOrderForSingleEmpOnLoadAction.do"; 
  }
}

function doRefresh()
{

  return "HrmATDDptnOrderForSingleEmpRefreshAction.do";
  
}
function ShowDeputnOrdNo()
{      
        document.forms[0].lovKey.value = "DeptnOrderNo" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmDeputationOrder.orderNo";
        document.forms[0].txtDisplayFields.value = "orderNoId,orderNo";
        document.forms[0].multipleFlag.value = "false";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmATDDptnOrderForSingleEmpForm');
        return true;
}

function ShowApplnNo()
{
        document.forms[0].lovKey.value = "DeptnApplcnNo" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmDeputationOrder.applnNo";
        document.forms[0].txtDisplayFields.value = "applnNoId,applnNo,employeeName,applicationDate,toOrg,toPost,deputType";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmATDDptnOrderForSingleEmpForm');
        return true;
}

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

function doSubmit()
{
  document.forms[0].buttonName.value="butSubmit";
  return "HrmATDDptnOrderGetButtonAction.do";
}
function doGetInsertData()
{
}

function invalidEmail(form)
  {
 	}


</script>