listFlowForUrge.jsp 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. <%@ page language="java" contentType="text/html;charset=GBK"
  2. pageEncoding="GBK"%>
  3. <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
  4. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  5. <html>
  6. <head>
  7. <meta http-equiv="Content-Type" content="text/html;charset=GBK">
  8. <title>流程列表</title>
  9. <link href="${pageContext.request.contextPath }/liger/lib/ligerUI/skins/${sessionScope.css}/css/ligerui-all.css" rel="stylesheet" type="text/css" />
  10. <script src="${pageContext.request.contextPath }/liger/lib/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>
  11. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/ligerui.all.js" type="text/javascript"></script>
  12. <link href="${pageContext.request.contextPath}/main.css" rel="stylesheet" type="text/css" />
  13. <script type="text/javascript" src="/shares/js/constant.js"></script>
  14. <script type="text/javascript" src="/shares/js/common.js"></script>
  15. <script type="text/javascript" src="/shares/js/yw/bpm/oa.js"></script>
  16. <script type="text/javascript" src="/shares/js/yw/bpm/promptDefine.js"></script>
  17. <script type="text/javascript">
  18. var grid = null;
  19. $(function() {
  20. grid = $("#maingrid4")
  21. .ligerGrid(
  22. {
  23. columns : [{
  24. display : '流程标题',
  25. name : 'insName',
  26. width : 250
  27. },{
  28. display : '流程类型',
  29. name : 'modelId.typeId.typeName',
  30. width : 120,
  31. render : function(row) {
  32. var html = row.modelId.typeId.typeName;
  33. return html;
  34. }
  35. },{
  36. display : '流程模版',
  37. name : 'modelId.modelName',
  38. width : 120,
  39. render : function(row) {
  40. var html = row.modelId.modelName;
  41. return html;
  42. }
  43. },{
  44. display : '流程发起者',
  45. name : 'creator.username',
  46. width : 100,
  47. render : function(row) {
  48. var html = row.creator.username;
  49. return html;
  50. }
  51. },{
  52. display : '流程发起时间',
  53. name : 'createdate',
  54. width : 150
  55. },{
  56. display : '超时时间(天)',
  57. name : 'urgeTime',
  58. width : 120
  59. },{
  60. display : '操作',
  61. isAllowHide : false,
  62. width : 300,
  63. render : function(row) {
  64. var html = '';
  65. if(row.modelId.control.value == "1"){
  66. html ='<a href=\"#\" onclick=\"openODialog(\'${pageContext.request.contextPath }/FlowAction.do?task=toInfo&insId='
  67. + row.insId + '&tabid=' + getCurrentTabId()
  68. + '&dialogId='+row.insId+'\'+getTime(), \'流程查看\', \''+row.insId+'\'+getTime());\">查看</a>&nbsp;';
  69. }else if(row.modelId.control.value == "0"){
  70. html ='<a href=\"#\" onclick=\"openODialog(\''+row.modelId.controlUrl+'?task=toInfo&insId='
  71. + row.insId + '&tabid=' + getCurrentTabId()
  72. + '&dialogId='+row.insId+'\'+getTime(), \'流程查看\', \''+row.insId+'\'+getTime());\">查看</a>&nbsp;';
  73. }
  74. return html;
  75. }
  76. } ],
  77. usePager : true,
  78. pageSize : 20,
  79. url : 'FlowAction.do?task=urgeList&time='
  80. + new Date().getTime(),
  81. pageParmName : 'p', //页索引参数名,(提交给服务器)
  82. pagesizeParmName : 'pSize', //页记录数参数名,(提交给服务器)
  83. width : '99.9%',
  84. height : '98%',
  85. enabledSort : true,
  86. detail: { onShowDetail: showProcess },
  87. onError : function() {
  88. alert("数据加载失败,请刷新页面!");
  89. }
  90. });
  91. $("#pageloading").hide();
  92. });
  93. function getTime(){
  94. return new Date().getTime();
  95. }
  96. function showProcess(row, detailPanel,callback){
  97. var gProcess = document.createElement('div');
  98. $(detailPanel).append(gProcess);
  99. $(gProcess).css('margin',10).ligerGrid({
  100. columns:[
  101. { display: '环节名称', name: 'tmodelId.tmodelName', width: 100,
  102. render : function (row){
  103. return row.ti.tmodelId.tmodelName;
  104. }},
  105. { display: '操作人', name: 'user.username', width: 150,
  106. render : function (row){
  107. var au = row.ti.authorizedUser.userId;
  108. if(au != null && au != "" && au != "0"){
  109. return row.ti.user.username + "(授权:"
  110. + row.ti.authorizedUser.username + ")";
  111. }
  112. return row.ti.user.username;
  113. }},
  114. { display: '状态', name: 'state.dataName', width: 100,
  115. render : function (row){
  116. return row.ti.state.dataName;
  117. }},
  118. { display: '环节启动时间', name: 'ti.createdate', width: 150,
  119. render : function(row){
  120. return row.ti.createdate;
  121. }},
  122. { display: '环节结束时间', name: 'ti.finishdate', width: 150,
  123. render : function(row){
  124. return row.ti.finishdate;
  125. }},
  126. {display: '超时时间(天)', name: 'urgeTime', width: 100}
  127. ],
  128. usePager:false,
  129. width: '90%',
  130. url: 'FlowAction.do?task=urgeProcessList&insId=' + row.insId + '&time=' + new Date().getTime()
  131. });
  132. }
  133. </script>
  134. </head>
  135. <body>
  136. <div class="container-layout">
  137. <div id="title" class="form-button" style="width: 100%;">
  138. <input onclick="closeTabUseInOA();" type="button" value="关闭" class="l-button">
  139. </div>
  140. <div id="maingrid4" style="margin: 0; padding-top: 5px;clear: both;"></div>
  141. <div style="display: none;">
  142. <!-- g data total ttt -->
  143. </div>
  144. </div>
  145. <%@ include file="/include/message.jsp"%>
  146. </body>
  147. </html>