<%@ 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="attLeaveApplyApprove" 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.emplNo"/></td>
    </tr>
    <tr class="form_tr">
      <td align="right">姓名：</td>
      <td valign="top"><s:property value="apply.applyEmplInfo.name"/></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"/></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"/></td>
    </tr>
    <tr class="form_tr">
      <td align="right">请假时长：</td>
      <td valign="top">
      		<s:property value="apply.totalTimes"/> 小时 
            &nbsp;&nbsp;
            <a href="javascript:applyDetail(<s:property value='apply.id'/>)">[查看明细]</a>
      		<script language="javascript">
			function applyDetail(id){
				iframeWindow("<s:url action='attLeaveApplyDetail'/>?apply.id="+id,550,300,"请假时间明细");
			}
			</script>
      </td>
    </tr>
    <tr class="form_tr">
      <td align="right">请假事由：</td>
      <td valign="top"><s:property value="apply.cause"/></td>
    </tr>
    <tbody id="yearBody" style="display:none;">
    </tbody>
    <tr class="form_tr">
      <td align="right">&nbsp;</td>
      <td valign="top">&nbsp;</td>
    </tr>
    <tr class="form_tr">
      <td align="right"><span class="required">•</span>审批意见：</td>
      <td valign="top"><s:select cssStyle="width:225px;" title="审批意见 为必填项"  name="approveLog.apprFlag.id"  list='#request.SysCodeFinder.find("APPROVE_FLAG")'  headerKey="" headerValue="" listKey="id" listValue="codeName"/></td>
    </tr>
    <tr class="form_tr">
      <td align="right">审批备注：</td>
      <td valign="top"><s:textarea name="approveLog.descr"  cssStyle="width:225px;height:50px;"/></td>
    </tr>
    <tr class="form_tr">
      <td width="31%" align="right">&nbsp;</td>
      <td width="69%" valign="top"><input type="submit" name="button" id="button" value=" 审 批 " />
        &nbsp; 
        <!-- back begin -->
        
        <input name="winID" type="hidden" value="${param.winID}" />
        <input type="button" onclick="iframeWindowClose('${param.winID}')" name="button" id="button" value="返 回" />
        
        <!-- back end -->
        
        <s:hidden name="approveLog.id" value="%{apply.attApproveLog.id}" />
        <s:hidden name="oper"/></td>
    </tr>
  </table>
</s:form>
</body>
</html>