<%@ 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="HrmSepOrderForm" action="HrmSepOrderBaseAction" type="wenrgise.hrms.webtier.form.HrmSepOrderForm">
<bean:define id="ParentForm" name="HrmSepOrderForm" 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.HrmSepOrder.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.HrmSepOrder.subHeader1" /></TD>
            </TR>
            <TR>
                  <TD colspan=6 bgColor=#4682b4><IMG height=1 src="../includes/images/pixel.gif" width=1 border=0></TD>
            </TR>
            
            <TR height="6">
                  <TD colspan=6 ></TD>
            </TR>
            
            <tr>
                <td class="labelText"><bean:message key="hrm.HrmSepApplication.applicationNo" /></td>
                <td ><html:text  property="applicationNo" altKey="hrm.HrmSepApplication.applicationNo" maxlength="40" size="23" styleClass="required" readonly="true" onchange="doChangeHeader();" /><enrgise:img height="16" name="HrmSepOrderForm" align="center"  src="../includes/images/lov.jpg" property="butApplicationNo" onclick="return ShowApplnNo();" /></td>
                <td class="labelText"><bean:message key="hrm.HrmSepApplication.dateApplied" /></td>
                <td><html:text  property="dateApplied" titleKey="hrm.HrmSepApplication.dateApplied" size="26" styleClass="locked" readonly="true" onchange="doChangeHeader();" /></td>             
                <td class="labelText"><bean:message key="hrm.HrmSepApplication.initiatedBy" /></td>
                <td><html:select property="initiatedBy" alt="initiatedBy"  styleClass="locked" disabled="true" onchange="doChangeHeader();" >
                    <html:option value="" ><bean:message   key="hrm.pleaseSelect" /></html:option>      
                    <html:option value="S" > <bean:message key="hrm.HrmSepApplication.self" /></html:option>
                    <html:option value="O" > <bean:message key="hrm.HrmSepApplication.office" /></html:option>
                   </html:select></td> 
                    
            </tr>
            
            <tr>
                <td class="labelText"><bean:message key="hrm.HrmSepApplication.employeeNo" /></td>
                <td ><html:text  property="employeeNo" altKey="hrm.HrmSepApplication.employeeNo" maxlength="40" size="26" styleClass="locked" readonly="true" onchange="doChangeHeader();" /></td>
                <td class="labelText"><bean:message key="hrm.HrmSepApplication.employeeName" /></td>
                <td ><html:text  property="employeeName" altKey="hrm.HrmSepApplication.employeeName" maxlength="40" size="26" styleClass="locked" readonly="true" onchange="doChangeHeader();" /></td>
                <td class="labelText"><bean:message key="hrm.HrmSepApplication.sepCat" /></td>
                <td ><html:text  property="sepCat" altKey="hrm.HrmSepApplication.sepCat" maxlength="40" size="26" styleClass="locked" readonly="true" onchange="doChangeHeader();" /></td>
            </TR>
            
            <tr>
                <td class="labelText"><bean:message key="hrm.HrmSepApplication.reqSepDate" /></td>
                <td><html:text  property="reqSepDate" titleKey="hrm.HrmSepApplication.reqSepDate" size="26" styleClass="locked" readonly="true" onchange="doChangeHeader();" /></td>             
                <td class="labelText"><bean:message key="hrm.HrmSepApplication.reason" /></td>
                <td><html:text  property="reason" titleKey="hrm.HrmSepApplication.reason" size="26" styleClass="locked" readonly="true" onchange="doChangeHeader();" /></td>             
            </TR>
            
            
            <TR>
                  <TD class=subHeader colspan=6><bean:message key="hrm.HrmSepOrder.subHeader2" /></TD>
            </TR>
            <TR>
                  <TD colspan=6 bgColor=#4682b4><IMG height=1 src="../includes/images/pixel.gif" width=1 border=0></TD>
            </TR>
            
            <TR height="6">
                  <TD colspan=6 ></TD>
            </TR>
            
            <tr>
                <td class="labelText"><bean:message key="hrm.HrmSepOrder.orderNo" /></td>
                <td ><enrgise:text  property="orderNo" titleKey="hrm.HrmSepOrder.orderNo" maxlength="40" size="23" styleClass="required" disabledClass="locked" onchange="doChangeHeader();" /><enrgise:img height="16" name="HrmSepOrderForm" align="center"  src="../includes/images/lov.jpg" property="butOrderNo" onclick="return ShowOrderNo();" /></td>
               
                <td class="labelText"><bean:message key="hrm.HrmSepOrder.orderDate" /></td>
                <td><html:text  property="orderDate" titleKey="hrm.HrmSepOrder.orderDate" size="23" styleClass="required" name="HrmSepOrderForm" onchange="doChangeHeader();" readonly="true" /><enrgise:img  width="15" height="19" align="top" styleClass="icon" name="HrmSepOrderForm" src="../includes/images/cal.gif"  property="butOrderDate" onclick="showCalendar('orderDate',this)"  /></td>             
            </tr>
            
            <tr>
                <td class="labelText"><bean:message key="hrm.HrmSepApplication.actSepDate" /></td>
                <td ><html:text  property="actSepDate" altKey="hrm.HrmSepApplication.actSepDate" maxlength="40" size="23" styleClass="locked" readonly="true" onchange="doChangeHeader();" /><enrgise:img  width="15" height="19" align="top" styleClass="icon" name="HrmSepOrderForm" src="../includes/images/cal.gif"  property="butActSepDate" onclick="showCalendar('actSepDate',this)"  /></td>
                <td class="labelText"><bean:message key="hrm.HrmSepApplication.approvedBy" /></td>
                <td ><html:text  property="approvedBy" altKey="hrm.HrmSepApplication.approvedBy" maxlength="40" size="23" styleClass="required" readonly="true" onchange="doChangeHeader();" /><enrgise:img height="16" name="HrmSepOrderForm" align="center"  src="../includes/images/lov.jpg" property="butApprovedBy" onclick="return ShowApproverNo();" /></td>
                <td class="labelText"><bean:message key="hrm.HrmSepApplication.remarks" /></td>
                <td ><enrgise:textarea  property="remarks" altKey="hrm.HrmSepApplication.remarks"  cols="28" rows="2" styleClass="optional" disabledClass="locked" onchange="doChangeHeader();" /></td>
            </TR>
            
            
            <tr height="15">
                <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="HrmSepOrderForm" property="screenName" value="HrmSepOrder" />
<html:hidden name="HrmSepOrderForm" property="forwardedPage" />
<html:hidden name="HrmSepOrderForm" property="positionRequested"  />
<html:hidden name="HrmSepOrderForm" property="screenMode" />


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

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

<html:hidden property="orderNoId" name="HrmSepOrderForm"  />
<html:hidden property="applnId" name="HrmSepOrderForm"  />
<html:hidden property="approverId" name="HrmSepOrderForm"  />
<html:hidden property="empId" name="HrmSepOrderForm"  />
<html:hidden property="sepCatId" name="HrmSepOrderForm"  />

<html:hidden property="userPageRequested" name="HrmSepOrderForm" />
<html:hidden property="userPositionRequested" name="HrmSepOrderForm" />
<html:hidden property="pageRequested" name="HrmSepOrderForm" />
<html:hidden property="txtIndex" name="HrmSepOrderForm"  />
<html:hidden property="headerPrimaryKey" name="HrmSepOrderForm" />

<html:hidden property="headerDataChanged" name="HrmSepOrderForm"  />
<html:hidden property="detailDataChanged" name="HrmSepOrderForm"  />
<html:hidden property="buttonName" name="HrmSepOrderForm"  />
<html:hidden property="firstLoad" name="HrmSepOrderForm"  />
</html:form>
</body>
</html:html>
      
<script language="javascript">


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


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

function doOnLoad()
{
  if(document.forms[0].firstLoad.value!="false")
  {
    return  "HrmSepOrderOnLoadAction.do"; 
  }
}

function doInsertMode()
{

  return "HrmSepOrderNewModeAction.do";
}


function doExecute()
{
  return "HrmSepOrderGetHeaderAction.do";
}
function doDelete()
{
  return "HrmSepOrderDeleteAction.do";
}
function doRefresh()
{
  return "HrmSepOrderRefreshAction.do";
}
function doPrevHeader()
{
  return "HrmSepOrderGetNextHeaderAction.do"; 
}
function doNextHeader()
{
  return "HrmSepOrderGetNextHeaderAction.do"; 
}
function doJumpHeader()
{
  return "HrmSepOrderFirstGetNextHeaderAction.do"; 
}
function doGetDetail()
{
  return "HrmSepOrderGetDetailAction.do";
}
function doAddRow()
{
   return "HrmSepOrderAddRowAction.do"; 
}
function doDelRow()
{
   return "HrmSepOrderDeleteRowAction.do";  
}
function doExit()
{
   return "HrmSepOrderExitAction.do";  
}
function doGetDetailTableName()
{
  return "HrmSepOrder";
}
function doPrevDetail()
{
  return "HrmSepOrderGetDetailPageAction.do";  
}
function doNextDetail()
{
  return "HrmSepOrderGetDetailPageAction.do";
}
function doJumpDetail()
{
  return  "HrmSepOrderGetDetailPageAction.do"; 
}
function doSave()
{
  return "HrmSepOrderSaveAction.do";
}
function ShowApplnNo()
{
  document.forms[0].lovKey.value = "SepOrdApplnNo" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
  document.forms[0].txtSearchFields.value = "hrm.HrmSepOrder.applnNo";
  document.forms[0].txtDisplayFields.value = "applnId,applicationNo,dateApplied,initiatedBy,empId,employeeNo,employeeName,sepCatId,sepCat,reqSepDate,reason";
  document.forms[0].multipleFlag.value = "false";
  showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmSepOrderForm');
  return true;
}
function ShowOrderNo()
{
    document.forms[0].lovKey.value = "SepOrderNo" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
    document.forms[0].txtSearchFields.value = "hrm.HrmSepOrder.orderNo";
    document.forms[0].txtDisplayFields.value = "orderNoId,orderNo,orderDate";
    document.forms[0].multipleFlag.value = "false";
    showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmSepOrderForm');
    return true;
}

function ShowApproverNo()
{
    document.forms[0].lovKey.value = "SepApprNo" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
    document.forms[0].txtSearchFields.value = "hrm.HrmSepApplication.employeeNo,hrm.HrmSepApplication.employeeName";
    document.forms[0].txtDisplayFields.value = "approverId,approvedBy";
    document.forms[0].multipleFlag.value = "false";
    showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmSepOrderForm');
    return true;
}


</script>