| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825 |
- <%@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/processFlow.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() {
- var nextUserTag = "${requestScope.tmodel.pathJudgeType.value }";
- if(nextUserTag == "1"){
- $("[name='nextUser']").hide();
- var nextTmodelId = $("[name='nextTmodelId']").val();
- $("#" + nextTmodelId).show();
- }
-
-
- $("[name='nextTmodelId']").change(function(){
- $("[name='nextUser']").hide();
- var nextTmodelId = $("[name='nextTmodelId']").val();
- $("#" + nextTmodelId).show();
- });
- $("#instructions").change(function(){
- $("#remark").val($("#instructions").val());
- });
- var formInsId = "${requestScope.flow.formInsId}";
- if(formInsId != "0"){
- $("#formIns").attr("src", "${pageContext.request.contextPath }/bpmFormInstanceAction.do?task=editIns&formId="
- + formId + "&tmodelId=${requestScope.tmodel.tmodelId }&formInsId=" + formInsId);
- }
-
- var nextObject = "${requestScope.tmodel.noticeObject}";
- if(nextObject.indexOf("3") >= 0){
- $("#noticeOther").show();
- }
- loadTypeTree("noticeButton",{type:"user", tab:"1", backId:"noticeUsers", backName:"noticeUsernames"});
- loadTypeTree("assistButton",{type:"user", tab:"1", backId:"assistUsers", backName:"assistUsernames"});
- loadTypeTree("copytoButton",{type:"user", tab:"1", backId:"copytoUsers", backName:"copytoUsernames"});
- scrll();
- });
- function closeSelf(){
- var type = "${param.type}";
- if(type==1){
- window.parent.frames['content'].frames['${param.tabid }'].onLoad();
- window.parent.frames['content'].frames['${param.tabid }'].closeODialog('${param.dialogId }');
-
- } else {
- window.parent.frames['${param.tabid }'].loadData();
- window.parent.frames['${param.tabid }'].closeODialog('${param.dialogId }');
-
- }
- }
-
- // function openimg(){
- // //是否支持svg
- // var bool = Raphael.svg;
- // if(bool){
- // $.ligerDialog.open({width : 1000, height : 300, target: $("#flowimg2") });
- // }else{
- // $.ligerDialog.open({width : 1000, height : 300, target: $("#flowimg1") });
- // }
- // }
-
- //弹窗口
- 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
- });
- }
- </script>
- <script type="text/javascript">
- // function sendCode1() {
- // $("#errorTip").hide();
- // $.ajax({
- // url : "FlowAction.do",
- // async : false,
- // type : "post",
- // data : {
- // "task" : "sendCode",
- // "insId" : $("#insId").val(),
- // "tinsId" : $("#tinsId").val(),
- // "user" : $("#userid").val()
- // },
- // success : function(data) {
- // //alert(data);
- // if (data) {
- // $("#sendCode").hide();
- // $("#resendCode").hide();
- // $("#resendTip").show();
- // setTimeout(function() {
- // $("#resendTip").hide();
- // $("#resendCode").show();
- // }, '60000');
- // }
- // },
- // error : function() {
- // addError("数据处理失败,请检查网络重新登录或联系管理员!");
- // }
- // });
- // }
- // function test(){
-
- // }
- // function sendCode2() {
- // $("#errorTip").hide();
- // //alert(1);
- // $.ajax({
- // url : "FlowAction.do",
- // async : false,
- // type : "post",
- // data : {
- // "task" : "resendCode",
- // "insId" : $("#insId").val(),
- // "tinsId" : $("#tinsId").val(),
- // "user" : $("#userid").val()
- // },
- // success : function(data) {
- // //alert(data);
- // if (data) {
- // $("#sendCode").hide();
- // $("#resendCode").hide();
- // $("#resendTip").show();
- // setTimeout(function() {
- // $("#resendTip").hide();
- // $("#resendCode").show();
- // }, '60000');
- // }
- // },
- // error : function() {
- // addError("数据处理失败,请检查网络重新登录或联系管理员!");
- // }
- // });
- // }
-
- /**
- * 当前跳转
- * @param url
- * @return
- */
- function historyBack(url) {
- location.href = url;
- }
-
- // function delFile(ifileId){
- // if(confirm("是否确定删除该附件?")){
- // $.ajax({
- // url : "MTFlowAction.do",
- // async : true,
- // type : "post",
- // data : {
- // "task" : "delFile",
- // "ifileId" : ifileId
- // },
- // success : function(data) {
- // if (data == "10010") {
- // addError("删除附件失败!");
- // } else if (data == "10011") {
- // addInfo("删除附件成功!");
- // var datestr = formatDate(new Date());
- // var tr = $("#"+ifileId).clone();
- // $("#"+ifileId).html("");
- // $("#"+ifileId).remove();
- // tr.find("#"+ifileId+"_filespan").removeAttr("id");
- // tr.find("#"+ifileId+"_span").html("<font color=\"red\">(已删除,删除时间:"+datestr+")</font> ");
- // $("#delfiletable").append(tr);
- // var delLink = $("#delLink").html();
- // if(!delLink){
- // $("#delLink").html("(<a id=\"ahide\" href=\"#\" onclick=\"delfileshownhide();\">查看已删除附件</a>)");
- // }
- // } else {
- // addError(data);
- // }
- // },
- // error : function() {
- // alert("数据处理失败,请检查网络重新登录或联系管理员!");
- // }
- // });
- // }
- // }
-
- // function delfileshownhide(){
- // var delfiles = $('#delfiles').css('display');
- // if(delfiles == "none"){
- // $("#delfiles").show();
- // $("#ahide").html("隐藏已删除附件");
- // }else if(delfiles == "block"){
- // $("#delfiles").hide();
- // $("#ahide").html("查看已删除附件");
- // }
- // }
- </script>
- </head>
- <body style="background: none;overflow:hidden;" ontouchmove="event.preventDefault();">
- <form action="FlowAction.do" method="post" id="insForm" name="insForm">
- <div id="jp-container" class="jp-container">
- <div class="navbar1">
- <div class="navbar-inner1">
- <button type="button" onclick="chooseNextTache('${requestScope.ttype.submitButton }');" class="btn" style="border-color: ${requestScope.ttype.submitColor };">
- <span style="color: ${requestScope.ttype.submitColor }">${requestScope.ttype.submitButton }</span>
- </button>
- <button type="button" onclick="assistDialog.show();" class="btn" style="border-color: ${requestScope.ttype.assistColor };">
- <span style="color: ${requestScope.ttype.assistColor }">${requestScope.ttype.assistButton }</span>
- </button>
- <button type="button" onclick="historyBack('MTFlowAction.do?task=toDealList');" class="btn" style="border-color: ${requestScope.ttype.closeColor };">
- <span style="color: ${requestScope.ttype.closeColor }">返回</span>
- </button>
- <c:if test="${requestScope.tmodel.se.value == 0 }">
- <button type="button" onclick="returnJs('${requestScope.ttype.returnButton }');" class="btn" style="border-color: ${requestScope.ttype.returnColor };">
- <span style="color: ${requestScope.ttype.returnColor }">${requestScope.ttype.returnButton }</span>
- </button>
- <button type="button" onclick="returnToSenderJs();" class="btn" style="border-color: ${requestScope.ttype.returnStartColor };">
- <span style="color: ${requestScope.ttype.returnStartColor }">${requestScope.ttype.returnStartButton }</span>
- </button>
- </c:if>
- </div>
- </div>
- <div class="navbar">
- <div class="navbar-inner2">
- <c:if test="${requestScope.tmodel.se.value == 1 }">
- <font id="insNameFont" style=" color: black; font-family: 微软雅黑; font-size: 30px; ">${requestScope.flow.insName }</font>
- <input type="text" id="insNameText" style="margin-top: 5px; height: 20px;width:500px; display: none;" value="${requestScope.flow.insName }">
- <a id="insNameEdit" onclick="changeInsName()">点此编辑标题</a>
- <a id="insNameEnter" onclick="confirmInsName();" style="display: none;">确定</a>
- <input type="hidden" id="insName" name="insName" value="${requestScope.flow.insName }">
- </c:if>
- <c:if test="${requestScope.tmodel.se.value != 1 }">
- <font id="insNameFont" 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>
- <input type="hidden" id="insName" name="insName" value="${requestScope.flow.insName }">
- </c:if>
- </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">
- <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" class="width_200" id="officeName" readonly="readonly" value="${requestScope.tache.l_office_name }">
- <input type="hidden" name="officeId" id="officeId" value="${requestScope.tache.l_office_id }">
- <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">附件<span id="delLink"><% if(delfileList.size()>0) {%>(<a id="ahide" onclick="delfileshownhide();">查看已删除附件</a>)<%} %></span>:
- </td>
- <td class="l-table-edit-td">
- <% 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 width="20%"><%=file.getTinsId().getTmodelId().getTmodelName() %></td>
- <td width="40%"><%=file.getCreator().getUsername() %>(<%=file.getTinsId().getFinishdate().toString().substring(0, 19) %>)</td>
- <td width="40%">
- <% if(file.getCreator().getUserId().equals(String.valueOf(oasession.getLoginID()))){%>
- <span id="<%=file.getIfileId()%>_filespan" class="l-file" len="15"><%=file.getFileId().getUniversalid() %></span>
- <span id="<%=file.getIfileId()%>_span">
- <img width="12" height="12" title="删除" style="cursor: pointer;margin-bottom:-3px;" onclick="delFile('<%=file.getIfileId()%>')" src="/shares/images/no.png" complete="complete"/>
- </span>
- <%}else {%>
- <span class="l-file" len="15"><%=file.getFileId().getUniversalid() %></span>
- <%} %>
- </td>
- </tr>
- <% }%>
- <%} %>
- </table>
- <div id="delfiles" style="display: none;">
- <table id="delfiletable">
- <% if(delfileList.size()>0) {%>
- <% 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().toString().substring(0, 19) %>)</td>
- <td width="40%">
- <span class="l-file" len="15"><%=file.getFileId().getUniversalid() %></span>
- <span id="<%=file.getIfileId()%>_span">
- <font color="red">(已删除,删除时间:<%=file.getDelTime().toString().substring(0, 19) %>)</font>
- </span>
- </td>
- </tr>
- <% }%>
- <% }%>
- </table>
- </div>
- <% }%>
- <c:if test="${requestScope.tmodel.isOffice.value == 1 }">
- <jsp:include page="/include/file.jsp">
- <jsp:param name="fieldName" value="fileId"/>
- <jsp:param name="folder" value="flow"/>
- <jsp:param name="documentId" value=""/>
- <jsp:param name="size" value="20"/>
- <jsp:param name="isDelFile" value="1"/>
- </jsp:include>
- </c:if>
- <c:if test="${requestScope.tmodel.isOffice.value == 0 }">
- <% if(allfileList.size()==0) {%>无附件数据...<%} %>
- </c:if>
- </td>
- </tr>
- </table>
- </div>
- </fieldset>
- <fieldset id="icon-top4" class="icon-top"
- style="width: 970px; ">
- <legend class="fieldsettop">
- <i></i> 流程办理
- </legend>
- <div class="forum-container">
- <table class="l-table-edit">
- <c:choose>
- <c:when test="${requestScope.tmodel.pathJudgeType.value == 1 }">
- <tr>
- <td class="l-table-edit-text">下一环节<FONT COLOR="red">*</FONT>:
- </td>
- <td class="l-table-edit-td">
- <select id="nextTmodelId" name="nextTmodelId" class="width_150 flowText">
- <c:forEach items="${requestScope.nextTmodels }" var="tmodel">
- <option value="${tmodel.nextTmodelId.tmodelId }">${tmodel.nextTmodelId.tmodelName }</option>
- </c:forEach>
- </select>
- </td>
- </tr>
- <c:forEach items="${requestScope.nextHandTmodels }" var="nhTmodel" varStatus="count">
- <tbody id="${nhTmodel.nextTmodelId.tmodelId }" name="nextUser">
- <tr>
- <td class="l-table-edit-text">下一环节操作人<FONT COLOR="red">*</FONT>:
- </td>
- <td class="l-table-edit-td">
- <input type="text" class="width_150 flowText" style="margin-top: 4px;" id="usersName${nhTmodel.nextTmodelId.tmodelId }" name="usersName${nhTmodel.nextTmodelId.tmodelId }" value="">
- <input type="hidden" id="users${nhTmodel.nextTmodelId.tmodelId }" name="users${nhTmodel.nextTmodelId.tmodelId }" value="">
- <input type="button" class="btn flowText" style="height: 25px;" id="usersButton${nhTmodel.nextTmodelId.tmodelId }" name="usersButton${nhTmodel.nextTmodelId.tmodelId }" value="选择人员">
- </td>
- </tr>
- <script type="text/javascript">
- $(document).ready(function(){
- loadTypeTree("usersButton${nhTmodel.nextTmodelId.tmodelId }",{type:"user", tab:"1", backId:"users${nhTmodel.nextTmodelId.tmodelId }", backName:"usersName${nhTmodel.nextTmodelId.tmodelId }", tabParam:[{tab:"1", isMultiDept:"1"}]});
- });
- </script>
- </tbody>
- </c:forEach>
- </c:when>
- <c:when test="${requestScope.tmodel.pathJudgeType.value == 0 }">
- <c:if test="${fn:length(requestScope.nextHandTmodels) > 0}">
- <tr>
- <td class="l-table-edit-text">下一环节操作人<FONT COLOR="red">*</FONT>:
- </td>
- <td class="l-table-edit-td"></td>
- </tr>
- </c:if>
- <c:forEach items="${requestScope.nextHandTmodels }" var="nhTmodel" varStatus="count">
- <tbody id="${nhTmodel.nextTmodelId.tmodelId }" name="nextUser">
- <tr>
- <td class="l-table-edit-text">${nhTmodel.nextTmodelId.tmodelName }<FONT COLOR="red">*</FONT>:
- </td>
- <td class="l-table-edit-td">
- <input type="text" class="width_150 flowText" style="margin-top: 4px;" id="usersName${nhTmodel.nextTmodelId.tmodelId }" name="usersName${nhTmodel.nextTmodelId.tmodelId }" value="">
- <input type="hidden" id="users${nhTmodel.nextTmodelId.tmodelId }" name="users${nhTmodel.nextTmodelId.tmodelId }" value="">
- <input type="button" class="btn flowText" style="height: 25px;" id="usersButton${nhTmodel.nextTmodelId.tmodelId }" name="usersButton${nhTmodel.nextTmodelId.tmodelId }" value="选择人员">
- </td>
- </tr>
- <script type="text/javascript">
- $(document).ready(function(){
- loadTypeTree("usersButton${nhTmodel.nextTmodelId.tmodelId }",{type:"user", tab:"1", backId:"users${nhTmodel.nextTmodelId.tmodelId }", backName:"usersName${nhTmodel.nextTmodelId.tmodelId }", tabParam:[{tab:"1", isMultiDept:"1"}]});
- });
- </script>
- </tbody>
- </c:forEach>
- </c:when>
- </c:choose>
- <tr>
- <td class="l-table-edit-text">当前环节名称:
- </td>
- <td class="l-table-edit-td">
- ${requestScope.tmodel.tmodelName }
- </td>
- </tr>
- <c:if test="${requestScope.tmodel.handleValidate == 1 }">
-
- <tr>
- <td class="l-table-edit-text">短信验证码:
- </td>
- <td class="l-table-edit-td">
- <input type="text" id="validateCode" name="validateCode" class="width_150 flowText">
- <button type="button" class="btn" id="sendCode" name="sendCode" onclick="sendCode1();">
- 发送验证码
- </button>
- <button type="button" class="btn" id="resendTip" name="resendTip" style="color: red; display: none;" disabled="disabled">
- 60秒后可以重新发送
- </button>
- <button type="button" class="btn" id="resendCode" name="resendCode" onclick="sendCode2()" style="display: none;">
- 重新发送验证码
- </button>
- <span style="color: red; display:none;" id="errorTip" name="errorTip">验证码错误,请重新输入</span>
- </td>
- </tr>
-
- </c:if>
- <tr>
- <td class="l-table-edit-text">短信提醒:
- </td>
- <td class="l-table-edit-td">
- <input type="checkbox" id="isNextSms" name="isNextSms" value="1"
- <c:if test="${requestScope.tmodel.isSms.value == 1}">
- checked="checked"
- </c:if>
- > 短信通知下一环节操作人
- </td>
- </tr>
- <tr id="noticeOther" style="display: none;">
- <td class="l-table-edit-text">通知其他人:
- </td>
- <td class="l-table-edit-td">
- <textarea id="noticeUsernames" name="noticeUsernames" rows="3" cols="50" class="flowText"></textarea>
- <input type="hidden" id="noticeUsers" name="noticeUsers" value="">
- <input type="button" style="height: 25px;" class="btn flowText" id="noticeButton" name="noticeButton" value="选择人员">
- </td>
- </tr>
- <tr>
- <td class="l-table-edit-text" colspan="2">
- <div>
- <a onclick="show('copytoTR', this);" style="color: #3853a8;cursor: pointer;">添加抄送</a>
- <a onclick="hide('copytoTR', this);" style="color: #3853a8;cursor: pointer;display: none;">取消抄送</a>
- </div>
- </td>
- </tr>
- <tr id="copytoTR" style="display: none;">
- <td class="l-table-edit-text">抄送对象:
- </td>
- <td class="l-table-edit-td">
- <textarea id="copytoUsernames" name="copytoUsernames" rows="3" cols="50" class="flowText"></textarea>
- <input type="hidden" id="copytoUsers" name="copytoUsers" value="">
- <input type="button" style="height: 25px;" class="btn flowText" id="copytoButton" name="copytoButton" value="选择人员">
- </td>
- </tr>
- <tr>
- <td class="l-table-edit-text" rowspan="2">环节审批:
- </td>
- <td class="l-table-edit-td">
- <select id="instructions" class="flowText" style="width: 200px;">
- <option value="">常用批示语</option>
- <c:forEach items="${requestScope.inList }" var="in">
- <option value="${in.instructions }">${in.instructions }</option>
- </c:forEach>
- </select>
- </td>
- </tr>
- <tr>
- <td class="l-table-edit-td">
- <textarea rows="5" cols="100" class="flowText" id="remark" name="remark"></textarea>
- </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" style="cursor: pointer;" onclick="openimg();">点此查看流程图</font>
- </c:if>
- </legend>
- <!-- <div id="maingrid4" style="margin-left: 10px; width: 900px;"> -->
- <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>
- <!-- </div> -->
- </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="tmodelId" name="tmodelId" value="${requestScope.tmodel.tmodelId }">
- <input type="hidden" id="tinsId" name="tinsId" value="${requestScope.tache.tinsId }">
- <input type="hidden" id="preTinsId" name="preTinsId" value="${requestScope.tache.preTinsId }">
- <input type="hidden" id="insId" name="insId" value="${requestScope.flow.insId }">
- <input type="hidden" id="modelId" name="modelId" value="${requestScope.fmodel.modelId }">
- <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="task" name="task" value="process">
- <input type="hidden" id="formInsId" name="formInsId" value="${requestScope.flow.formInsId }">
- <input type="hidden" id="formId" name="formId" value="${requestScope.fmodel.formId.formId }">
- <input type="hidden" id="tabid" name="tabid" value="${param.tabid }">
- <input type="hidden" id="dialogId" name="dialogId" value="${param.dialogId }">
- <input type="hidden" id="groupid" name="groupid" value="${requestScope.flow.groupid.groupId}">
- <input type="hidden" id="isMoreIns" name="isMoreIns" value="${requestScope.tmodel.isMoreIns.value }">
- <input type="hidden" id="pathJudgeType" name="pathJudgeType" value="${requestScope.tmodel.pathJudgeType.value }">
- <input type="hidden" id="se" name="se" value="${requestScope.tmodel.se.value }">
- <input type="hidden" id="userid" name="userid" value="${requestScope.tache.groupxuserid.id}">
- <input type="hidden" id="handleValidate" value="${ requestScope.tmodel.handleValidate}">
- <input type="hidden" id="reqRemark" name="reqRemark" value="${requestScope.tmodel.reqRemark.value }">
- <input type="hidden" id="newversion" name="newversion" value="1">
-
- <div id="nextTacheInfo">
- <div class="forum-container">
- <table class="l-table-edit" style="margin-left: 10px; width: 750px !important;">
- <tr>
- <td class="l-table-edit-text">
- 后续环节
- </td>
- <td class="l-table-edit-td">
- 查看和选择后续环节操作人
- </td>
- </tr>
- <tbody id="nextTacheInfoTd">
- </tbody>
- <tr>
- <td style="text-align: center;" colspan="2">
- <span id="validateTip" style="color: red; display: none;">每个环节都需要至少选择一个办理人!</span>
- </td>
- </tr>
- <tr>
- <td style="text-align: center;" colspan="2">
- <button type="button" onclick="saveFlow();" class="btn" id="sbmbtn">
- <span>${requestScope.ttype.submitButton }</span>
- </button>
- <button type="button" onclick="closeNextTacheInfo()" class="btn" id="clsbtn" style="display: none;">
- <span>关闭</span>
- </button>
- </td>
- </tr>
- </table>
- </div>
- </div>
- <div id="assistDiv">
- <div class="forum-container">
- <table class="l-table-edit" style="margin-left: 10px; width: 450px !important;">
- <tr>
- <td class="l-table-edit-text">协办对象:
- </td>
- <td class="l-table-edit-td">
- <textarea id="assistUsernames" class="flowText" name="assistUsernames" rows="3" cols="50"></textarea>
- <input type="hidden" id="assistUsers" name="assistUsers" value="">
- <input type="button" style="height: 25px;" class="btn flowText" id="assistButton" name="copytoButton" value="选择人员">
- </td>
- </tr>
- <tr>
- <td class="l-table-edit-text">协办内容:
- </td>
- <td class="l-table-edit-td">
- <textarea id="taskContent" name="taskContent" class="flowText" rows="3" cols="50"></textarea>
- </td>
- </tr>
- <tr>
- <td class="l-table-edit-text" colspan="2" style="text-align: center;">
- <button type="button" onclick="sendAssist();" class="btn flowText">
- 派发
- </button>
- <button type="button" onclick="assistDialog.hide();" class="btn flowText">
- 关闭
- </button>
- </td>
- </tr>
- </table>
- </div>
- </div>
- <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;">
- <c:choose>
- <c:when test="${graph.svgCode!='' && graph.svgCode!=null }">
- 说明:<font color="#00a0e9">淡蓝色</font>代表已办环节,<font color="#6ea546">浅绿色</font>代表在办环节,黑色代表未办环节。
- ${graph.svgCode }
- </c:when>
- <c:otherwise>
- 说明:<font color="red">该流程模板还未生成流程图!</font>
- </c:otherwise>
- </c:choose>
- </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>
- </div>
- </form>
- <!-- end nav-->
- </body>
- </html>
|