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.

198 lines
8.9 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>
<meta charset="UTF-8" />
<title>自动发起</title>
<link href="../../../DataUser/Style/ccbpm.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../../Scripts/bootstrap/js/jquery.min.js"></script>
<script src="../../Scripts/QueryString.js" type="text/javascript"></script>
<link href="../../../DataUser/Style/ccbpm.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="../../Scripts/easyUI145/themes/default/easyui.css" />
<link rel="stylesheet" type="text/css" href="../../Scripts/easyUI145/themes/icon.css" />
<script type="text/javascript" src="../../Scripts/jquery-1.11.0.min.js"></script>
<script type="text/javascript" src="../../Scripts/easyUI145/jquery.easyui.min.js"></script>
<script type="text/javascript" src="../../Scripts/easyUI145/locale/easyui-lang-zh_CN.js"></script>
<!-- 引用通用的js文件. -->
<script type="text/javascript" src="../../Scripts/config.js"></script>
<script type="text/javascript" src="../../Comm/Gener.js"></script>
<script src="../Admin.js"></script>
<style>
#Btn_Save {
background-image: url(../../Img/Btn/Save.png) !important;
}
</style>
<script type="text/javascript" language="javascript">
//页面启动函数.
$(function () {
$("#Msg").html("<img src=../../Img/loading.gif />&nbsp;正在加载,请稍后......");
//初始化groupID.
var fk_flow = GetQueryString("FK_Flow");
var flow = new Entity("BP.WF.Flow", fk_flow);
//通用赋值控件.
GenerFullAllCtrlsVal(flow);
//设置选择按钮选中.
if (flow.FlowRunWay == 1)
document.getElementById("TB_SpecEmp").value = flow.RunObj;
// if (flow.FlowRunWay == 2)
// document.getElementById("TB_SQL").value = flow.RunObj;
$("#Msg").html("");
});
function SQLSetting() {
var flowNo = GetQueryString("FK_Flow");
var url = "../FoolFormDesigner/MapExt/PageLoadFullAutoStart.htm?FK_Flow=" + flowNo;
SetHref(url);
}
function Save() {
$("#Msg").html("正在保存,请稍后......");
var fk_flow = GetQueryString("FK_Flow");
var val = $('input[name="RB_FlowRunWay"]:checked').val();
if (val == 2) {
var mapExt = new Entity("BP.Sys.MapExt");
mapExt.SetPKVal("StartFlow_" + "ND" + parseInt(fk_flow + "01"));
if (mapExt.RetrieveFromDBSources() == 0) {
alert("点击'设置要启动流程的数据源SQL'设置数据源");
return;
}
}
var flow = new Entity("BP.WF.Flow", fk_flow);
flow.FlowRunWay = val;
if (flow.FlowRunWay == "1") {
flow.RunObj = $("#TB_SpecEmp").val();
}
flow.Update();
Reload();
}
</script>
</head>
<body>
<form id="cc">
<div id="bar" class="cs-tr cs-bar">
<label style="float:left;font-size:14px;font-weight:bolder;padding-top:10px;">自动发起</label>
<input type="button" id="Btn_Save" runat="server" value="保存" onclick="Save()" />
</div>
<fieldset>
<legend id="help"></legend>
<ul>
<li> 定义:自动启动工作流程,一个流程的开始节点的填写与发起是在特定规则的设置下自动发起的流程。</li>
<li> 解释:通常模式下的流程启动是手工的启动,就是用户从一个发起列表,点击流程名字,就启动了该流程。但是有的时候,是系统自动发起该流程。</li>
<li>应用场景</li>
<li> 1 周例会流程,用户希望每个周都要启动例会通知流程这个启动是让系统自动发起而非人工发起。</li>
</ul>
</fieldset>
<fieldset>
<legend>
<input id="RB_FlowRunWay_0" type="radio" name="RB_FlowRunWay" value="0" /><label for="RB_FlowRunWay_0">手工启动(默认)</label>
</legend>
<ul>
<li>
<font color="gray">说明:就是说工作人员从流程发起列表里,点流程,就发起流程。</font>
</li>
</ul>
</fieldset>
<fieldset>
<legend>
<input id="RB_FlowRunWay_1" type="radio" name="RB_FlowRunWay" value="1" /><label for="RB_FlowRunWay_1">指定人员按时启动</label>
</legend>
<br />
<a href="javascript:ShowHidden('emps')">操作员参数设置帮助:</a>
<div id="emps" style=" display:none;color:Gray">
<ul>
<li>说明:指定的人员指定的发起时间点自动启动流程。</li>
<li>请打开操作手册:<a href="javascript:WinOpen('http://ccbpm.mydoc.io/?v=5404&t=17088')">操作手册</a></li>
<li>一个人启动的参数格式:人员编号@时间点1@时间点2@时间点n </li>
<li>n个人启动的参数格式人员编号@时间点1@时间点2@时间点n,人员编号@时间点1@时间点2@时间点n,人员编号@时间点1@时间点2@时间点n</li>
<li>比如zhangshan@01:01@12:01 让张三在每天的 1点零1分与12点零1分发起此流程。</li>
<li>比如zhangshan@-01 01:01 让张三在每月1号的1点零1分发起此流程。</li>
<li>比如zhangshan@06-01 01:01 让张三在每年的6月1号的1点零1分发起此流程。</li>
<li>cc的日期格式为yyyy-MM-dd HH:mm 如果时间匹配到您设置的时间点,那么系统就会触发流程,多个时间点用@符号隔开。</li>
</ul>
</div>
<br />
<input type="text" style="width:95%" id="TB_SpecEmp" name="TB_SpecEmp" />
</fieldset>
<fieldset>
<legend>
<input id="RB_FlowRunWay_2" type="radio" name="RB_FlowRunWay" value="2" /><label for="RB_FlowRunWay_2">数据集按时启动</label>
</legend>
<br />
<a href="javascript:ShowHidden('sql')">SQL参数设置帮助:</a>
<div id="sql" style=" display:none;color:Gray">
<ul>
<li>请设置一个SQL语句该语句返回一个数据源。</li>
<li>系统就会对每一条数据发起一条流程,这就是按照数据源的模式自动发起流程。</li>
<li>该数据源的列名如果与开始节点表单的字段名一致,就会自动赋值。</li>
<li>该参数支持ccbpm的表达式。比如:@WebUser.No,@WebUser.Name,@WebUser.FK_Dept,@WebUser.OrgNo</li>
<li>请打开操作手册:<a href="javascript:WinOpen('http://ccbpm.mydoc.io/?v=5404&t=17088')">操作手册</a></li>
</ul>
</div>
<br />
<h3> <a href="javascript:SQLSetting()">设置要启动流程的数据源SQL</a></h3>
<!--<textarea type=text style="width:95%" id="TB_SQL" name="TB_SQL"></textarea>-->
</fieldset>
<fieldset>
<legend>
<input id="RB_FlowRunWay_3" type="radio" name="RB_FlowRunWay" value="3" /><label for="RB_FlowRunWay_3">触发式启动</label>
</legend>
<ul style="color:Gray">
<li>说明:第三方软件向特定的表 WF_Task 中写入数据,每写入一条数据系统就会自动发起一条流程。</li>
<li>ccBPM就会读取这张表来完成流程的发起发起成功后就把这条记录设置成已经发起的状态。</li>
<li>详见设置以及该表的结构参考<a href="javascript:WinOpen('http://ccbpm.mydoc.io/?v=5404&t=17088')">操作手册</a></li>
</ul>
<font color="gray">
</font>
</fieldset>
<!--<input type=button value="保存" onclick="Save();" />-->
<!--<asp:Button class="easyui-linkbutton" ID="Btn_Save" runat="server" Text="保存" OnClick="BtnSave_Click" /> -->
<!--
<a style=" float:right" href="javascript: if ( confirm('您确定要执行吗? 注意:对于数据量交大的数据因为web上执行时间的限时问题会造成执行失败。') ) { WinOpen('/WF/Comm/RefMethod.htm?Index=7&EnsName=BP.WF.Template.FlowSheets&No=<%=FK_Flow %>&r=1208095548','_blank') }" tooltip="">手动启用定时任务</a>
-->
<div id="Msg"> </div>
</form>
</body>
</html>