///
/// 2017-01-20 15:44:45
@@ -464,12 +398,7 @@ namespace OpenAuth.App
//
if (request.VerificationFinally == "3")
{
- string _nodeId = "";
- if (!string.IsNullOrEmpty(request.NodeRejectStep))
- {
- _nodeId = request.NodeRejectStep;
- }
- NodeReject(request.FlowInstanceId, _nodeId, request.VerificationOpinion);
+ NodeReject(request);
}
else if (request.VerificationFinally == "2")//ʾͬ
{
@@ -511,3 +440,4 @@ namespace OpenAuth.App
}
}
}
+
diff --git a/OpenAuth.App/Request/VerificationReq.cs b/OpenAuth.App/Request/VerificationReq.cs
index e053b7a0..f8f56d99 100644
--- a/OpenAuth.App/Request/VerificationReq.cs
+++ b/OpenAuth.App/Request/VerificationReq.cs
@@ -14,7 +14,7 @@
public string VerificationOpinion { get; set; }
///
- /// 驳回的步骤
+ /// 驳回的步骤,即驳回到的节点ID
///
public string NodeRejectStep { get; set; }
}
diff --git a/OpenAuth.Mvc/Views/FlowSchemes/NodeInfo.cshtml b/OpenAuth.Mvc/Views/FlowSchemes/NodeInfo.cshtml
index 2f437670..0750ebd9 100644
--- a/OpenAuth.Mvc/Views/FlowSchemes/NodeInfo.cshtml
+++ b/OpenAuth.Mvc/Views/FlowSchemes/NodeInfo.cshtml
@@ -27,6 +27,18 @@
placeholder="节点名称" autocomplete="off" class="layui-input">
+
+
@@ -37,9 +49,17 @@
+
+
+
diff --git a/OpenAuth.Mvc/userJs/nodeInfo.js b/OpenAuth.Mvc/userJs/nodeInfo.js
index 084be08d..fe9ef4b2 100644
--- a/OpenAuth.Mvc/userJs/nodeInfo.js
+++ b/OpenAuth.Mvc/userJs/nodeInfo.js
@@ -20,7 +20,7 @@ layui.config({
vm.$set('$data', node.setInfo);
users = node.setInfo.NodeDesignateData.users;
}
-
+
//菜单列表
var menucon = {}; //table的参数,如搜索key,点击tree的id
//副树状结构,等lay table没问题了,可以换成table
@@ -119,7 +119,7 @@ layui.config({
//提供给上父页面调用
getVal = function () {
var result = {
- NodeDesignateData: { //节点指定操作人
+ NodeDesignateData: { //节点指定操作人
users: users,
role: [],
org: []
diff --git a/OpenAuth.UnitTest/TestWorkflow.cs b/OpenAuth.UnitTest/TestWorkflow.cs
index 4a7d7ee2..271ffd14 100644
--- a/OpenAuth.UnitTest/TestWorkflow.cs
+++ b/OpenAuth.UnitTest/TestWorkflow.cs
@@ -2,6 +2,7 @@
using Infrastructure;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using OpenAuth.App;
+using OpenAuth.App.Request;
using OpenAuth.Repository.Domain;
namespace OpenAuth.UnitTest
@@ -23,9 +24,13 @@ namespace OpenAuth.UnitTest
/// 李玉宝于2017-01-20 9:59:11
///
[TestMethod]
- public void AddProcessInstance()
+ public void Verify()
{
-
+ _runApp.Verification(new VerificationReq
+ {
+ FlowInstanceId = "c4aa73f2-d5ea-43c3-8b7e-903e31ba5828",
+ VerificationFinally = "3"
+ });
}
}