|
|
@ -2173,8 +2173,8 @@ END"; |
|
|
|
} |
|
|
|
} |
|
|
|
#endregion |
|
|
|
#endregion |
|
|
|
|
|
|
|
|
|
|
|
#region 发offer |
|
|
|
#region 转入已发Offer |
|
|
|
public async Task<ServiceResult> SendOffer(List<long> ids) |
|
|
|
public async Task<ServiceResult> TransferHasSendOffer(List<long> ids) |
|
|
|
{ |
|
|
|
{ |
|
|
|
for (int i = 0; i < ids.Count; i++) |
|
|
|
for (int i = 0; i < ids.Count; i++) |
|
|
|
{ |
|
|
|
{ |
|
|
@ -2184,11 +2184,18 @@ END"; |
|
|
|
return ServiceResult.OprateFailed("无效的简历ID!"); |
|
|
|
return ServiceResult.OprateFailed("无效的简历ID!"); |
|
|
|
|
|
|
|
|
|
|
|
await UpdateResumeStatus(entity, DIC_INTERVIEW_ORDER_STATUS.HasSendOffer); |
|
|
|
await UpdateResumeStatus(entity, DIC_INTERVIEW_ORDER_STATUS.HasSendOffer); |
|
|
|
|
|
|
|
|
|
|
|
var order = await _ghrh_InterviewOrderServices.QuerySingle(x => x.ResumeId == id); |
|
|
|
var order = await _ghrh_InterviewOrderServices.QuerySingle(x => x.ResumeId == id); |
|
|
|
await UpdateInterviewOrderStatus(order, DIC_INTERVIEW_ORDER_STATUS.HasSendOffer); |
|
|
|
if (order != null) |
|
|
|
await UpdateInterviewRecordStatus(order, DIC_INTERVIEW_ORDER_STATUS.HasSendOffer); |
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
await UpdateInterviewOrderStatus(order, DIC_INTERVIEW_ORDER_STATUS.HasSendOffer); |
|
|
|
|
|
|
|
await UpdateInterviewRecordStatus(order, DIC_INTERVIEW_ORDER_STATUS.HasSendOffer); |
|
|
|
|
|
|
|
|
|
|
|
await LogRecord(order.Id, "变更状态为:已发offer!"); |
|
|
|
await LogRecord(order.Id, "变更状态为:已发offer!", id, null, "TransferHasSendOffer"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
await LogRecord(null, "变更状态为:已发offer!", id, null, "TransferHasSendOffer"); |
|
|
|
} |
|
|
|
} |
|
|
|
return ServiceResult.OprateSuccess(); |
|
|
|
return ServiceResult.OprateSuccess(); |
|
|
|
} |
|
|
|
} |
|
|
@ -3751,7 +3758,7 @@ WHERE A.IsEnable = 1 AND C.IsEnable = 1 AND C.Status = A.Status"; |
|
|
|
/// <param name="orderId">面试单ID</param> |
|
|
|
/// <param name="orderId">面试单ID</param> |
|
|
|
/// <param name="content">内容</param> |
|
|
|
/// <param name="content">内容</param> |
|
|
|
/// <returns></returns> |
|
|
|
/// <returns></returns> |
|
|
|
public async Task LogRecord(long orderId, string content, long? resumeId = null, long? recordId = null, string source = null, bool? hasAttachment = null) |
|
|
|
public async Task LogRecord(long? orderId, string content, long? resumeId = null, long? recordId = null, string source = null, bool? hasAttachment = null) |
|
|
|
{ |
|
|
|
{ |
|
|
|
await _ghrh_InterviewLogServices.Add(new InsertGhrh_InterviewLogInput() |
|
|
|
await _ghrh_InterviewLogServices.Add(new InsertGhrh_InterviewLogInput() |
|
|
|
{ |
|
|
|
{ |
|
|
@ -3874,12 +3881,14 @@ WHERE A.IsEnable = 1 AND C.IsEnable = 1 AND C.Status = A.Status"; |
|
|
|
for (int i = 0; i < familys.Count; i++) |
|
|
|
for (int i = 0; i < familys.Count; i++) |
|
|
|
{ |
|
|
|
{ |
|
|
|
var family = familys[i]; |
|
|
|
var family = familys[i]; |
|
|
|
Dictionary<string, object> staffFamily = new(); |
|
|
|
Dictionary<string, object> staffFamily = new() |
|
|
|
staffFamily.Add("StaffID", staffId); |
|
|
|
{ |
|
|
|
staffFamily.Add("CreateBy", App.User.ID); |
|
|
|
{ "StaffID", staffId }, |
|
|
|
staffFamily.Add("CreateTime", DateTime.Now); |
|
|
|
{ "CreateBy", App.User.ID }, |
|
|
|
staffFamily.Add("CreateProg", null); |
|
|
|
{ "CreateTime", DateTime.Now }, |
|
|
|
staffFamily.Add("CreateIP", null); |
|
|
|
{ "CreateProg", null }, |
|
|
|
|
|
|
|
{ "CreateIP", null } |
|
|
|
|
|
|
|
}; |
|
|
|
formColumns.Where(x => x.GroupType == "Family" && x.ColumnName != "AttachmentIDs").ToList() |
|
|
|
formColumns.Where(x => x.GroupType == "Family" && x.ColumnName != "AttachmentIDs").ToList() |
|
|
|
.ForEach(x => |
|
|
|
.ForEach(x => |
|
|
|
{ |
|
|
|
{ |
|
|
@ -3924,12 +3933,14 @@ WHERE A.IsEnable = 1 AND C.IsEnable = 1 AND C.Status = A.Status"; |
|
|
|
// IsGraduate = education.IsGraduate == true ? 1 : 0, |
|
|
|
// IsGraduate = education.IsGraduate == true ? 1 : 0, |
|
|
|
// RemarkSz = education.RemarkSz |
|
|
|
// RemarkSz = education.RemarkSz |
|
|
|
//}; |
|
|
|
//}; |
|
|
|
Dictionary<string, object> staffEduBG = new(); |
|
|
|
Dictionary<string, object> staffEduBG = new() |
|
|
|
staffEduBG.Add("StaffID", staffId); |
|
|
|
{ |
|
|
|
staffEduBG.Add("CreateBy", App.User.ID); |
|
|
|
{ "StaffID", staffId }, |
|
|
|
staffEduBG.Add("CreateTime", DateTime.Now); |
|
|
|
{ "CreateBy", App.User.ID }, |
|
|
|
staffEduBG.Add("CreateProg", null); |
|
|
|
{ "CreateTime", DateTime.Now }, |
|
|
|
staffEduBG.Add("CreateIP", null); |
|
|
|
{ "CreateProg", null }, |
|
|
|
|
|
|
|
{ "CreateIP", null } |
|
|
|
|
|
|
|
}; |
|
|
|
formColumns.Where(x => x.GroupType == "Education" && x.ColumnName != "AttachmentIDs").ToList() |
|
|
|
formColumns.Where(x => x.GroupType == "Education" && x.ColumnName != "AttachmentIDs").ToList() |
|
|
|
.ForEach(x => |
|
|
|
.ForEach(x => |
|
|
|
{ |
|
|
|
{ |
|
|
@ -3964,12 +3975,14 @@ WHERE A.IsEnable = 1 AND C.IsEnable = 1 AND C.Status = A.Status"; |
|
|
|
for (int i = 0; i < workExps.Count; i++) |
|
|
|
for (int i = 0; i < workExps.Count; i++) |
|
|
|
{ |
|
|
|
{ |
|
|
|
var workExp = workExps[i]; |
|
|
|
var workExp = workExps[i]; |
|
|
|
Dictionary<string, object> staffWorkExp = new(); |
|
|
|
Dictionary<string, object> staffWorkExp = new() |
|
|
|
staffWorkExp.Add("StaffID", staffId); |
|
|
|
{ |
|
|
|
staffWorkExp.Add("CreateBy", App.User.ID); |
|
|
|
{ "StaffID", staffId }, |
|
|
|
staffWorkExp.Add("CreateTime", DateTime.Now); |
|
|
|
{ "CreateBy", App.User.ID }, |
|
|
|
staffWorkExp.Add("CreateProg", null); |
|
|
|
{ "CreateTime", DateTime.Now }, |
|
|
|
staffWorkExp.Add("CreateIP", null); |
|
|
|
{ "CreateProg", null }, |
|
|
|
|
|
|
|
{ "CreateIP", null } |
|
|
|
|
|
|
|
}; |
|
|
|
formColumns.Where(x => x.GroupType == "WorkExp" && x.ColumnName != "AttachmentIDs").ToList() |
|
|
|
formColumns.Where(x => x.GroupType == "WorkExp" && x.ColumnName != "AttachmentIDs").ToList() |
|
|
|
.ForEach(x => |
|
|
|
.ForEach(x => |
|
|
|
{ |
|
|
|
{ |
|
|
@ -4001,12 +4014,14 @@ WHERE A.IsEnable = 1 AND C.IsEnable = 1 AND C.Status = A.Status"; |
|
|
|
{ |
|
|
|
{ |
|
|
|
var licence = Licences[i]; |
|
|
|
var licence = Licences[i]; |
|
|
|
|
|
|
|
|
|
|
|
Dictionary<string, object> staffLicences = new(); |
|
|
|
Dictionary<string, object> staffLicences = new() |
|
|
|
staffLicences.Add("StaffID", staffId); |
|
|
|
{ |
|
|
|
staffLicences.Add("CreateBy", App.User.ID); |
|
|
|
{ "StaffID", staffId }, |
|
|
|
staffLicences.Add("CreateTime", DateTime.Now); |
|
|
|
{ "CreateBy", App.User.ID }, |
|
|
|
staffLicences.Add("CreateProg", null); |
|
|
|
{ "CreateTime", DateTime.Now }, |
|
|
|
staffLicences.Add("CreateIP", null); |
|
|
|
{ "CreateProg", null }, |
|
|
|
|
|
|
|
{ "CreateIP", null } |
|
|
|
|
|
|
|
}; |
|
|
|
formColumns.Where(x => x.GroupType == "Licence" && x.ColumnName != "AttachmentIDs").ToList() |
|
|
|
formColumns.Where(x => x.GroupType == "Licence" && x.ColumnName != "AttachmentIDs").ToList() |
|
|
|
.ForEach(x => |
|
|
|
.ForEach(x => |
|
|
|
{ |
|
|
|
{ |
|
|
@ -4053,12 +4068,14 @@ WHERE A.IsEnable = 1 AND C.IsEnable = 1 AND C.Status = A.Status"; |
|
|
|
// RemarkSz = training.RemarkSz |
|
|
|
// RemarkSz = training.RemarkSz |
|
|
|
//}; |
|
|
|
//}; |
|
|
|
|
|
|
|
|
|
|
|
Dictionary<string, object> staffTraining = new(); |
|
|
|
Dictionary<string, object> staffTraining = new() |
|
|
|
staffTraining.Add("StaffID", staffId); |
|
|
|
{ |
|
|
|
staffTraining.Add("CreateBy", App.User.ID); |
|
|
|
{ "StaffID", staffId }, |
|
|
|
staffTraining.Add("CreateTime", DateTime.Now); |
|
|
|
{ "CreateBy", App.User.ID }, |
|
|
|
staffTraining.Add("CreateProg", null); |
|
|
|
{ "CreateTime", DateTime.Now }, |
|
|
|
staffTraining.Add("CreateIP", null); |
|
|
|
{ "CreateProg", null }, |
|
|
|
|
|
|
|
{ "CreateIP", null } |
|
|
|
|
|
|
|
}; |
|
|
|
formColumns.Where(x => x.GroupType == "Training" && x.ColumnName != "AttachmentIDs").ToList() |
|
|
|
formColumns.Where(x => x.GroupType == "Training" && x.ColumnName != "AttachmentIDs").ToList() |
|
|
|
.ForEach(x => |
|
|
|
.ForEach(x => |
|
|
|
{ |
|
|
|
{ |
|
|
|