Pārlūkot izejas kodu

【修改】流程设计:审批节点增加“添加班主任/辅导员”;

新疆影视学院高职
dyy pirms 2 gadiem
vecāks
revīzija
453216c6e0
3 mainītis faili ar 65 papildinājumiem un 0 dzēšanām
  1. +1
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Views/NWFScheme/NodeForm.cshtml
  2. +16
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Views/NWFScheme/NodeForm.js
  3. +48
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.WorkFlow/Process/NWFProcessBLL.cs

+ 1
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Views/NWFScheme/NodeForm.cshtml Parādīt failu

@@ -200,6 +200,7 @@
<a id="lr_form_auditor" class="btn btn-success"><i class="fa fa-user"></i>&nbsp;添加表字段</a>
<a id="lr_form_schoolmaster" class="btn btn-success"><i class="fa fa-user"></i>&nbsp;添加分管校长</a>
<a id="lr_form_deptmaster" class="btn btn-warning"><i class="fa fa-user"></i>&nbsp;添加部门负责人</a>
<a id="lr_form_diredctor" class="btn btn-warning"><i class="fa fa-user"></i>&nbsp;添加班主任/辅导员</a>
<a id="lr_delete_auditor" class="btn btn-danger"><i class="fa fa-trash-o"></i>&nbsp;移除</a>
</div>
</div>


+ 16
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Views/NWFScheme/NodeForm.js Parādīt failu

@@ -188,6 +188,9 @@ var bootstrap = function ($, learun) {
case '8':
return '部门负责人';
break;
case '9':
return '班主任/辅导员';
break;
}
}
},
@@ -366,6 +369,19 @@ var bootstrap = function ($, learun) {
}
});
});
//添加班主任/辅导员
$('#lr_form_diredctor').on('click', function () {
learun.layerConfirm('是否确认增加班主任/辅导员?', function (res) {
if (res) {
var data = { auditorId: 'bzrfdyid', type: '9', auditorName: '班主任/辅导员' };
if (!isRepeat(data.auditorId)) {
data.id = learun.newGuid();
auditors.push(data);
$('#auditor_girdtable').jfGridSet('refreshdata', auditors);
}
}
});
});
/*表单添加*/
$('#workform_girdtable').jfGrid({
headData: [


+ 48
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.WorkFlow/Process/NWFProcessBLL.cs Parādīt failu

@@ -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;
}
}
}


Notiek ielāde…
Atcelt
Saglabāt