<%@ 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">
function addNode(){
	iframeWindow("<s:url namespace='/att' action='attApproveFlowNodeOperate'/>?oper=add&node.attApproveFlow.id=<s:property value='flow.id'/>",600,450,"添加审批流程节点",refreshWindow);
}

function editNode(id){
	iframeWindow("<s:url namespace='/att' action='attApproveFlowNodeOperate'/>?oper=edit&node.id="+id,600,450,"修改审批流程节点",refreshWindow);
}

function deleteNode(id){
	msgConfirm("您确认要删除该记录吗？",function(){
	iframeWindow("<s:url namespace='/att' action='attApproveFlowNodeDelete'/>?node.id="+id,400,200,'删除审批流程节点',refreshWindow);
	});
}
</script>
</head>

<body style="background-color:#FFF;">
<div class="body_form" style="width:100%; padding-top:0;">
<s:include value="../common/body.jsp" />
<s:form action="attApproveFlowNodeList" id="queryForm" namespace="/att">
<s:hidden name="flow.id" />
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="0" class="table_line">
      <tr>
        <td colspan="8" class="big_title"><div style="float:left;padding-top:2px;">【<s:property value="flow.name"/>】的节点列表</div>
          <div class="sub_add" title="添加节点" onclick="addNode()">添加</div></td>
      </tr>
      <s:if test="flow.nodeSet!=null && flow.nodeSet.size()>0">
        <tr class="sub_list_title center">
          <td width="12%" class="center">节点序号</td>
          <td width="17%" class="center">节点名称</td>
          <td width="33%" class="center">审批类型</td>
          <td width="13%"  class="center">审批人</td>
          <td width="13%"  class="center">审批条件</td>
          <td width="12%">操作</td>
        </tr>
        <s:iterator value="flow.nodeSet" 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"><s:property value="stepNo"/></td>
            <td class="center"><s:property value="name"/></td>
            <td class="center"><s:property value="approverType.codeName"/></td>
            <td class="center"><s:property value="approver.name"/>&nbsp;</td>
            <td class="center">
            	<s:if test="enableCondition!=null">
                <s:property value="enableCondition"/> 小时
                </s:if>
            	&nbsp;
            </td>
            <td class="center">
            	<img src="../resources/style/images/delete.gif" width="16" height="16" alt="删除" 
            		onclick="deleteNode(<s:property value='id'/>)" class="pointer" />
                    &nbsp; 
            	<img src="../resources/style/images/edit.gif" width="16" height="16" alt="修改" 
                	class="pointer" onclick="editNode(<s:property value='id'/>)"/>
            </td>
          </tr>
        </s:iterator>
      </s:if>
    </table>
    
    
    
    <div style="text-align:center; padding:10px;">
          <input name="winID" type="hidden" value="${param.winID}" />
          <input type="button" onclick="iframeWindowClose('${param.winID}')" name="button" id="button" value="返 回" /> 
	</div>
    
</s:form>
</div>
</body>
</html>