<%@ 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>
<script language="javascript" src="../resources/report/FusionCharts.js"></script>
<script language="javascript">
$(function(){
	var dataXml=$("#chartData").html();
	if(dataXml!=null){
		var chart = new FusionCharts("../resources/report/FCF_Column3D.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="salaryReportTotalHistory" onsubmit="return checkForm(this)">
    <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="table_line">
      <tr class="form_title">
        <td colspan="6">薪资历史分析</td>
      </tr>
      <tr class="form_item">
        <td width="20%">部门：
          <s:textfield name="org.name" cssClass="find_input" readonly="true" onClick="codeTree('emplOrgTree',gi('eimpOrgId'),this)" cssStyle="width:100px;"/>
          <s:hidden name="org.id" id="eimpOrgId"/></td>
        <td width="28%"> <span class="required">•</span>时间范围：
          <s:textfield title="时间范围 为必填项" name="begin" readonly="true" onClick="showCalendar('yyyy-MM',this,false)" cssClass="date_input" cssStyle="width:65px;">
            <s:param name="value">
              <s:date name="begin" format="yyyy-MM"/>
            </s:param>
          </s:textfield>
          至
          <s:textfield title="时间范围 为必填项" name="end" readonly="true" onClick="showCalendar('yyyy-MM',this,false)" cssClass="date_input" cssStyle="width:65px;">
            <s:param name="value">
              <s:date name="end" format="yyyy-MM"/>
            </s:param>
          </s:textfield></td>
        <td width="21%">薪资级别：
          <s:select cssStyle="width:100px;" name="level.id" list='levelList' headerKey="" headerValue="" 
				listKey="id" listValue="name"/></td>
        <td width="23%"><span class="required">•</span>帐套项目：
          <s:select cssStyle="width:120px;" name="item.id" title="帐套项目 为必填项"  
				list='itemList' headerKey="" headerValue="" 
				listKey="id" listValue="name"/></td>
        <td width="8%" 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">薪资历史分析 <s:date name="begin" format="yyyy-MM"/>至<s:date name="end" format="yyyy-MM"/></s:param>
    <s:param name="subcaption">按照 <s:property value="item.name"/> 统计</s:param>
  </s:include>
</div>
</body>
</html>