customViewFlow.jsp 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553
  1. <%@page import="java.util.ArrayList"%>
  2. <%@page import="com.yw.bpm.instance.model.FileInfo"%>
  3. <%@page import="com.yw.bpm.instance.model.TacheInstance"%>
  4. <%@page import="java.util.List"%>
  5. <%@page import="com.yw.core.session.OASession"%>
  6. <%@ page language="java" contentType="text/html;charset=UTF-8"
  7. pageEncoding="UTF-8"%>
  8. <jsp:useBean id="oasession" class="com.yw.core.session.OASession"
  9. scope="session" />
  10. <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
  11. <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
  12. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  13. <html class=" width960">
  14. <head>
  15. <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
  16. <META http-equiv="Cache-Control" content="no-store, no-cache, must-revalidate">
  17. <title>流程信息</title>
  18. <link
  19. href="${pageContext.request.contextPath }/liger/lib/ligerUI/skins/${sessionScope.css}/css/ligerui-all.css"
  20. rel="stylesheet" type="text/css" />
  21. <script src="${pageContext.request.contextPath }/liger/lib/jquery/jquery-1.3.2.min.js"
  22. type="text/javascript"></script>
  23. <script
  24. src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/ligerui.all.js" type="text/javascript"></script>
  25. <link href="${pageContext.request.contextPath}/main.css" rel="stylesheet" type="text/css" />
  26. <link href="${pageContext.request.contextPath}/yw/bpm/style/bootstrap.css" rel="stylesheet" type="text/css" />
  27. <link href="${pageContext.request.contextPath}/yw/bpm/style/flow.css" rel="stylesheet" type="text/css" />
  28. <script type="text/javascript" src="/shares/js/constant.js"></script>
  29. <script type="text/javascript" src="/shares/js/common.js"></script>
  30. <script type="text/javascript" src="/shares/js/yw/bpm/instance/instance.js"></script>
  31. <script type="text/javascript" src="/shares/js/yw/bpm/oa.js"></script>
  32. <script type="text/javascript" src="/shares/js/file.js"></script>
  33. <script type="text/javascript" src="/shares/js/yw/bpm/raphael.js"></script>
  34. <style type="text/css">
  35. span[id$="_filespan"] ul{
  36. list-style-type:none;
  37. float: left;
  38. }
  39. .title{
  40. width:65px;
  41. font-size:14px;
  42. }
  43. .content {
  44. font-size:14px;
  45. }
  46. </style>
  47. <script type="text/javascript">
  48. var insId = "${requestScope.flow.insId}";
  49. var formId = "${requestScope.flow.formId.formId}";
  50. $(function() {
  51. window.scrollTo(0,0);
  52. if(formId != "0"){
  53. $("#formIns").attr("src", "${pageContext.request.contextPath }/${requestScope.flow.modelId.controlUrl }.do?task=toView&formId="+
  54. formId+"&formInsId=${requestScope.flow.formInsId}&state=${requestScope.state}");
  55. }
  56. var pdfId = "${requestScope.flow.pdfId.universalid}";
  57. if(pdfId != null && pdfId != ""){
  58. $("#limitViewOffice").val("1");
  59. $("#editPdf").show();
  60. }
  61. // backValue();
  62. });
  63. /* function closeSelf(){
  64. var type = "${param.type}";
  65. var parentDialogId = "ligerWindow_${param.parentDialogId}";
  66. if(type==1){
  67. window.parent.frames['content'].frames['${param.tabid }'].closeODialog('${param.dialogId }');
  68. } else if(type==2){
  69. window.parent.frames[parentDialogId].closeODialog('${param.dialogId }');
  70. }else {
  71. window.parent.frames['${param.tabid }'].closeODialog('${param.dialogId }');
  72. }
  73. } */
  74. function closeSelf(){
  75. var type = "${param.type}";
  76. var parentDialogId = "ligerWindow_${param.parentDialogId}";
  77. try {
  78. if(type==1){
  79. window.parent.frames['content'].frames['${param.tabid }'].closeODialog('${param.dialogId }');
  80. } else if(type==2){
  81. window.parent.frames[parentDialogId].closeODialog('${param.dialogId }');
  82. }else {
  83. window.parent.frames['${param.tabid }'].closeODialog('${param.dialogId }');
  84. $("div#${param.dialogId } .l-dialog-winbtn.l-dialog-close",window.parent.document).click();
  85. }
  86. } catch (e) {
  87. $("div#${param.dialogId } .l-dialog-winbtn.l-dialog-close",window.parent.document).click();
  88. }
  89. }
  90. function openimg(){
  91. //$.ligerDialog.open({width : 1000, height : 300, target: $("#flowimg") });
  92. //是否支持svg
  93. var bool = Raphael.svg;
  94. if(bool){
  95. locking(2);
  96. }else{
  97. locking(1);
  98. }
  99. }
  100. function delfileshownhide(){
  101. var delfiles = $('#delfiles').css('display');
  102. if(delfiles == "none"){
  103. $("#delfiles").show();
  104. $("#ahide").html("隐藏已删除附件");
  105. }else if(delfiles == "block"){
  106. $("#delfiles").hide();
  107. $("#ahide").html("查看已删除附件");
  108. }
  109. }
  110. function showTaskDetail(id){
  111. $("#showTaskDetail_" + id).toggle();
  112. $("#hideTaskDetail_" + id).toggle();
  113. $(".taskDetail_"+id).toggle();
  114. }
  115. function backTins(){
  116. if(!confirm("确认收回该流程?")){
  117. return;
  118. }
  119. $('#task').val('backTins');
  120. var rs = true;
  121. if(formId == "0"){
  122. $("#formInsId").val("0");
  123. }
  124. if(rs){
  125. var x = $("#insForm").serializeArray();
  126. $.each(x, function(i, field) {
  127. field.value = encodeURI(field.value);
  128. });
  129. $.ajax({
  130. url : "FlowAction.do",
  131. async : true,
  132. type : "post",
  133. data : x,
  134. dataType : 'json',
  135. success : function(data) {
  136. //addInfo(data);
  137. //closeSelf();
  138. var success = data[0].success;
  139. var tip = data[0].tip;
  140. if(success){
  141. addInfo(tip);
  142. closeSelf();
  143. } else {
  144. addError(tip);
  145. }
  146. },
  147. error : function() {
  148. alert("数据处理失败,请检查网络重新登录或联系管理员!");
  149. },
  150. beforeSend : function() {
  151. }
  152. });
  153. }
  154. }
  155. var officeDialog = null;
  156. var pdfDialog = null;
  157. function ow(owurl, name) {
  158. officeDialog = $.ligerDialog.open({
  159. height : 700,
  160. width : 1000,
  161. url : owurl,
  162. showMax : false,
  163. showToggle : false,
  164. showMin : false,
  165. isResize : false,
  166. modal : true,
  167. title : name,
  168. allowClose : false
  169. });
  170. }
  171. function pw(owurl, name) {
  172. pdfDialog = $.ligerDialog.open({
  173. height : 700,
  174. width : 1000,
  175. url : owurl,
  176. showMax : false,
  177. showToggle : false,
  178. showMin : false,
  179. isResize : false,
  180. modal : true,
  181. title : name,
  182. allowClose : false
  183. });
  184. }
  185. function closeOfficeDialog() {
  186. officeDialog.close();
  187. }
  188. function openOffice() {
  189. var officeId = $("#officeId").val();
  190. // ow('${pageContext.request.contextPath}/NtkoAction.do?task=info&fileId='
  191. // + officeId, '公文查看');
  192. window.showModalDialog('${pageContext.request.contextPath}/NtkoAction.do?task=info&fileId='
  193. + officeId, window, "dialogWidth=1000px;dialogHeight=700px;resizable=no;scroll=no;status=no;");
  194. }
  195. function openPdf() {
  196. var officeId = $("#officeId").val();
  197. var pdfId = $("#pdfId").val();
  198. pw('${pageContext.request.contextPath}/NtkoAction.do?task=openPdf&isNew=0&type=info&fileId='
  199. + pdfId, '公文查看');
  200. }
  201. function closePdfDialog() {
  202. pdfDialog.close();
  203. }
  204. </script>
  205. </head>
  206. <body style="background: none;">
  207. <form action="FlowAction.do" method="post" id="insForm" name="insForm" onsubmit="return false;">
  208. <div class="navbar1">
  209. <div class="navbar-inner1">
  210. <button type="button" onclick="closeSelf();" style="border-color: blue;" class="btn">
  211. <span style="color: blue">关闭</span>
  212. </button>
  213. <c:if test="${requestScope.backTins == '1' }">
  214. <button type="button" onclick="backTins();" style="border-color: #ff0000;" class="btn">
  215. <span style="color: #ff0000;">收回</span>
  216. </button>
  217. </c:if>
  218. </div>
  219. </div>
  220. <div class="navbar">
  221. <div class="navbar-inner2">
  222. <font style="color: black; font-family: 微软雅黑; font-size: 30px; ">${requestScope.flow.insName }</font>
  223. <font style="color: black; font-family: 微软雅黑; font-size: 20px; ">发起人:${requestScope.flow.creator.username }</font>
  224. </div>
  225. </div>
  226. <div id="word_temp" class="wp" style="position: relative;">
  227. <div id="print_body">
  228. <c:if test="${requestScope.flow.formInsId != '0' }">
  229. <fieldset id="icon-top2">
  230. <div class="wf_shadow">
  231. <span class="z corner_41"></span> <span class="y corner_12"></span>
  232. <c:if test="${requestScope.flow.formInsId != '0' }">
  233. <iframe width="100%" onload="setFrame();" id="formIns" name="formIns"
  234. frameborder="0" scrolling="yes" style="width:100%;overflow-y : hidden;"
  235. src="" >
  236. </iframe>
  237. </c:if>
  238. <span class="z corner_34"></span> <span class="y corner_23"></span>
  239. </div>
  240. </fieldset>
  241. </c:if>
  242. <c:if test="${fn:length(requestScope.dubanList) > 0 }">
  243. <fieldset id="icon-top3" class="icon-top" style=" width: 970px; ">
  244. <legend class="fieldsettop">
  245. <i></i> &nbsp;督办单
  246. </legend>
  247. <div class="forum-container">
  248. <table class="l-table-edit" style="margin-left: 20px; width: 950px;">
  249. <c:forEach items="${requestScope.dubanList }" var="duban">
  250. <tr>
  251. <td class="title">督办内容:</td>
  252. <td class="content" style="max-width:300px;">${duban.content }</td>
  253. <td class="title">督办人:</td>
  254. <td class="content">${duban.name }</td>
  255. <td class="title">督办时间:</td>
  256. <td class="content">${duban.createdate }</td>
  257. </tr>
  258. </c:forEach>
  259. </table>
  260. </div>
  261. </fieldset>
  262. </c:if>
  263. <fieldset id="icon-top3" class="icon-top"
  264. style=" width: 970px; ">
  265. <legend class="fieldsettop">
  266. <i></i> &nbsp;流程附件
  267. </legend>
  268. <div class="forum-container">
  269. <table class="l-table-edit" style="margin-left: 10px; width: 950px;">
  270. <c:if test="${requestScope.flow.officeId.universalid!=0 && requestScope.flow.officeId.universalid!= null}">
  271. <tr id="new">
  272. <td class="l-table-edit-text">公文正文:
  273. </td>
  274. <td class="l-table-edit-td">
  275. <input type="hidden" name="officeId" id="officeId" value="${requestScope.flow.officeId.universalid }">
  276. <a id="editOffice" onclick="openOffice()" style="font-size: 18px;color:blue;font-weight:bold;">查看公文</a>
  277. <input type="hidden" name="pdfId" id="pdfId" value="${requestScope.flow.pdfId.universalid }">
  278. <a id="editPdf" style="display: none;" onclick="openPdf()" style="font-size: 13px;">查看PDF公文</a>
  279. </td>
  280. </tr>
  281. </c:if>
  282. <% List<FileInfo> allfileList = (List)(request.getAttribute("fileList"));
  283. List<FileInfo> fileList = new ArrayList();
  284. List<FileInfo> delfileList = new ArrayList();
  285. for(FileInfo file:allfileList){
  286. if("1".equals(file.getState().getValue())){
  287. fileList.add(file);
  288. }else if("0".equals(file.getState().getValue())){
  289. delfileList.add(file);
  290. }
  291. }
  292. %>
  293. <tr>
  294. <td class="l-table-edit-text">附件 <% if(delfileList.size()>0) {%>(<a id="ahide" onclick="delfileshownhide();">查看已删除附件</a>)<%} %>:
  295. </td>
  296. <td class="l-table-edit-td">
  297. <%-- <c:if test="${fn:length(requestScope.fileList) > 0 }"> --%>
  298. <!-- <table> -->
  299. <!-- <tr> -->
  300. <!-- <td width="20%">上传环节</td> -->
  301. <!-- <td width="40%">上传人</td> -->
  302. <!-- <td width="40%">附件</td> -->
  303. <!-- </tr> -->
  304. <%-- <c:forEach items="${requestScope.fileList }" var="file"> --%>
  305. <!-- <tr> -->
  306. <%-- <td>${file.tinsId.tmodelId.tmodelName }</td> --%>
  307. <%-- <td>${file.creator.username }(${file.tinsId.finishdate })</td> --%>
  308. <%-- <td><span class="l-file" len="15">${file.fileId.universalid }</span></td> --%>
  309. <!-- </tr> -->
  310. <%-- </c:forEach> --%>
  311. <!-- </table> -->
  312. <%-- </c:if> --%>
  313. <% if(allfileList.size()>0) {%>
  314. <table>
  315. <tr>
  316. <td width="20%" style="font-size: 13px;">上传环节</td>
  317. <td width="30%" style="font-size: 13px;">上传人</td>
  318. <td width="50%" style="font-size: 13px;">附件</td>
  319. </tr>
  320. <% if(fileList.size()>0) {
  321. for(FileInfo file:fileList){%>
  322. <tr id="<%=file.getIfileId()%>" style="font-size: 13px;">
  323. <td style="font-size: 13px;"><%=file.getTinsId().getTmodelId().getTmodelName() %></td>
  324. <td style="font-size: 13px;"><%=file.getCreator().getUsername() %>(<%=file.getTinsId().getFinishdate() %>)</td>
  325. <td style="font-size: 13px;">
  326. <span id="<%=file.getIfileId()%>_filespan" class="l-file" len="15"><%=file.getFileId().getUniversalid() %></span>
  327. </td>
  328. </tr>
  329. <% }}%>
  330. </table>
  331. <div id="delfiles" style="display:none;">
  332. <% if(delfileList.size()>0) {%>
  333. <table>
  334. <% for(FileInfo file:delfileList){%>
  335. <tr id="<%=file.getIfileId()%>">
  336. <td width="20%"><%=file.getTinsId().getTmodelId().getTmodelName() %></td>
  337. <td width="30%"><%=file.getCreator().getUsername() %>(<%=file.getTinsId().getFinishdate() %>)</td>
  338. <td width="50%">
  339. <span class="l-file" len="15"><%=file.getFileId().getUniversalid() %></span>
  340. <font color="red">(已删除,删除时间:<%=file.getDelTime() %>)</font>
  341. </td>
  342. </tr>
  343. <% }%>
  344. </table>
  345. <% }%>
  346. </div>
  347. <%}else{ %>
  348. 无附件数据...
  349. <%} %>
  350. </td>
  351. </tr>
  352. </table>
  353. </div>
  354. </fieldset>
  355. <fieldset id="icon-top5" class="icon-top"
  356. style="width: 970px; ">
  357. <legend class="fieldsettop">
  358. <i></i> &nbsp;流转过程
  359. <c:if test="${requestScope.imgflag == 1 }">
  360. &nbsp;<img width="14" height="14" title="查看流程图" style="cursor: pointer;" onclick="openimg();" src="/shares/images/view.png" complete="complete"/><font size="12px">点此查看流程图</font>
  361. </c:if>
  362. </legend>
  363. <c:forEach items="${requestScope.processList }" var="tache">
  364. <div class="wf_shadow1">
  365. <c:if test="${tache.taskCount != 0 || tache.assistCount != 0}">
  366. <div style="position: absolute; margin-left: 750px; cursor: pointer; color: blue;" id="showTaskDetail_${tache.tache.tinsId}" onclick="showTaskDetail('${tache.tache.tinsId}');">查看传阅协办</div>
  367. <div style="position: absolute; margin-left: 750px; cursor: pointer; color: blue; display: none;" id="hideTaskDetail_${tache.tache.tinsId}" onclick="showTaskDetail('${tache.tache.tinsId}');">隐藏传阅协办</div>
  368. </c:if>
  369. <c:if test="${tache.userHeaderImg.headerfileid!=null && tache.userHeaderImg.headerfileid!='' }">
  370. <div style="position: absolute; margin-left: 5px; width: 90px;">
  371. <img alt="" style="width: 40px; height:40px;" src="${tache.userHeaderImg.gpath }">
  372. </div>
  373. </c:if>
  374. <c:if test="${tache.userHeaderImg.headerfileid==null || tache.userHeaderImg.headerfileid=='' }">
  375. <div style="position: absolute; margin-left: 5px; width: 90px;">
  376. <img alt="" style="width: 40px; height: 40px;" src="${pageContext.request.contextPath}/yw/bpm/style/header1.png">
  377. </div>
  378. </c:if>
  379. <div class="marginleft60">
  380. 环节名称:<font class="blueFont">${tache.tache.tmodelId.tmodelName }</font>&nbsp;&nbsp;
  381. 创建时间:<font class="blueFont">${fn:substring(tache.tache.createdate, 0, 16) }</font>&nbsp;&nbsp;
  382. <c:if test="${tache.tache.finishdate != null }">
  383. 环节办结:<font class="blueFont">${fn:substring(tache.tache.finishdate, 0, 16) }</font>&nbsp;&nbsp;
  384. </c:if>
  385. <font style="color: red; font-size: 14px;">${tache.tache.state.dataName }</font>
  386. </div>
  387. <div class="marginleft60">
  388. <font style="color: #0e0e0e; font-size: 20px;">${tache.tache.user.username }
  389. <c:if test="${tache.tache.authorizedUser.userId!='0' && tache.tache.authorizedUser.userId!='' && tache.tache.authorizedUser.userId!=null}">
  390. (授权:${tache.tache.authorizedUser.username})
  391. </c:if>
  392. </font>
  393. <c:if test="${tache.tache.remark != null && fn:length(tache.tache.remark) > 0 }">
  394. </c:if>
  395. </div>
  396. <c:if test="${tache.tache.remark != null && fn:length(tache.tache.remark) > 0 }">
  397. <div class="marginleft60">
  398. <font style="color: blue; font-size: 14px;">${tache.tache.remark }</font>
  399. </div>
  400. </c:if>
  401. <c:if test="${tache.taskCount != 0 }">
  402. <div class="taskDetail_${tache.tache.tinsId} marginleft60" style="display: none;">
  403. <div><font class="blueFont12px">传阅信息</font></div>
  404. <c:forEach items="${tache.task }" var="task">
  405. <div>
  406. 传阅对象:<font class="blueFont12px">${task.username } </font>&nbsp;&nbsp;
  407. 传阅时间:<font class="blueFont12px">${fn:substring(task.createdate, 0, 16) }</font>
  408. </div>
  409. </c:forEach>
  410. </div>
  411. </c:if>
  412. <c:if test="${tache.assistCount != 0 }">
  413. <div class="taskDetail_${tache.tache.tinsId} marginleft60" style="display: none; ">
  414. <div><font class="blueFont12px">协办信息</font></div>
  415. <c:forEach items="${tache.assist }" var="task">
  416. <div>
  417. 协办对象:<font class="blueFont12px">${task.assist.username }</font> &nbsp;&nbsp;
  418. 办理内容:<font class="blueFont12px">${task.assist.taskContent }</font> &nbsp;&nbsp;
  419. 创建时间:<font class="blueFont12px">${fn:substring(task.assist.createdate, 0, 16) }</font> &nbsp;&nbsp;
  420. <c:if test="${task.assist.finishdate!='' && task.assist.finishdate!=null }">
  421. 完成时间:<font class="blueFont12px">${fn:substring(task.assist.finishdate, 0, 16) }</font> &nbsp;&nbsp;
  422. </c:if>
  423. <c:if test="${task.dialog.dialogInfo!='' && task.dialog.dialogInfo!=null }">反馈:
  424. ${task.dialog.dialogInfo }
  425. </c:if>
  426. </div>
  427. </c:forEach>
  428. </div>
  429. </c:if>
  430. </div>
  431. </c:forEach>
  432. </fieldset>
  433. <fieldset></fieldset>
  434. </div>
  435. <br>
  436. </div>
  437. <!-- end wrap-->
  438. <div style="position: fixed; bottom: 100px; right: 80px;">
  439. <p class="back-to-top" id="top1" style="display: block;">
  440. <a href="#top"><span></span>返回顶部</a>
  441. </p>
  442. <c:if test="${requestScope.flow.formInsId != '0' }">
  443. <p class="back-to-top" id="top2" style="display: block;">
  444. <a href="#icon-top2"><span></span>查看表单</a>
  445. </p>
  446. </c:if>
  447. <p class="back-to-top" id="top3" style="display: block;">
  448. <a href="#icon-top3"><span></span>查看附件</a>
  449. </p>
  450. <!-- <p class="back-to-top" id="top4" style="display: block;">
  451. <a href="#icon-top4"><span></span>备注意见</a>
  452. </p> -->
  453. <p class="back-to-top" id="top5" style="display: block;">
  454. <a href="#icon-top5"><span></span>流转过程</a>
  455. </p>
  456. <c:if test="${requestScope.imgflag == 1 }">
  457. <p class="back-to-top" id="top6" style="display: block;">
  458. <a onclick="openimg();"><span></span>流程图 </a>
  459. </p>
  460. </c:if>
  461. </div>
  462. <input type="hidden" id="tabid" name="tabid" value="${param.tabid }">
  463. <input type="hidden" id="dialogId" name="dialogId" value="${param.dialogId }">
  464. <input type="hidden" id="flow" name="flow" value="${requestScope.flow }">
  465. <input type="hidden" id="tList" name="tList" value="${requestScope.tList }">
  466. <input type="hidden" id="insId" name="insId" value="${requestScope.flow.insId }">
  467. <input type="hidden" id="creator" name="creator" value="${requestScope.flow.creator.userId }">
  468. <input type="hidden" id="groupxuserid" name="groupxuserid" value="${requestScope.flow.groupxuserid.id }">
  469. <input type="hidden" id="state" name="state" value="${requestScope.flow.groupxuserid.state }">
  470. <input type="hidden" id="formInsId" name="formInsId" value="${requestScope.flow.formInsId }">
  471. <input type="hidden" id="groupid" name="groupid" value="${requestScope.flow.groupid.groupId}">
  472. <input type="hidden" id="task" name="task" value="">
  473. <div id="ly" class="zb">
  474. </div>
  475. <div id="zb" class="zb_flowimg" onclick="unlock()" style=" width: 900px; height: 800px; overflow-x: auto;overflow-y:hidden;">
  476. <div id="flowimg1" style="display: none;">
  477. <img src="/shares/document/flowimg/${requestScope.fmodel.modelId }.png" />
  478. </div>
  479. <div id="flowimg2" style="display: none;">
  480. 说明:<font color="#00a0e9">淡蓝色</font>代表已办环节,<font color="#6ea546">浅绿色</font>代表在办环节,黑色代表未办环节。
  481. ${graph.svgCode }
  482. </div>
  483. </div>
  484. <script type="text/javascript">
  485. function locking(type){
  486. console.log($(document).scrollTop());
  487. $(".zb").width(document.body.clientWidth);
  488. $(".zb").height(document.body.clientHeight + $(document).scrollTop());
  489. $(".zb").toggle();
  490. $(".zb_flowimg").css("left", document.body.clientWidth/2 - $(".zb_flowimg").width()/2);
  491. var top = document.body.clientHeight/2 - $(".zb_flowimg").height()/2 - 300 + $(document).scrollTop();
  492. $(".zb_flowimg").css("top", Math.abs(top));
  493. $("#flowimg" + type).show();
  494. $(".zb_flowimg").toggle();
  495. }
  496. function unlock(){
  497. $(".zb").toggle();
  498. $(".zb_flowimg").toggle();
  499. }
  500. </script>
  501. <script type="text/javascript">
  502. $(function(){
  503. var tmodelId = null;
  504. <% List<TacheInstance> tlist = (List<TacheInstance>)request.getAttribute("tList");
  505. for(TacheInstance ti : tlist){
  506. if(ti.getState().getValue().equals("2") && ti.getSe().getValue().equals("0")){
  507. String tmodelid = ti.getTmodelId().getTmodelId();
  508. %>
  509. tmodelId = "<%=tmodelid%>";
  510. $("#" + tmodelId).attr("stroke", "#00a0e9");
  511. $("#" + tmodelId).attr("fill", "#ffffff");
  512. $("#" + tmodelId).attr("stroke-width", "2");
  513. $("#" + tmodelId).attr("font-weight", "bold");
  514. $("#txt_" + tmodelId).attr("fill", "#00a0e9");
  515. <%
  516. } else if (ti.getState().getValue().equals("1")){
  517. String tmodelid = ti.getTmodelId().getTmodelId();
  518. %>
  519. tmodelId = "<%=tmodelid%>";
  520. $("#" + tmodelId).attr("stroke", "#6ea546");
  521. $("#" + tmodelId).attr("stroke-width", "2");
  522. $("#" + tmodelId).attr("font-weight", "bold");
  523. $("#txt_" + tmodelId).attr("fill", "#6ea546");
  524. <%
  525. }
  526. }
  527. %>
  528. });
  529. </script>
  530. <!-- end nav-->
  531. </form>
  532. </body>
  533. </html>