83 lines
2.5 KiB
Plaintext
83 lines
2.5 KiB
Plaintext
<%@page import="org.activiti.engine.repository.ProcessDefinition"%>
|
|
<%@page import="org.activiti.engine.repository.Deployment"%>
|
|
<%@page import="com.blueland.bpm.engine.config.model.*" %>
|
|
<%@page import="com.blueland.bpm.common.page.*" %>
|
|
<%@page import="com.blueland.bpm.common.util.*" %>
|
|
<%@page import="java.util.*"%>
|
|
<%@ page contentType="text/html;charset=UTF-8"%>
|
|
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
|
|
<%@ include file="/commons/taglibs.jsp"%>
|
|
<%
|
|
String path = request.getContextPath();
|
|
String basePath = request.getScheme() + "://"
|
|
+ request.getServerName() + ":" + request.getServerPort()
|
|
+ path + "/";
|
|
%>
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<%@ include file="/commons/meta.jsp"%>
|
|
<base href="<%=basePath%>">
|
|
<title>修改流程模型XML</title>
|
|
<script type="text/javascript">
|
|
$(document).ready(function() {
|
|
$("#submitButton").click(function() {
|
|
var params = {
|
|
procDefId: $('#procDefId').val(),
|
|
bpmnXml: $('#bpmnXml').val(),
|
|
}
|
|
|
|
jQuery.ajax({
|
|
url: "${ctx}/procDefMgr/updateBpmnFile.do",
|
|
data: JSON.stringify(params),
|
|
contentType : 'application/json;charset=utf-8', //设置请求头信息
|
|
type: "POST",
|
|
success: function(resp)
|
|
{
|
|
alert(resp);
|
|
}
|
|
});
|
|
|
|
});
|
|
});
|
|
</script>
|
|
</head>
|
|
<body class="white-page">
|
|
<%@ include file="/commons/messages.jsp"%>
|
|
|
|
<form id="updateBpmnFileForm" name="updateBpmnFileForm" action="${ctx}/procDefMgr/updateBpmnFile.do" method="post">
|
|
<input id="procDefId" name="procDefId" value="${procDefId }" type="hidden"/>
|
|
|
|
<div class="main-container" id="main-container">
|
|
<div class="panel panel-primary">
|
|
<div>
|
|
<h8>只允许管理员修改 </h8>
|
|
</div>
|
|
<div class="panel-body">
|
|
<table class='table table-bordered' border="0" cellspacing="0"
|
|
cellpadding="0" id="myTable">
|
|
|
|
<textarea name="bpmnXml" id="bpmnXml" style="width:920px;height:470px;">${bpmnXml }</textarea>
|
|
</table>
|
|
<div class="col-md-offset-1 col-md-9" style="text-align: center;margin-top: 15px">
|
|
<button type="button" class="btn btn-sm btn-primary"
|
|
id="submitButton">
|
|
保存
|
|
<i class="ace-icon fa fa-save bigger-110"></i>
|
|
</button>
|
|
<button onclick="art.dialog.close();" type="button"
|
|
class="btn btn-sm btn-primary">
|
|
关闭
|
|
<i class="ace-icon fa fa-times bigger-110"></i>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</body>
|
|
</html>
|
|
|
|
|
|
|