| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421 |
- <%@page import="java.util.ArrayList"%>
- <%@page import="com.yw.bpm.instance.model.FileInfo"%>
- <%@page import="com.yw.bpm.instance.model.TacheInstance"%>
- <%@page import="java.util.List"%>
- <%@page import="com.yw.core.session.OASession"%>
- <%@ page language="java" contentType="text/html;charset=GBK"
- pageEncoding="GBK"%>
- <jsp:useBean id="oasession" class="com.yw.core.session.OASession"
- scope="session" />
- <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
- <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
- <html class=" width960">
- <head>
- <meta http-equiv="Content-Type" content="text/html;charset=GBK">
- <META http-equiv="Cache-Control" content="no-store, no-cache, must-revalidate">
- <meta http-equiv="X-UA-Compatible" content="IE=edge;IE=8;">
- <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" />
- <link href="${pageContext.request.contextPath}/yw/bpm/style/bootstrap.css" rel="stylesheet" type="text/css" />
- <link href="${pageContext.request.contextPath}/yw/bpm/style/flow.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/master1_bpm/instance/startFlow.js"></script> -->
- <script type="text/javascript" src="/shares/js/yw/master1_bpm/instance/instance.js"></script>
- <script type="text/javascript" src="/shares/js/yw/bpm/oa.js"></script>
- <script type="text/javascript" src="/shares/js/file.js"></script>
- <script type="text/javascript" src="/shares/js/yw/master1/common.js"></script>
- <link rel="stylesheet" type="text/css" href="/shares/css/yw/master1/win/jquery.jscrollpane.codrops1.css" />
- <!-- the mousewheel plugin -->
- <script type="text/javascript" src="/shares/js/yw/master1/jquery.mousewheel.js"></script>
- <!-- the jScrollPane script -->
- <script type="text/javascript" src="/shares/js/yw/master1/jquery.jscrollpane.min.js"></script>
- <script type="text/javascript" src="/shares/js/yw/master1/scroll-startstop.events.jquery.js"></script>
- <script type="text/javascript" src="/shares/js/yw/master1/scrollpane.js"></script>
- <script type="text/javascript" src="/shares/js/yw/master1/desktop/desktop.js"></script>
- <script type="text/javascript" src="/shares/js/yw/master1/desktop/jquery.winResize.js"></script>
- <script type="text/javascript" src="/shares/js/yw/bpm/raphael.js"></script>
- <style type="text/css">
- .jp-container{
- height:500px;
- position:relative;
- overflow:hidden;
- }
- span[id$="_filespan"] ul{
- list-style-type:none;
- float: left;
- }
- </style>
- <script type="text/javascript">
- var insId = "${requestScope.flow.insId}";
- var formId = "${requestScope.flow.formId.formId}";
- $(function() {
-
- if(formId != "0"){
- $("#formIns").attr("src", "${pageContext.request.contextPath }/bpmFormInstanceAction.do?task=infoIns&formId="+
- formId+"&formInsId=${requestScope.flow.formInsId}&state=${requestScope.state}");
- }
-
- scrll();
- });
- function closeSelf(){
- history.back();
- }
-
- /**
- * 当前跳转
- * @param url
- * @return
- */
- function historyBack(url) {
- location.href = url;
- }
-
- function openimg(){
- //$.ligerDialog.open({width : 1000, height : 300, target: $("#flowimg") });
- //是否支持svg
- var bool = Raphael.svg;
- if(bool){
- locking(2);
- }else{
- locking(1);
- }
- }
-
- //弹窗口
- function showInfo(insId){
- var url = "MTFlowAction.do?task=toInfo";
- var str = "?";
- if(url.indexOf("?")){ str = "&"; }
- url = url+str+"insId="+insId+str+"t="+new Date().getTime();
- window.top.win8Desktop.myWindow.init({
- windowTitle : "流程查看",
- windowsId : insId+"_"+new Date().getTime(),
- iframSrc : url,
- windowResizable:false
- });
- }
-
- function delfileshownhide(){
- var delfiles = $('#delfiles').css('display');
- if(delfiles == "none"){
- $("#delfiles").show();
- $("#ahide").html("隐藏已删除附件");
- }else if(delfiles == "block"){
- $("#delfiles").hide();
- $("#ahide").html("查看已删除附件");
- }
- }
-
- function showTaskDetail(id){
- $("#showTaskDetail_" + id).toggle();
- $("#hideTaskDetail_" + id).toggle();
- $(".taskDetail_"+id).toggle();
- }
- </script>
- </head>
- <body style="background: none;overflow:hidden;" ontouchmove="event.preventDefault();">
- <div id="jp-container" class="jp-container">
- <div class="navbar1">
- <div class="navbar-inner1">
- <button type="button" onclick="historyBack('MTFlowAction.do?task=toAll');" style="border-color: blue;" class="btn">
- <span style="color: blue">返回</span>
- </button>
- </div>
- </div>
- <div class="navbar">
- <div class="navbar-inner2">
- <font style="color: black; font-family: 微软雅黑; font-size: 30px; ">${requestScope.flow.insName }</font>
- <font style="color: black; font-family: 微软雅黑; font-size: 20px; ">发起人:${requestScope.flow.creator.username }</font>
- </div>
- </div>
- <div id="word_temp" class="wp" style="position: relative;">
- <div id="print_body">
- <c:if test="${requestScope.flow.formInsId != '0' }">
- <fieldset id="icon-top2">
- <div class="wf_shadow">
- <span class="z corner_41"></span> <span class="y corner_12"></span>
- <c:if test="${requestScope.flow.formInsId != '0' }">
- <iframe width="100%" onload="setFrame();" id="formIns" name="formIns"
- frameborder="0" scrolling="yes" style="width:100%;overflow-y : hidden;"
- src="" >
- </iframe>
- </c:if>
- <span class="z corner_34"></span> <span class="y corner_23"></span>
- </div>
- </fieldset>
- </c:if>
- <fieldset id="icon-top3" class="icon-top"
- style=" width: 970px; ">
- <legend class="fieldsettop">
- <i></i> 流程附件
- </legend>
- <div class="forum-container">
- <table class="l-table-edit" style="margin-left: 10px; width: 950px;">
- <c:if test="${requestScope.flow.officeId.universalid!=0 && requestScope.flow.officeId.universalid!= null}">
- <!-- <tr id="new">
- <td class="l-table-edit-text">office文件:
- </td>
- <td class="l-table-edit-td">
- <input type="text" name="officeName" id="officeName" class="width_200" readonly="readonly" value="${requestScope.flow.l_office_name }">
- <input type="hidden" name="officeId" id="officeId" value="${requestScope.flow.officeId.universalid }">
- <a id="editOffice" onclick="openOffice()">查看文档</a>
- </td>
- </tr> -->
- </c:if>
- <% List<FileInfo> allfileList = (List)(request.getAttribute("fileList"));
- List<FileInfo> fileList = new ArrayList();
- List<FileInfo> delfileList = new ArrayList();
- for(FileInfo file:allfileList){
- if("1".equals(file.getState().getValue())){
- fileList.add(file);
- }else if("0".equals(file.getState().getValue())){
- delfileList.add(file);
- }
- }
- %>
- <tr>
- <td class="l-table-edit-text">附件 <% if(delfileList.size()>0) {%>(<a id="ahide" onclick="delfileshownhide();">查看已删除附件</a>)<%} %>:
- </td>
- <td class="l-table-edit-td">
- <%-- <c:if test="${fn:length(requestScope.fileList) > 0 }"> --%>
- <!-- <table> -->
- <!-- <tr> -->
- <!-- <td width="20%">上传环节</td> -->
- <!-- <td width="40%">上传人</td> -->
- <!-- <td width="40%">附件</td> -->
- <!-- </tr> -->
- <%-- <c:forEach items="${requestScope.fileList }" var="file"> --%>
- <!-- <tr> -->
- <%-- <td>${file.tinsId.tmodelId.tmodelName }</td> --%>
- <%-- <td>${file.creator.username }(${file.tinsId.finishdate })</td> --%>
- <%-- <td><span class="l-file" len="15">${file.fileId.universalid }</span></td> --%>
- <!-- </tr> -->
- <%-- </c:forEach> --%>
- <!-- </table> -->
- <%-- </c:if> --%>
- <% if(allfileList.size()>0) {%>
- <table>
- <tr>
- <td width="20%">上传环节</td>
- <td width="40%">上传人</td>
- <td width="40%">附件</td>
- </tr>
- <% if(fileList.size()>0) {
- for(FileInfo file:fileList){%>
- <tr id="<%=file.getIfileId()%>">
- <td><%=file.getTinsId().getTmodelId().getTmodelName() %></td>
- <td><%=file.getCreator().getUsername() %>(<%=file.getTinsId().getFinishdate() %>)</td>
- <td>
- <span id="<%=file.getIfileId()%>_filespan" class="l-file" len="15"><%=file.getFileId().getUniversalid() %></span>
- </td>
- </tr>
- <% }}%>
- </table>
- <div id="delfiles" style="display:none;">
- <% if(delfileList.size()>0) {%>
- <table>
- <% for(FileInfo file:delfileList){%>
- <tr id="<%=file.getIfileId()%>">
- <td width="20%"><%=file.getTinsId().getTmodelId().getTmodelName() %></td>
- <td width="40%"><%=file.getCreator().getUsername() %>(<%=file.getTinsId().getFinishdate() %>)</td>
- <td width="40%">
- <span class="l-file" len="15"><%=file.getFileId().getUniversalid() %></span>
- <font color="red">(已删除,删除时间:<%=file.getDelTime() %>)</font>
- </td>
- </tr>
- <% }%>
- </table>
- <% }%>
- </div>
- <%}else{ %>
- 无附件数据...
- <%} %>
-
- </td>
- </tr>
- </table>
- </div>
- </fieldset>
- <fieldset id="icon-top5" class="icon-top"
- style="width: 970px; ">
- <legend class="fieldsettop">
- <i></i> 流转过程
- <c:if test="${requestScope.imgflag == 1 }">
- <img width="14" height="14" title="查看流程图" style="cursor: pointer;" onclick="openimg();" src="/shares/images/view.png" complete="complete"/><font size="12px">点此查看流程图</font>
- </c:if>
- </legend>
- <c:forEach items="${requestScope.processList }" var="tache">
- <div class="wf_shadow1">
- <c:if test="${tache.taskCount != 0 || tache.assistCount != 0}">
- <div style="position: absolute; margin-left: 750px; cursor: pointer; color: blue;" id="showTaskDetail_${tache.tache.tinsId}" onclick="showTaskDetail('${tache.tache.tinsId}');">查看传阅协办</div>
- <div style="position: absolute; margin-left: 750px; cursor: pointer; color: blue; display: none;" id="hideTaskDetail_${tache.tache.tinsId}" onclick="showTaskDetail('${tache.tache.tinsId}');">隐藏传阅协办</div>
- </c:if>
- <c:if test="${tache.userHeaderImg.headerfileid!=null && tache.userHeaderImg.headerfileid!='' }">
- <div style="position: absolute; margin-left: 5px; width: 90px;">
- <img alt="" style="width: 40px; height:40px;" src="${tache.userHeaderImg.path }">
- </div>
- </c:if>
- <c:if test="${tache.userHeaderImg.headerfileid==null || tache.userHeaderImg.headerfileid=='' }">
- <div style="position: absolute; margin-left: 5px; width: 90px;">
- <img alt="" style="width: 40px; height: 40px;" src="${pageContext.request.contextPath}/yw/bpm/style/header1.png">
- </div>
- </c:if>
- <div class="marginleft60">
- 环节名称:<font class="blueFont">${tache.tache.tmodelId.tmodelName }</font>
- 创建时间:<font class="blueFont">${fn:substring(tache.tache.createdate, 0, 16) }</font>
- <c:if test="${tache.tache.finishdate != null }">
- 环节办结:<font class="blueFont">${fn:substring(tache.tache.finishdate, 0, 16) }</font>
- </c:if>
- <font style="color: red; font-size: 14px;">${tache.tache.state.dataName }</font>
- </div>
-
- <div class="marginleft60">
- <font style="color: #000033; font-size: 20px;">${tache.tache.user.username }
- <c:if test="${tache.tache.authorizedUser.userId!='0' && tache.tache.authorizedUser.userId!='' && tache.tache.authorizedUser.userId!=null}">
- (授权:${tache.tache.authorizedUser.username})
- </c:if>
- </font>
- <c:if test="${tache.tache.remark != null && fn:length(tache.tache.remark) > 0 }">
- :
- </c:if>
- </div>
- <c:if test="${tache.tache.remark != null && fn:length(tache.tache.remark) > 0 }">
- <div class="marginleft60">
- <font style="color: blue; font-size: 14px;">${tache.tache.remark }</font>
- </div>
- </c:if>
- <c:if test="${tache.taskCount != 0 }">
- <div class="taskDetail_${tache.tache.tinsId} marginleft60" style="display: none;">
- <div><font class="blueFont12px">传阅信息</font></div>
- <c:forEach items="${tache.task }" var="task">
- <div>
- 传阅对象:<font class="blueFont12px">${task.username } </font>
- 传阅时间:<font class="blueFont12px">${fn:substring(task.createdate, 0, 16) }</font>
- </div>
- </c:forEach>
- </div>
- </c:if>
- <c:if test="${tache.assistCount != 0 }">
- <div class="taskDetail_${tache.tache.tinsId} marginleft60" style="display: none; ">
- <div><font class="blueFont12px">协办信息</font></div>
- <c:forEach items="${tache.assist }" var="task">
- <div>
- 协办对象:<font class="blueFont12px">${task.username }</font>
- 办理内容:<font class="blueFont12px">${task.taskContent }</font>
- 创建时间:<font class="blueFont12px">${fn:substring(task.createdate, 0, 16) }</font>
- <c:if test="${task.finishdate!='' && task.finishdate!=null }">
- 完成时间:<font class="blueFont12px">${fn:substring(task.finishdate, 0, 16) }</font>
- </c:if>
-
- </div>
- </c:forEach>
- </div>
- </c:if>
- </div>
- </c:forEach>
- </fieldset>
- <fieldset></fieldset>
- </div>
- <br>
- </div>
-
- </div>
- <!-- end wrap-->
- <div style="position: fixed; bottom: 100px; right: 80px;">
- <p class="back-to-top" id="top1" style="display: block;">
- <a href="#top"><span></span>返回顶部</a>
- </p>
- <c:if test="${requestScope.flow.formInsId != '0' }">
- <p class="back-to-top" id="top2" style="display: block;">
- <a href="#icon-top2"><span></span>查看表单</a>
- </p>
- </c:if>
- <p class="back-to-top" id="top3" style="display: block;">
- <a href="#icon-top3"><span></span>查看附件</a>
- </p>
- <p class="back-to-top" id="top4" style="display: block;">
- <a href="#icon-top4"><span></span>备注意见</a>
- </p>
- <p class="back-to-top" id="top5" style="display: block;">
- <a href="#icon-top5"><span></span>流转过程</a>
- </p>
- <c:if test="${requestScope.imgflag == 1 }">
- <p class="back-to-top" id="top6" style="display: block;">
- <a onclick="openimg();"><span></span>流程图 </a>
- </p>
- </c:if>
- </div>
- <input type="hidden" id="tabid" name="tabid" value="${param.tabid }">
- <input type="hidden" id="dialogId" name="dialogId" value="${param.dialogId }">
- <div id="ly" class="zb">
- </div>
- <div id="zb" class="zb_flowimg" onclick="unlock()" style=" width: 900px; height: 800px; overflow-x: auto;overflow-y:hidden;">
- <div id="flowimg1" style="display: none;">
- <img src="/shares/document/flowimg/${requestScope.fmodel.modelId }.png" />
- </div>
- <div id="flowimg2" style="display: none;">
- 说明:<font color="#00a0e9">淡蓝色</font>代表已办环节,<font color="#6ea546">浅绿色</font>代表在办环节,黑色代表未办环节。
- ${graph.svgCode }
- </div>
- </div>
- <script type="text/javascript">
- function locking(type){
- console.log($(document).scrollTop());
- $(".zb").width(document.body.clientWidth);
- $(".zb").height(document.body.clientHeight + $(document).scrollTop());
- $(".zb").toggle();
- $(".zb_flowimg").css("left", document.body.clientWidth/2 - $(".zb_flowimg").width()/2);
- $(".zb_flowimg").css("top", document.body.clientHeight/2 - $(".zb_flowimg").height()/2 - 300 + $(document).scrollTop() + 450);
- $("#flowimg" + type).show();
- $(".zb_flowimg").toggle();
- }
- function unlock(){
- $(".zb").toggle();
- $(".zb_flowimg").toggle();
- }
- </script>
- <script type="text/javascript">
- $(function(){
- var tmodelId = null;
- <% List<TacheInstance> tlist = (List<TacheInstance>)request.getAttribute("tList");
- for(TacheInstance ti : tlist){
- if(ti.getState().getValue().equals("2") && ti.getSe().getValue().equals("0")){
- String tmodelid = ti.getTmodelId().getTmodelId();
- %>
- tmodelId = "<%=tmodelid%>";
- $("#" + tmodelId).attr("stroke", "#00a0e9");
- $("#" + tmodelId).attr("fill", "#ffffff");
- $("#" + tmodelId).attr("stroke-width", "2");
- $("#" + tmodelId).attr("font-weight", "bold");
- $("#txt_" + tmodelId).attr("fill", "#00a0e9");
- <%
- } else if (ti.getState().getValue().equals("1")){
- String tmodelid = ti.getTmodelId().getTmodelId();
- %>
- tmodelId = "<%=tmodelid%>";
- $("#" + tmodelId).attr("stroke", "#6ea546");
- $("#" + tmodelId).attr("stroke-width", "2");
- $("#" + tmodelId).attr("font-weight", "bold");
- $("#txt_" + tmodelId).attr("fill", "#6ea546");
- <%
- }
- }
- %>
- });
- </script>
- <!-- end nav-->
- <input type="hidden" id="newversion" name="newversion" value="1">
- </div>
- </body>
- </html>
|