|
|
@@ -12,6 +12,7 @@ using Learun.Application.TwoDevelopment.LogisticsManagement; |
|
|
|
using Learun.Application.TwoDevelopment.LR_LGManager; |
|
|
|
using Newtonsoft.Json; |
|
|
|
using System.Linq; |
|
|
|
using Learun.Application.TwoDevelopment.EducationalAdministration; |
|
|
|
|
|
|
|
namespace Learun.Application.WorkFlow |
|
|
|
{ |
|
|
@@ -45,6 +46,8 @@ namespace Learun.Application.WorkFlow |
|
|
|
private DepartmentIBLL departmentIBLL = new DepartmentBLL(); |
|
|
|
|
|
|
|
private ImgIBLL imgIBLL = new ImgBLL(); |
|
|
|
private StuInfoBasicIBLL stuInfoBasicIBLL = new StuInfoBasicBLL(); |
|
|
|
private ClassInfoIBLL classInfoIBLL = new ClassInfoBLL(); |
|
|
|
|
|
|
|
#region 获取数据 |
|
|
|
/// <summary> |
|
|
@@ -635,6 +638,7 @@ namespace Learun.Application.WorkFlow |
|
|
|
{ |
|
|
|
switch (item.type)//1.岗位2.角色3.用户4.上下级5.表单指定字段6.某一个节点执行人 |
|
|
|
//liang 20200813 新增type=7 分管校长 |
|
|
|
//dyy 20220715 新增type=9 班主任/辅导员 |
|
|
|
{ |
|
|
|
case 1:// 岗位 |
|
|
|
var userRelationList = userRelationIBLL.GetUserIdList(item.auditorId); |
|
|
@@ -938,6 +942,50 @@ namespace Learun.Application.WorkFlow |
|
|
|
|
|
|
|
} |
|
|
|
break; |
|
|
|
case 9://dyy 20220715新增班主任/辅导员判断 |
|
|
|
//获取流程创建用户的班主任/辅导员 |
|
|
|
//判断用户所在班级是否有班主任/辅导员:如果有,找到班主任/辅导员;如果没有,不发; |
|
|
|
string diredctorId = "";//班主任 |
|
|
|
string tutorId = "";//辅导员 |
|
|
|
var stuInfoBasicEntity = stuInfoBasicIBLL.GetStuNoByAccount(paramConfig.CurrentUser.Account); |
|
|
|
if (stuInfoBasicEntity != null) |
|
|
|
{ |
|
|
|
var classInfoEntity = classInfoIBLL.GetClassInfoEntityByClassNo(stuInfoBasicEntity.ClassNo); |
|
|
|
if (classInfoEntity != null) |
|
|
|
{ |
|
|
|
var directorEntity = userIBLL.GetEntityByAccount(classInfoEntity.ClassDiredctorNo); |
|
|
|
if (directorEntity != null) |
|
|
|
{ |
|
|
|
diredctorId = directorEntity.F_UserId; |
|
|
|
//找到班主任就增加审批人 |
|
|
|
if (!list.Exists(m => m.Id == directorEntity.F_UserId)) |
|
|
|
{ |
|
|
|
list.Add(new NWFUserInfo() |
|
|
|
{ |
|
|
|
Id = directorEntity.F_UserId, |
|
|
|
Account = directorEntity.F_Account, |
|
|
|
Name = directorEntity.F_RealName |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
var tutorEntity = userIBLL.GetEntityByAccount(classInfoEntity.ClassTutorNo); |
|
|
|
if (tutorEntity != null) |
|
|
|
{ |
|
|
|
tutorId = tutorEntity.F_UserId; |
|
|
|
//找到辅导员就增加审批人 |
|
|
|
if (!list.Exists(m => m.Id == tutorEntity.F_UserId)) |
|
|
|
{ |
|
|
|
list.Add(new NWFUserInfo() |
|
|
|
{ |
|
|
|
Id = tutorEntity.F_UserId, |
|
|
|
Account = tutorEntity.F_Account, |
|
|
|
Name = tutorEntity.F_RealName |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|