|
|
@@ -48,6 +48,7 @@ namespace Learun.Application.WorkFlow |
|
|
|
private ImgIBLL imgIBLL = new ImgBLL(); |
|
|
|
private StuInfoBasicIBLL stuInfoBasicIBLL = new StuInfoBasicBLL(); |
|
|
|
private ClassInfoIBLL classInfoIBLL = new ClassInfoBLL(); |
|
|
|
private CdDeptIBLL deptIbll = new CdDeptBLL(); |
|
|
|
|
|
|
|
#region 获取数据 |
|
|
|
/// <summary> |
|
|
@@ -639,6 +640,7 @@ namespace Learun.Application.WorkFlow |
|
|
|
switch (item.type)//1.岗位2.角色3.用户4.上下级5.表单指定字段6.某一个节点执行人 |
|
|
|
//liang 20200813 新增type=7 分管校长 |
|
|
|
//dyy 20220715 新增type=9 班主任/辅导员 |
|
|
|
//liang 20230315 新增type=10 系部负责人 |
|
|
|
{ |
|
|
|
case 1:// 岗位 |
|
|
|
var userRelationList = userRelationIBLL.GetUserIdList(item.auditorId); |
|
|
@@ -947,7 +949,7 @@ namespace Learun.Application.WorkFlow |
|
|
|
//判断用户所在班级是否有班主任/辅导员:如果有,找到班主任/辅导员;如果没有,不发; |
|
|
|
string diredctorId = "";//班主任 |
|
|
|
string tutorId = "";//辅导员 |
|
|
|
var stuInfoBasicEntity = stuInfoBasicIBLL.GetStuNoByAccount(paramConfig.CurrentUser.Account); |
|
|
|
var stuInfoBasicEntity = stuInfoBasicIBLL.GetStuNoByAccount(paramConfig.CreateUser.Account); |
|
|
|
if (stuInfoBasicEntity != null) |
|
|
|
{ |
|
|
|
var classInfoEntity = classInfoIBLL.GetClassInfoEntityByClassNo(stuInfoBasicEntity.ClassNo); |
|
|
@@ -986,6 +988,29 @@ namespace Learun.Application.WorkFlow |
|
|
|
} |
|
|
|
} |
|
|
|
break; |
|
|
|
case 10://liang 20230315 新增type=10 系部负责人 |
|
|
|
var stuInfoBasicEntitydept = stuInfoBasicIBLL.GetStuNoByAccount(paramConfig.CreateUser.Account); |
|
|
|
if (stuInfoBasicEntitydept != null) |
|
|
|
{ |
|
|
|
var deptinfo = deptIbll.GetCdDeptEntityByNo(stuInfoBasicEntitydept.DeptNo); |
|
|
|
if (deptinfo != null) |
|
|
|
{ |
|
|
|
var directorEntity = userIBLL.GetEntityByAccount(deptinfo.DeptDirector); |
|
|
|
if (directorEntity != null) |
|
|
|
{ |
|
|
|
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 |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|