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

<body style="background-color:#FFF;">
<div class="body_form">
  <table width="710" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
      <td width="350" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" class="table_line">
        <tr class="form_title">
          <td >员工相关变量</td>
          </tr>
        <s:iterator value="varData.EmplVar" status="st">  
        <tr class="list_data">
          <td><span class="code_box"><s:property value="varName"/></span><s:property value="varDesc"/></td>
        </tr>
        </s:iterator>
      </table>
      
      <table width="100%" border="0" cellpadding="0" cellspacing="0" class="table_line" style="margin-top:10px;">
        <tr class="form_title">
          <td >薪资相关变量</td>
          </tr>
        <s:iterator value="varData.SalaryVar" status="st">  
        <tr class="list_data">
          <td><span class="code_box"><s:property value="varName"/></span><s:property value="varDesc"/></td>
        </tr>
        </s:iterator>
      </table>
      </td>
      <td width="10">&nbsp;</td>
      <td width="350" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" class="table_line">
        <tr class="form_title">
          <td >考勤相关变量</td>
          </tr>
        <s:iterator value="varData.AttVar" status="st">  
        <tr class="list_data">
          <td><span class="code_box"><s:property value="varName"/></span><s:property value="varDesc"/></td>
        </tr>
        </s:iterator>
      </table>
      <table width="100%" border="0" cellpadding="0" cellspacing="0" class="table_line" style="margin-top:10px;">
        <tr class="form_title">
          <td >其他变量和方法</td>
          </tr>
        <tr class="list_data">
          <td><span class="code_box">tax ( x )</span>所得税计算方法，参数x表示输入值</td>
        </tr>
        <tr class="list_data">
          <td><span class="code_box">mid ( x, 100, 1000 )</span>取指定范围值方法，参数x表示输入值，100,1000表示范围，例如可以用于社保基数的上下限。</td>
        </tr>
        <tr class="list_data">
          <td><span class="code_box">a &gt; b ? 1 : 0</span>条件判断，如果a大于b，取值1，否则取值0</td>
        </tr>
        <tr class="list_data"><td valign="middle">
<textarea name="textarea" id="textarea" style=" width:90px; height:80px;" class="code_box" >if(a>b){
  1
}else{
  0
}</textarea>
            条件判断，与上面一行的功能相同</td>
        </tr>
      </table>
      </td>
    </tr>
  </table>
</div>
</body>
</html>