| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151 |
- <%@ page language="java" contentType="text/html;charset=GBK"
- pageEncoding="GBK"%>
- <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html;charset=GBK">
- <title>流程列表</title>
- <link href="${pageContext.request.contextPath }/liger/lib/ligerUI/skins/${sessionScope.css}/css/ligerui-all.css" rel="stylesheet" type="text/css" />
- <script src="${pageContext.request.contextPath }/liger/lib/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>
- <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/ligerui.all.js" type="text/javascript"></script>
- <link href="${pageContext.request.contextPath}/main.css" rel="stylesheet" type="text/css" />
- <script type="text/javascript" src="/shares/js/constant.js"></script>
- <script type="text/javascript" src="/shares/js/common.js"></script>
- <script type="text/javascript" src="/shares/js/yw/bpm/oa.js"></script>
- <script type="text/javascript" src="/shares/js/yw/bpm/promptDefine.js"></script>
- <script type="text/javascript">
- var grid = null;
- $(function() {
- grid = $("#maingrid4")
- .ligerGrid(
- {
- columns : [{
- display : '流程标题',
- name : 'insName',
- width : 250
- },{
- display : '流程类型',
- name : 'modelId.typeId.typeName',
- width : 120,
- render : function(row) {
- var html = row.modelId.typeId.typeName;
- return html;
- }
- },{
- display : '流程模版',
- name : 'modelId.modelName',
- width : 120,
- render : function(row) {
- var html = row.modelId.modelName;
- return html;
- }
- },{
- display : '流程发起者',
- name : 'creator.username',
- width : 100,
- render : function(row) {
- var html = row.creator.username;
- return html;
- }
- },{
- display : '流程发起时间',
- name : 'createdate',
- width : 150
- },{
- display : '超时时间(天)',
- name : 'urgeTime',
- width : 120
- },{
- display : '操作',
- isAllowHide : false,
- width : 300,
- render : function(row) {
- var html = '';
- if(row.modelId.control.value == "1"){
- html ='<a href=\"#\" onclick=\"openODialog(\'${pageContext.request.contextPath }/FlowAction.do?task=toInfo&insId='
- + row.insId + '&tabid=' + getCurrentTabId()
- + '&dialogId='+row.insId+'\'+getTime(), \'流程查看\', \''+row.insId+'\'+getTime());\">查看</a> ';
- }else if(row.modelId.control.value == "0"){
- html ='<a href=\"#\" onclick=\"openODialog(\''+row.modelId.controlUrl+'?task=toInfo&insId='
- + row.insId + '&tabid=' + getCurrentTabId()
- + '&dialogId='+row.insId+'\'+getTime(), \'流程查看\', \''+row.insId+'\'+getTime());\">查看</a> ';
- }
- return html;
- }
- } ],
- usePager : true,
- pageSize : 20,
- url : 'FlowAction.do?task=urgeList&time='
- + new Date().getTime(),
- pageParmName : 'p', //页索引参数名,(提交给服务器)
- pagesizeParmName : 'pSize', //页记录数参数名,(提交给服务器)
- width : '99.9%',
- height : '98%',
- enabledSort : true,
- detail: { onShowDetail: showProcess },
- onError : function() {
- alert("数据加载失败,请刷新页面!");
- }
- });
- $("#pageloading").hide();
- });
- function getTime(){
- return new Date().getTime();
- }
- function showProcess(row, detailPanel,callback){
- var gProcess = document.createElement('div');
- $(detailPanel).append(gProcess);
- $(gProcess).css('margin',10).ligerGrid({
- columns:[
- { display: '环节名称', name: 'tmodelId.tmodelName', width: 100,
- render : function (row){
- return row.ti.tmodelId.tmodelName;
- }},
- { display: '操作人', name: 'user.username', width: 150,
- render : function (row){
- var au = row.ti.authorizedUser.userId;
- if(au != null && au != "" && au != "0"){
- return row.ti.user.username + "(授权:"
- + row.ti.authorizedUser.username + ")";
- }
- return row.ti.user.username;
- }},
- { display: '状态', name: 'state.dataName', width: 100,
- render : function (row){
- return row.ti.state.dataName;
- }},
- { display: '环节启动时间', name: 'ti.createdate', width: 150,
- render : function(row){
- return row.ti.createdate;
- }},
- { display: '环节结束时间', name: 'ti.finishdate', width: 150,
- render : function(row){
- return row.ti.finishdate;
- }},
- {display: '超时时间(天)', name: 'urgeTime', width: 100}
- ],
- usePager:false,
- width: '90%',
- url: 'FlowAction.do?task=urgeProcessList&insId=' + row.insId + '&time=' + new Date().getTime()
- });
- }
- </script>
- </head>
- <body>
- <div class="container-layout">
- <div id="title" class="form-button" style="width: 100%;">
- <input onclick="closeTabUseInOA();" type="button" value="关闭" class="l-button">
- </div>
- <div id="maingrid4" style="margin: 0; padding-top: 5px;clear: both;"></div>
- <div style="display: none;">
- <!-- g data total ttt -->
- </div>
- </div>
- <%@ include file="/include/message.jsp"%>
- </body>
- </html>
|