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