update
This commit is contained in:
@@ -0,0 +1,76 @@
|
||||
<%@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>
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user