<%@ 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="HrmAttEmpAttQueryBaseAction" name="HrmAttEmpAttQueryForm" type="wenrgise.hrms.webtier.form.HrmAttEmpAttQueryForm">
  <bean:define id="ParentForm" name="HrmAttEmpAttQueryForm" 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.HrmAttEmpAttQuery.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 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"  width="42%"><bean:message key="hrm.HrmAttEmpAttQuery.periodStartDt" /></td>
            <td  width="60%"><html:text name="HrmAttEmpAttQueryForm"  property="periodStartDt" titleKey="hrm.HrmAttEmpAttQuery.periodStartDt" size="23" styleClass="optional" readonly="true" onchange="doChangeHeader()" /><enrgise:img src="../includes/images/cal.gif" width="15" height="19" align="top" styleClass="icon" name="HrmAttEmpAttQueryForm" property="butPeriodStartDt" onclick="showCalendar('periodStartDt',this)" /></td>
       </tr>       
    <tr height="12">      
      <td colspan="6">
      </td>
    </tr> 
  </table>
 
        
  <table cellspacing=0 cellpadding=0 border=0>
  <!-- Detail Information Row starts -->
  
  <TR>
    <TD colspan=6>
    <!--Detail Table Starts-->
      <TABLE cellSpacing=0 cellPadding=0 >
      <tr>
        <enrgise:tab name="HrmAttEmpAttQueryForm" property="butBudAllocfTab" styleClass="actTabText" disabledClass="lockedTab" src="../includes/images/formtab_r.gif" ><bean:message key="hrm.HrmAttEmpAttQuery.detailHeader" /></enrgise:tab>                      
        <td width="77%">&nbsp;</td>
      </tr>
      <TR>
      <!-- Detail table Container starts -->
        <TD colspan="4">
          <TABLE cellSpacing=0 cellPadding=0 border=0>
          <TBODY>
            <TR>
              <TD>
              <DIV id=divDtlTable style="height:320px;width:1010px" >
              <!-- Detail table starts -->
                <TABLE cellSpacing=0 cellPadding=0 border = 0>
                <TBODY>
                  <tr>
                    <TD class=tableHeader width="1%"><html:checkbox property="selectAll" disabled="true" /></TD>
                    <TD class=tableHeader ><bean:message key="hrm.HrmAttEmpAttQueryDtl.txtEmployeeNo" /></td>
                    <TD class=tableHeader ><bean:message key="hrm.HrmAttEmpAttQueryDtl.txtEmployeeName" /></td>
                    <td class=tableHeader ><bean:message key="hrm.HrmAttEmpAttQuery.shiftCode" /></td>
                    <td class=tableHeader ><bean:message  key="hrm.HrmAttEmpAttQuery.chkInDate" /></TD>
                    <td class=tableHeader ><bean:message key="hrm.HrmAttEmpAttQuery.checkInTime" /></td>
                    <td class=tableHeader ></td>
                    <td class=tableHeader ><bean:message key="hrm.HrmAttEmpAttQuery.checkOutTime" /></td>
                    <td class=tableHeader ></td>
                    <td class=tableHeader ><bean:message  key="hrm.HrmAttEmpAttQuery.attndStatus" /></td>
                    <td class=tableHeader ><bean:message  key="hrm.HrmAttEmpAttQuery.Reasons" /></TD>
                  </tr>
  
                  <logic:notEmpty name="HrmAttEmpAttQueryForm" property="arylstAttndDtls" >    
                    <logic:iterate id="HrmAttEmpAttQueryDtl" name="HrmAttEmpAttQueryForm" property="arylstAttndDtls" type="wenrgise.hrms.bean.HrmAttEmpAttQueryDtlBean" indexId="idx" >
                      <tr>
                        <TD class=tableText width="1%">
                          <html:hidden property="status"  name="HrmAttEmpAttQueryDtl" />
                          <html:hidden property="detailId"  name="HrmAttEmpAttQueryDtl"  />
                          <html:checkbox property="checked"  name="HrmAttEmpAttQueryForm" disabled="true" />
                          <html:hidden property="itemChecked" name="HrmAttEmpAttQueryDtl" />
                          <html:hidden property="txtEmpId" name="HrmAttEmpAttQueryDtl" />
                          <html:hidden property="txtShiftMstId" name="HrmAttEmpAttQueryDtl" />
                        </TD>
                        <TD class=tableText ><html:text name="HrmAttEmpAttQueryDtl"   property="txtEmpNo" style="width:100%" styleClass="locked" readonly="true" /></td>
                        <TD class=tableText ><html:text name="HrmAttEmpAttQueryDtl" property="txtEmpName" style="width:100%" onmouseover="this.title=this.value;" styleClass="locked" readonly="true" /></td>
                        <TD class=tableText ><html:text name="HrmAttEmpAttQueryDtl"   property="txtShiftCode" style="width:100%" styleClass="required" readonly="true" /></td>
                        <TD class=tableText ><html:text name="HrmAttEmpAttQueryDtl" property="txtChkInDate" style="width:100%" styleClass="required" readonly="true"  /></td>
                        <TD class=tableText ><html:select name="HrmAttEmpAttQueryDtl" property="txtCheckInTime" styleClass="optional" onchange='<%="doChangeDetail("+idx.toString()+")"%>'  >
                                                <html:option value="" >Select</html:option>
                                                <html:option value="00" >0</html:option><html:option value="01" >1</html:option><html:option value="02" >2</html:option><html:option value="03" >3</html:option><html:option value="04" >4</html:option>
                                                <html:option value="05" >5</html:option><html:option value="06" >6</html:option><html:option value="07" >7</html:option><html:option value="08" >8</html:option><html:option value="09" >9</html:option>
                                                <html:option value="10" >10</html:option><html:option value="11" >11</html:option><html:option value="12" >12</html:option><html:option value="13" >13</html:option><html:option value="14" >14</html:option>
                                                <html:option value="15" >15</html:option><html:option value="16" >16</html:option><html:option value="17" >17</html:option><html:option value="18" >18</html:option><html:option value="19" >19</html:option>
                                                <html:option value="20" >20</html:option><html:option value="21" >21</html:option><html:option value="22" >22</html:option><html:option value="23" >23</html:option>
                                              </html:select><bean:message key="hrm.HrmAttEmpAttQuery.colon" /></td>
                        <TD class=tableText ><html:select name="HrmAttEmpAttQueryDtl" property="txtCheckInTimeMin" styleClass="optional" onchange='<%="doChangeDetail("+idx.toString()+")"%>'  >
                                                <html:option value="" >Select</html:option>
                                                <html:option value="00" >00</html:option><html:option value="01" >01</html:option><html:option value="02" >02</html:option><html:option value="03" >03</html:option><html:option value="04" >04</html:option>
                                                <html:option value="05" >05</html:option><html:option value="06" >06</html:option><html:option value="07" >07</html:option><html:option value="08" >08</html:option><html:option value="09" >09</html:option>
                                                <html:option value="10" >10</html:option><html:option value="11" >11</html:option><html:option value="12" >12</html:option><html:option value="13" >13</html:option><html:option value="14" >14</html:option>
                                                <html:option value="15" >15</html:option><html:option value="16" >16</html:option><html:option value="17" >17</html:option><html:option value="18" >18</html:option><html:option value="19" >19</html:option>
                                                <html:option value="20" >20</html:option><html:option value="21" >21</html:option><html:option value="22" >22</html:option><html:option value="23" >23</html:option><html:option value="24" >24</html:option>
                                                <html:option value="25" >25</html:option><html:option value="26" >26</html:option><html:option value="27" >27</html:option><html:option value="28" >28</html:option><html:option value="29" >29</html:option>
                                                <html:option value="30" >30</html:option><html:option value="31" >31</html:option><html:option value="32" >32</html:option><html:option value="33" >33</html:option><html:option value="34" >34</html:option>
                                                <html:option value="35" >35</html:option><html:option value="36" >36</html:option><html:option value="37" >37</html:option><html:option value="38" >38</html:option><html:option value="39" >39</html:option>
                                                <html:option value="40" >40</html:option><html:option value="41" >41</html:option><html:option value="42" >42</html:option><html:option value="43" >43</html:option><html:option value="44" >44</html:option>
                                                <html:option value="45" >45</html:option><html:option value="46" >46</html:option><html:option value="47" >47</html:option><html:option value="48" >48</html:option><html:option value="49" >49</html:option>
                                                <html:option value="50" >50</html:option><html:option value="51" >51</html:option><html:option value="52" >52</html:option><html:option value="53" >53</html:option><html:option value="54" >54</html:option>
                                                <html:option value="55" >55</html:option><html:option value="56" >56</html:option><html:option value="57" >57</html:option><html:option value="58" >58</html:option><html:option value="59" >59</html:option>
                                              </html:select></td>
                        
                        <TD class=tableText ><html:select name="HrmAttEmpAttQueryDtl" property="txtCheckOutTime" styleClass="optional" onchange='<%="doChangeDetail("+idx.toString()+")"%>'  >
                                                <html:option value="" >Select</html:option>
                                                <html:option value="00" >0</html:option><html:option value="01" >1</html:option><html:option value="02" >2</html:option><html:option value="03" >3</html:option><html:option value="04" >4</html:option>
                                                <html:option value="05" >5</html:option><html:option value="06" >6</html:option><html:option value="07" >7</html:option><html:option value="08" >8</html:option><html:option value="09" >9</html:option>
                                                <html:option value="10" >10</html:option><html:option value="11" >11</html:option><html:option value="12" >12</html:option><html:option value="13" >13</html:option><html:option value="14" >14</html:option>
                                                <html:option value="15" >15</html:option><html:option value="16" >16</html:option><html:option value="17" >17</html:option><html:option value="18" >18</html:option><html:option value="19" >19</html:option>
                                                <html:option value="20" >20</html:option><html:option value="21" >21</html:option><html:option value="22" >22</html:option><html:option value="23" >23</html:option>
                                              </html:select><bean:message  key="hrm.HrmAttEmpAttQuery.colon" /></td>
                        <TD class=tableText ><html:select name="HrmAttEmpAttQueryDtl" property="txtCheckOutTimeMin" styleClass="optional" onchange='<%="doChangeDetail("+idx.toString()+")"%>'  >
                                                <html:option value="" >Select</html:option>
                                                <html:option value="00" >00</html:option><html:option value="01" >01</html:option><html:option value="02" >02</html:option><html:option value="03" >03</html:option><html:option value="04" >04</html:option>
                                                <html:option value="05" >05</html:option><html:option value="06" >06</html:option><html:option value="07" >07</html:option><html:option value="08" >08</html:option><html:option value="09" >09</html:option>
                                                <html:option value="10" >10</html:option><html:option value="11" >11</html:option><html:option value="12" >12</html:option><html:option value="13" >13</html:option><html:option value="14" >14</html:option>
                                                <html:option value="15" >15</html:option><html:option value="16" >16</html:option><html:option value="17" >17</html:option><html:option value="18" >18</html:option><html:option value="19" >19</html:option>
                                                <html:option value="20" >20</html:option><html:option value="21" >21</html:option><html:option value="22" >22</html:option><html:option value="23" >23</html:option><html:option value="24" >24</html:option>
                                                <html:option value="25" >25</html:option><html:option value="26" >26</html:option><html:option value="27" >27</html:option><html:option value="28" >28</html:option><html:option value="29" >29</html:option>
                                                <html:option value="30" >30</html:option><html:option value="31" >31</html:option><html:option value="32" >32</html:option><html:option value="33" >33</html:option><html:option value="34" >34</html:option>
                                                <html:option value="35" >35</html:option><html:option value="36" >36</html:option><html:option value="37" >37</html:option><html:option value="38" >38</html:option><html:option value="39" >39</html:option>
                                                <html:option value="40" >40</html:option><html:option value="41" >41</html:option><html:option value="42" >42</html:option><html:option value="43" >43</html:option><html:option value="44" >44</html:option>
                                                <html:option value="45" >45</html:option><html:option value="46" >46</html:option><html:option value="47" >47</html:option><html:option value="48" >48</html:option><html:option value="49" >49</html:option>
                                                <html:option value="50" >50</html:option><html:option value="51" >51</html:option><html:option value="52" >52</html:option><html:option value="53" >53</html:option><html:option value="54" >54</html:option>
                                                <html:option value="55" >55</html:option><html:option value="56" >56</html:option><html:option value="57" >57</html:option><html:option value="58" >58</html:option><html:option value="59" >59</html:option>
                                              </html:select></td>
                        
                        <TD class=tableText ><html:select name="HrmAttEmpAttQueryDtl" property="txtAttStatus" styleClass="required" onchange='<%="doChangeDetail("+idx.toString()+")"%>'  >
                                                <html:option value="T" ><bean:message key="hrm.HrmAttEmpAttQuery.t" /></html:option>
                                                <html:option value="L" ><bean:message key="hrm.HrmAttEmpAttQuery.l" /></html:option>
                                              </html:select>
                        </TD> 
                        <td class=tableText ><html:select name="HrmAttEmpAttQueryDtl" property="txtReason" styleClass="optional" onchange='<%="doChangeDetail("+idx.toString()+")"%>'  >
                                                <html:option value="" ><bean:message key="hrm.pleaseSelect"   /></html:option>
                                                <html:option value="T" ><bean:message key="hrm.HrmAttEmpAttIn.reasons.t" /></html:option>
                                                <html:option value="N" ><bean:message key="hrm.HrmAttEmpAttIn.reasons.n" /></html:option>
                                                <html:option value="O" ><bean:message key="hrm.HrmAttEmpAttIn.reasons.o" /></html:option>
                                                <html:option value="L" ><bean:message key="hrm.HrmAttEmpAttIn.reasons.l" /></html:option> 
                                                <html:option value="P" ><bean:message key="hrm.HrmAttEmpAttIn.reasons.p" /></html:option>
                                                <html:option value="A" ><bean:message key="hrm.HrmAttEmpAttIn.reasons.a" /></html:option>
                                                <html:option value="F" ><bean:message key="hrm.HrmAttEmpAttIn.reasons.f" /></html:option> 
                                                <html:option value="S" ><bean:message key="hrm.HrmAttEmpAttIn.reasons.s" /></html:option> 
                                              </html:select>
                        </td>                 
                      </tr>
                    </logic:iterate>                                 
                  </logic:notEmpty>
                </TBODY>
                </TABLE>
              </TD>
            </TR>                     
  
            <!-- Get details starts -->
  
  
            <TR>
              <td colspan=4>
                <jsp:include flush="true" page="GenDetailMenu.jsp" />
              </td>	     
            </TR>
          </TBODY>
          </TABLE>
        </td>
      </tr>
    </TABLE>
    </td>
    </tr>
    <!-- Tab Table Ends -->
  
    <!-- Bottom Blue Bar -->
    <tr>
      <td>
        <table cellspacing=0 cellpadding=0 border=0>
          <TR>
            <td align=center bgcolor=#4682b4 width="40%"></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>
  
    </TABLE>
    <!-- Container Table Ending Columns Starts-->
    </TD>
    </TR>
  </TBODY>
  </TABLE>


<!-- Container Table Ends -->
<html:hidden name="HrmAttEmpAttQueryForm"  property="screenMode" />
<html:hidden name="HrmAttEmpAttQueryForm"  property="screenName" value="HrmAttEmpAttQuery" />
<html:hidden name="HrmAttEmpAttQueryForm"  property="forwardedPage" />
<html:hidden property="positionRequested" name="HrmAttEmpAttQueryForm" />
<html:hidden property="userPageRequested" name="HrmAttEmpAttQueryForm" />
<html:hidden property="userPositionRequested" name="HrmAttEmpAttQueryForm" />
<html:hidden property="pageRequested" name="HrmAttEmpAttQueryForm" />
<html:hidden property="headerDataChanged" value="false" name="HrmAttEmpAttQueryForm" />
<html:hidden property="detailDataChanged" name="HrmAttEmpAttQueryForm" />
<html:hidden property="headerPrimaryKey" name="HrmAttEmpAttQueryForm"  />

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

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

<html:hidden property="empId" name="HrmAttEmpAttQueryForm" />
<!-- Hidden Id for LOV -->
</html:form>
</body>
</html:html>

<script language="javascript">
function doQueryMode()
{

  return "HrmAttEmpAttQueryQueryModeAction.do";
}


function doInsertMode()
{

  return "HrmAttEmpAttQueryNewModeAction.do";
}


function doExecute()
{

  return "HrmAttEmpAttQueryGetHeaderAction.do";
}

function doSave()
{
   return "HrmAttEmpAttQuerySaveAction.do";
  
}

function doDelete()
{

  return "HrmAttEmpAttQueryDeleteAction.do";
  
}

function doRefresh()
{

  return "HrmAttEmpAttQueryRefreshAction.do";
  
}

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

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

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

function doGetDetail()
{

  return "HrmAttEmpAttQueryGetDetailAction.do";
}

function doAddRow()
{

  return "HrmAttEmpAttQueryAddRowAction.do"; 
}

function doDelRow()
{
 return "HrmAttEmpAttQueryDeleteRowAction.do";  
}
function doExit()
{
 return "HrmAttEmpAttQueryExitAction.do";  
}


function doPrevDetail()
{

  return "HrmAttEmpAttQueryGetDetailPageAction.do";  
}

function doNextDetail()
{

  return "HrmAttEmpAttQueryGetDetailPageAction.do";
}

function doJumpDetail()
{
  return  "HrmAttEmpAttQueryGetDetailPageAction.do"; 
}
function doValidate()
{
  return  "HrmAttEmpAttQueryValidateAction.do"; 
}
function ShowShiftCode(i)
{
        document.forms[0].lovKey.value = "HrmAttQueryShftCode" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmAttEmpAttQuery.shiftCode";
        document.forms[0].txtIndex.value = i;
        document.forms[0].txtDisplayFields.value = "txtShiftMstId,txtShiftCode";
        document.forms[0].multipleFlag.value = "false";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmAttEmpAttQueryForm');
        return true;
}
function doGetInsertData()
{}

</script>



