<%@ 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" />
<s:form action="salaryAccountItemOperate" namespace="/salary"  onsubmit="return checkForm(this)">

<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr class="form_tr">
      <td align="right"><span class="required">•</span>名称：</td>
      <td valign="top">
      	<s:if test="accountItem.system">
        	<s:property value="accountItem.name"/>
        </s:if>
        <s:else>
        	<s:textfield name="accountItem.name" title="名称 为必填项" cssStyle="width:225px;"/>
        </s:else>
      </td>
    </tr>
    <tr class="form_tr">
      <td align="right"><span class="required">•</span>类型：</td>
      <td valign="top">
      	<s:if test="accountItem.system">
        	<s:property value="accountItem.kind.codeName"/>
        </s:if>
        <s:else>
  		     <s:select cssStyle="width:225px;" title="类型 为必填项" name="accountItem.kind.id" list='#request.SysCodeFinder.find("SALARY_ITEM_KIND")' headerKey="" headerValue="" listKey="id" listValue="codeName"/>
        </s:else>      
      </td>
    </tr>
    <tr class="form_tr">
      <td align="right"><span class="required">•</span>尾数舍入：</td>
      <td valign="top">
            <s:select cssStyle="width:225px;" title="尾数舍入 为必填项" name="accountItem.tailProcess.id" list='#request.SysCodeFinder.find("SALARY_VALUE_TAIL_PROCESS_TYPE")' headerKey="" headerValue="" listKey="id" listValue="codeName"/>
      </td>
    </tr>  
    <tr class="form_tr">
      <td align="right"><span class="required">•</span>是否导出：</td>
      <td valign="top">
       <s:select cssStyle="width:225px;" title="是否显示 为必填项" name="accountItem.isShow.id" list='#request.SysCodeFinder.find("YES_NO")' headerKey="" headerValue="" listKey="id" listValue="codeName"/>
      </td>
    </tr>
    <tr class="form_tr">
      <td align="right">备注：</td>
      <td valign="top"><s:textarea name="accountItem.descr" cssStyle="width:225px;height:50px;"/> </td>
    </tr>
    <tr class="form_tr">
      <td width="31%" align="right">&nbsp;</td>
      <td width="69%" valign="top">
        <s:if test="oper=='edit'">
          <input type="submit" name="button" id="button" value="修 改" />
          </s:if>
        <s:if test="oper=='add'">
          <input type="submit" name="button" id="button" value="添 加" />
          </s:if>
        &nbsp; 
        <!-- back begin -->
        <input name="winID" type="hidden" value="${param.winID}" />
        <input type="button" onclick="iframeWindowClose('${param.winID}')" name="button" id="button" value="返 回" />  
        <!-- back end -->
        <s:hidden name="accountItem.id" />
        <s:hidden name="oper" />
        </td>
    </tr>
  </table>
    
</s:form>
</body>
</html>