Files

67 lines
1.9 KiB
Plaintext
Raw Permalink Normal View History

2026-01-16 14:13:44 +08:00
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<html>
<head>
<title></title>
<jsp:include page="../inc.jsp"></jsp:include>
<script type="text/javascript">
function dosave(fdialog,grid) {
if ($(".form").form('validate')) {
$.post(ext.contextPath + '/activiti/workflow/model/create.do', $(".form").serialize(), function(data) {
if(data!=''){
var dialog = parent.ext.modalDialog({
iframeId:'iframeedit',
title : '编辑模型',
url : ext.contextPath + '/modeler.html?modelId='+data,
buttons : [ {
text : '关闭',
handler : function() {
grid.datagrid('reload');
dialog.dialog('destroy');
fdialog.dialog('destroy');
}
} ]
});
}else{
parent.$.messager.alert('提示','未查询到模型Id','info');
}
});
}
}
$(function() {
});
</script>
</head>
<body>
<form method="post" class="form">
<table class="table">
<tr>
<th>流程模型名称</th>
<td><input name="name" class="easyui-textbox"
data-options="required:true,validType:'isBlank'" value="" />
</td>
</tr>
<!-- <tr>
<th>流程模型代码</th>
<td><input name="key" class="easyui-textbox"
data-options="required:true,validType:'isBlank'" value="" />
</td>
</tr> -->
<tr>
<th>描述</th>
<td>
<input name="description" class="easyui-textbox" style="width:100%;height:100px" value=""
data-options="multiline:true" validtype="length[0,250]" invalidMessage="有效长度0-250" />
</td>
</tr>
</table>
</form>
</body>
</html>