You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
174 lines
7.6 KiB
Plaintext
174 lines
7.6 KiB
Plaintext
<!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>
|
|
<meta charset="UTF-8" />
|
|
<title>新建流程</title>
|
|
<link href="../../../DataUser/Style/ccbpm.css" rel="stylesheet" type="text/css" />
|
|
<script src="../../Scripts/jquery-1.7.2.min.js" type="text/javascript"></script>
|
|
<script src="../../Scripts/jquery.easyui.min.js" type="text/javascript"></script>
|
|
|
|
<!-- 引用通用的js文件. -->
|
|
<script src="../../Scripts/config.js" type="text/javascript"></script>
|
|
<script src="../../Scripts/QueryString.js" type="text/javascript"></script>
|
|
<script type="text/javascript" src="../../Comm/Gener.js"></script>
|
|
<script src="../CCFlowEnum.js" type="text/javascript"></script>
|
|
<script src="../../Scripts/EasyUIUtility.js" type="text/javascript"></script>
|
|
<script type="text/javascript">
|
|
|
|
var model = 0; //运行模式 0专业版 1简洁版
|
|
var flowSort = "";
|
|
$(function () {
|
|
|
|
//让其落到第一个文本框上,焦点.
|
|
var flowName = document.getElementById("TB_FlowName");
|
|
flowName.focus();
|
|
|
|
if (GetHrefUrl().indexOf("Simple.htm") > 0)
|
|
model = 1; //轻量版.
|
|
|
|
|
|
//流程类型.
|
|
flowSort = GetQueryString("sort");
|
|
flowSort = flowSort.replace("F", "");
|
|
|
|
model = GetQueryString("RunModel");
|
|
if (model == "1") {
|
|
//简洁版.
|
|
$("#DDL_FlowFrmType").append("<option value=null disabled='disabled'>+内置表单</option>");
|
|
$("#DDL_FlowFrmType").append("<option value=" + FlowFrmType.FoolFrm + " selected=true > 傻瓜表单</option>");
|
|
$("#DDL_FlowFrmType").append("<option value=" + FlowFrmType.DeveloperFrm + " > 开发者表单</option>");
|
|
|
|
$("#DDL_FlowFrmType").append("<option value=null disabled='disabled'>+自定义表单</option>");
|
|
$("#DDL_FlowFrmType").append("<option value=" + FlowFrmType.SelfFrm + " > 嵌入式表单</option>");
|
|
$("#DDL_FlowFrmType").append("<option value=" + FlowFrmType.SDKFrm + " > SDK表单(我自定义的表单)</option>");
|
|
$(".IsHidden").show();
|
|
|
|
} else {
|
|
$(".IsHidden").hide();
|
|
$("#DDL_FlowFrmType").append("<option value=null disabled='disabled'>+内置表单</option>");
|
|
$("#DDL_FlowFrmType").append("<option value=" + FormSlnType.FoolForm + "> 内置傻瓜表单</option>");
|
|
$("#DDL_FlowFrmType").append("<option value=" + FormSlnType.FreeForm + "> 内置自由表单</option>");
|
|
$("#DDL_FlowFrmType").append("<option value=" + FormSlnType.FoolTruck + " > 内置累加模式表单</option>");
|
|
$("#DDL_FlowFrmType").append("<option value=" + FormSlnType.WebOffice + " > 公文表单(2018版本已不支持)</option>");
|
|
|
|
$("#DDL_FlowFrmType").append("<option value=null disabled='disabled'>+自定义表单</option>");
|
|
$("#DDL_FlowFrmType").append("<option value=" + FormSlnType.SelfForm + " > 嵌入式表单</option>");
|
|
$("#DDL_FlowFrmType").append("<option value=" + FormSlnType.SDKForm + " > SDK表单(我自定义的表单)</option>");
|
|
}
|
|
});
|
|
//要返回的json.
|
|
function getNewFlowInfo() {
|
|
return {
|
|
FlowName: $('#TB_FlowName').val(),
|
|
TreeFlowSort: GetQueryString('sort'),
|
|
FlowSort: flowSort,
|
|
DataStoreModel: 1,
|
|
PTable: $('#TB_PTable').val(),
|
|
FlowMark: $('#TB_FlowMark').val(),
|
|
FlowFrmType: $('#DDL_FlowFrmType').val(),
|
|
FrmUrl: $('#TB_URL').val(),
|
|
RunModel: model,
|
|
FlowVersion: 1
|
|
};
|
|
}
|
|
|
|
///打开帮助.
|
|
function OpenFrmHelp() {
|
|
var url = "http://doc.ccbpm.cn";
|
|
}
|
|
//下拉框变化的时候.
|
|
function FrmTypeChange() {
|
|
|
|
//var model = GetQueryString("RunModel");
|
|
var model = $("#DDL_FlowFrmType").val();
|
|
if (model == "0" || model == "1" || model == "2" || model == "7" || model == "10") {
|
|
$("#TB_URL").attr("disabled", "disabled");
|
|
$("#TB_URL").attr("value", " 当前不可用");
|
|
}
|
|
else {
|
|
$("#TB_URL").attr("disabled", false);
|
|
$("#TB_URL").attr("value", "");
|
|
}
|
|
}
|
|
function OpenFlowMod() {
|
|
url = "../Template/Flow.htm?SortNo=" + GetQueryString("sort");
|
|
|
|
SetHref(url);
|
|
|
|
//window.close();
|
|
}
|
|
</script>
|
|
<style>
|
|
.dialog-button a {
|
|
width: 500px;
|
|
height: 35px;
|
|
}
|
|
</style>
|
|
<base target=_blank />
|
|
</head>
|
|
<body>
|
|
<form id="from1" action="">
|
|
<table class="Table" cellpadding="0" cellspacing="0" border="0" style="width: 100%">
|
|
|
|
<caption> <a href="http://ccflow.org/ke.htm"><img src='../../Img/FileType/rmvb.gif' />教您做一个小流程</a> </caption>
|
|
<tr>
|
|
<td><font color=red><b>*</b></font>流程名称:</td>
|
|
<td>
|
|
<input id="TB_FlowName" style="width: 200px" />
|
|
</td>
|
|
<td> 不能为空,比如:请假流程.</td>
|
|
</tr>
|
|
<!--<tr>
|
|
<td nowarp="true"><font color="red"><b>*</b></font>数据存储模式:</td>
|
|
<td>
|
|
<select id="DDL_DataStoreModel" class="easyui-combobox" style="width:200px;" >
|
|
<option value="1" selected="true">数据合并模式</option>
|
|
<option value="0">数据轨迹模式</option>
|
|
</select>
|
|
</td>
|
|
<td> <font color="gray">如需要保留每个节点的数据请选第1种模式.</font></td>
|
|
</tr>-->
|
|
<tr>
|
|
<td>流程数据表:</td>
|
|
<td>
|
|
<input id="TB_PTable" style="width: 200px" />
|
|
</td>
|
|
<td> <font color="gray"><a href="http://ccbpm.mydoc.io/?v=5404&t=17897" target=_blank> <img src='../../Img/Help.png' /></a></font></a></td>
|
|
</tr>
|
|
|
|
<tr class="IsHidden">
|
|
<td>默认表单模式</td>
|
|
<td>
|
|
<select id="DDL_FlowFrmType" onchange="FrmTypeChange()"></select>
|
|
</td>
|
|
<td>
|
|
<!--<a href="javascript:OpenFrmHelp()"><img src='../../Img/Help.png' />帮助</a>-->
|
|
</td>
|
|
</tr>
|
|
|
|
<tr class="IsHidden" id="trfrm">
|
|
<td>表单URL</td>
|
|
<td>
|
|
<input disabled="disabled" value="   当前不可用" id="TB_URL" style="width:200px" />
|
|
</td>
|
|
<td> </td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td nowarp="true" style="width:20%;">
|
|
流程标记:
|
|
</td>
|
|
<td>
|
|
<input id="TB_FlowMark" style="width: 200px" />
|
|
</td>
|
|
<td> <a href="http://ccbpm.mydoc.io/?v=5404&t=16847"><img src='../../Img/Help.png' /></a></td>
|
|
</tr>
|
|
</table>
|
|
|
|
<ul>
|
|
<li><a onclick="OpenFlowMod()"><img src="../../Img/FlowTree.png" />导入模板</a> </li>
|
|
</ul>
|
|
</form>
|
|
</body>
|
|
</html>
|