2024-08-14 15:17:51 +08:00

77 lines
2.4 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<%@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() {
//用jquery中的ajax方法向服务器提交请求
jQuery.ajax({
type: "POST",
url: "${ctx}/procDefModelMgr/updateBpmnFile.do",
data: $('#updateBpmnFileForm').serialize(),
success: function(resp)
{
alert(resp);
}
});
});
});
</script>
</head>
<body>
<%@ include file="/commons/messages.jsp"%>
<form id="updateBpmnFileForm" name="updateBpmnFileForm" action="${ctx}/procDefModelMgr/updateBpmnFile.do" method="post">
<input 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;">
<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>