<%@ 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>
<div class="body_form">
<s:include value="../common/body.jsp" />
<s:form action="sysCodeOperate" namespace="/system" onsubmit="checkForm(this)">

 <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr class="form_tr">
      <td width="40%" align="right"><span class="required">•</span>编码名称：</td>
      <td width="60%" valign="top">
      	<s:textfield name="item.codeName" cssStyle="width:130px;" title="编码名称 为必填项。"/>
      </td>
       </tr>
     <tr class="form_tr">
       <td align="right" valign="top"><span class="required">•</span>编码类型：</td>
       <td valign="top">
       	<s:if test="oper=='add'">
			<s:select name="item.sysCodeKind.id" title="编码类型 为必填项。"  cssStyle="width:130px;" 
				list='kindList' headerKey="" headerValue="" 
				listKey="id" listValue="name"/> 
        </s:if>
        <s:else>
        	<s:property value="item.sysCodeKind.name"/>
            <s:hidden name="item.sysCodeKind.id" />
            <s:hidden name="item.sysCodeKind.name" />
        </s:else>
       </td>
     </tr>
     <tr class="form_tr">
      <td width="40%" align="right" valign="top"><span class="required">•</span>编码状态：</td>
      <td width="60%" valign="top">
      	<s:select name="item.recordStatus" title="编码状态 为必填选项。"  cssStyle="width:130px;" 
				list='recordTypeArray' headerKey="" headerValue="" 
				listKey="code" listValue="desc"/>
      </td>
	</tr>
     <tr class="form_tr">
       <td align="right" valign="top">排序编号：</td>
       <td valign="top">
       <s:textfield name="item.orderBy" cssStyle="width:130px;" title="排序编号 必须为数字。"/>
       </td>
     </tr>    
    <tr class="form_tr">
      <td width="40%" align="right">&nbsp;</td>
      <td width="60%" 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="item.id" />
        <s:hidden name="oper"/>
        </td>
    </tr>
  </table>


</s:form>
</div>
</body>
</html>