123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125 |
- <%@ page language="java" contentType="text/html; charset=UTF-8"
- pageEncoding="UTF-8" import="java.util.List,com.hotent.core.util.AppUtil" %>
- <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
- <%
- String basePath = request.getContextPath();
- String uId = request.getAttribute("uId").toString();
- // 在flex中保存,发布流程的请求地址,isAjaxRequest参数,解决session失效下,【保存】操作会弹出登录页代码提示,具体可看PermissionFilter.java
- String postUrl = basePath + "/platform/bpm/bpmDefinition/flexDefSave.ht?isAjaxRequest=true";
- String flowKeyGetUrl = basePath+"/platform/bpm/bpmDefinition/getFlowKey.ht";
- String flowListGetUrl = basePath+"/platform/bpm/bpmDefinition/getFlowListByTypeId.ht";
- String xmlRecord = request.getAttribute("xmlRecord").toString();
- // 加载数据操作
- // 获取流程定义id
- String defId = "";
- String loadDateUrl = ""; // flex中获取加载数据的地址
- Object defIdObj = request.getAttribute("defId");
- if(defIdObj != null && !defIdObj.toString().equals("0")){
- defId = defIdObj.toString(); // 流程id
- loadDateUrl = basePath + "/platform/bpm/bpmDefinition/flexGet.ht?defId=" + defId;
- }
- %>
- <head>
- <title>
- 在线流程设计--<c:choose>
- <c:when test="${not empty bpmDefinition}">
- ${bpmDefinition.subject} --(版本${bpmDefinition.versionNo})
- </c:when>
- <c:otherwise>
- ${subject}
- </c:otherwise>
- </c:choose>
- </title>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- </head>
- <style type="text/css" media="screen">
- html, body { height:100%; }
- body { margin:0; padding:0; overflow:auto; text-align:center;
- background-color: #ffffff; }
- #flashContent { display:none; }
- </style>
- <script type="text/javascript" src="<%=basePath%>/media/swf/bpm/swfobject.js"></script>
- <script type="text/javascript">
- var swfVersionStr = "10.0.0";
- var xiSwfUrlStr = "<%=basePath%>/media/swf/bpm/playerProductInstall.swf";
- var flashvars = {};
- var params = {};
- params.quality = "high";
- params.bgcolor = "#ffffff";
- params.allowscriptaccess = "sameDomain";
- params.allowfullscreen = "true";
- params.FlashVars="flowKeyGetUrl=<%=flowKeyGetUrl%>&flowListGetUrl=<%=flowListGetUrl%>";
- var attributes = {};
- attributes.id = "bpmeditor";
- attributes.name = "bpmeditor";
- attributes.align = "middle";
- swfobject.embedSWF("<%=basePath%>/media/swf/bpm/bpmeditor.swf", "flashContent",
- "100%", "100%", swfVersionStr, xiSwfUrlStr, flashvars, params, attributes);
- swfobject.createCSS("#flashContent", "display:block;text-align:left;");
-
- function loadData(){
- var str = document.getElementById('xmlRecord').value;
- return str;
- }
-
- //供flex方向调用,获取提交数据的地址
- function getCtxPath(){
- return document.getElementById("postUrl").value;
- }
-
- // 供flex方向调用,关闭flex页面
- function closeFlexWindow(){
- opener.location.reload();
- window.close();
- }
-
- // 获取flex中加载流程设计图对应的xml数据,请求地址
- function getLoadDataUrl(){
- return document.getElementById("flexLoadDataUrl").value;
- }
- </script>
- <div>
- <textarea id="xmlRecord" style="display:none"><%=xmlRecord%></textarea>
- <input id="postUrl" type="hidden" value="<%=postUrl%>" />
- <input id="flexLoadDataUrl" type="hidden" value="<%=loadDateUrl%>" />
- </div>
- <div id="flashContent">
- <p> To view this page ensure that Adobe Flash Player version 10.0.0 or greater is installed. </p>
- <script type="text/javascript">
- var pageHost = ((document.location.protocol == "https:") ? "https://" : "http://");
- document.write("<a href='http://www.adobe.com/go/getflashplayer'><img src='"
- + pageHost + "www.adobe.com/images/shared/download_buttons/get_flash_player.gif' alt='Get Adobe Flash player'/></a>" );
- </script>
- </div>
-
- <noscript>
- <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%" id="bpmeditor">
- <param name="movie" value="<%=basePath%>/media/swf/bpm/bpmeditor.swf" />
- <param name="quality" value="high" />
- <param name="bgcolor" value="#ffffff" />
- <param name="allowScriptAccess" value="sameDomain" />
- <param name="allowFullScreen" value="true" />
- <param name="FlashVars" value="flowKeyGetUrl=<%=flowKeyGetUrl%>&flowListGetUrl=<%=flowListGetUrl%>" />
- <!--[if !IE]>-->
- <object type="application/x-shockwave-flash" data="<%=basePath%>/media/swf/bpm/bpmeditor.swf" width="100%" height="80%">
- <param name="quality" value="high" />
- <param name="bgcolor" value="#ffffff" />
- <param name="allowScriptAccess" value="sameDomain" />
- <param name="allowFullScreen" value="true" />
- <param name="FlashVars" value="flowKeyGetUrl=<%=flowKeyGetUrl%>&flowListGetUrl=<%=flowListGetUrl%>" />
- <!--<![endif]-->
- <!--[if gte IE 6]>-->
- <p>
- Either scripts and active content are not permitted to run or Adobe Flash Player version
- 10.0.0 or greater is not installed.
- </p>
- <!--<![endif]-->
- <a href="http://www.adobe.com/go/getflashplayer">
- <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash Player" />
- </a>
- <!--[if !IE]>-->
- </object>
- <!--<![endif]-->
- </object>
- </noscript>
|