<%@ 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="HrmATDTransChrgRptForm" action="HrmATDTransChrgRptBaseAction" type="wenrgise.hrms.webtier.form.HrmATDTransChrgRptForm">
<bean:define id="ParentForm" name="HrmATDTransChrgRptForm" 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.HrmChargeReport.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.HrmChargeReport.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.HrmChargeReport.chargeType" /></td>
                <td><enrgise:select property="chargeType" name="HrmATDTransChrgRptForm" alt="chargeType"  styleClass="required" disabledClass="locked" onchange="doChangeHeader();doBaseValidate();"  >
                      <enrgise:option value="" ><bean:message   key="hrm.pleaseSelect" /></enrgise:option>    
                      <enrgise:option value="H" > <bean:message key="hrm.HrmChargeReport.handOver" /></enrgise:option>
                      <enrgise:option value="T" > <bean:message key="hrm.HrmChargeReport.takeOver" /></enrgise:option>
                    </enrgise:select></td> 
                <td class="labelText"><bean:message key="hrm.HrmChargeReport.trnOrderNo" /></td>
                <td><enrgise:text  property="trnOrderNo" name="HrmATDTransChrgRptForm" titleKey="hrm.HrmChargeReport.trnOrderNo" size="23" styleClass="required" disabledClass="required" onchange="doChangeHeader();doOnChangeLov();" /><enrgise:img height="16" align="center" styleClass="icon" name="HrmATDTransChrgRptForm" src="../includes/images/lov.jpg" property="butTrnOrderNo" onclick=" return ShowTransferNo()" /></td>
                <td class="labelText"><bean:message key="hrm.HrmChargeReport.empName" /></td>
                <td><enrgise:text  property="empName" name="HrmATDTransChrgRptForm" titleKey="hrm.HrmChargeReport.empName" size="26" styleClass="optional" disabledClass="locked" /></td>
                
            </tr>
            <tr>
                 <td class="labelText"><bean:message key="hrm.HrmChargeReport.transferDate" /></td>
                 <td><enrgise:text  property="transferDate" name="HrmATDTransChrgRptForm" titleKey="hrm.HrmChargeReport.transferDate" size="26" styleClass="required" disabledClass="locked" onchange="doChangeHeader();" /></td>
                 <td class="labelText"><bean:message key="hrm.HrmChargeReport.fromSiteCode" /></td>
                 <td ><enrgise:text  property="fromSiteCode" name="HrmATDTransChrgRptForm" titleKey="hrm.HrmChargeReport.fromSiteCode" size="26" styleClass="optional" disabledClass="locked" /></td>
                 <td class="labelText"><bean:message key="hrm.HrmChargeReport.toSiteCode" /></td>
                 <td ><enrgise:text  property="toSiteCode" name="HrmATDTransChrgRptForm" titleKey="hrm.HrmChargeReport.toSiteCode" size="26" styleClass="optional" disabledClass="locked" /></td>
                 
            </tr>
            
            
            <tr>
                 <td class="labelText"><bean:message key="hrm.HrmChargeReport.fromDesignation" /></td>
                 <td ><html:text  property="fromDesignation" name="HrmATDTransChrgRptForm" titleKey="hrm.HrmChargeReport.fromDesignation" size="26" styleClass="locked" readonly="true" /></td>
                 <td class="labelText"><bean:message key="hrm.HrmChargeReport.toDesignation" /></td>
                 <td ><html:text  property="toDesignation" name="HrmATDTransChrgRptForm" titleKey="hrm.HrmChargeReport.toDesignation" size="26" styleClass="locked" readonly="true" /></td>
                 <td class="labelText"><bean:message key="hrm.HrmChargeReport.orderType" /></td>
                 <td><html:text  property="orderType" name="HrmATDTransChrgRptForm" titleKey="hrm.HrmChargeReport.orderType" size="26" styleClass="locked" onchange="doChangeHeader();" readonly="true" /></td>              
                 
             </tr>
             <tr>
                 <td class="labelText"><bean:message key="hrm.HrmChargeReport.fromWorkGroup" /></td>
                 <td ><html:text  property="fromWorkGroup" name="HrmATDTransChrgRptForm" titleKey="hrm.HrmChargeReport.fromWorkGroup" size="26" styleClass="locked" readonly="true" /></td>
                 <td class="labelText"><bean:message key="hrm.HrmChargeReport.toWorkGroup" /></td>
                 <td ><html:text  property="toWorkGroup" name="HrmATDTransChrgRptForm" titleKey="hrm.HrmChargeReport.toWorkGroup" size="26" styleClass="locked" readonly="true" /></td>
             </tr>
             <tr>     
                 
                 <td class="labelText"><bean:message key="hrm.HrmChargeReport.chargeCode" /></td>
                 <td ><enrgise:text  property="chargeCode" name="HrmATDTransChrgRptForm" titleKey="hrm.HrmChargeReport.chargeCode" maxlength="20" size="26" styleClass="required" disabledClass="locked" onchange="doChangeHeader();" /></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> 
                 <td class="labelText"><bean:message key="hrm.HrmChargeReport.handOverDate" /></td>
                 <td><html:text  property="handOverDate" name="HrmATDTransChrgRptForm" titleKey="hrm.HrmChargeReport.handOverDate" size="23" styleClass="required" onchange="doChangeHeader();" readonly="true" /><enrgise:img width="16" height="19" align="top" styleClass="icon" name="HrmATDTransChrgRptForm" src="../includes/images/cal.gif" property="butHandOverDate"   onclick="showCalendar('handOverDate',this)" /></td>              
                  
            </tr>
             <tr>
                 <td class="labelText"><bean:message key="hrm.HrmChargeReport.noonFlag" /></td>
                 <td><enrgise:select property="noonFlag" name="HrmATDTransChrgRptForm" alt="noonFlag"  styleClass="optional" disabledClass="locked" onchange="doChangeHeader();"  >
                  <enrgise:option value="N" > <bean:message key="hrm.HrmChargeReport.na" /></enrgise:option>
                  <enrgise:option value="F" > <bean:message key="hrm.HrmChargeReport.foreNoon" /></enrgise:option>
                  <enrgise:option value="A" > <bean:message key="hrm.HrmChargeReport.afterNoon" /></enrgise:option>
                  </enrgise:select></td> 
                  <td class="labelText"><bean:message key="hrm.HrmChargeReport.handoverTakeover" /></td>
                 <td><html:text  property="handoverTakeover" titleKey="hrm.HrmChargeReport.handoverTakeover" size="23" styleClass="required" readonly="true" onchange="doChangeHeader();" /><enrgise:img height="16" align="center" src="../includes/images/lov.jpg" name="HrmATDTransChrgRptForm"  property="butEmployee" onclick="return ShowEmployee()" /></td>
                 <td class="labelText"><bean:message key="hrm.HrmChargeReport.remarks" /></td>
                 <td><enrgise:textarea  property="remarks" name="HrmATDTransChrgRptForm" titleKey="hrm.HrmChargeReport.remarks" cols="28" 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="HrmATDTransChrgRptForm"  property="screenMode"  />
<html:hidden name="HrmATDTransChrgRptForm"  property="screenName" value="HrmATDTransChrgRpt" />
<html:hidden name="HrmATDTransChrgRptForm"  property="forwardedPage" />
<html:hidden property="positionRequested" name="HrmATDTransChrgRptForm" />

<html:hidden property="userPageRequested"  />
<html:hidden property="userPositionRequested" />
<html:hidden property="pageRequested" />
<html:hidden property="buttonName" name="HrmATDTransChrgRptForm"  />
<html:hidden property="lovKey" name="HrmATDTransChrgRptForm"  />
<html:hidden property="txtSearchFields" name="HrmATDTransChrgRptForm"  />
<html:hidden property="txtDisplayFields" name="HrmATDTransChrgRptForm"  />
<html:hidden property="txtIndex" name="HrmATDTransChrgRptForm"  />
<html:hidden property="headerDataChanged" name="HrmATDTransChrgRptForm"  />
<html:hidden property="detailDataChanged" name="HrmATDTransChrgRptForm"  />


<html:hidden property="trnOrderNoId" name="HrmATDTransChrgRptForm" />
<html:hidden property="chargeCodeId" name="HrmATDTransChrgRptForm" />
<html:hidden property="fromDesigId" name="HrmATDTransChrgRptForm" />
<html:hidden property="toDesigId" name="HrmATDTransChrgRptForm" />
<html:hidden property="fromSiteId" name="HrmATDTransChrgRptForm" />
<html:hidden property="toSiteId" name="HrmATDTransChrgRptForm" />
<html:hidden property="empNameId" name="HrmATDTransChrgRptForm" />

<html:hidden property="empNo" name="HrmATDTransChrgRptForm" />
<html:hidden property="handoverTakeoverId" name="HrmATDTransChrgRptForm" />

<html:hidden property="trnOrdrDtlId" name="HrmATDTransChrgRptForm" />
<html:hidden property="handTakeEmpNo" name="HrmATDTransChrgRptForm" />

<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 "HrmATDTransChrgRptQueryModeAction.do";
}
function doOnChangeLov(lovName)
{
   if(lovName=="TrnsfrOrderNoHrmATDTransChrgRptQ")
    {
      doBaseValidate();
    }
}

function doInsertMode()
{

  return "HrmATDTransChrgRptNewModeAction.do";
}


function doExecute()
{

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

  return "HrmATDTransChrgRptExitAction.do";
}

function doSave()
{

  return "HrmATDTransChrgRptSaveAction.do";
  
}

function doDelete()
{

  return "HrmATDTransChrgRptDeleteAction.do";
  
}

function doRefresh()
{

  return "HrmATDTransChrgRptRefreshAction.do";
  
}

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

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

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

function doGetDetail()
{

  return "HrmATDTransChrgRptGetDetailAction.do";
}

function doAddRow()
{

  return "HrmATDTransChrgRptAddRowAction.do"; 
}

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

function doGetDetailTableName()
{
  return "HrmATDTransChrgRpt";
}

function doPrevDetail()
{

  return "HrmATDTransChrgRptGetDetailPageAction.do";  
}

function doNextDetail()
{

  return "HrmATDTransChrgRptGetDetailPageAction.do";
}

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


function ShowTransferNo()
{
        document.forms[0].lovKey.value = "TrnsfrOrderNo" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmChargeReport.trnOrderNo";
        document.forms[0].txtDisplayFields.value = "trnOrderNoId,trnOrderNo,trnOrdrDtlId,empName,transferDate,fromSiteId,fromSiteCode,toSiteId,toSiteCode,empNameId,orderType,fromDesignation,toDesignation,fromWorkGroup,toWorkGroup";
        document.forms[0].queryParam.value="chargeType="+document.forms[0].chargeType.value;
        document.forms[0].multipleFlag.value = "false";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmATDTransChrgRptForm');
        return true;
}

function ShowChargeCode()
{
        document.forms[0].lovKey.value = "ChargeCode" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmChargeReport.chargeCode";
        document.forms[0].txtDisplayFields.value = "chargeCodeId,chargeCode";
        document.forms[0].multipleFlag.value = "false";
        document.forms[0].queryParam.value="trnOrderNoId="+document.forms[0].trnOrderNoId.value ;
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmATDTransChrgRptForm');
        return true;
      
}

function ShowEmployee()
{
        document.forms[0].lovKey.value = "TransChrgRptHandTakeOver" + 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 = "handoverTakeoverId,handTakeEmpNo,handoverTakeover";
        document.forms[0].multipleFlag.value = "false";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmATDTransChrgRptForm');
        return true;
        
}
function doGetInsertData()
{
  
}

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

function doOnLoad()
{
  if(document.forms[0].firstLoad.value!="false")
  {
    return  "HrmATDTransChrgRptOnLoadAction.do"; 
  }
}
</script>