<%@ 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="../resources/report/FusionCharts.js"></script>
<script language="javascript" src="../resources/js/calendar/calendar.js"></script>
<script language="javascript">
$(function(){
	var dataXml=$("#chartData").html();
	if(dataXml!=null){		
		var chart = new FusionCharts("../resources/report/<s:if test='reportData.multi'>FCF_MSColumn3D</s:if><s:else>FCF_Column3D</s:else>.swf", "ChartId", ($(window).width()-70)+"", "300");
		chart.setDataXML(dataXml);		   
		chart.render("chartBody");
	}
});
</script>
</head>

<body>
<div class="body_list">
<s:include value="../common/body.jsp" />
<s:form action="attReportOvertime" onsubmit="return checkForm(this)">

 <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="table_line">
    <tr class="form_title">
      <td colspan="4">加班单分析</td>
    </tr>
    <tr class="form_item">
	  <td width="24%">统计类型：
	   		<s:select name="type.id"
				list='#request.SysCodeFinder.find("REPORT_ATT_TOTAL_TYPE")' headerKey="" headerValue="" 
				listKey="id" listValue="codeName"/>	  
	  </td>	
      <td width="36%" align="left">
      <span class="required">•</span>时间范围：
	   <s:textfield title="时间范围 为必填项" name="beginMonth" readonly="true" onClick="showCalendar('yyyy-MM',this)" cssClass="date_input" cssStyle="width:80px;">
      		<s:param name="value"><s:date name="beginMonth" format="yyyy-MM"/></s:param>
      </s:textfield>
      至
      <s:textfield title="时间范围 为必填项" name="endMonth" readonly="true" onClick="showCalendar('yyyy-MM',this)" cssClass="date_input" cssStyle="width:80px;">
      		<s:param name="value"><s:date name="endMonth" format="yyyy-MM"/></s:param>
      </s:textfield>
      </td>      
      <td width="28%" align="left">加班类型：
	   		<s:select name="dayType.id"
				list='#request.SysCodeFinder.find("DAY_TYPE")' headerKey="" headerValue="" 
				listKey="id" listValue="codeName"/>	 
                
                
      </td>
      <td width="12%" align="center">
        <input name="q" value=" 统 计 " type="submit" />
      </td>
    </tr>
  </table>
</s:form>

<s:include value="../common/reportData.jsp">
	<s:param name="kindName" value="%{'月份'}" />
    <s:param name="valueName" value="%{'时间'}" />
	<s:param name="caption" value="%{'加班单分析'}" />
	<s:param name="subcaption"><s:if test="type.codeName!=null">按照 <s:property value="type.codeName"/> 统计</s:if></s:param>
</s:include>    

</div>  
</body>
</html>