|
|
|
@ -1287,6 +1287,393 @@ public partial class CommonServices : BaseServices<RootEntityTkey<int>>, ICommon |
|
|
|
|
icon = "ess-icon-reject", |
|
|
|
|
position = "left" |
|
|
|
|
}); |
|
|
|
|
if (toolbarRoles.Where(x => x.RoleNo == "RecruitResumeDownLoad").Any()) |
|
|
|
|
result.JM_PageControlT1.Toolbar.Add(new Toolbar() |
|
|
|
|
{ |
|
|
|
|
display = true, |
|
|
|
|
fnKey = "TBD9YN", |
|
|
|
|
fnTitle = "下载", |
|
|
|
|
fnType = "row", |
|
|
|
|
icon = "ess-icon-reject", |
|
|
|
|
position = "left" |
|
|
|
|
}); |
|
|
|
|
if (toolbarRoles.Where(x => x.RoleNo == "RecruitResumeRemind").Any()) |
|
|
|
|
result.JM_PageControlT1.Toolbar.Add(new Toolbar() |
|
|
|
|
{ |
|
|
|
|
display = true, |
|
|
|
|
fnKey = "TBD10YN", |
|
|
|
|
fnTitle = "提醒", |
|
|
|
|
fnType = "row", |
|
|
|
|
icon = "ess-icon-reject", |
|
|
|
|
position = "left" |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
break; |
|
|
|
|
|
|
|
|
|
case "F_ResumeMaintenance_Process": |
|
|
|
|
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 == "RecruitResumeTag").Any()) |
|
|
|
|
result.JM_PageControlT1.Toolbar.Add(new Toolbar() |
|
|
|
|
{ |
|
|
|
|
display = true, |
|
|
|
|
fnKey = "TBD5YN", |
|
|
|
|
fnTitle = "标签", |
|
|
|
|
fnType = "row", |
|
|
|
|
icon = "ess-icon-reject", |
|
|
|
|
position = "left" |
|
|
|
|
}); |
|
|
|
|
if (toolbarRoles.Where(x => x.RoleNo == "RecruitResumeRecycle").Any()) |
|
|
|
|
result.JM_PageControlT1.Toolbar.Add(new Toolbar() |
|
|
|
|
{ |
|
|
|
|
display = true, |
|
|
|
|
fnKey = "TBD6YN", |
|
|
|
|
fnTitle = "回收", |
|
|
|
|
fnType = "row", |
|
|
|
|
icon = "ess-icon-reject", |
|
|
|
|
position = "left" |
|
|
|
|
}); |
|
|
|
|
if (toolbarRoles.Where(x => x.RoleNo == "RecruitResumeTalentPool").Any()) |
|
|
|
|
result.JM_PageControlT1.Toolbar.Add(new Toolbar() |
|
|
|
|
{ |
|
|
|
|
display = true, |
|
|
|
|
fnKey = "TBD7YN", |
|
|
|
|
fnTitle = "加入人才库", |
|
|
|
|
fnType = "row", |
|
|
|
|
icon = "ess-icon-reject", |
|
|
|
|
position = "left" |
|
|
|
|
}); |
|
|
|
|
if (toolbarRoles.Where(x => x.RoleNo == "RecruitResumeBlacklist").Any()) |
|
|
|
|
result.JM_PageControlT1.Toolbar.Add(new Toolbar() |
|
|
|
|
{ |
|
|
|
|
display = true, |
|
|
|
|
fnKey = "TBD8YN", |
|
|
|
|
fnTitle = "加入黑名单", |
|
|
|
|
fnType = "row", |
|
|
|
|
icon = "ess-icon-reject", |
|
|
|
|
position = "left" |
|
|
|
|
}); |
|
|
|
|
if (toolbarRoles.Where(x => x.RoleNo == "RecruitResumeDownLoad").Any()) |
|
|
|
|
result.JM_PageControlT1.Toolbar.Add(new Toolbar() |
|
|
|
|
{ |
|
|
|
|
display = true, |
|
|
|
|
fnKey = "TBD9YN", |
|
|
|
|
fnTitle = "下载", |
|
|
|
|
fnType = "row", |
|
|
|
|
icon = "ess-icon-reject", |
|
|
|
|
position = "left" |
|
|
|
|
}); |
|
|
|
|
if (toolbarRoles.Where(x => x.RoleNo == "RecruitResumeScheduleInterview").Any()) |
|
|
|
|
result.JM_PageControlT1.Toolbar.Add(new Toolbar() |
|
|
|
|
{ |
|
|
|
|
display = true, |
|
|
|
|
fnKey = "TBD10YN", |
|
|
|
|
fnTitle = "安排面试", |
|
|
|
|
fnType = "row", |
|
|
|
|
icon = "ess-icon-reject", |
|
|
|
|
position = "left" |
|
|
|
|
}); |
|
|
|
|
if (toolbarRoles.Where(x => x.RoleNo == "RecruitResumeProcessRemind").Any()) |
|
|
|
|
result.JM_PageControlT1.Toolbar.Add(new Toolbar() |
|
|
|
|
{ |
|
|
|
|
display = true, |
|
|
|
|
fnKey = "TBD11YN", |
|
|
|
|
fnTitle = "提醒", |
|
|
|
|
fnType = "row", |
|
|
|
|
icon = "ess-icon-reject", |
|
|
|
|
position = "left" |
|
|
|
|
}); |
|
|
|
|
if (toolbarRoles.Where(x => x.RoleNo == "RecruitResumeReScheduleInterview").Any()) |
|
|
|
|
result.JM_PageControlT1.Toolbar.Add(new Toolbar() |
|
|
|
|
{ |
|
|
|
|
display = true, |
|
|
|
|
fnKey = "TBD12YN", |
|
|
|
|
fnTitle = "重新安排面试", |
|
|
|
|
fnType = "row", |
|
|
|
|
icon = "ess-icon-reject", |
|
|
|
|
position = "left" |
|
|
|
|
}); |
|
|
|
|
if (toolbarRoles.Where(x => x.RoleNo == "RecruitResumeApplyOffer").Any()) |
|
|
|
|
result.JM_PageControlT1.Toolbar.Add(new Toolbar() |
|
|
|
|
{ |
|
|
|
|
display = true, |
|
|
|
|
fnKey = "TBD13YN", |
|
|
|
|
fnTitle = "发起录用审批", |
|
|
|
|
fnType = "row", |
|
|
|
|
icon = "ess-icon-reject", |
|
|
|
|
position = "left" |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
break; |
|
|
|
|
case "F_ResumeMaintenance_Hire"://录用 |
|
|
|
|
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 == "RecruitResumeTag").Any()) |
|
|
|
|
result.JM_PageControlT1.Toolbar.Add(new Toolbar() |
|
|
|
|
{ |
|
|
|
|
display = true, |
|
|
|
|
fnKey = "TBD5YN", |
|
|
|
|
fnTitle = "标签", |
|
|
|
|
fnType = "row", |
|
|
|
|
icon = "ess-icon-reject", |
|
|
|
|
position = "left" |
|
|
|
|
}); |
|
|
|
|
if (toolbarRoles.Where(x => x.RoleNo == "RecruitResumeRecycle").Any()) |
|
|
|
|
result.JM_PageControlT1.Toolbar.Add(new Toolbar() |
|
|
|
|
{ |
|
|
|
|
display = true, |
|
|
|
|
fnKey = "TBD6YN", |
|
|
|
|
fnTitle = "回收", |
|
|
|
|
fnType = "row", |
|
|
|
|
icon = "ess-icon-reject", |
|
|
|
|
position = "left" |
|
|
|
|
}); |
|
|
|
|
if (toolbarRoles.Where(x => x.RoleNo == "RecruitResumeTalentPool").Any()) |
|
|
|
|
result.JM_PageControlT1.Toolbar.Add(new Toolbar() |
|
|
|
|
{ |
|
|
|
|
display = true, |
|
|
|
|
fnKey = "TBD7YN", |
|
|
|
|
fnTitle = "加入人才库", |
|
|
|
|
fnType = "row", |
|
|
|
|
icon = "ess-icon-reject", |
|
|
|
|
position = "left" |
|
|
|
|
}); |
|
|
|
|
if (toolbarRoles.Where(x => x.RoleNo == "RecruitResumeBlacklist").Any()) |
|
|
|
|
result.JM_PageControlT1.Toolbar.Add(new Toolbar() |
|
|
|
|
{ |
|
|
|
|
display = true, |
|
|
|
|
fnKey = "TBD8YN", |
|
|
|
|
fnTitle = "加入黑名单", |
|
|
|
|
fnType = "row", |
|
|
|
|
icon = "ess-icon-reject", |
|
|
|
|
position = "left" |
|
|
|
|
}); |
|
|
|
|
if (toolbarRoles.Where(x => x.RoleNo == "RecruitResumeDownLoad").Any()) |
|
|
|
|
result.JM_PageControlT1.Toolbar.Add(new Toolbar() |
|
|
|
|
{ |
|
|
|
|
display = true, |
|
|
|
|
fnKey = "TBD9YN", |
|
|
|
|
fnTitle = "下载", |
|
|
|
|
fnType = "row", |
|
|
|
|
icon = "ess-icon-reject", |
|
|
|
|
position = "left" |
|
|
|
|
}); |
|
|
|
|
if (toolbarRoles.Where(x => x.RoleNo == "RecruitResumeSendOffer").Any()) |
|
|
|
|
result.JM_PageControlT1.Toolbar.Add(new Toolbar() |
|
|
|
|
{ |
|
|
|
|
display = true, |
|
|
|
|
fnKey = "TBD10YN", |
|
|
|
|
fnTitle = "发offer", |
|
|
|
|
fnType = "row", |
|
|
|
|
icon = "ess-icon-reject", |
|
|
|
|
position = "left" |
|
|
|
|
}); |
|
|
|
|
if (toolbarRoles.Where(x => x.RoleNo == "RecruitResumeOfferRemind").Any()) |
|
|
|
|
result.JM_PageControlT1.Toolbar.Add(new Toolbar() |
|
|
|
|
{ |
|
|
|
|
display = true, |
|
|
|
|
fnKey = "TBD11YN", |
|
|
|
|
fnTitle = "提醒", |
|
|
|
|
fnType = "row", |
|
|
|
|
icon = "ess-icon-reject", |
|
|
|
|
position = "left" |
|
|
|
|
}); |
|
|
|
|
if (toolbarRoles.Where(x => x.RoleNo == "RecruitResumeOfferHasWork").Any()) |
|
|
|
|
result.JM_PageControlT1.Toolbar.Add(new Toolbar() |
|
|
|
|
{ |
|
|
|
|
display = true, |
|
|
|
|
fnKey = "TBD12YN", |
|
|
|
|
fnTitle = "已报到", |
|
|
|
|
fnType = "row", |
|
|
|
|
icon = "ess-icon-reject", |
|
|
|
|
position = "left" |
|
|
|
|
}); |
|
|
|
|
if (toolbarRoles.Where(x => x.RoleNo == "RecruitResumeOfferNoWork").Any()) |
|
|
|
|
result.JM_PageControlT1.Toolbar.Add(new Toolbar() |
|
|
|
|
{ |
|
|
|
|
display = true, |
|
|
|
|
fnKey = "TBD13YN", |
|
|
|
|
fnTitle = "未报到", |
|
|
|
|
fnType = "row", |
|
|
|
|
icon = "ess-icon-reject", |
|
|
|
|
position = "left" |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
break; |
|
|
|
|
|
|
|
|
|
case "F_ResumeMaintenance_Talent_Pool"://人才库 |
|
|
|
|
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 == "RecruitResumeTag").Any()) |
|
|
|
|
result.JM_PageControlT1.Toolbar.Add(new Toolbar() |
|
|
|
|
{ |
|
|
|
|
display = true, |
|
|
|
|
fnKey = "TBD5YN", |
|
|
|
|
fnTitle = "标签", |
|
|
|
|
fnType = "row", |
|
|
|
|
icon = "ess-icon-reject", |
|
|
|
|
position = "left" |
|
|
|
|
}); |
|
|
|
|
if (toolbarRoles.Where(x => x.RoleNo == "RecruitResumeRecycle").Any()) |
|
|
|
|
result.JM_PageControlT1.Toolbar.Add(new Toolbar() |
|
|
|
|
{ |
|
|
|
|
display = true, |
|
|
|
|
fnKey = "TBD6YN", |
|
|
|
|
fnTitle = "回收", |
|
|
|
|
fnType = "row", |
|
|
|
|
icon = "ess-icon-reject", |
|
|
|
|
position = "left" |
|
|
|
|
}); |
|
|
|
|
if (toolbarRoles.Where(x => x.RoleNo == "RecruitResumeBlacklist").Any()) |
|
|
|
|
result.JM_PageControlT1.Toolbar.Add(new Toolbar() |
|
|
|
|
{ |
|
|
|
|
display = true, |
|
|
|
|
fnKey = "TBD7YN", |
|
|
|
|
fnTitle = "加入黑名单", |
|
|
|
|
fnType = "row", |
|
|
|
|
icon = "ess-icon-reject", |
|
|
|
|
position = "left" |
|
|
|
|
}); |
|
|
|
|
if (toolbarRoles.Where(x => x.RoleNo == "RecruitResumeDownLoad").Any()) |
|
|
|
|
result.JM_PageControlT1.Toolbar.Add(new Toolbar() |
|
|
|
|
{ |
|
|
|
|
display = true, |
|
|
|
|
fnKey = "TBD8YN", |
|
|
|
|
fnTitle = "下载", |
|
|
|
|
fnType = "row", |
|
|
|
|
icon = "ess-icon-reject", |
|
|
|
|
position = "left" |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
break; |
|
|
|
|
case "F_ResumeMaintenance_Recycled"://回收站 |
|
|
|
|
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 == "RecruitResumeTag").Any()) |
|
|
|
|
result.JM_PageControlT1.Toolbar.Add(new Toolbar() |
|
|
|
|
{ |
|
|
|
|
display = true, |
|
|
|
|
fnKey = "TBD5YN", |
|
|
|
|
fnTitle = "标签", |
|
|
|
|
fnType = "row", |
|
|
|
|
icon = "ess-icon-reject", |
|
|
|
|
position = "left" |
|
|
|
|
}); |
|
|
|
|
if (toolbarRoles.Where(x => x.RoleNo == "RecruitResumeTalentPool").Any()) |
|
|
|
|
result.JM_PageControlT1.Toolbar.Add(new Toolbar() |
|
|
|
|
{ |
|
|
|
|
display = true, |
|
|
|
|
fnKey = "TBD6YN", |
|
|
|
|
fnTitle = "加入人才库", |
|
|
|
|
fnType = "row", |
|
|
|
|
icon = "ess-icon-reject", |
|
|
|
|
position = "left" |
|
|
|
|
}); |
|
|
|
|
if (toolbarRoles.Where(x => x.RoleNo == "RecruitResumeBlacklist").Any()) |
|
|
|
|
result.JM_PageControlT1.Toolbar.Add(new Toolbar() |
|
|
|
|
{ |
|
|
|
|
display = true, |
|
|
|
|
fnKey = "TBD7YN", |
|
|
|
|
fnTitle = "加入黑名单", |
|
|
|
|
fnType = "row", |
|
|
|
|
icon = "ess-icon-reject", |
|
|
|
|
position = "left" |
|
|
|
|
}); |
|
|
|
|
if (toolbarRoles.Where(x => x.RoleNo == "RecruitResumeDownLoad").Any()) |
|
|
|
|
result.JM_PageControlT1.Toolbar.Add(new Toolbar() |
|
|
|
|
{ |
|
|
|
|
display = true, |
|
|
|
|
fnKey = "TBD8YN", |
|
|
|
|
fnTitle = "下载", |
|
|
|
|
fnType = "row", |
|
|
|
|
icon = "ess-icon-reject", |
|
|
|
|
position = "left" |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
break; |
|
|
|
|
case "F_ResumeMaintenance_Blacklist"://黑名单 |
|
|
|
|
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 == "RecruitResumeTag").Any()) |
|
|
|
|
result.JM_PageControlT1.Toolbar.Add(new Toolbar() |
|
|
|
|
{ |
|
|
|
|
display = true, |
|
|
|
|
fnKey = "TBD5YN", |
|
|
|
|
fnTitle = "标签", |
|
|
|
|
fnType = "row", |
|
|
|
|
icon = "ess-icon-reject", |
|
|
|
|
position = "left" |
|
|
|
|
}); |
|
|
|
|
if (toolbarRoles.Where(x => x.RoleNo == "RecruitResumeTalentPool").Any()) |
|
|
|
|
result.JM_PageControlT1.Toolbar.Add(new Toolbar() |
|
|
|
|
{ |
|
|
|
|
display = true, |
|
|
|
|
fnKey = "TBD6YN", |
|
|
|
|
fnTitle = "加入人才库", |
|
|
|
|
fnType = "row", |
|
|
|
|
icon = "ess-icon-reject", |
|
|
|
|
position = "left" |
|
|
|
|
}); |
|
|
|
|
if (toolbarRoles.Where(x => x.RoleNo == "RecruitResumeRecycle").Any()) |
|
|
|
|
result.JM_PageControlT1.Toolbar.Add(new Toolbar() |
|
|
|
|
{ |
|
|
|
|
display = true, |
|
|
|
|
fnKey = "TBD7YN", |
|
|
|
|
fnTitle = "回收", |
|
|
|
|
fnType = "row", |
|
|
|
|
icon = "ess-icon-reject", |
|
|
|
|
position = "left" |
|
|
|
|
}); |
|
|
|
|
if (toolbarRoles.Where(x => x.RoleNo == "RecruitResumeDownLoad").Any()) |
|
|
|
|
result.JM_PageControlT1.Toolbar.Add(new Toolbar() |
|
|
|
|
{ |
|
|
|
|
display = true, |
|
|
|
|
fnKey = "TBD8YN", |
|
|
|
|
fnTitle = "下载", |
|
|
|
|
fnType = "row", |
|
|
|
|
icon = "ess-icon-reject", |
|
|
|
|
position = "left" |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|