|
|
<!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.FlowEntityBatchStart);
|
|
|
|
|
|
});
|
|
|
|
|
|
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_Collection");
|
|
|
//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"));
|
|
|
handler.AddPara("IsCanBatch", 1);
|
|
|
var data = handler.DoMethodReturnString("FlowEntityBatchStart_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.MethodFlowBaseData&No=" + data;
|
|
|
SetHref(url);
|
|
|
return;
|
|
|
|
|
|
var html = "<ul>";
|
|
|
html += "<li>恭喜您创建成功.. <li>";
|
|
|
html += "<li>1.您可以修改方法属性.. <li>";
|
|
|
html += "<li>2.您可以转入到流程设计器设计该流程. <li>";
|
|
|
html += "</ul>";
|
|
|
$("#Msg").html(html);
|
|
|
|
|
|
}
|
|
|
|
|
|
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> 标签(流程名称): <input type="text" value="" id="TB_Name" name="TB_Name" /></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>可以在方法属性里,设置数据同步方式与同步内容。 </li>
|
|
|
</ol>
|
|
|
</fieldset>
|
|
|
|
|
|
</body>
|
|
|
</html>
|