简历操作 推荐、回收、加入黑名单加入、人才库、标签新增权限角色控制

master
xiaochanghai 8 months ago
parent 0f68c647aa
commit 2517f51c21
  1. 16
      Tiobon.Core.Services/CommonServices.cs

@ -1227,6 +1227,17 @@ public partial class CommonServices : BaseServices<RootEntityTkey<int>>, ICommon
break;
case "F_ResumeMaintenance_All":
sql = $@"SELECT A.RoleId, B.RoleNo, B.RoleName
FROM Ghrs_UserRole A LEFT JOIN Ghrs_Role B ON A.RoleId = B.RoleId
WHERE A.UserID = {App.User.ID}
AND A.IsEnable = 1
AND B.IsEnable = 1
AND B.RoleNo LIKE 'RecruitResume%'";
toolbarRoles = DbAccess.QueryList<ToolbarRole>(sql);
if (toolbarRoles != null && toolbarRoles.Any())
{
if (toolbarRoles.Where(x => x.RoleNo == "RecruitResumeRecommend").Any())
result.JM_PageControlT1.Toolbar.Add(new Toolbar()
{
display = true,
@ -1236,6 +1247,7 @@ public partial class CommonServices : BaseServices<RootEntityTkey<int>>, ICommon
icon = "ess-icon-reject",
position = "left"
});
if (toolbarRoles.Where(x => x.RoleNo == "RecruitResumeTag").Any())
result.JM_PageControlT1.Toolbar.Add(new Toolbar()
{
display = true,
@ -1245,6 +1257,7 @@ public partial class CommonServices : BaseServices<RootEntityTkey<int>>, ICommon
icon = "ess-icon-reject",
position = "left"
});
if (toolbarRoles.Where(x => x.RoleNo == "RecruitResumeRecycle").Any())
result.JM_PageControlT1.Toolbar.Add(new Toolbar()
{
display = true,
@ -1254,6 +1267,7 @@ public partial class CommonServices : BaseServices<RootEntityTkey<int>>, ICommon
icon = "ess-icon-reject",
position = "left"
});
if (toolbarRoles.Where(x => x.RoleNo == "RecruitResumeTalentPool").Any())
result.JM_PageControlT1.Toolbar.Add(new Toolbar()
{
display = true,
@ -1263,6 +1277,7 @@ public partial class CommonServices : BaseServices<RootEntityTkey<int>>, ICommon
icon = "ess-icon-reject",
position = "left"
});
if (toolbarRoles.Where(x => x.RoleNo == "RecruitResumeBlacklist").Any())
result.JM_PageControlT1.Toolbar.Add(new Toolbar()
{
display = true,
@ -1272,6 +1287,7 @@ public partial class CommonServices : BaseServices<RootEntityTkey<int>>, ICommon
icon = "ess-icon-reject",
position = "left"
});
}
break;
}

Loading…
Cancel
Save