<%@ 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/js/calendar/calendar.js"></script>
<script type="text/javascript">
function monthDetail(id){
	iframeWindow("<s:url action='salaryMineMonthDetail'/>?monthSheet.id="+id,650,550,"工资条明细",refreshWindow);
}
</script>
</head>

<body>
<div class="body_list">
  <s:include value="../common/body.jsp" />
  <s:form action="salaryMineList" id="queryForm" namespace="/salary">
    <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="table_line">
      <tr class="form_title">
        <td colspan="2">工资条查询</td>
      </tr>
      <tr class="form_item">
        <td width="89%">月份：
          <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="11%" align="center">
       	  <input name="q" value="查 询" onclick="query()" type="button" />
        </td>
      </tr>
    </table>
    
    <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="table_line" style="margin:10px 0 0 0;" >
      <tr class="list_title">
        <td width="7%">月份</td>
        <td width="11%">工资总额</td>
        <td width="11%">税前收入</td>
        <td width="9%">所得税</td>
        <td width="11%">税后收入</td>
        <td width="13%">社保合计（个人）</td>
        <td width="14%">社保合计（单位）</td>
        <td width="24%">备注</td>
      </tr>
      <s:iterator value="sheetList" 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="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>