<%@ page contentType="text/html; charset=utf-8" language="java" %>
<%@ taglib uri="/WEB-INF/taglib.tld" prefix="x" %>
<%@ taglib tagdir="/WEB-INF/tags" prefix="t" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<head>
    <x:base include="layout,tree,dialog,grid,combox,comboDialog,flexField,commonTree,formButton"/>
    <script src='<c:url value="/system/tbpm/procInst/procInstList.js"/>' type="text/javascript"></script>
</head>
<body>
<div class="container-fluid">
    <x:hidden name="serviceId"/>
    <x:title title="搜索" hideTable="queryMainForm" isHide="true"/>
    <form class="hg-form ui-hide" method="post" action="" id="queryMainForm">
        <x:inputC name="procdefCode" label="流程定义编码" maxLength="32" labelCol="1"/>
        <x:inputC name="procdefName" label="流程定义名称" maxLength="32" labelCol="1"/>
        <x:searchButtons/>
    </form>
    <t:grid id="maingrid"
            url="/bpm/procInst/sliceQuery.ajax" style="margin: 2px;"
            height="93%"
            width="100%"
            heightDiff="-13"
            fixedCellHeight="true"
            selectRowButtonOnly="true"
            checkbox="true">
        <t:tool-button id="showViewer" clickFn="showViewer" text="流程图"/>
        <t:grid-column name="name" display="流程实例名称" type="string" width="150"/>
        <t:grid-column name="bizKey" display="业务key" type="string" width="200"/>
        <t:grid-column name="createdDate" display="启动时间" type="datetime" width="200"/>
        <t:grid-column name="completeDate" display="结束时间" type="datetime" width="200"/>
        <t:grid-column name="statusTextView" display="实例状态" type="string" width="100"/>
    </t:grid>
</div>
</body>
</html>
