|
|
@@ -46,6 +46,9 @@ namespace Learun.Application.WebApi.Modules |
|
|
|
Post["/revoke"] = RevokeFlow; |
|
|
|
|
|
|
|
Post["/refer"] = ReferFlow; |
|
|
|
Post["/instance"] = SaveInstanceForms; |
|
|
|
Post["/auditors"] = SaveAuditors; |
|
|
|
|
|
|
|
} |
|
|
|
private NWFSchemeIBLL nWFSchemeIBLL = new NWFSchemeBLL(); |
|
|
|
private NWFProcessIBLL nWFProcessIBLL = new NWFProcessBLL(); |
|
|
@@ -379,6 +382,41 @@ namespace Learun.Application.WebApi.Modules |
|
|
|
nWFProcessIBLL.ReferFlow(parameter.processId, parameter.taskId, userInfo); |
|
|
|
return Success("确认成功"); |
|
|
|
} |
|
|
|
/// <summary> |
|
|
|
/// app保存实例 |
|
|
|
/// </summary> |
|
|
|
/// <param name="_"></param> |
|
|
|
/// <returns></returns> |
|
|
|
public Response SaveInstanceForms(dynamic _) |
|
|
|
{ |
|
|
|
List<FormParam> param = this.GetReqData<List<FormParam>>(); |
|
|
|
|
|
|
|
foreach (var item in param) |
|
|
|
{ |
|
|
|
formSchemeIBLL.SaveInstanceForm(item.schemeInfoId, item.processIdName, item.keyValue, item.formData); |
|
|
|
} |
|
|
|
return Success("保存成功!"); |
|
|
|
} |
|
|
|
/// <summary> |
|
|
|
/// app保存审核人 |
|
|
|
/// </summary> |
|
|
|
/// <param name="_"></param> |
|
|
|
/// <returns></returns> |
|
|
|
public Response SaveAuditors(dynamic _) |
|
|
|
{ |
|
|
|
var param = this.GetReqData<flowParam>(); |
|
|
|
UserInfo userInfo = LoginUserInfo.Get(); |
|
|
|
try |
|
|
|
{ |
|
|
|
nWFProcessIBLL.AuditFlow(param.operationCode, param.operationName, param.processId, param.taskId, param.des, param.auditors, param.stamp, param.signUrl, userInfo); |
|
|
|
return Success("流程审批成功"); |
|
|
|
} |
|
|
|
catch (System.Exception ex) |
|
|
|
{ |
|
|
|
|
|
|
|
return Fail(ex.Message); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
private class flowParam |
|
|
|
{ |
|
|
@@ -443,6 +481,8 @@ namespace Learun.Application.WebApi.Modules |
|
|
|
/// 签字图片信息 |
|
|
|
/// </summary> |
|
|
|
public string signUrl { get; set; } |
|
|
|
|
|
|
|
public string stamp { get; set; } |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary> |
|
|
|