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.

135 lines
5.5 KiB
Plaintext

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<!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>
<title>新建实体</title>
<link href="../../../Scripts/easyUI145/themes/icon.css" rel="stylesheet" type="text/css" />
<link href="../../../Scripts/easyUI145/themes/default/easyui.css" rel="stylesheet" type="text/css" />
<link href="../../../../DataUser/Style/ccbpm.css" rel="stylesheet" type="text/css" />
<script src="../../../Scripts/easyUI145/jquery.min.js" type="text/javascript"></script>
<script src="../../../Scripts/easyUI145/jquery.easyui.min.js" type="text/javascript"></script>
<script src="../../../Scripts/QueryString.js" type="text/javascript"></script>
<script src="../../../Scripts/config.js" type="text/javascript"></script>
<script src="../../../Scripts/QueryString.js" type="text/javascript"></script>
<script src="../../../Comm/Gener.js" type="text/javascript"></script>
<script src="DDLBar.js" type="text/javascript"></script>
<script src="../../EnumLab.js"></script>
<script src="../../../Admin/Admin.js"></script>
<script type="text/javascript">
$(function () {
InitBar(MethodModel.FlowEtc);
});
function Save() {
$("#Btn_Save").html('正在创建请稍后...');
$("#Btn_Save").attr("disabled", true);
$("#Msg").html('正在创建请稍后,请您仔细阅读说明...');
var name = $("#TB_Name").val();
var frmID = GetQueryString("FrmID");
var groupID = GetQueryString("GroupID");
var html = "操作提示:";
html += "<ul>";
html += " <li><img src='../../../Img/loading.gif'/>正在创建流程请稍后..</li>";
html += " <li>系统会自动创建一个名字为[" + name + "]的流程,放入与系统同名的流程目录下..</li>";
html += " <li>该流程的表单字段,是从当前实体表单中复制过去的,您可以删除不需要的字段。</li>";
html += "</ul>";
$("#Msg").html(html);
var md = new Entity("BP.Sys.MapData", frmID);
//alert(md.FK_FormTree);
var handler = new HttpHandler("BP.CCBill.WF_CCBill_Admin_Method");
//handler.AddUrlData();
// handler.AddFormData();
handler.AddPara("SortNo", md.FK_FormTree); //该实体的类别编号与,流程的类别编号一致.
handler.AddPara("FlowName", name);
handler.AddPara("Name", name);
handler.AddPara("FrmID", frmID);
handler.AddPara("FlowDevModel", 1); //设置为极简模式.
handler.AddPara("GroupID", groupID); // 方法的的GroupID..
handler.AddPara("ModuleNo", GetQueryString("ModuleNo")); // 隶属的方法模板..
var data = handler.DoMethodReturnString("FlowEtc_Save");
if (data.indexOf('err@') == 0) {
alert(data);
$("#Btn_Save").html('创建');
$("#Btn_Save").attr("disabled", false);
alert("错误:" + data);
return;
}
alert("创建成功,将要进入菜单属性页面.");
var url = "../../../Comm/En.htm?EnName=BP.CCBill.Template.MethodFlowEtc&No=" + data;
SetHref(url);
return;
}
function GenerPinYin() {
//是否是全拼.
var isQuanPin = 0;
if (document.getElementById("RB_ZZMM_0").checked == true)
isQuanPin = 1;
// var name = $('#TB_Nam').val();
var name = document.getElementById("TB_Name").value;
if (name == "")
return;
var handler = new HttpHandler("BP.WF.HttpHandler.Admin_CCFormDesigner");
handler.AddPara("IsQuanPin", isQuanPin);
handler.AddPara("TB_Name", encodeURIComponent(name));
var data = handler.DoMethodReturnString("NewFrmGuide_GenerPinYin");
$("#Msg").html("");
if (data.indexOf('err@') >= 0) {
$("#Msg").html("<font color=red>" + data + "</font>");
return;
}
$('#TB_No').val(data);
}
</script>
</head>
<body>
<div id="bar"> </div>
<fieldset>
<legend>其他业务流程 </legend>
<ul>
<li> 标签(流程名称)</li>
<li> <input type="text" value="" id="TB_Name" name="TB_Name" placeholder="比如:三好学生评定、派车流程、维修流程" style="width:90%;" /></li>
<li> <div id="Msg"></div></li>
</ul>
<legend > 帮助 </legend>
<ol>
<li>比如:物业费缴纳、维修流程、派车流程、处罚流程、嘉奖流程、三好学生评定</li>
<li>流程运行完毕后,就作为业务查询数据. </li>
</ol>
<legend > 开发说明 </legend>
<ol>
<li>点击确定后,系统自动创建一个流程,并且开流程为极简模式。 </li>
<li>此流程的表单,是从当前实体表单中复制而来的。 </li>
<li>您可以根据自己的需要新增与删除字段。 </li>
<li>
<a href="https://www.bilibili.com/video/BV12P4y1p74h/" target="_blank" class="icon-camrecorder"><font color="blue">&nbsp;实体于流程关系</font></a>
</li>
</ol>
</fieldset>
</body>
</html>