<%@ 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" %>
<%@ page errorPage="GenErrorPage.jsp"  %>
<html:html>
<HEAD>
    <html:base />
    <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="HrmOrgWorkGroupMstForm" action="HrmOrgWorkGroupMstBaseAction" type="wenrgise.hrms.webtier.form.HrmOrgWorkGroupMstForm">

<bean:define id="ParentForm" name="HrmOrgWorkGroupMstForm" toScope="request" />
<jsp:include page="GenIconMenu.jsp" flush="true" />




<!--Top Most Blue Bar-->
<TABLE cellSpacing=0 bgColor=#bdd0ef>
    <tr>
        <TD  colSpan=12 class=mainHeader ><bean:message  key="hrm.HrmWorkGroup.heading" /></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 >
        <!--Detail Information Starts -->
         <TR>
            <TD class=subHeader colspan=6>Work Group Details</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.HrmWorkGroup.code" /></td>
              <td><enrgise:text property="code" name="HrmOrgWorkGroupMstForm" size="23" titleKey="hrm.HrmWorkGroup.code" styleClass="required" disabledClass="locked" maxlength="20" onchange="doChangeHeader();" /><enrgise:img name="HrmOrgWorkGroupMstForm" height="16" align="center" src="../includes/images/lov.jpg" property="butWorkGroupCode" onclick="return ShowWorkGroupCode()" /></td>
              <td class="labelText" ><bean:message key="hrm.HrmWorkGroup.name" /></td>
              <td><enrgise:text property="name" name="HrmOrgWorkGroupMstForm" size="26" titleKey="hrm.HrmWorkGroup.name" styleClass="required" disabledClass="locked" maxlength="40"  onchange="doChangeHeader();" /></td>
              <td class="labelText" ><bean:message key="hrm.HrmWorkGroup.owingSite" /></td>
              <td><html:text property="owingSite" name="HrmOrgWorkGroupMstForm" size="23" titleKey="hrm.HrmWorkGroup.owingSite" styleClass="locked" onchange="doChangeHeader();" readonly="true" /><enrgise:img name="HrmOrgWorkGroupMstForm" height="16" align="center" src="../includes/images/lov.jpg" property="butSiteCode" onclick="return ShowSiteCode()" /></td>
            
        </tr>
        <tr>
              <td class="labelText"  ><bean:message key="hrm.HrmWorkGroup.deptFlag" /></td>
              <td>
              <enrgise:select property="deptFlag" name="HrmOrgWorkGroupMstForm" titleKey="hrm.HrmWorkGroup.deptFlag" styleClass="required" disabledClass="locked" onchange="doChangeHeader();" >
              <enrgise:option value="" ><bean:message  key="hrm.pleaseSelect" /></enrgise:option>
              <enrgise:option value="D" ><bean:message  key="hrm.HrmWorkGroup.d" /></enrgise:option>
              <enrgise:option value="W" ><bean:message  key="hrm.HrmWorkGroup.w" /></enrgise:option>
              </enrgise:select></td>
              <td class="labelText" ><bean:message key="hrm.HrmWorkGroup.temporaryFlag" />
              <td><enrgise:select property="temporaryFlag" name="HrmOrgWorkGroupMstForm" titleKey="hrm.HrmWorkGroup.temporaryFlag" styleClass="required" disabledClass="locked"  onchange="doChangeHeader();" >
              <enrgise:option value="" ><bean:message  key="hrm.pleaseSelect" /></enrgise:option>
              <enrgise:option value="Y" ><bean:message  key="hrm.HrmWorkGroup.y" /></enrgise:option>
              <enrgise:option value="N" ><bean:message  key="hrm.HrmWorkGroup.n" /></enrgise:option>
              </enrgise:select></td>
              <td class="labelText" ><bean:message key="hrm.HrmWorkGroup.costCentre" /></td>
              <td><html:text property="costCentre" name="HrmOrgWorkGroupMstForm" size="23" titleKey="hrm.HrmWorkGroup.costCentre" styleClass="locked" onchange="doChangeHeader();" readonly="true" /><enrgise:img name="HrmOrgWorkGroupMstForm" height="16" align="center" src="../includes/images/lov.jpg" property="butCostCode" onclick="return ShowCostCode()" /></td>
                 </tr>
          <!--Address Information Starts-->
         <TR>
            <TD class=subHeader colspan=6>Address Information</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.HrmWorkGroup.contactEmployeeNo" /></td>
              <td><html:text  property="contactEmployeeNo" name="HrmOrgWorkGroupMstForm" titleKey="hrm.HrmWorkGroup.contactEmployeeNo" size="23" styleClass="locked" onchange="doChangeHeader();" readonly="true" /><enrgise:img name="HrmOrgWorkGroupMstForm" height="16" align="center" src="../includes/images/lov.jpg" property="butContactEmployeeNo" onclick="return ShowContactEmployee()" /></td>             
              <td class="labelText" ><bean:message key="hrm.HrmWorkGroup.phone" /></td>
              <td><enrgise:text  property="phone" name="HrmOrgWorkGroupMstForm" titleKey="hrm.HrmWorkGroup.phone" maxlength="11" size="26" styleClass="optional" disabledClass="locked" onkeypress="isInteger(event);" onchange="doChangeHeader();" /></td>              
              <td class="labelText"  ><bean:message key="hrm.HrmWorkGroup.eMail" /></td>
              <td><enrgise:text  property="EMail" name="HrmOrgWorkGroupMstForm" titleKey="hrm.HrmWorkGroup.eMail" maxlength="40" size="26" styleClass="optional" disabledClass="locked" onchange="doChangeHeader();" /></td>              
              
        </tr>
        <tr>
              <td class="labelText" ><bean:message key="hrm.HrmWorkGroup.fax" /></td>
              <td><enrgise:text  property="fax" name="HrmOrgWorkGroupMstForm" titleKey="hrm.HrmWorkGroup.fax" maxlength="11" size="26" styleClass="optional" disabledClass="locked" onkeypress="isInteger(event);" onchange="doChangeHeader();" /></td>              
              <td class="labelText"><bean:message key="hrm.HrmWorkGroup.contactAddress" /></td>
              <td colspan="3"><enrgise:textarea  property="contactAddress" name="HrmOrgWorkGroupMstForm" titleKey="hrm.HrmWorkGroup.contactAddress" cols="94" rows="2" styleClass="optional" disabledClass="locked" onchange="doChangeHeader();" /></td>              

         </tr>
           <!-- Doc Detail-->
           <TR>
            <TD class=subHeader colspan=6>Document Details  Information</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.HrmWorkGroup.refDocNo" /></td>
            <td><enrgise:text property="refDocNo" name="HrmOrgWorkGroupMstForm" size="26" maxlength="10" titleKey="hrm.HrmWorkGroup.refDocNo" styleClass="optional" disabledClass="locked" onchange="doChangeHeader();" /></td>
            <td class="labelText" ><bean:message key="hrm.HrmWorkGroup.creationDate" /></td>
            <td><html:text property="creationDate" name="HrmOrgWorkGroupMstForm" size="23" titleKey="hrm.HrmWorkGroup.creationDate" styleClass="optional" onchange="doChangeHeader();" readonly="true" /><enrgise:img src="../includes/images/cal.gif"  width="15" height="19" align="top" styleClass="icon" name="HrmOrgWorkGroupMstForm" property="butCreationDate"  onclick="showCalendar('creationDate',this)" /></td>
            <td class="labelText" ><bean:message key="hrm.HrmWorkGroup.documentDate" /></td>
            <td><html:text property="documentDate" name="HrmOrgWorkGroupMstForm" size="23" titleKey="hrm.HrmWorkGroup.documentDate" styleClass="optional" onchange="doChangeHeader();" readonly="true" /><enrgise:img src="../includes/images/cal.gif"  width="15" height="19" align="top" styleClass="icon" name="HrmOrgWorkGroupMstForm" property="butDocumentDate"  onclick="showCalendar('documentDate',this)" /></td>
        </tr>
        <tr>       
            <td class="labelText" ><bean:message key="hrm.HrmWorkGroup.endDate" /></td>
            <td><html:text property="endDate" name="HrmOrgWorkGroupMstForm" size="23" titleKey="hrm.HrmWorkGroup.endDate" styleClass="optional" onchange="doChangeHeader();" readonly="true" /><enrgise:img src="../includes/images/cal.gif"  width="15" height="19" align="top" styleClass="icon" name="HrmOrgWorkGroupMstForm" property="butEndDate"  onclick="showCalendar('endDate',this)" /></td>
            <td class="labelText" ><bean:message key="hrm.HrmWorkGroup.specialRemarks" /></td>
            <td colspan="3"><enrgise:textarea property="specialRemarks" name="HrmOrgWorkGroupMstForm" titleKey="hrm.HrmWorkGroup.specialRemarks"  cols="94" rows="2" styleClass="optional" disabledClass="locked" onchange="doChangeHeader();" /></td>
        </tr>
        
        <!-- Other Info-->
        <!--<TR>
            <TD class=subHeader colspan=6>Other Information</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.HrmWorkGroup.hierarchyLevel" /></td>-->
                <td><html:hidden  property="hierarchyLevel" name="HrmOrgWorkGroupMstForm" titleKey="hrm.HrmWorkGroup.hierarchyLevel" /></td>              
                <!--<td class="labelText"><bean:message key="hrm.HrmWorkGroup.parentGroupCode" /></td>-->
                <td ><html:hidden  property="parentGroupCode" name="HrmOrgWorkGroupMstForm" titleKey="hrm.HrmWorkGroup.parentGroupCode" /><!--<enrgise:img name="HrmOrgWorkGroupMstForm" height="16" align="center" src="../includes/images/lov.jpg" property="butParentGroupCode" onclick="return ShowParentCode()" /></td>-->
                <td colspan="2"></td>
          </tr>
           <TR height="10">
            <TD colspan=6 ></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-->
    
</TBODY>
</TABLE>

<!-- Container Table Ends -->

<html:hidden name="HrmOrgWorkGroupMstForm"  property="workGroupCodeId" />
<html:hidden name="HrmOrgWorkGroupMstForm"  property="siteId" />
<html:hidden name="HrmOrgWorkGroupMstForm"  property="owingSiteCode" />
<html:hidden name="HrmOrgWorkGroupMstForm"  property="costId" />
<html:hidden name="HrmOrgWorkGroupMstForm"  property="costCode" />
<html:hidden name="HrmOrgWorkGroupMstForm"  property="budgetId" />
<html:hidden name="HrmOrgWorkGroupMstForm"  property="budgetCodeName" />
<html:hidden name="HrmOrgWorkGroupMstForm"  property="parentGroupCodeId" />
<html:hidden name="HrmOrgWorkGroupMstForm"  property="parentGroupName" />
<html:hidden name="HrmOrgWorkGroupMstForm"  property="contactEmployeeId" />
<html:hidden name="HrmOrgWorkGroupMstForm"  property="contactEmployee" />

<html:hidden property="screenName" name="HrmOrgWorkGroupMstForm" value="HrmOrgWorkGroupMst" />
<html:hidden name="HrmOrgWorkGroupMstForm"  property="forwardedPage" />
<html:hidden property="positionRequested" name="HrmOrgWorkGroupMstForm" />
<html:hidden property="screenMode" name="HrmOrgWorkGroupMstForm" />


<html:hidden property="userPageRequested" name="HrmOrgWorkGroupMstForm" />
<html:hidden property="userPositionRequested" name="HrmOrgWorkGroupMstForm" />
<html:hidden property="pageRequested" name="HrmOrgWorkGroupMstForm" />
<!-- Hidden Fields for LOV -->
<html:hidden property="lovKey" name="HrmOrgWorkGroupMstForm"  />
<html:hidden property="txtSearchFields" name="HrmOrgWorkGroupMstForm"  />
<html:hidden property="txtDisplayFields" name="HrmOrgWorkGroupMstForm"  />
<html:hidden property="txtIndex" name="HrmOrgWorkGroupMstForm"  />
<html:hidden property="headerDataChanged" name="HrmOrgWorkGroupMstForm"  />
<html:hidden property="parentHierarchyLevel" name="HrmOrgWorkGroupMstForm"  />

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

</html:form>
</body>
</html:html>
                
<script language="javascript">
                        
function doQueryMode()
{

  return "HrmOrgWorkGroupMstQueryModeAction.do";
}


function doInsertMode()
{

  return "HrmOrgWorkGroupMstNewModeAction.do";
}


function doExecute()
{

  return "HrmOrgWorkGroupMstGetHeaderAction.do";
}

function doSave()
{

  return "HrmOrgWorkGroupMstSaveAction.do";
  
}

function doDelete()
{

  return "HrmOrgWorkGroupMstDeleteAction.do";
  
}

function doRefresh()
{

  return "HrmOrgWorkGroupMstRefreshAction.do";
  
}

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

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

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

function doGetDetail()
{

  return "HrmOrgWorkGroupMstGetDetailAction.do";
}

function doAddRow()
{

  return "HrmOrgWorkGroupMstAddRowAction.do"; 
}


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

function doGetDetailTableName()
{
  return "tableName";
}

function doPrevDetail()
{

  return "HrmOrgWorkGroupMstGetDetailPageAction.do";  
}

function doNextDetail()
{

  return "HrmOrgWorkGroupMstGetDetailPageAction.do";
}

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

function doJumpDetail()
{
  return  "HrmOrgWorkGroupMstGetDetailPageAction.do"; 
}
              
function ShowWorkGroupCode()
{
        document.forms[0].lovKey.value = "WorkGroupCode" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmWorkGroup.code,hrm.HrmWorkGroup.name";
        document.forms[0].txtDisplayFields.value = "workGroupCodeId,code,name";
        document.forms[0].multipleFlag.value="false";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmOrgWorkGroupMstForm');
        return true;
}
function ShowSiteCode()
{
        document.forms[0].lovKey.value = "WorkGroupSiteCode" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmWorkGroup.code,hrm.HrmWorkGroup.name";
        document.forms[0].txtDisplayFields.value = "siteId,owingSiteCode,owingSite";
        document.forms[0].multipleFlag.value="false";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmOrgWorkGroupMstForm');
        return true;
}
function ShowCostCode()
{
        document.forms[0].lovKey.value = "CostCode" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmWorkGroup.code,hrm.HrmWorkGroup.name";
        document.forms[0].txtDisplayFields.value = "costId,costCode,costCentre";
        document.forms[0].multipleFlag.value="false";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmOrgWorkGroupMstForm');
        return true;
}
function ShowBudgetCode()
{
        document.forms[0].lovKey.value = "BudgetCode" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmWorkGroup.code,hrm.HrmWorkGroup.name";
        document.forms[0].txtDisplayFields.value = "budgetId,budgetCodeName,budgetCode";
        document.forms[0].multipleFlag.value="false";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmOrgWorkGroupMstForm');
        return true;
}
function ShowParentCode()
{
        document.forms[0].lovKey.value = "ParentCode" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmWorkGroup.name";
        document.forms[0].txtDisplayFields.value = "parentGroupCodeId,parentGroupName,parentGroupCode,parentHierarchyLevel";
        document.forms[0].queryParam.value = "hierarchyLevel="+ document.forms[0].hierarchyLevel.value;
        document.forms[0].multipleFlag.value="false";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmOrgWorkGroupMstForm');
        return true;
}
function ShowContactEmployee()
{
        document.forms[0].lovKey.value = "ContactEmployeeNo" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmWorkGroup.empNo,hrm.HrmWorkGroup.name";
        document.forms[0].txtDisplayFields.value = "contactEmployeeId,contactEmployee,contactEmployeeNo";
        document.forms[0].multipleFlag.value="false";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmOrgWorkGroupMstForm');
        return true;
}              
</script>
              
              
              
              
              
              
              
              
              
              
              
              
              
              
              
              
              
              
              
   