|
@@ -1,16 +1,185 @@
|
|
|
<%--
|
|
|
- Created by IntelliJ IDEA.
|
|
|
- User: wany
|
|
|
- Date: 2024/6/20
|
|
|
- Time: 下午5:23
|
|
|
- To change this template use File | Settings | File Templates.
|
|
|
---%>
|
|
|
-<%@ page contentType="text/html;charset=UTF-8" language="java" %>
|
|
|
-<html>
|
|
|
+ ~ Copyright (c) 2014, 2023, Chengdu Minto Technology Co.,LTD. All rights reserved.
|
|
|
+ ~ DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
|
+ --%>
|
|
|
+
|
|
|
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
|
+<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
|
|
+<%@ page isELIgnored="false"%>
|
|
|
+<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
|
|
|
+<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
|
|
|
+<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
|
|
|
+<%@ taglib prefix="tc" uri="http://www.mingto.net/tip" %>
|
|
|
+<html xmlns="http://www.w3.org/1999/xhtml">
|
|
|
<head>
|
|
|
- <title>Title</title>
|
|
|
+ <meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
|
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
|
+ <link href="${path}/tc_ttp/style/default/css/style.css${resSuffix}" rel="Stylesheet" type="text/css" />
|
|
|
+ <link href="${path}/tc_tap/workflow/css/style.css${resSuffix}" rel="Stylesheet" type="text/css" />
|
|
|
+ <%--流程编辑--%>
|
|
|
+ <title>${tc:i18n("edoc.process.editing")}</title>
|
|
|
+ <style>
|
|
|
+ .wButtonX{
|
|
|
+ height:30px;
|
|
|
+ line-height:30px;
|
|
|
+ color:#FFF;
|
|
|
+ font-size:12px;
|
|
|
+ width:80px;
|
|
|
+ opacity:0.9;
|
|
|
+ }
|
|
|
+ .wButtonX:hover{
|
|
|
+ cursor:pointer;
|
|
|
+ opacity:1;
|
|
|
+ }
|
|
|
+ .headName{width: auto;left:0;text-align: center;min-width:100%}
|
|
|
+ body::-webkit-scrollbar{
|
|
|
+ width: 4px;
|
|
|
+ height: 4px;
|
|
|
+ }
|
|
|
+ body::-webkit-scrollbar-thumb{
|
|
|
+ box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 5px inset;
|
|
|
+ border-radius: 5px;
|
|
|
+ background: rgba(0, 0, 0, 0.2);
|
|
|
+ }
|
|
|
+ body::-webkit-scrollbar-track{
|
|
|
+ box-shadow: rgba(0, 0, 0, 0) 0px 0px 5px inset;
|
|
|
+ border-radius: 0px;
|
|
|
+ background: rgba(0, 0, 0, 0);
|
|
|
+ }
|
|
|
+ .current_selected_node{
|
|
|
+ border:1px solid #3186ef;
|
|
|
+ }
|
|
|
+ </style>
|
|
|
</head>
|
|
|
-<body>
|
|
|
+<body style="background: #fff; position:relative;height:100%;overflow:auto;">
|
|
|
+<c:if test="${flowType eq 1 }">
|
|
|
+ <%--新建子事项--%>
|
|
|
+ <div class="wButtonX" style="background:#3186ef; text-align:center; z-index: 999" onclick="newNode('start-state')">
|
|
|
+ ${tc:i18n("edoc.new.child")}
|
|
|
+ </div>
|
|
|
+</c:if>
|
|
|
+<div id="spanBefore"></div>
|
|
|
+<div style="position: absolute; top: 0px; left: 10px; right: 10px; height: 1px;
|
|
|
+ text-align: left; line-height: 0px; border-bottom: 0px solid #b5b5b5;<c:if test="${newProcess eq false || onlyFlow}">display: none;</c:if>">
|
|
|
+ <%--流程类型--%>
|
|
|
+ <span style="float: left; display: none;">${tc:i18n("edoc.process.type")}:</span>
|
|
|
+ <div class="label" style="display: none;">
|
|
|
+ <input type="radio" id="processType1" name="processType" checked="checked" onclick="changeView(0)">
|
|
|
+ <%--审批流--%>
|
|
|
+ <label for="processType1">${tc:i18n("edoc.approval.flow")}</label>
|
|
|
+ <input type="radio" id="processType2" name="processType" onclick="changeView(1)">
|
|
|
+ <%--工作流--%>
|
|
|
+ <label for="processType2">${tc:i18n("edoc.workflow")}</label>
|
|
|
+ </div>
|
|
|
+</div>
|
|
|
+<div id="tempdiv"></div>
|
|
|
+<c:if test="${false }">
|
|
|
+<div id="drawDiv" style="top: 40px;">
|
|
|
+ </c:if>
|
|
|
+ <div id="drawDiv1" style="margin-bottom:50px;">
|
|
|
+ <div style="position: absolute; width: 95%; left: 25px;padding-bottom:150px" id="draw"></div>
|
|
|
+ </div>
|
|
|
+ <div style="position: absolute; bottom: 10px; right: 8px;">
|
|
|
+ <form action="${path}/workflow/sendflow" method="post" id="submitflow">
|
|
|
+ <input type="hidden" name="processJson" id="processJson" value="${processJson }">
|
|
|
+ <input type="hidden" name="colListType" id="colListType" value="${colListType }">
|
|
|
+ <input type="hidden" name="flowType" id="flowType" value="${flowType }">
|
|
|
+ <input type="hidden" name="tcId" id="tcId" value="${tcId }">
|
|
|
+ <input type="hidden" name="needReturnNull" id="needReturnNull" value="true">
|
|
|
+ <input type="hidden" name="processTitle" id="processTitle" value="${processTitle }">
|
|
|
+ <input type="hidden" name="submitState" id="submitState" value="${submitState }">
|
|
|
+ <input type="hidden" name="parentId" id="parentId" value="${parentId }">
|
|
|
+ <input type="hidden" name="curNodeId" id="curNodeId" value="${curNodeId }"> <!-- 增加的节点 -->
|
|
|
+ <input type="hidden" name="addNodesMode" id="addNodesMode">
|
|
|
+ <input type="hidden" name="addNodes" id="addNodes" value="${addNodes }">
|
|
|
+ <input type="hidden" name="delNodes" id="delNodes" value="${delNodes }">
|
|
|
+ <input type="hidden" name="rootNodeTcId" id="rootNodeTcId">
|
|
|
+ <input type="hidden" name="forkPerTcId" id="forkPerTcId">
|
|
|
+ <input type="hidden" name="joinPerTcId" id="joinPerTcId">
|
|
|
+ <input type="hidden" name="autoStop" id="autoStop">
|
|
|
+
|
|
|
+ <input type="hidden" name="workFlowType" id="workFlowType" value="${workFlowType}">
|
|
|
+ <input type="hidden" name="dmTableId" id="dmTableId" value="${dmTableId }">
|
|
|
+ <input type="hidden" name="ctype" id="ctype" value="${ctype }">
|
|
|
+
|
|
|
+ <input type="hidden" name="sendBackNodeId" id="sendBackNodeId" value="">
|
|
|
+
|
|
|
+ <c:if test="${newProcess && onlyFlow eq false}">
|
|
|
+ <!-- <input type="button" value="提交" onclick="submitflow();"></input> -->
|
|
|
+ </c:if>
|
|
|
|
|
|
+ <%--保存最初的源数据,用作刷新时使用--%>
|
|
|
+ <input type="hidden" name="initialProcessJson" id="initialProcessJson"/>
|
|
|
+
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
</body>
|
|
|
+<script type="text/javascript">
|
|
|
+ // 增加dialog parent Modifier: <Zhengyu.Hu> 2018/1/18 下午4:24 end.
|
|
|
+ var parentApi = frameElement ? frameElement.api:null;
|
|
|
+ var tcId = "${tcId }";
|
|
|
+ var newProcess = "${newProcess }";
|
|
|
+ var flowType = "${flowType }";
|
|
|
+ var curNodeId = "${curNodeId }";
|
|
|
+ var isTemplate = "${isTemplate }";
|
|
|
+ var isTemplateEdit = "${isTemplateEdit }";
|
|
|
+ var useTemplate = ${useTemplate};
|
|
|
+ var isBatchSendBack = 1; // 回退场景
|
|
|
+</script>
|
|
|
+<script type="text/javascript" src="${path}/tc_ttp/common/jquery.min.js${resSuffix}"></script>
|
|
|
+<script type="text/javascript" src="${path}/tc_ttp/common/function.js${resSuffix}"></script>
|
|
|
+<script type="text/javascript" src="${path}/tc_ttp/common/tc.js${resSuffix}"></script>
|
|
|
+<script type="text/javascript" src="${path}/tc_tap/workflow/js/wz_jsgraphics.js${resSuffix}"></script>
|
|
|
+<script type="text/javascript" src="${path}/tc_tap/workflow/js/jquery.ui.flow.js${resSuffix}"></script>
|
|
|
+<script type="text/javascript" src="${path}/tc_ttp/lhgdialog4.2.0/lhgdialog.js${resSuffix}"></script>
|
|
|
+<script type="text/javascript" src="${path}/tc_ttp/formValidator/jquery.validationEngine.js${resSuffix}"></script>
|
|
|
+<script type="text/javascript" src="${path}/tc_ttp/formValidator/validate.js${resSuffix}"></script>
|
|
|
+<c:if test="${flowType eq 1 }">
|
|
|
+ <script type="text/javascript" src="${path}/tc_tap/workflow/js/process4Task.js${resSuffix}"></script>
|
|
|
+</c:if>
|
|
|
+<%-- 目标流和工作流使用一样的操作 Modifier: <Zhengyu.Hu> 2018/1/19 下午3:24 end.--%>
|
|
|
+<c:if test="${flowType eq 0 || flowType eq 2}">
|
|
|
+ <script type="text/javascript" src="${path}/tc_tap/workflow/js/process4Person.js${resSuffix}"></script>
|
|
|
+</c:if>
|
|
|
+<script type="text/javascript" src="${path}/tc_tap/workflow/js/process.js${resSuffix}"></script>
|
|
|
+<script type="text/javascript" src="${path}/tc_ttp/common/repeatSubmit.js${resSuffix}"></script>
|
|
|
+<script>
|
|
|
+ function setHeight() {
|
|
|
+ var parentFrame = parent.document.getElementsByTagName("IFRAME");//获取父窗口的iframe
|
|
|
+ // var h = document.documentElement.scrollHeight;//获取子窗口的高度 FF
|
|
|
+ // h = document.body.scrollHeight; //IE
|
|
|
+ var h = document.getElementById("viewer").offsetHeight;
|
|
|
+ parentFrame[0].style.height = h+"px";//设置父窗口iframe高度
|
|
|
+ }
|
|
|
+
|
|
|
+ //设置本页面高度100%,清除其他页面高度设置影响
|
|
|
+ function setThisHeight() {
|
|
|
+ var parentFrame = parent.document.getElementById("workflowFrame");
|
|
|
+ if(parentFrame) {
|
|
|
+ parentFrame.style.height = '100%'
|
|
|
+ }
|
|
|
+ }
|
|
|
+ $(function() {
|
|
|
+ setTimeout(function () {
|
|
|
+ setThisHeight()
|
|
|
+ },5000)
|
|
|
+ })
|
|
|
+
|
|
|
+
|
|
|
+ function reDraw() {
|
|
|
+ var initialProcessJson = $("#initialProcessJson").val();
|
|
|
+ if(!!initialProcessJson) {
|
|
|
+ $("#processJson").val($("#initialProcessJson").val());
|
|
|
+ }
|
|
|
+ if(flowType === "0" || flowType === "2"){
|
|
|
+ // 审批流
|
|
|
+ initForAP(flowType);
|
|
|
+ }else if(flowType === "1"){
|
|
|
+ // 工作流
|
|
|
+ initForWP();
|
|
|
+ }
|
|
|
+ /!*清空数据*!/
|
|
|
+ $("#initialProcessJson").val("");
|
|
|
+ }
|
|
|
+</script>
|
|
|
</html>
|