|
|
@ -458,7 +458,7 @@ public class Ghrh_ResumeServices : BaseServices<Ghrh_Resume, Ghrh_ResumeDto, Ins |
|
|
|
#endregion |
|
|
|
#endregion |
|
|
|
|
|
|
|
|
|
|
|
#region 获取简历Tabs接口 |
|
|
|
#region 获取简历Tabs接口 |
|
|
|
public ServiceResult<List<ResumeViewTab>> QueryViewTab() |
|
|
|
public async Task<ServiceResult<List<ResumeViewTab>>> QueryViewTab(int langId = 1) |
|
|
|
{ |
|
|
|
{ |
|
|
|
string str = @"[
|
|
|
|
string str = @"[
|
|
|
|
{ |
|
|
|
{ |
|
|
@ -539,31 +539,48 @@ public class Ghrh_ResumeServices : BaseServices<Ghrh_Resume, Ghrh_ResumeDto, Ins |
|
|
|
""MenuName"": ""F_ResumeMaintenance_Talent_Pool"", |
|
|
|
""MenuName"": ""F_ResumeMaintenance_Talent_Pool"", |
|
|
|
""TabName"": ""人才库"", |
|
|
|
""TabName"": ""人才库"", |
|
|
|
""QueryUrl"": ""/api/Ghrh_Resume/QueryList/Talent_Pool"", |
|
|
|
""QueryUrl"": ""/api/Ghrh_Resume/QueryList/Talent_Pool"", |
|
|
|
""Count"": 0 |
|
|
|
""Count"": 0, |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
""MenuName"": ""F_ResumeMaintenance_Recycled"", |
|
|
|
""MenuName"": ""F_ResumeMaintenance_Recycled"", |
|
|
|
""TabName"": ""回收站"", |
|
|
|
""TabName"": ""回收站"", |
|
|
|
""QueryUrl"": ""/api/Ghrh_Resume/QueryList/Recycled"", |
|
|
|
""QueryUrl"": ""/api/Ghrh_Resume/QueryList/Recycled"", |
|
|
|
""Count"": 0 |
|
|
|
""Count"": 0, |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
""MenuName"": ""F_ResumeMaintenance_Blacklist"", |
|
|
|
""MenuName"": ""F_ResumeMaintenance_Blacklist"", |
|
|
|
""TabName"": ""黑名单"", |
|
|
|
""TabName"": ""黑名单"", |
|
|
|
""QueryUrl"": ""/api/Ghrh_Resume/QueryList/Blacklist"", |
|
|
|
""QueryUrl"": ""/api/Ghrh_Resume/QueryList/Blacklist"", |
|
|
|
""Count"": 0 |
|
|
|
""Count"": 0, |
|
|
|
} |
|
|
|
} |
|
|
|
]";
|
|
|
|
]";
|
|
|
|
var tabs = JsonHelper.JsonToObj<List<ResumeViewTab>>(str); |
|
|
|
var tabs = JsonHelper.JsonToObj<List<ResumeViewTab>>(str); |
|
|
|
|
|
|
|
|
|
|
|
var menus = Db.Ado.SqlQuery<string>(@"SELECT MenuNo
|
|
|
|
var menus = Db.Ado.SqlQuery<Ghrs_Menu>(@$"SELECT MenuNo, [dbo].[FLangKeyToValue] (MKey, {langId}, MenuName) MenuName
|
|
|
|
FROM Ghrs_Menu |
|
|
|
FROM Ghrs_Menu |
|
|
|
WHERE ParentMenuId = (SELECT MenuId |
|
|
|
WHERE ParentMenuId = (SELECT MenuId |
|
|
|
FROM Ghrs_Menu |
|
|
|
FROM Ghrs_Menu |
|
|
|
WHERE MenuNo = 'F_ResumeMaintenance') |
|
|
|
WHERE MenuNo = 'F_ResumeMaintenance') |
|
|
|
AND IsEnable = 1");
|
|
|
|
AND IsEnable = 1");
|
|
|
|
|
|
|
|
|
|
|
|
tabs = tabs.Where(x => menus.Contains(x.MenuName)).ToList(); |
|
|
|
var menuNos = menus.Select(x => x.MenuNo).ToList(); |
|
|
|
|
|
|
|
tabs = tabs.Where(x => menuNos.Contains(x.MenuName)).ToList(); |
|
|
|
|
|
|
|
tabs.ForEach(x => |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
x.TabName = menus.Where(o => o.MenuNo == x.MenuName).FirstOrDefault()?.MenuName; |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for (int i = 0; i < tabs.Count; i++) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
tabs[i].TabName = menus.Where(o => o.MenuNo == tabs[i].MenuName).FirstOrDefault()?.MenuName; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (tabs[i].Items != null) |
|
|
|
|
|
|
|
for (int j = 0; j < tabs[i].Items.Count; j++) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
var key = "Recruit_" + tabs[i].MenuName + "_" + tabs[i].Items[j].Key; |
|
|
|
|
|
|
|
tabs[i].Items[j].ItemName = await QueryLangValue(key, langId, key); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return ServiceResult<List<ResumeViewTab>>.OprateSuccess("查询成功!", tabs); |
|
|
|
return ServiceResult<List<ResumeViewTab>>.OprateSuccess("查询成功!", tabs); |
|
|
|
} |
|
|
|
} |
|
|
@ -812,6 +829,7 @@ ORDER BY A.SortNo ASC"; |
|
|
|
{ "CompanyName", companyName}, |
|
|
|
{ "CompanyName", companyName}, |
|
|
|
{ "LoginDesc", await QueryLangValue("Recruit_Resume_From_Login_Desc",langId,AppSettings.app(new string[] { "Resume", "LoginDesc" })) }, |
|
|
|
{ "LoginDesc", await QueryLangValue("Recruit_Resume_From_Login_Desc",langId,AppSettings.app(new string[] { "Resume", "LoginDesc" })) }, |
|
|
|
{ "LoginTitle", await QueryLangValue("Recruit_Resume_From_Login_Title",langId,AppSettings.app(new string[] { "Resume", "LoginTitle" })) }, |
|
|
|
{ "LoginTitle", await QueryLangValue("Recruit_Resume_From_Login_Title",langId,AppSettings.app(new string[] { "Resume", "LoginTitle" })) }, |
|
|
|
|
|
|
|
{ "IdCardNo", await QueryLangValue("Recruit_Resume_From_IdCardNo_Text",langId,"身份证后六位") }, |
|
|
|
{ "StaffName", await QueryLangValue("Recruit_Resume_From_Staff_Name",langId,"姓名") }, |
|
|
|
{ "StaffName", await QueryLangValue("Recruit_Resume_From_Staff_Name",langId,"姓名") }, |
|
|
|
{ "Mobile",await QueryLangValue("Recruit_Resume_From_Mobile",langId,"手机号") }, |
|
|
|
{ "Mobile",await QueryLangValue("Recruit_Resume_From_Mobile",langId,"手机号") }, |
|
|
|
{ "AgainLoginText",await QueryLangValue("Recruit_Resume_From_Login_Again_Login_Text",langId,"二次登录") }, |
|
|
|
{ "AgainLoginText",await QueryLangValue("Recruit_Resume_From_Login_Again_Login_Text",langId,"二次登录") }, |
|
|
@ -830,8 +848,12 @@ ORDER BY A.SortNo ASC"; |
|
|
|
{ "InformationCompletionDegreeText",await QueryLangValue("Recruit_Resume_From_Infor_Completion_Degree_Text",langId,"信息填写完成度") }, |
|
|
|
{ "InformationCompletionDegreeText",await QueryLangValue("Recruit_Resume_From_Infor_Completion_Degree_Text",langId,"信息填写完成度") }, |
|
|
|
{ "AddText", await QueryLangValue("Recruit_Resume_From_Add_Text",langId,"新增") }, |
|
|
|
{ "AddText", await QueryLangValue("Recruit_Resume_From_Add_Text",langId,"新增") }, |
|
|
|
{ "DeleteText",await QueryLangValue("Recruit_Resume_From_Delete_Text",langId,"删除") }, |
|
|
|
{ "DeleteText",await QueryLangValue("Recruit_Resume_From_Delete_Text",langId,"删除") }, |
|
|
|
{ "TrueText",await QueryLangValue("Recruit_Resume_From_True_Text",langId,"是") }, |
|
|
|
{ "DeleteAttachmentConfirmText",await QueryLangValue("Recruit_Resume_From_Delete_Attachment_Confirm_Text",langId,"是否确认删除附件?") }, |
|
|
|
{ "FalseText",await QueryLangValue("Recruit_Resume_From_False_Text",langId,"否") } |
|
|
|
{ "Thumbnail",await QueryLangValue("Recruit_Resume_From_Thumbnail",langId,"缩略图") }, |
|
|
|
|
|
|
|
{ "FileName",await QueryLangValue("Recruit_Resume_From_File_Name",langId,"文件名") }, |
|
|
|
|
|
|
|
{ "FileSize",await QueryLangValue("Recruit_Resume_From_File_Size",langId,"文件大小") }, |
|
|
|
|
|
|
|
{ "Remark",await QueryLangValue("Recruit_Resume_From_Remark",langId,"备注") }, |
|
|
|
|
|
|
|
{ "Option",await QueryLangValue("Recruit_Resume_From_Option",langId,"操作") } |
|
|
|
}; |
|
|
|
}; |
|
|
|
return ServiceResult<Dictionary<string, string>>.OprateSuccess("查询成功", dict); |
|
|
|
return ServiceResult<Dictionary<string, string>>.OprateSuccess("查询成功", dict); |
|
|
|
|
|
|
|
|
|
|
@ -864,7 +886,7 @@ BEGIN |
|
|
|
FROM (SELECT a.ID, |
|
|
|
FROM (SELECT a.ID, |
|
|
|
a.ID ResumeTemplateInfoGroupID, |
|
|
|
a.ID ResumeTemplateInfoGroupID, |
|
|
|
b.ID ResumeInfoGroupID, |
|
|
|
b.ID ResumeInfoGroupID, |
|
|
|
b.GroupName tabName, |
|
|
|
[dbo].[FLangKeyToValue](b.MKey,3,b.GroupName) tabName, |
|
|
|
b.GroupType tabKey, |
|
|
|
b.GroupType tabKey, |
|
|
|
b.TableName, |
|
|
|
b.TableName, |
|
|
|
b.TablePKIDName, -- 是否可挑选栏位 |
|
|
|
b.TablePKIDName, -- 是否可挑选栏位 |
|
|
|