<%@ 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 type="text/javascript">
function monthDetail(id){
	iframeWindow("<s:url action='salaryMonthDetail'/>?monthSheet.id="+id,650,550,"工资条明细");
}
function exportData(){
	var url="<s:url action='salaryMonthExport'/>?"+getFormParameters(gi("queryForm"));
	window.open(url);
}
</script>
</head>

<body>
<div class="body_list">
  <s:include value="../common/body.jsp" />
  <s:form action="salaryMonthList" id="queryForm" onsubmit="return checkForm(this)">
  	<s:hidden name="orderBy" />
    <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="table_line">
      <tr class="form_title">
        <td colspan="5">查询条件</td>
      </tr>
      <tr class="form_item">
        <td width="19%">工号：
          <s:textfield name="monthSheet.emplInfo.emplNo" title="工号必须为数字。"  cssStyle="width:100px;"/></td>
        <td width="20%">姓名：
          <s:textfield name="monthSheet.emplInfo.name" cssStyle="width:100px;"/></td>
        <td width="20%">部门：
          <s:textfield name="monthSheet.emplInfo.emplOrg.name" readonly="true" onClick="codeTree('emplOrgTree',gi('eimpOrgId'),this)" cssStyle="width:100px;" cssClass="find_input"/>
          <s:hidden name="monthSheet.emplInfo.emplOrg.id" id="eimpOrgId"/></td>
        <td width="26%">
        月份：
          <s:textfield name="beginMonth" readonly="true" onClick="showCalendar('yyyyMM',this,false)" cssClass="date_input" cssStyle="width:65px;"/>
          至
          <s:textfield name="endMonth" readonly="true" onClick="showCalendar('yyyyMM',this,false)" cssClass="date_input" cssStyle="width:65px;"/>
        </td>
        <td width="15%" align="center"><input name="q" value="查 询" onclick="query()" type="button" />
        &nbsp;
        <input name="q" value="导 出" onclick="exportData()" type="button" />
        
        </td>
      </tr>
    </table>
    <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="table_line" style="margin-top:15px;">
      <tr class="list_title">
        <td width="6%" class="orderBy" lang="salaryMonth">月份</td>
        <td width="6%" class="orderBy" lang="emplInfo.emplNo">工号</td>
        <td width="7%" class="orderBy" lang="emplInfo.name">姓名</td>
        <td width="13%" class="orderBy" lang="emplInfo.emplOrg.id">部门</td>
        <td width="10%">薪资帐套</td>
        <td width="8%" class="orderBy" lang="salaryBase">工资总额</td>
        <td width="8%" class="orderBy" lang="taxBefore">税前收入</td>
        <td width="7%" class="orderBy" lang="salaryTax">所得税</td>
        <td width="8%" class="orderBy" lang="taxAfter">税后收入</td>
        <td width="8%" class="orderBy" lang="emplInsurTotal">社保合计<br />
        （个人）</td>
        <td width="8%" class="orderBy" lang="compInsurTotal">社保合计<br />
        （单位）</td>
        <td width="11%">备注</td>
      </tr>
      <s:iterator value="monthSheetList" status="st">
        <s:set name="row_cls" value=""/>
        <s:if test="#st.Even">
          <s:set name="row_cls" value="%{'row_a'}"/>
        </s:if>
        <tr class="list_data <s:property value='#row_cls'/>">
          <td class="center">
          <a href="javascript:monthDetail(<s:property value='id'/>)" title="点击查看工资条明细">
          <s:property value="salaryMonth"/>
          </a>		  </td>
          <td class="center"><s:property value="emplInfo.emplNo"/></td>
          <td class="center"><s:property value="emplInfo.name"/></td>
          <td><s:property value="emplInfo.emplOrg.fullName"/></td>
          <td class="center"><s:property value="salaryAccountName"/></td>
          <td class="right"><s:property value="salaryBase"/></td>
          <td class="right"><s:property value="taxBefore"/></td>
          <td class="right"><s:property value="salaryTax"/></td>
          <td class="right"><s:property value="taxAfter"/></td>
          <td class="right"><s:property value="emplInsurTotal"/></td>
          <td class="right"><s:property value="compInsurTotal"/></td>
          <td class="center"><s:property value="descr"/></td>
        </tr>
      </s:iterator>
    </table>
    <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="list_page">
      <tr>
        <td><cm:pager/></td>
      </tr>
    </table>
  </s:form>
</div>
</body>
</html>