| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553 |
- <%@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=UTF-8"
- pageEncoding="UTF-8"%>
- <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=UTF-8">
- <META http-equiv="Cache-Control" content="no-store, no-cache, must-revalidate">
- <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/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/bpm/raphael.js"></script>
- <style type="text/css">
- span[id$="_filespan"] ul{
- list-style-type:none;
- float: left;
- }
- .title{
- width:65px;
- font-size:14px;
- }
- .content {
- font-size:14px;
- }
- </style>
- <script type="text/javascript">
- var insId = "${requestScope.flow.insId}";
- var formId = "${requestScope.flow.formId.formId}";
- $(function() {
- window.scrollTo(0,0);
- if(formId != "0"){
- $("#formIns").attr("src", "${pageContext.request.contextPath }/${requestScope.flow.modelId.controlUrl }.do?task=toView&formId="+
- formId+"&formInsId=${requestScope.flow.formInsId}&state=${requestScope.state}");
- }
- var pdfId = "${requestScope.flow.pdfId.universalid}";
- if(pdfId != null && pdfId != ""){
- $("#limitViewOffice").val("1");
- $("#editPdf").show();
- }
- // backValue();
- });
- /* function closeSelf(){
- var type = "${param.type}";
- var parentDialogId = "ligerWindow_${param.parentDialogId}";
- if(type==1){
- window.parent.frames['content'].frames['${param.tabid }'].closeODialog('${param.dialogId }');
- } else if(type==2){
- window.parent.frames[parentDialogId].closeODialog('${param.dialogId }');
- }else {
- window.parent.frames['${param.tabid }'].closeODialog('${param.dialogId }');
- }
- } */
- function closeSelf(){
- var type = "${param.type}";
- var parentDialogId = "ligerWindow_${param.parentDialogId}";
- try {
- if(type==1){
- window.parent.frames['content'].frames['${param.tabid }'].closeODialog('${param.dialogId }');
- } else if(type==2){
- window.parent.frames[parentDialogId].closeODialog('${param.dialogId }');
- }else {
- window.parent.frames['${param.tabid }'].closeODialog('${param.dialogId }');
- $("div#${param.dialogId } .l-dialog-winbtn.l-dialog-close",window.parent.document).click();
- }
- } catch (e) {
- $("div#${param.dialogId } .l-dialog-winbtn.l-dialog-close",window.parent.document).click();
- }
- }
- function openimg(){
- //$.ligerDialog.open({width : 1000, height : 300, target: $("#flowimg") });
- //是否支持svg
- var bool = Raphael.svg;
- if(bool){
- locking(2);
- }else{
- locking(1);
- }
- }
- 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();
- }
- function backTins(){
- if(!confirm("确认收回该流程?")){
- return;
- }
- $('#task').val('backTins');
- var rs = true;
- if(formId == "0"){
- $("#formInsId").val("0");
- }
- if(rs){
- var x = $("#insForm").serializeArray();
- $.each(x, function(i, field) {
- field.value = encodeURI(field.value);
- });
- $.ajax({
- url : "FlowAction.do",
- async : true,
- type : "post",
- data : x,
- dataType : 'json',
- success : function(data) {
- //addInfo(data);
- //closeSelf();
- var success = data[0].success;
- var tip = data[0].tip;
- if(success){
- addInfo(tip);
- closeSelf();
- } else {
- addError(tip);
- }
- },
- error : function() {
- alert("数据处理失败,请检查网络重新登录或联系管理员!");
- },
- beforeSend : function() {
- }
- });
- }
- }
- var officeDialog = null;
- var pdfDialog = null;
- function ow(owurl, name) {
- officeDialog = $.ligerDialog.open({
- height : 700,
- width : 1000,
- url : owurl,
- showMax : false,
- showToggle : false,
- showMin : false,
- isResize : false,
- modal : true,
- title : name,
- allowClose : false
- });
- }
- function pw(owurl, name) {
- pdfDialog = $.ligerDialog.open({
- height : 700,
- width : 1000,
- url : owurl,
- showMax : false,
- showToggle : false,
- showMin : false,
- isResize : false,
- modal : true,
- title : name,
- allowClose : false
- });
- }
- function closeOfficeDialog() {
- officeDialog.close();
- }
- function openOffice() {
- var officeId = $("#officeId").val();
- // ow('${pageContext.request.contextPath}/NtkoAction.do?task=info&fileId='
- // + officeId, '公文查看');
- window.showModalDialog('${pageContext.request.contextPath}/NtkoAction.do?task=info&fileId='
- + officeId, window, "dialogWidth=1000px;dialogHeight=700px;resizable=no;scroll=no;status=no;");
- }
- function openPdf() {
- var officeId = $("#officeId").val();
- var pdfId = $("#pdfId").val();
- pw('${pageContext.request.contextPath}/NtkoAction.do?task=openPdf&isNew=0&type=info&fileId='
- + pdfId, '公文查看');
- }
- function closePdfDialog() {
- pdfDialog.close();
- }
- </script>
- </head>
- <body style="background: none;">
- <form action="FlowAction.do" method="post" id="insForm" name="insForm" onsubmit="return false;">
- <div class="navbar1">
- <div class="navbar-inner1">
- <button type="button" onclick="closeSelf();" style="border-color: blue;" class="btn">
- <span style="color: blue">关闭</span>
- </button>
- <c:if test="${requestScope.backTins == '1' }">
- <button type="button" onclick="backTins();" style="border-color: #ff0000;" class="btn">
- <span style="color: #ff0000;">收回</span>
- </button>
- </c:if>
- </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>
- <c:if test="${fn:length(requestScope.dubanList) > 0 }">
- <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: 20px; width: 950px;">
- <c:forEach items="${requestScope.dubanList }" var="duban">
- <tr>
- <td class="title">督办内容:</td>
- <td class="content" style="max-width:300px;">${duban.content }</td>
- <td class="title">督办人:</td>
- <td class="content">${duban.name }</td>
- <td class="title">督办时间:</td>
- <td class="content">${duban.createdate }</td>
- </tr>
- </c:forEach>
- </table>
- </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">公文正文:
- </td>
- <td class="l-table-edit-td">
- <input type="hidden" name="officeId" id="officeId" value="${requestScope.flow.officeId.universalid }">
- <a id="editOffice" onclick="openOffice()" style="font-size: 18px;color:blue;font-weight:bold;">查看公文</a>
- <input type="hidden" name="pdfId" id="pdfId" value="${requestScope.flow.pdfId.universalid }">
- <a id="editPdf" style="display: none;" onclick="openPdf()" style="font-size: 13px;">查看PDF公文</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%" style="font-size: 13px;">上传环节</td>
- <td width="30%" style="font-size: 13px;">上传人</td>
- <td width="50%" style="font-size: 13px;">附件</td>
- </tr>
- <% if(fileList.size()>0) {
- for(FileInfo file:fileList){%>
- <tr id="<%=file.getIfileId()%>" style="font-size: 13px;">
- <td style="font-size: 13px;"><%=file.getTinsId().getTmodelId().getTmodelName() %></td>
- <td style="font-size: 13px;"><%=file.getCreator().getUsername() %>(<%=file.getTinsId().getFinishdate() %>)</td>
- <td style="font-size: 13px;">
- <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="30%"><%=file.getCreator().getUsername() %>(<%=file.getTinsId().getFinishdate() %>)</td>
- <td width="50%">
- <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.gpath }">
- </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: #0e0e0e; 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.assist.username }</font>
- 办理内容:<font class="blueFont12px">${task.assist.taskContent }</font>
- 创建时间:<font class="blueFont12px">${fn:substring(task.assist.createdate, 0, 16) }</font>
- <c:if test="${task.assist.finishdate!='' && task.assist.finishdate!=null }">
- 完成时间:<font class="blueFont12px">${fn:substring(task.assist.finishdate, 0, 16) }</font>
- </c:if>
- <c:if test="${task.dialog.dialogInfo!='' && task.dialog.dialogInfo!=null }">反馈:
- ${task.dialog.dialogInfo }
- </c:if>
- </div>
- </c:forEach>
- </div>
- </c:if>
- </div>
- </c:forEach>
- </fieldset>
- <fieldset></fieldset>
- </div>
- <br>
- </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 }">
- <input type="hidden" id="flow" name="flow" value="${requestScope.flow }">
- <input type="hidden" id="tList" name="tList" value="${requestScope.tList }">
- <input type="hidden" id="insId" name="insId" value="${requestScope.flow.insId }">
- <input type="hidden" id="creator" name="creator" value="${requestScope.flow.creator.userId }">
- <input type="hidden" id="groupxuserid" name="groupxuserid" value="${requestScope.flow.groupxuserid.id }">
- <input type="hidden" id="state" name="state" value="${requestScope.flow.groupxuserid.state }">
- <input type="hidden" id="formInsId" name="formInsId" value="${requestScope.flow.formInsId }">
- <input type="hidden" id="groupid" name="groupid" value="${requestScope.flow.groupid.groupId}">
- <input type="hidden" id="task" name="task" value="">
- <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);
- var top = document.body.clientHeight/2 - $(".zb_flowimg").height()/2 - 300 + $(document).scrollTop();
- $(".zb_flowimg").css("top", Math.abs(top));
- $("#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-->
- </form>
- </body>
- </html>
|