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.
149 lines
5.1 KiB
Plaintext
149 lines
5.1 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="../../WF/Scripts/easyUI145/jquery.min.js" type="text/javascript"></script>
|
|
<script src="../../WF/Scripts/easyUI145/jquery.easyui.min.js" type="text/javascript"></script>
|
|
<script src="../../WF/Scripts/CommonUnite.js" type="text/javascript"></script>
|
|
<script src="../../WF/Scripts/EasyUIUtility.js" type="text/javascript"></script>
|
|
<script src="../../WF/Scripts/QueryString.js" type="text/javascript"></script>
|
|
<script src="../../WF/Scripts/config.js" type="text/javascript"></script>
|
|
<script src="../../WF/Comm/Gener.js" type="text/javascript"></script>
|
|
<script language="javascript" type="text/javascript">
|
|
|
|
var fk_flow = GetQueryString('FK_Flow');
|
|
var fk_node = GetQueryString('FK_Node');
|
|
var SID = GetQueryString("Token");
|
|
//页面启动函数.
|
|
$(function () {
|
|
|
|
$("#Msg").html("<img src=../../WF/Img/loading.gif /> 正在加载可以<font color=red>发起该流程</font>的人员列表, 请稍后......");
|
|
|
|
var doType = GetQueryString("DoType");
|
|
if (doType == "" || doType == null)
|
|
doType = "TestFlow2020_Init";
|
|
|
|
var fk_flow = GetQueryString("FK_Flow");
|
|
var doWhat = GetQueryString("DoWhat");
|
|
var userNo = GetQueryString("UserNo");
|
|
|
|
var handler = new HttpHandler("BP.Cloud.HttpHandler.Admin_TestingContainer");
|
|
|
|
handler.AddUrlData();
|
|
var data = handler.DoMethodReturnString(doType);
|
|
|
|
if (data.indexOf('err@') == 0) {
|
|
|
|
if (data.indexOf('访问规则') > 0) {
|
|
document.getElementById("Info").innerHTML = "<font color=red>" + data + '</font>';
|
|
return;
|
|
}
|
|
|
|
document.getElementById("Info").innerHTML = "<font color=red>" + data + '</font>';
|
|
|
|
$("#Msg").html("");
|
|
return;
|
|
}
|
|
|
|
|
|
if (data.indexOf('url@') == 0) {
|
|
var url = data.replace('url@', '');
|
|
SetHref(url);
|
|
return;
|
|
}
|
|
|
|
//转化为Json.
|
|
data = JSON.parse(data);
|
|
|
|
//增加处理.
|
|
for (var i = 0; i < data.length; i++) {
|
|
|
|
var newRow = "";
|
|
var emp = data[i];
|
|
|
|
newRow = "<tr ><td class=Idx>" + i + "</td>";
|
|
|
|
var idxFlag = emp.No.indexOf('_');
|
|
var empNo = emp.No;
|
|
|
|
if (idxFlag > 0)
|
|
empNo= emp.No.substring(idxFlag + 1) ;
|
|
|
|
newRow += "<td>" + empNo + "</td>";
|
|
|
|
newRow += "<td>" + emp.Name + "</td>";
|
|
|
|
var url = "<a href=\"javascript:StartIt('" + empNo + "');\" ><img src='../../WF/Img/ie.gif' border=0 />发起流程</a>";
|
|
newRow += "<td>" + url + "</td>";
|
|
newRow += "<td>无</td>";
|
|
|
|
newRow += "<td>" + emp.FK_DeptText + "</td>";
|
|
newRow += "</tr>";
|
|
$("#Table1 tr:last").after(newRow);
|
|
}
|
|
|
|
$("#Msg").html("");
|
|
});
|
|
|
|
//发起流程。
|
|
function StartIt(empNo) {
|
|
|
|
var handler = new HttpHandler("BP.Cloud.HttpHandler.Admin_TestingContainer");
|
|
handler.AddPara("FK_Flow", GetQueryString("FK_Flow"));
|
|
handler.AddPara("UserNo", empNo);
|
|
handler.AddPara("Token", SID);
|
|
var data = handler.DoMethodReturnString("TestFlow2020_StartIt");
|
|
|
|
if (data.indexOf('访问规则') > 0) {
|
|
alert(data);
|
|
return;
|
|
}
|
|
|
|
if (data.indexOf('err@') == 0) {
|
|
alert(data);
|
|
return;
|
|
}
|
|
|
|
//alert(data);
|
|
SetHref(data);
|
|
|
|
//启动测试容器.
|
|
//WinOpenFull(data);
|
|
}
|
|
|
|
|
|
function ToParaTest() {
|
|
var url = "TestCase.htm?FK_Flow=" + GetQueryString("FK_Flow");
|
|
SetHref(url);
|
|
return;
|
|
}
|
|
</script>
|
|
</head>
|
|
<body onkeypress="Esc()">
|
|
|
|
<!--<a href="javascript:ToParaTest();">参数测试</a>-->
|
|
|
|
<center>
|
|
<table id="Table1" cellpadding="0" cellspacing="0" border="0" style="width: 90%; padding:10px; margin:10px;">
|
|
<caption>流程发起测试,能够发起该流程的人员列表.(<font color=red><a href="javascript:alert('运行流程之前不检查可能会导致字段没有创建的错误');">提示</a></font>)</caption>
|
|
<tr>
|
|
<th> 序 </th>
|
|
<th> 可登录用户编号</th>
|
|
<th> 名称</th>
|
|
<th> 经典模式</th>
|
|
<th> 手机模式</th>
|
|
<th> 所在部门</th>
|
|
</tr>
|
|
</table>
|
|
</center>
|
|
|
|
<center>
|
|
<div id="Info"></div>
|
|
<div id="Msg"></div>
|
|
</center>
|
|
|
|
</body>
|
|
</html>
|