|
|
@ -42,6 +42,7 @@ public class Ghrh_ResumeServices : BaseServices<Ghrh_Resume, Ghrh_ResumeDto, Ins |
|
|
|
/// </summary> |
|
|
|
/// </summary> |
|
|
|
private readonly IGhrh_InterviewLogServices _ghrh_InterviewLogServices; |
|
|
|
private readonly IGhrh_InterviewLogServices _ghrh_InterviewLogServices; |
|
|
|
private readonly IGhrh_HumanRequestServices _ghrh_HumanRequestServices; |
|
|
|
private readonly IGhrh_HumanRequestServices _ghrh_HumanRequestServices; |
|
|
|
|
|
|
|
private readonly IGhrh_AssessConfigServices _ghrh_AssessConfigServices; |
|
|
|
private readonly IWebHostEnvironment Env; |
|
|
|
private readonly IWebHostEnvironment Env; |
|
|
|
private readonly IConverter _converter; |
|
|
|
private readonly IConverter _converter; |
|
|
|
private readonly IWebHostEnvironment _hostingEnvironment; |
|
|
|
private readonly IWebHostEnvironment _hostingEnvironment; |
|
|
@ -57,6 +58,7 @@ public class Ghrh_ResumeServices : BaseServices<Ghrh_Resume, Ghrh_ResumeDto, Ins |
|
|
|
IGhrh_InterviewRecordServices ghre_InterviewRecordServices, |
|
|
|
IGhrh_InterviewRecordServices ghre_InterviewRecordServices, |
|
|
|
IGhrh_InterviewLogServices ghrh_InterviewLogServices, |
|
|
|
IGhrh_InterviewLogServices ghrh_InterviewLogServices, |
|
|
|
IGhrh_HumanRequestServices ghrh_HumanRequestServices, |
|
|
|
IGhrh_HumanRequestServices ghrh_HumanRequestServices, |
|
|
|
|
|
|
|
IGhrh_AssessConfigServices ghrh_AssessConfigServices, |
|
|
|
IConverter converter, |
|
|
|
IConverter converter, |
|
|
|
IWebHostEnvironment hostingEnvironment, |
|
|
|
IWebHostEnvironment hostingEnvironment, |
|
|
|
IGhrh_ResumeWorkExpServices ghre_ResumeWorkExpServices, IWebHostEnvironment env) |
|
|
|
IGhrh_ResumeWorkExpServices ghre_ResumeWorkExpServices, IWebHostEnvironment env) |
|
|
@ -75,6 +77,7 @@ public class Ghrh_ResumeServices : BaseServices<Ghrh_Resume, Ghrh_ResumeDto, Ins |
|
|
|
_ghrh_ResumeWorkExpServices = ghre_ResumeWorkExpServices; |
|
|
|
_ghrh_ResumeWorkExpServices = ghre_ResumeWorkExpServices; |
|
|
|
_ghrh_InterviewLogServices = ghrh_InterviewLogServices; |
|
|
|
_ghrh_InterviewLogServices = ghrh_InterviewLogServices; |
|
|
|
_ghrh_HumanRequestServices = ghrh_HumanRequestServices; |
|
|
|
_ghrh_HumanRequestServices = ghrh_HumanRequestServices; |
|
|
|
|
|
|
|
_ghrh_AssessConfigServices = ghrh_AssessConfigServices; |
|
|
|
Env = env; |
|
|
|
Env = env; |
|
|
|
_converter = converter; |
|
|
|
_converter = converter; |
|
|
|
_hostingEnvironment = hostingEnvironment; |
|
|
|
_hostingEnvironment = hostingEnvironment; |
|
|
@ -2551,6 +2554,92 @@ WHERE A.IsEnable = 1 AND C.IsEnable = 1 AND C.Status = A.Status"; |
|
|
|
} |
|
|
|
} |
|
|
|
#endregion |
|
|
|
#endregion |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#region 获取评估单表单信息 |
|
|
|
|
|
|
|
public async Task<ServiceResult<dynamic>> QueryAssessForm(long id) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
dynamic result = new ExpandoObject(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var items = await _ghrh_AssessConfigServices.QueryFilterPage(new QueryBody() |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
pageNum = 1, |
|
|
|
|
|
|
|
pageSize = 0 |
|
|
|
|
|
|
|
}, null); |
|
|
|
|
|
|
|
#region Header |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var header = new JArray(); |
|
|
|
|
|
|
|
JObject obj = new(); |
|
|
|
|
|
|
|
for (int i = 0; i < 2; i++) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
obj = new(); |
|
|
|
|
|
|
|
obj.Add(new JProperty("title", "标准")); |
|
|
|
|
|
|
|
obj.Add(new JProperty("field", "Type" + (i + 1) + "Text")); |
|
|
|
|
|
|
|
obj.Add(new JProperty("align", "center")); |
|
|
|
|
|
|
|
obj.Add(new JProperty("width", i == 0 ? 80 : 120)); |
|
|
|
|
|
|
|
obj.Add(new JProperty("fixed", null)); |
|
|
|
|
|
|
|
header.Add(obj); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var entity = await base.QueryById(id); |
|
|
|
|
|
|
|
if (entity == null) |
|
|
|
|
|
|
|
return ServiceResult<dynamic>.OprateFailed("无效的简历ID!"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var order = await _ghrh_InterviewOrderServices.QuerySingle(x => x.ResumeId == id); |
|
|
|
|
|
|
|
if (order == null) |
|
|
|
|
|
|
|
return ServiceResult<dynamic>.OprateFailed("无效的简历ID!"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var records = await _ghrh_InterviewRecordServices.Query(x => x.OrderId == order.Id, "Round ASC"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for (int i = 0; i < records.Count; i++) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
var x = records[i]; |
|
|
|
|
|
|
|
var staff = await Db.Queryable<Ghra_Staff>().Where(o => o.StaffID == x.StaffId).FirstAsync(); |
|
|
|
|
|
|
|
obj = new(); |
|
|
|
|
|
|
|
obj.Add(new JProperty("title", $"第轮{x.Round}面试\n{staff?.StaffName}\n {x.InterviewTime}")); |
|
|
|
|
|
|
|
obj.Add(new JProperty("field", "Score" + (i + 1))); |
|
|
|
|
|
|
|
obj.Add(new JProperty("align", "center")); |
|
|
|
|
|
|
|
obj.Add(new JProperty("width", 120)); |
|
|
|
|
|
|
|
obj.Add(new JProperty("fixed", null)); |
|
|
|
|
|
|
|
header.Add(obj); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
obj = new(); |
|
|
|
|
|
|
|
obj.Add(new JProperty("title", "评价")); |
|
|
|
|
|
|
|
obj.Add(new JProperty("field", "EvaluateContent")); |
|
|
|
|
|
|
|
obj.Add(new JProperty("align", "center")); |
|
|
|
|
|
|
|
obj.Add(new JProperty("width", 120)); |
|
|
|
|
|
|
|
obj.Add(new JProperty("fixed", null)); |
|
|
|
|
|
|
|
header.Add(obj); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
result.Header = header; |
|
|
|
|
|
|
|
#endregion |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#region Body |
|
|
|
|
|
|
|
var body = new JArray(); |
|
|
|
|
|
|
|
items.result.DT_TableDataT1.ForEach(x => |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
obj = new(); |
|
|
|
|
|
|
|
obj.Add(new JProperty("Type1", x.ItemClass)); |
|
|
|
|
|
|
|
obj.Add(new JProperty("Type1Text", x.ItemClassLabel)); |
|
|
|
|
|
|
|
obj.Add(new JProperty("Type2", x.Id)); |
|
|
|
|
|
|
|
obj.Add(new JProperty("Type2Text", x.ItemName)); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for (int i = 0; i < records.Count; i++) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
var record = records[i]; |
|
|
|
|
|
|
|
obj.Add(new JProperty("Score" + (i + 1), null)); |
|
|
|
|
|
|
|
obj.Add(new JProperty("CanEdit" + (i + 1), null)); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
obj.Add(new JProperty("EvaluateContent", null)); |
|
|
|
|
|
|
|
body.Add(obj); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
result.Body = body; |
|
|
|
|
|
|
|
#endregion |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return ServiceResult<dynamic>.OprateSuccess("查询成功", result); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
#endregion |
|
|
|
|
|
|
|
|
|
|
|
#region 通用方法 |
|
|
|
#region 通用方法 |
|
|
|
/// <summary> |
|
|
|
/// <summary> |
|
|
|
/// 记录日志 |
|
|
|
/// 记录日志 |
|
|
|