<%@ 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="HrmATDDptnChrgRptForm" action="HrmATDDptnChrgRptBaseAction" type="wenrgise.hrms.webtier.form.HrmATDDptnChrgRptForm">
<bean:define id="ParentForm" name="HrmATDDptnChrgRptForm" 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.HrmDeputChargeReport.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.HrmDeputChargeReport.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.HrmDeputChargeReport.dptOrderNo" /></td>
                <td><enrgise:text  property="dptOrderNo" name="HrmATDDptnChrgRptForm" titleKey="hrm.HrmDeputChargeReport.dptOrderNo" maxlength="20" alt="N" size="23" styleClass="required" disabledClass="required" onchange="doChangeHeader();" /><enrgise:img height="16" align="center" styleClass="icon" name="HrmATDDptnChrgRptForm" src="../includes/images/lov.jpg" property="butDptOrderNo" onclick=" return ShowDeputationNo()" /></td>
                <td class="labelText"><bean:message key="hrm.HrmDeputChargeReport.empName" /></td>
                <td><html:text  property="empName" name="HrmATDDptnChrgRptForm" titleKey="hrm.HrmDeputChargeReport.empName" maxlength="40" size="26" styleClass="locked" readonly="true" /></td>
                <td class="labelText"><bean:message key="hrm.HrmDeputChargeReport.deputationDate" /></td>
                <td><html:text  property="deputationDate" name="HrmATDDptnChrgRptForm" titleKey="hrm.HrmDeputChargeReport.deputationDate" maxlength="11" size="26" styleClass="locked" onchange="doChangeHeader();" readonly="true" /></td>
            </tr>
            <tr>
                 <td class="labelText"><bean:message key="hrm.HrmDeputChargeReport.chargeCode" /></td>
                 <td ><enrgise:text  property="chargeCode" name="HrmATDDptnChrgRptForm" titleKey="hrm.HrmDeputChargeReport.chargeCode" maxlength="15" size="23" alt="N" styleClass="required" disabledClass="locked" onchange="doChangeHeader();" /><enrgise:img height="16" align="center" styleClass="icon" name="HrmATDDptnChrgRptForm" src="../includes/images/lov.jpg" property="butChargeCode" onclick=" return ShowChargeCode()" /></td>
                 <td class="labelText"><bean:message key="hrm.HrmDeputChargeReport.chargeType" /></td>
                 <td><enrgise:select property="chargeType" name="HrmATDDptnChrgRptForm" alt="chargeType"  styleClass="optional" disabledClass="locked" onchange="doChangeHeader();"  >
                    <enrgise:option value="" ><bean:message   key="hrm.pleaseSelect" /></enrgise:option>      
                    <enrgise:option value="H" > <bean:message key="hrm.HrmDeputChargeReport.handOver" /></enrgise:option>
                    <enrgise:option value="T" > <bean:message key="hrm.HrmDeputChargeReport.takeOver" /></enrgise:option>
                  </enrgise:select></td> 
                <td class="labelText"><bean:message key="hrm.HrmChargeReport.chargeStatus" /></td>
                <td><html:select property="chargeStatus" 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.HrmChargeReport.fromWorkGroupCode" /></td>
                 <td ><html:text  property="fromWrkGrpCode" name="HrmATDDptnChrgRptForm" titleKey="hrm.HrmChargeReport.fromWorkGroupCode" maxlength="10" size="26" styleClass="locked" readonly="true" /></td>
                 <td class="labelText"><bean:message key="hrm.HrmChargeReport.fromSiteCode" /></td>
                 <td ><html:text  property="fromSiteCode" name="HrmATDDptnChrgRptForm" titleKey="hrm.HrmDeputChargeReport.siteCode" maxlength="15" alt="N" size="26" styleClass="locked" readonly="true" /></td>
                    <td class="labelText"><bean:message key="hrm.HrmDeputChargeReport.noonFlag" /></td>
                    <td><enrgise:select property="noonFlag" name="HrmATDDptnChrgRptForm" alt="noonFlag"  styleClass="optional" disabledClass="locked" onchange="doChangeHeader();"  >
                    <enrgise:option value="" ><bean:message   key="hrm.pleaseSelect" /></enrgise:option>      
                    <enrgise:option value="F" > <bean:message key="hrm.HrmDeputChargeReport.foreNoon" /></enrgise:option>
                    <enrgise:option value="A" > <bean:message key="hrm.HrmDeputChargeReport.afterNoon" /></enrgise:option>
                    <enrgise:option value="N" > <bean:message key="hrm.HrmDeputChargeReport.na" /></enrgise:option>
                    </enrgise:select></td> 
                  
            </tr>    
            <tr>
                 <td class="labelText"><bean:message key="hrm.HrmChargeReport.toWorkGroupCode" /></td>
                 <td ><html:text  property="toWrkGrpCode" name="HrmATDDptnChrgRptForm" titleKey="hrm.HrmChargeReport.toWorkGroupCode" maxlength="10" size="26" styleClass="locked" readonly="true"/></td>
                 <td class="labelText"><bean:message key="hrm.HrmChargeReport.toSiteCode" /></td>
                 <td ><html:text  property="toSiteCode" name="HrmATDDptnChrgRptForm" titleKey="hrm.HrmChargeReport.toSiteCode" maxlength="10" size="26" styleClass="locked" readonly="true" /></td>
                 <td class="labelText"><bean:message key="hrm.HrmDeputChargeReport.handOverDate" /></td>
                 <td><html:text  property="handOverDate" name="HrmATDDptnChrgRptForm" titleKey="hrm.HrmDeputChargeReport.handOverDate" maxlength="11" size="23" styleClass="required" onchange="doChangeHeader();" readonly="true" /><enrgise:img width="16" height="19" align="top" styleClass="icon" name="HrmATDDptnChrgRptForm" src="../includes/images/cal.gif" property="butHandOverDate"   onclick="showCalendar('HandOverDate',this)" /></td>              
             
             </tr>
             <tr>
                 <td class="labelText"><bean:message key="hrm.HrmDeputChargeReport.remarks" /></td>
                 <td colspan="3"><enrgise:textarea  property="remarks" name="HrmATDDptnChrgRptForm" titleKey="hrm.HrmDeputChargeReport.remarks" cols="50" alt="AN" rows="2" styleClass="optional" disabledClass="locked" onchange="doChangeHeader();" ></enrgise:textarea>
                 
             </tr>
            
           <tr height="10">
                  <td colspan="6"></td>
           </tr>

       <table cellspacing=0 cellpadding=0 border=0>
        
      <!-- 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="HrmATDDptnChrgRptForm"  property="screenMode"  />
<html:hidden name="HrmATDDptnChrgRptForm"  property="screenName" value="HrmATDDptnChrgRpt" />
<html:hidden name="HrmATDDptnChrgRptForm"  property="forwardedPage" />
<html:hidden property="positionRequested" name="HrmATDDptnChrgRptForm" />
<html:hidden property="buttonName" name="HrmATDDptnChrgRptForm"  />
<html:hidden property="userPageRequested"  />
<html:hidden property="userPositionRequested" />
<html:hidden property="pageRequested" />

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

<html:hidden property="headerDataChanged" name="HrmATDDptnChrgRptForm"  />
<html:hidden property="detailDataChanged" name="HrmATDDptnChrgRptForm"  />

<html:hidden property="depOrdrDtlId" name="HrmATDDptnChrgRptForm" />
<html:hidden property="dptOrderNoId" name="HrmATDDptnChrgRptForm" />
<html:hidden property="fromWrkGrpId" name="HrmATDDptnChrgRptForm" />
<html:hidden property="toWrkGrpId" name="HrmATDDptnChrgRptForm" />
<html:hidden property="fromSiteId" name="HrmATDDptnChrgRptForm" />
<html:hidden property="empId" name="HrmATDDptnChrgRptForm" />
<html:hidden property="toSiteId" name="HrmATDDptnChrgRptForm" />
<html:hidden property="chargeCodeId" name="HrmATDDptnChrgRptForm" />
<html:hidden property="deputType" name="HrmATDDptnChrgRptForm" />
<html:hidden property="firstLoad" name="HrmATDDptnChrgRptForm" />

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

</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()
{

  return "HrmATDDptnChrgRptQueryModeAction.do";
}


function doInsertMode()
{

  return "HrmATDDptnChrgRptNewModeAction.do";
}


function doExecute()
{

  return "HrmATDDptnChrgRptGetHeaderAction.do";
}

function doSave()
{

  return "HrmATDDptnChrgRptSaveAction.do";
  
}

function doDelete()
{

  return "HrmATDDptnChrgRptDeleteAction.do";
  
}

function doRefresh()
{

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

  return "HrmATDDptnChrgRptExitAction.do";
  
}

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

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

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

function doGetDetail()
{

  return "HrmATDDptnChrgRptGetDetailAction.do";
}

function doAddRow()
{

  return "HrmATDDptnChrgRptAddRowAction.do"; 
}

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

function doGetDetailTableName()
{
  return "HrmATDDptnChrgRpt";
}

function doPrevDetail()
{

  return "HrmATDDptnChrgRptGetDetailPageAction.do";  
}

function doNextDetail()
{

  return "HrmATDDptnChrgRptGetDetailPageAction.do";
}

function doJumpDetail()
{
  return  "HrmATDDptnChrgRptGetDetailPageAction.do"; 
}


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

function ShowDeputationNo()
{
        document.forms[0].lovKey.value = "DeputationOrderNo" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmDeputChargeReport.dptOrderNo";
        document.forms[0].txtDisplayFields.value = "dptOrderNoId,dptOrderNo,empName,chargeType,fromWrkGrpCode,toWrkGrpCode,fromSiteCode,toSiteCode,deputationDate,depOrdrDtlId";
        document.forms[0].multipleFlag.value = "false";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmATDDptnChrgRptForm');
        return true;
}

function ShowChargeCode()
{
        document.forms[0].lovKey.value = "DepChargeCode" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmDeputChargeReport.chargeCode";
        document.forms[0].txtDisplayFields.value = "chargeCodeId,chargeCode";
        document.forms[0].multipleFlag.value = "false";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmATDDptnChrgRptForm');
        return true;
}
function doGetInsertData()
{
  
}
function doApprove()
{
  document.forms[0].buttonName.value="butApprove";
 return "HrmATDDptnChrgRptGetButtonAction.do";
}

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

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

</script>