<%@ 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" />
</head>

<body>
<s:include value="../common/body.jsp" />

<table width="600" border="0" align="center" cellpadding="0" cellspacing="0" class="table_line">
    <tr class="list_data">
      <td width="160" align="right">姓名：</td>
      <td width="142" align="left"><s:property value="monthSheet.emplInfo.name"/></td>
      <td width="162" align="right">工号：</td>
      <td width="134" align="left"><s:property value="monthSheet.emplInfo.emplNo"/></td>
    </tr>
    <tr class="list_data">
      <td align="right">部门：</td>
      <td align="left"><s:property value="monthSheet.emplInfo.emplOrg.fullName"/></td>
      <td align="right">月份：</td>
      <td align="left"><s:property value="monthSheet.salaryMonth"/></td>
    </tr>
     <tr class="list_data">
      <td align="right">备注：</td>
      <td colspan="3" align="left"><s:property value="monthSheet.descr"/></td>
    </tr>   
</table>

<table width="600" border="0" align="center" cellpadding="0" cellspacing="0" class="table_line" style="margin-top:10px;">
    <s:set name="detSet" value="monthSheet.detSet"/>
    <cm:group var="detList" value="detSet" length="2"/>
    <s:iterator value="#attr.detList">
    <tr class="list_data">
      <td width="161" align="right"><s:property value="top[0].accountItem.name"/>：</td>
      <td width="141" align="left">
	  	<s:if test="top[0].accountItem.isTaxAfter">
			<span style="color:#FF0000; font-weight:bold;"><s:property value="top[0].itemValue"/></span>
		</s:if>
	  	<s:else>
            	<s:property value="top[0].itemValue"/>
		</s:else>
      </td>
      <td width="163" align="right"><s:property value="top[1].accountItem.name"/><s:if test="top[1]!=null">：</s:if></td>
      <td width="133" align="left">
	  	<s:if test="top[1].accountItem.isTaxAfter">
			<span style="color:#FF0000; font-weight:bold;"><s:property value="top[1].itemValue"/></span>
		</s:if>
	  	<s:else>
            	<s:property value="top[1].itemValue"/>
		</s:else>
      </td>
    </tr>
	</s:iterator>
    
<tr class="list_data">
      <td align="right">社保合计（个人）：</td>
      <td align="left"><s:property value="monthSheet.emplInsurTotal"/></td>
      <td align="right">社保合计（单位）：</td>
      <td align="left"><s:property value="monthSheet.compInsurTotal"/></td>
    </tr>    

</table>

<s:iterator value="monthSheet.insurPaySet">
<table width="600" border="0" align="center" cellpadding="0" cellspacing="0" class="table_line" style="margin-top:10px;">         
        <tr class="list_data row_a">
          <td width="160" align="right">社保缴纳月份：</td>
          <td width="142" align="left">
          	<s:property value="insurMonth"/>
          	<s:if test="insurMonthEnd!=null && insurMonthEnd.length()>0 ">
				至
                <s:property value="insurMonthEnd"/>  
            </s:if>          </td>        
          <td width="164" align="right">社保缴纳类型：</td>
          <td width="132" align="left"><s:property value="payTimeType.codeName"/></td>
        </tr>
        <s:set name="baseSet" value="baseSet"/>
        <cm:group var="baseList" value="baseSet" length="2"/>
        <s:iterator value="#attr.baseList">
            <tr class="list_data">
              <td align="right"><s:property value="top[0].accountItem.name"/>：</td>
              <td align="left">
                        <s:property value="top[0].insurBase"/>              </td>
              <td align="right"><s:property value="top[1].accountItem.name"/><s:if test="top[1]!=null">：</s:if></td>
              <td align="left">
                        <s:property value="top[1].insurBase"/>              </td>
            </tr>
        </s:iterator> 
        <s:set name="detSet" value="detSet"/>
        <cm:group var="detList" value="detSet" length="2"/>
        <s:iterator value="#attr.detList">
            <tr class="list_data">
              <td align="right"><s:property value="top[0].accountItem.name"/>：</td>
              <td align="left">
                        <s:property value="top[0].payValue"/>              </td>
              <td align="right"><s:property value="top[1].accountItem.name"/><s:if test="top[1]!=null">：</s:if></td>
              <td align="left">
                        <s:property value="top[1].payValue"/>              </td>
            </tr>
        </s:iterator> 
		<s:if test="descr!=null">
            <tr class="list_data">
              <td align="right">备注：</td>
              <td colspan="3" align="left"><s:property value="descr"/></td>
            </tr>
		</s:if>        
     </table>

</s:iterator> 
 
<table width="600" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
      <td height="40" colspan="4" align="center">
        <!-- back begin -->
        <input name="winID" type="hidden" value="${param.winID}" />
        <input type="button" onclick="iframeWindowClose('${param.winID}')" name="button" id="button" value="返 回" />  
        <!-- back end -->
      </td>
    </tr>
</table>

</body>
</html>