Files
lemon/webapp/content/bpm/console-listProcessDefinitions.jsp
2015-10-26 13:35:24 +08:00

142 lines
4.1 KiB
Plaintext

<%@page contentType="text/html;charset=UTF-8"%>
<%@include file="/taglibs.jsp"%>
<%pageContext.setAttribute("currentHeader", "bpm-console");%>
<%pageContext.setAttribute("currentMenu", "bpm-process");%>
<!doctype html>
<html lang="en">
<head>
<%@include file="/common/meta.jsp"%>
<title>流程列表</title>
<%@include file="/common/s.jsp"%>
<script type="text/javascript">
var config = {
id: 'processGrid',
pageNo: ${page.pageNo},
pageSize: ${page.pageSize},
totalCount: ${page.totalCount},
resultSize: ${page.resultSize},
pageCount: ${page.pageCount},
orderBy: '${page.orderBy == null ? "" : page.orderBy}',
asc: ${page.asc},
params: {
},
selectedItemClass: 'selectedItem',
gridFormId: 'processGridForm',
exportUrl: 'process-export.do'
};
var table;
$(function() {
table = new Table(config);
table.configPagination('.m-pagination');
table.configPageInfo('.m-page-info');
table.configPageSize('.m-page-size');
});
</script>
</head>
<body>
<%@include file="/header/bpm-console.jsp"%>
<div class="row-fluid">
<%@include file="/menu/bpm-console.jsp"%>
<!-- start of main -->
<section id="m-main" class="span10" style="float:right">
<article class="m-blank">
<div class="pull-left">
&nbsp;
</div>
<div class="pull-right">
每页显示
<select class="m-page-size">
<option value="10">10</option>
<option value="20">20</option>
<option value="50">50</option>
</select>
条
</div>
<div class="m-clear"></div>
</article>
<article class="m-widget">
<header class="header">
<h4 class="title">列表</h4>
</header>
<div class="content">
<table id="demoGrid" class="m-table table-hover">
<thead>
<tr>
<th width="10" class="m-table-check"><input type="checkbox" name="checkAll" onchange="toggleSelectedItems(this.checked)"></th>
<th class="sorting" name="id">编号</th>
<th class="sorting" name="key">代码</th>
<th class="sorting" name="name">名称</th>
<th class="sorting" name="category">分类</th>
<th class="sorting" name="version">版本</th>
<th class="sorting" name="description">描述</th>
<th class="sorting" name="suspended">状态</th>
<th width="150">&nbsp;</th>
</tr>
</thead>
<tbody>
<c:forEach items="${page.result}" var="item">
<tr>
<td><input type="checkbox" class="selectedItem" name="selectedItem" value="${item.id}"></td>
<td>${item.id}</td>
<td>${item.key}</td>
<td>${item.name}</td>
<td>${item.category}</td>
<td>${item.version}</td>
<td>${item.description}</td>
<td>
<c:if test="${item.suspended}">
挂起
<a href="console-activeProcessDefinition.do?processDefinitionId=${item.id}">(激活)</a>
</c:if>
<c:if test="${not item.suspended}">
激活
<a href="console-suspendProcessDefinition.do?processDefinitionId=${item.id}">(挂起)</a>
</c:if>
</td>
<td>
<a href="console-graphProcessDefinition.do?processDefinitionId=${item.id}" target="_blank">流程图</a>
<a href="console-viewXml.do?processDefinitionId=${item.id}" target="_blank">查看XML</a>
<a href="${tenantPrefix}/widgets/diagram-viewer/index.html?processDefinitionId=${item.id}" target="_blank">diagram-viewer</a>
<a href="console-beforeUpdateProcess.do?processDefinitionId=${item.id}">修改</a>
</td>
</tr>
</c:forEach>
</tbody>
</table>
</div>
</article>
<article>
<div class="m-page-info pull-left">
共100条记录 显示1到10条记录
</div>
<div class="btn-group m-pagination pull-right">
<button class="btn btn-small">&lt;</button>
<button class="btn btn-small">1</button>
<button class="btn btn-small">&gt;</button>
</div>
<div class="m-clear"></div>
</article>
</section>
<!-- end of main -->
</div>
</body>
</html>