<%@ 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>
	<HEAD>
  <html:base/>
		<TITLE><bean:message key="hrm.title" /></TITLE>
    <jsp:include page="GenIncludes.jsp" />
    </head>
    
<BODY  scroll="auto"  >

<html:form  action="HrmAttEmpAttInBaseAction" name="HrmAttEmpAttInForm" type="wenrgise.hrms.webtier.form.HrmAttEmpAttInForm">
<bean:define id="ParentForm" name="HrmAttEmpAttInForm" 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.HrmAttEmpAttIn.header"/></TD>
  </TR>
</table>
<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>
<!--container table starts -->

 <TABLE cellSpacing=0 cellPadding=0 border=0 >
   <TR>
     <TD class=subHeader colspan=6><bean:message key="hrm.HrmAttEmpAttIn.subheader" /></TD>
   </TR>
   <TR>
     <TD colspan=6 bgColor=#4682b4><IMG height=1 src="../includes/images/pixel.gif" width=1 border=0></TD>
	 </TR>
     <tr height="12">      
            <td colspan="6">
            </td>
     </tr> 
   
           <tr>
                  <td class="labelText"><bean:message key="hrm.HrmAttEmpAttIn.employeeNo" /></td>
                  <td><enrgise:text name="HrmAttEmpAttInForm"  property="employeeNo" titleKey="hrm.HrmAttEmpAttIn.employeeNo" maxlength="10" size="23" styleClass="required" disabledClass="locked" onchange="doChangeHeader();" /><enrgise:img src="../includes/images/lov.jpg" height="16" align="center" styleClass="icon" name="HrmAttEmpAttInForm" property="butEmpName" onclick="return ShowEmpLOV()" /></td>
                
                  <td class="labelText"><bean:message key="hrm.HrmAttEmpAttIn.employeeName" /></td>
                  <td colspan="3"><enrgise:text name="HrmAttEmpAttInForm"   property="firstName" alt="ALPHA" titleKey="hrm.HrmAttEmpAttIn.firstName" maxlength="45" size="32" styleClass="required" disabledClass="locked" onchange="doChangeHeader();"   />              
                                  <enrgise:text name="HrmAttEmpAttInForm"   property="middleName" alt="ALPHA" titleKey="hrm.HrmAttEmpAttIn.middleName" maxlength="45" size="16" styleClass="optional" disabledClass="locked" onchange="doChangeHeader();"  />
                                  <enrgise:text name="HrmAttEmpAttInForm"   property="lastName" alt="ALPHA" titleKey="hrm.HrmAttEmpAttIn.lastName" maxlength="45" size="32" styleClass="required" disabledClass="locked" onchange="doChangeHeader();"  /></td> 
           </tr>
           
           <tr>
                  <td class="labelText"><bean:message key="hrm.HrmAttEmpAttIn.date" /></td>
                  <td><enrgise:text name="HrmAttEmpAttInForm"  property="date" titleKey="hrm.HrmAttEmpAttIn.date" size="23" styleClass="required" disabledClass="locked" onchange="doChangeHeader();" /><enrgise:img src="../includes/images/cal.gif" width="15" height="19" align="top" styleClass="icon" name="HrmAttEmpAttInForm" property="butPeriodStartDt" onclick="showCalendar('date',this)" /></td>

                  <td class="labelText"><bean:message key="hrm.HrmAttEmpAttIn.shiftCode" /></td>
                  <td><enrgise:text name="HrmAttEmpAttInForm"  property="shiftCode" titleKey="hrm.HrmAttEmpAttIn.shiftCode" size="23" styleClass="optional" disabledClass="locked" onchange="doChangeHeader();" /><enrgise:img src="../includes/images/lov.jpg" height="16" align="center" styleClass="icon" name="HrmAttEmpAttInForm" property="butShiftCode" onclick="return ShowShiftLOV();" /></td>
           
                  <td class="labelText"><bean:message key="hrm.HrmAttEmpAttIn.timeIn" /></td>
                  <td><enrgise:text name="HrmAttEmpAttInForm"  property="timeIn" titleKey="hrm.HrmAttEmpAttIn.timeIn" maxlength="10" size="26" styleClass="required" disabledClass="locked" onchange="doChangeHeader();" /></td>

           </tr>
           
                      
           <tr>
                  <td class="labelText"><bean:message key="hrm.HrmAttEmpAttIn.attndStatus" /></td>
                  <td><enrgise:text name="HrmAttEmpAttInForm"  property="attndStatus" titleKey="hrm.HrmAttEmpAttIn.attndStatus" maxlength="10" size="26" styleClass="required" disabledClass="locked" onchange="doChangeHeader();doBaseValidate();" /></td>

                  <td class="labelText"><bean:message key="hrm.HrmAttEmpAttIn.reasons" /></td>
                  <td><enrgise:select name="HrmAttEmpAttInForm" property="reasons"  styleClass="required" disabledClass="locked" onchange="doChangeHeader();" alt="A" >
                                  <enrgise:option value="" ><bean:message key="hrm.pleaseSelect"   /></enrgise:option>
                                  <enrgise:option value="T" ><bean:message key="hrm.HrmAttEmpAttIn.reasons.t" /></enrgise:option>
                                  <enrgise:option value="N" ><bean:message key="hrm.HrmAttEmpAttIn.reasons.n" /></enrgise:option>
                                  <enrgise:option value="L" ><bean:message key="hrm.HrmAttEmpAttIn.reasons.l" /></enrgise:option>
                        </enrgise:select>
                    </td>
                    
                  <td></td>
           </tr>
           
            <tr height="10">
                  <td colspan="6"></td>
              </tr>               
              </table>
                </td>
               </tr>
               
                       
                
           </table>
        
           </td>
           </tr>
        
        
        
        
        
       
 <!-- Bottom Blue Bar -->
             <TR>
            <td>
              <TABLE  cellspacing="0" cellpadding="0" border=0>
                     <tr>
                        <td colspan="5" 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="HrmAttEmpAttInForm"  property="screenMode" />
<html:hidden name="HrmAttEmpAttInForm"  property="screenName" value="HrmAttEmpAttIn" />
<html:hidden name="HrmAttEmpAttInForm"  property="forwardedPage" />
<html:hidden property="positionRequested" name="HrmAttEmpAttInForm" />
<html:hidden property="userPageRequested" name="HrmAttEmpAttInForm" />
<html:hidden property="userPositionRequested" name="HrmAttEmpAttInForm" />
<html:hidden property="pageRequested" name="HrmAttEmpAttInForm" />
<html:hidden property="headerDataChanged" value="true" name="HrmAttEmpAttInForm" />
<html:hidden property="detailDataChanged" name="HrmAttEmpAttInForm" />
<html:hidden property="headerPrimaryKey" name="HrmAttEmpAttInForm"  />

<!-- LOV Entries-->
<input type="hidden" name="multipleFlag" >
<input type="hidden" name="queryParam" >

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


<!-- Hidden Id for LOV -->
<html:hidden property="empId" name="HrmAttEmpAttInForm"  />
<html:hidden property="shiftId" name="HrmAttEmpAttInForm"  />
<html:hidden property="shiftTime" name="HrmAttEmpAttInForm"  />
<html:hidden property="firstLoad" name="HrmAttEmpAttInForm"  />

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

<script language="javascript">

function doQueryMode()
{

  return "HrmAttEmpAttInQueryModeAction.do";
}


function doInsertMode()
{

  return "HrmAttEmpAttInNewModeAction.do";
}


function doExecute()
{

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

  return "HrmAttEmpAttInExitAction.do";
}

function doSave()
{
   document.forms[0].screenMode.value="N"
   return "HrmAttEmpAttInSaveAction.do";
  
}

function doDelete()
{

  return "HrmAttEmpAttInDeleteAction.do";
  
}

function doRefresh()
{
  return  "HrmAttEmpAttInOnLoadAction.do"; 
}

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

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

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

function doGetDetail()
{

  return "HrmAttEmpAttInGetDetailAction.do";
}

function doAddRow()
{

  return "HrmAttEmpAttInAddRowAction.do"; 
}

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


function doPrevDetail()
{

  return "HrmAttEmpAttInGetDetailPageAction.do";  
}

function doNextDetail()
{

  return "HrmAttEmpAttInGetDetailPageAction.do";
}


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

function ShowShiftLOV()
{
        document.forms[0].lovKey.value = "HrmAttShftCode" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmAttEmpAttIn.shiftCode";
        document.forms[0].txtDisplayFields.value = "shiftId,shiftCode,attndStatus";
        document.forms[0].multipleFlag.value = "false";
        document.forms[0].queryParam.value = "timeIn="+ document.forms[0].timeIn.value;
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmAttEmpAttInForm');
        return true;
       
}
function doGetInsertData()
{}

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


function doOnChangeLov(lovName)
{
  if(lovName == "HrmAttShftCodeHrmAttEmpAttInQ" || lovName == "HrmAttShftCodeHrmAttEmpAttInN")
  doBaseValidate();
}


function doValidate()
{
  return "HrmAttEmpAttInValidateAction.do"; 
} 
</script>



