<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="cm" uri="/commons-tags" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>请假单确认</title>
<link href="../resources/style/base.css" rel="stylesheet" type="text/css"/>
<s:include value="../common/head.jsp" />
<script language="javascript" src="../code/vm/ExtCodeJs.htm"></script>
<script language="javascript" src="../resources/js/calendar/calendar.js"></script>
</head>

<body>
<s:include value="../common/body.jsp" />

<s:form action="attLeaveApplyOperate" namespace="/att" onsubmit="return checkForm(this)" >
  <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr class="form_tr">
      <td align="right">员工：</td>
      <td valign="top">
      	<s:property value="apply.applyEmplInfo.name"/>
        <s:hidden name="apply.applyEmplInfo.id"/>
      </td>
    </tr>
    <tr class="form_tr">
      <td align="right">部门：</td>
      <td valign="top">
      	<s:property value="apply.applyEmplInfo.emplOrg.name"/>
      </td>
    </tr>
    <tr class="form_tr">
      <td align="right">请假类型：</td>
      <td valign="top">
      	<s:property value="apply.attLeaveType.name"/>
      	<s:hidden name="apply.attLeaveType.id"/>
      </td>
    </tr>
    <tr class="form_tr">
      <td align="right">请假时间：</td>
      <td valign="top">
      <s:date name="apply.beginTime" format="yyyy-MM-dd HH:mm"/>
      至
      <s:date name="apply.endTime" format="yyyy-MM-dd HH:mm"/>
      <s:hidden name="apply.beginTime">
      	<s:param name="value"><s:date name="apply.beginTime" format="yyyy-MM-dd HH:mm"/></s:param>
      </s:hidden>
      <s:hidden name="apply.endTime">
      	<s:param name="value"><s:date name="apply.endTime" format="yyyy-MM-dd HH:mm"/></s:param>
      </s:hidden>
      </td>
    </tr>
    <tr class="form_tr">
      <td align="right">请假事由：</td>
      <td valign="top">
      	<s:property value="apply.cause"/>
        <s:hidden name="apply.cause"/>
      </td>
    </tr>
    <tr class="form_tr">
      <td align="right">请假总时长：</td>
      <td valign="top">
      	<s:property value="apply.totalTimes"/>小时
        <s:hidden name="apply.totalTimes"/>
      </td>
    </tr>
    <tr class="form_tr">
      <td colspan="2" align="center"><table width="480" border="0" cellpadding="0" cellspacing="0" class="sub_table_line">
        <tr class="sub_list_title center">
          <td width="79">考勤日期</td>
          <td width="86">是否工作日</td>
          <td width="102">请假时长</td>
          <td width="108">开始时间</td>
          <td width="103">结束时间</td>
        </tr>
        <s:iterator value="detList" status="st">
        <tr class="list_data center">
          <td><s:date name="attDate" format="yyyy-MM-dd"/></td>
          <td><s:property value="isWorkDay.codeName"/></td>
          <td><s:property value="leaveTimes"/>小时</td>
          <td><s:date name="beginTime" format="yyyy-MM-dd HH:mm"/>&nbsp;</td>
          <td><s:date name="endTime" format="yyyy-MM-dd HH:mm"/>&nbsp;</td>
        </tr>
        </s:iterator>
    </table></td>
    </tr>
    <tr class="form_tr">
      <td width="39%" align="right">&nbsp;</td>
      <td width="61%" valign="top">
        <s:if test="oper=='edit'">
          <input type="submit" name="button" id="button" value="确认修改" />
        </s:if>
        <s:if test="oper=='add'">
          <input type="submit" name="button" id="button" value="确认添加" />
        </s:if>
        &nbsp;
        <!-- back begin -->
        <input name="winID" type="hidden" value="${param.winID}" />
        <input type="button" onclick="window.history.back()" name="button" id="button" value="返 回" />
        <!-- back end -->
        <s:hidden name="apply.id"/>
        <s:hidden name="oper"/>
      </td>
    </tr>
  </table>
</s:form>
</body>
</html>