lcsl.jsp 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
  2. <%
  3. String path = request.getContextPath();
  4. String basePath=path+"/";
  5. %>
  6. <!doctype html>
  7. <html>
  8. <head>
  9. <title>SinoWorkFlow</title>
  10. <meta http-equiv="content-type" content="text/html; charset=utf-8">
  11. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  12. <link rel="stylesheet" href="<%=basePath%>player/js/bootstrap-3.3.7-dist/css/bootstrap.min.css">
  13. <link rel="stylesheet" href="<%=basePath%>player/css/font-awesome/css/font-awesome.min.css">
  14. <link rel="stylesheet" href="<%=basePath%>player/css/app.v2.css">
  15. <link rel="stylesheet" href="<%=basePath%>player/css/extjs.css">
  16. <link rel="stylesheet" href="<%=basePath%>player/js/toastr/toastr.min.css">
  17. </head>
  18. <body style="overflow: hidden;">
  19. <section id="content" class="content-sidebar bg-white" style="height: 100%;">
  20. <!-- .sidebar -->
  21. <aside class="sidebar bg-lighter sidebar-small" style="width: 200px;">
  22. <div class="text-center clearfix bg" style="height: 65px;">
  23. <!--<button id="glmbButton" class="btn btn-sm btn-primary m-t m-b" style="margin-top: 18px;display:none" onclick="relateDefinition()"><i class="fa fa-edit"></i> 新增模版</button> -->
  24. </div>
  25. <div class="list-group list-normal m-b-none">
  26. <a onclick="searchByType(this,'');" style="cursor:pointer" class="list-group-item active" ><i class="fa fa-list"></i><span class="badge m-r" id="temTotal"></span> 全部</a>
  27. <a onclick="searchByType(this,2);" style="cursor:pointer" class="list-group-item"><i class="fa fa-question-circle-o"></i><span class="badge m-r" id="temTodo"></span> 待办</a>
  28. <a onclick="searchByType(this,3);" style="cursor:pointer" class="list-group-item"><i class="fa fa-check-square-o"></i><span class="badge m-r" id="temDone"></span> 已办</a>
  29. <a onclick="searchByType(this,4);" style="cursor:pointer" class="list-group-item" ><i class="fa fa-repeat"></i><span class="badge m-r" id="temBack"></span> 回退</a>
  30. <a onclick="searchByType(this,5);" style="cursor:pointer" class="list-group-item"><i class="fa fa-power-off"></i><span class="badge m-r" id="temEnd"></span> 结束</a>
  31. </div>
  32. </aside>
  33. <!-- /.sidebar -->
  34. <!-- .sidebar -->
  35. <aside class="sidebar sidebar-large" style="width: 300px;height: 100%;">
  36. <div class="padder header-bar bg clearfix">
  37. <form action="#" method="get" class="sidebar-form pull-left shift" style="margin-top: 15px;width: 100%;">
  38. <div class="input-group">
  39. <input type="text" class="form-control" placeholder="请输入流程实例名称、编号" id="searchInput">
  40. <span class="input-group-btn">
  41. <button type="button" name="search" id="search-btn" class="btn btn-default" onclick="searchByLike()"><i class="fa fa-search text-muted"></i>
  42. </button>
  43. </span>
  44. </div>
  45. </form>
  46. </div>
  47. <div id="tableContent" class="list-group list-normal m-t-n-xmini scroll-y scrollbar" style="height: calc(100% - 105px);margin-bottom:5px;">
  48. </div>
  49. <div style="width:98%;height: 50px;margin-bottom: 10px;margin-left: 1%;text-align: center;">
  50. <ul class="pagination" style="padding:0px 20px 5px 20px;margin:0px" id="pagination"></ul>
  51. </div>
  52. </aside>
  53. <!-- /.sidebar -->
  54. <!-- .main -->
  55. <section class="main" style="height:100%" id="sectionMain">
  56. <div class=" clearfix padder m-b bg" style="height: 65px;margin-bottom:5px">
  57. <div class="m-b tooltip-test inline" id ="tempName" data-toggle="tooltip" title="" style="max-width:50%;margin-top:15px;font-size:25px;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;"></div>
  58. <div class="inline" style="height:40px;max-width:30%"><b class="badge bg-default pull-left" style="max-width:100%;background-color:white;color:black;font-weight:400;border:1px solid rgb(35, 212, 181);overflow: hidden;text-overflow: ellipsis;white-space: nowrap;" id ="tempRelate" data-toggle="tooltip" title=""></b></div>
  59. <div class="doc-buttons pull-right inline m-b" style="display: inline-block;margin-top: 20px;">
  60. <a class="btn btn-white btn-sm" onclick="changeItem('up')" style="cursor:pointer;"><i class="fa fa-chevron-left"></i> 上一条</a>
  61. <a class="btn btn-white btn-sm" onclick="changeItem('down')" style="cursor:pointer;">下一条 <i class="fa fa-chevron-right"></i> </a>
  62. </div>
  63. </div>
  64. <div class="text-small padder" style="border-bottom: 1px rgb(209, 212, 215);height: calc(100% - 110px);">
  65. <div class="block clearfix" style="margin-bottom:0px;width: 100%;overflow: hidden;">
  66. <div class="doc-buttons pull-right inline">
  67. <a class="btn btn-white btn-sm" onclick="showPlay1()" style="cursor:pointer;"><i class="fa fa-play-circle"></i> PLAY</a>
  68. <%--<a class="btn btn-white btn-sm" onclick="showPlay2()" style="cursor:pointer;"><i class="fa fa-play-circle-o"></i> PLAY2</a>--%>
  69. </div>
  70. </div>
  71. <div class="text-small" style="width:100%;height:100%;border:solid 1px rgb(209, 212, 215);">
  72. <iframe id="bpmnPlay" src="" style="border: none;width:100%;height:100%;overflow:hidden" ></iframe>
  73. </div>
  74. </div>
  75. </section>
  76. </section>
  77. </body>
  78. <script type="text/javascript">
  79. var basePath = '<%=basePath%>';
  80. </script>
  81. <script src="<%=basePath%>player/js/jquery/dist/jquery.min.js"></script>
  82. <script src="<%=basePath%>player/js/bootstrap-3.3.7-dist/js/bootstrap.min.js"></script>
  83. <script src="<%=basePath%>player/js/adminlte.min.js"></script>
  84. <script src="<%=basePath%>player/js/common.js"></script>
  85. <script src="<%=basePath%>player/js/toastr/toastr.min.js"></script>
  86. <script type="text/javascript">
  87. //修复IE9下height100%不生效的样式问题
  88. resetSectionHeight();
  89. loadData();
  90. function loadData(){
  91. getData(1,'instance');
  92. getCounts('instance');
  93. }
  94. function showPlay1(){
  95. var instanceId = $('#tableContent .active').attr('id');
  96. var url = basePath+'player/design/play.jsp?id=' + instanceId;
  97. var model = $("#bpmnPlay")[0].contentWindow.model;
  98. if(model!=null){
  99. var mHeight = model.height+30+60+115;
  100. var mWidth = model.width +20+30;
  101. mHeight = (mHeight > document.body.clientHeight-20)?document.body.clientHeight-20:mHeight;
  102. mWidth = (mWidth > document.body.clientWidth-200)?document.body.clientWidth-200:mWidth;
  103. openModal('流程播放',url,mHeight,mWidth,null,false);
  104. }
  105. }
  106. function showPlay2(){
  107. var instanceId = $('#tableContent .active').attr('id');
  108. var url = basePath+'player/design/play2.jsp?id=' + instanceId;
  109. var model = $("#bpmnPlay")[0].contentWindow.model;
  110. if(model!=null){
  111. var mHeight = model.height+30+60+8;
  112. var mWidth = model.width +20+300;
  113. mHeight = (mHeight > document.body.clientHeight-20)?document.body.clientHeight-20:mHeight;
  114. mWidth = (mWidth > document.body.clientWidth-200)?document.body.clientWidth-200:mWidth;
  115. openModal('流程播放',url,mHeight,mWidth,null,false);
  116. }
  117. }
  118. function searchByType(obj,type){
  119. typeSearch=type;
  120. getData(1,'instance');
  121. $('.m-b-none').children().removeClass('active');
  122. $(obj).addClass('active');
  123. }
  124. function searchByLike(){
  125. likeSearch = $('#searchInput').val();
  126. getData(1,'instance');
  127. }
  128. function changeItem(type){
  129. var curItem = $('#tableContent .active');
  130. if(type=='up'&&curItem.prev()!=null)
  131. curItem.prev().trigger("click");
  132. else if(type=='down'&&curItem.next()!=null)
  133. curItem.next().trigger("click");
  134. }
  135. function relateDefinition(){
  136. var url = basePath+'player/page/mbgllc.jsp';
  137. openModal('关联流程定义',url,document.body.clientHeight-20,document.body.clientWidth-200,null,false);
  138. }
  139. </script>
  140. </html>