|
|
@@ -6,6 +6,7 @@ using System.Data; |
|
|
|
using System.Linq; |
|
|
|
using System.Text; |
|
|
|
using Learun.Application.TwoDevelopment.LR_LGManager; |
|
|
|
using Learun.Application.Organization; |
|
|
|
|
|
|
|
namespace Learun.Application.WorkFlow |
|
|
|
{ |
|
|
@@ -150,10 +151,21 @@ namespace Learun.Application.WorkFlow |
|
|
|
expression = expression.And(t => t.F_Title.Contains(keyword) || t.F_SchemeName.Contains(keyword) || t.F_CreateUserName.Contains(keyword)); |
|
|
|
} |
|
|
|
expression = expression.And(t => t.F_EnabledMark != 2); |
|
|
|
//20221125增加作废不显示liang |
|
|
|
expression = expression.And(t => t.F_EnabledMark != 3); |
|
|
|
expression = expression.And(t => t.F_IsChild == 0); |
|
|
|
|
|
|
|
var result = this.BaseRepository().FindList<NWFProcessEntity>(expression, pagination); |
|
|
|
|
|
|
|
if (result.Count()>0 ) |
|
|
|
{ |
|
|
|
foreach (var item in result) |
|
|
|
{ |
|
|
|
if (!string.IsNullOrEmpty(item.F_CreateUserName)) |
|
|
|
{ |
|
|
|
item.F_DepartmentId = this.BaseRepository().FindEntity<UserEntity>(x => x.F_UserId == item.F_CreateUserId)?.F_DepartmentId; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
return result; |
|
|
|
} |
|
|
@@ -250,7 +262,10 @@ namespace Learun.Application.WorkFlow |
|
|
|
item.F_TaskId = this.BaseRepository().FindEntity<NWFTaskEntity>(x => x.F_ProcessId == item.F_Id)?.F_Id; |
|
|
|
item.F_TaskType = this.BaseRepository().FindEntity<NWFTaskEntity>(x => x.F_ProcessId == item.F_Id)?.F_Type; |
|
|
|
item.F_TaskName = this.BaseRepository().FindEntity<NWFTaskEntity>(x => x.F_ProcessId == item.F_Id)?.F_NodeName; |
|
|
|
|
|
|
|
if (!string.IsNullOrEmpty(item.F_CreateUserName)) |
|
|
|
{ |
|
|
|
item.F_DepartmentId = this.BaseRepository().FindEntity<UserEntity>(x => x.F_UserId == item.F_CreateUserId)?.F_DepartmentId; |
|
|
|
} |
|
|
|
//合同流程审批专用 如果第一步校长审批同意的话 可以打印授权委托书 |
|
|
|
if (item.F_SchemeCode == "LC_Contract_") |
|
|
|
{ |
|
|
@@ -412,8 +427,18 @@ namespace Learun.Application.WorkFlow |
|
|
|
{ |
|
|
|
strSql.Append(" AND t.F_IsBatchAudit = 1 "); |
|
|
|
} |
|
|
|
|
|
|
|
return this.BaseRepository().FindList<NWFProcessEntity>(strSql.ToString(), new { userId, startTime, endTime, keyword, schemeCode }, pagination); |
|
|
|
var data = this.BaseRepository().FindList<NWFProcessEntity>(strSql.ToString(), new { userId, startTime, endTime, keyword, schemeCode }, pagination); |
|
|
|
if (data.Count() > 0) |
|
|
|
{ |
|
|
|
foreach (var item in data) |
|
|
|
{ |
|
|
|
if (!string.IsNullOrEmpty(item.F_CreateUserName)) |
|
|
|
{ |
|
|
|
item.F_DepartmentId = this.BaseRepository().FindEntity<UserEntity>(x => x.F_UserId == item.F_CreateUserId)?.F_DepartmentId; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
return data; |
|
|
|
} |
|
|
|
catch (Exception ex) |
|
|
|
{ |
|
|
@@ -602,8 +627,11 @@ namespace Learun.Application.WorkFlow |
|
|
|
{ |
|
|
|
item.NextNodeIsAudited = true; |
|
|
|
} |
|
|
|
if (!string.IsNullOrEmpty(item.F_CreateUserName)) |
|
|
|
{ |
|
|
|
item.F_DepartmentId = this.BaseRepository().FindEntity<UserEntity>(x => x.F_UserId == item.F_CreateUserId)?.F_DepartmentId; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
return data; |
|
|
|
} |
|
|
|
catch (Exception ex) |
|
|
@@ -1461,8 +1489,8 @@ namespace Learun.Application.WorkFlow |
|
|
|
{ |
|
|
|
try |
|
|
|
{ |
|
|
|
var entity= this.BaseRepository().FindEntity<NWFProcessEntity>(t => t.F_Id == processId); |
|
|
|
entity.F_EnabledMark =Convert.ToInt32(EnabledMark) ; |
|
|
|
var entity = this.BaseRepository().FindEntity<NWFProcessEntity>(t => t.F_Id == processId); |
|
|
|
entity.F_EnabledMark = Convert.ToInt32(EnabledMark); |
|
|
|
this.BaseRepository().Update(entity); |
|
|
|
} |
|
|
|
catch (Exception ex) |
|
|
|