master
xiaochanghai 6 months ago
parent deea32dfc2
commit 81767b604e
  1. 14
      Tiobon.Core.Api/Views/Ghrh_ResumeTemplatePreview/Index.cshtml
  2. 158
      Tiobon.Core.Services/CommonServices.cs
  3. 12
      Tiobon.Core.Services/Ghrh/Ghrh_ResumeServices.cs

@ -84,7 +84,7 @@
{
@if (i > 0)
{
<div style="margin-top:20px;width:100%"></div>
<div style="margin-top:20px;width:100%;float: left;"></div>
}
@if (item.children != null && item.children.Any())
{
@ -124,7 +124,7 @@
{
if (i > 0)
{
<div style="margin-top:20px;width:100%"></div>
<div style="margin-top:20px;width:100%;float: left;"></div>
}
if (item.children != null && item.children.Any())
foreach (var children in item.children)
@ -159,7 +159,7 @@
{
if (i > 0)
{
<div style="margin-top:20px;width:100%"></div>
<div style="margin-top:20px;width:100%;float: left;"></div>
}
if (item.children != null && item.children.Any())
foreach (var children in item.children)
@ -195,7 +195,7 @@
{
if (i > 0)
{
<div style="margin-top:20px;width:100%"></div>
<div style="margin-top:20px;width:100%;float: left;"></div>
}
if (item.children != null && item.children.Any())
foreach (var children in item.children)
@ -230,7 +230,7 @@
{
if (i > 0)
{
<div style="margin-top:20px;width:100%"></div>
<div style="margin-top:20px;width:100%;float: left;"></div>
}
if (item.children != null && item.children.Any())
foreach (var children in item.children)
@ -262,7 +262,7 @@
@item.tabName
</div>
}
<div style="float:left;width:80%;padding-left: 10px;color: #ff9300;">@Html.Raw(ViewBag.StatementRemark)</div>
<div style="float:left;padding-left: 10px;color: #ff9300;">@Html.Raw(ViewBag.StatementRemark)</div>
if (item.children != null && item.children.Any())
foreach (var children in item.children)
@ -295,7 +295,7 @@
}
@if (displaySignatureArea)
{
<div style="float:left;width:80%;padding-left: 10px;">申请人签名:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;日期:</div>
<div style="float:left;padding-left: 10px;">申请人签名:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;日期:</div>
}
</div>
}

@ -1234,6 +1234,16 @@ public partial class CommonServices : BaseServices<RootEntityTkey<int>>, ICommon
icon = "ess-icon-reject",
position = "left"
});
if (toolbarRoles.Where(x => x.RoleNo == "RecruitResumeRemind").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 == "RecruitResumeTag").Any())
result.JM_PageControlT1.Toolbar.Add(new Toolbar()
{
@ -1284,16 +1294,6 @@ public partial class CommonServices : BaseServices<RootEntityTkey<int>>, ICommon
icon = "ess-icon-reject",
position = "left"
});
if (toolbarRoles.Where(x => x.RoleNo == "RecruitResumeRemind").Any())
result.JM_PageControlT1.Toolbar.Add(new Toolbar()
{
display = true,
fnKey = "TBD11YN",
fnTitle = "提醒",
fnType = "row",
icon = "ess-icon-reject",
position = "left"
});
}
break;
@ -1308,62 +1308,22 @@ public partial class CommonServices : BaseServices<RootEntityTkey<int>>, ICommon
if (toolbarRoles != null && toolbarRoles.Any())
{
if (toolbarRoles.Where(x => x.RoleNo == "RecruitResumeTag").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 == "RecruitResumeTalentPool").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 == "RecruitResumeBlacklist").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 == "RecruitResumeDownLoad").Any())
if (toolbarRoles.Where(x => x.RoleNo == "RecruitResumeProcessRemind").Any())
result.JM_PageControlT1.Toolbar.Add(new Toolbar()
{
display = true,
fnKey = "TBD10YN",
fnTitle = "下载",
fnKey = "TBD12YN",
fnTitle = "提醒",
fnType = "row",
icon = "ess-icon-reject",
position = "left"
});
if (toolbarRoles.Where(x => x.RoleNo == "RecruitResumeProcessRemind").Any())
if (toolbarRoles.Where(x => x.RoleNo == "RecruitResumeReScheduleInterview").Any())
result.JM_PageControlT1.Toolbar.Add(new Toolbar()
{
display = true,
fnKey = "TBD12YN",
fnTitle = "提醒",
fnKey = "TBD5YN",
fnTitle = "重新推荐",
fnType = "row",
icon = "ess-icon-reject",
position = "left"
@ -1389,16 +1349,6 @@ public partial class CommonServices : BaseServices<RootEntityTkey<int>>, ICommon
position = "left"
});
}
if (toolbarRoles.Where(x => x.RoleNo == "RecruitResumeReScheduleInterview").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 == "RecruitResumeApplyOffer").Any())
result.JM_PageControlT1.Toolbar.Add(new Toolbar()
{
@ -1418,19 +1368,6 @@ public partial class CommonServices : BaseServices<RootEntityTkey<int>>, ICommon
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()
{
@ -1481,6 +1418,19 @@ public partial class CommonServices : BaseServices<RootEntityTkey<int>>, ICommon
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 == "RecruitResumeSendOffer").Any())
result.JM_PageControlT1.Toolbar.Add(new Toolbar()
{
@ -1531,6 +1481,56 @@ 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,
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 == "RecruitResumeTalentPool").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 == "RecruitResumeBlacklist").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 == "RecruitResumeDownLoad").Any())
result.JM_PageControlT1.Toolbar.Add(new Toolbar()
{
display = true,
fnKey = "TBD10YN",
fnTitle = "下载",
fnType = "row",
icon = "ess-icon-reject",
position = "left"
});
}
break;

@ -1791,7 +1791,7 @@ END";
if (!isChangeInterviewTime)
await LogRecord(order.Id, $"预约面试,面试时间:{string.Join("", form.Times)},约面反馈:{order.AppointmentFeedback ?? ""}", id, null, "SubscribeInterview");
else
await LogRecord(order.Id, $"修改面试时间,面试时间:{string.Join("", form.Times)},备注:{(form.Remark ?? "")}", id, null, "ChangeInterviewDate");
await LogRecord(order.Id, $"修改面试时间,面试时间:{string.Join("", form.Times)}备注:{(form.Remark ?? "")}", id, null, "ChangeInterviewDate");
#endregion
@ -1812,8 +1812,8 @@ END";
if (entity == null)
return ServiceResult.OprateFailed("无效的简历ID!");
if (entity.Status != DIC_INTERVIEW_ORDER_STATUS.WaitAppointment)
return ServiceResult.OprateFailed("【待预约】状态下才能安排面试!");
//if (entity.Status != DIC_INTERVIEW_ORDER_STATUS.WaitAppointment)
// return ServiceResult.OprateFailed("【待预约】状态下才能安排面试!");
if (body.Time.IndexOf("~") < 0)
throw new Exception($"传入时间【{body.Time}】无效,请检查格式!");
@ -1847,7 +1847,7 @@ END";
await _ghrh_InterviewRecordServices.Update(records, ["InterviewTime", "InterviewBeginTime", "InterviewEndTime", "Status", "UpdateTime", "UpdateBy"]);
await _ghrh_InterviewOrderServices.Update(order, ["InterviewStepName", "UpdateTime", "UpdateBy"]);
await LogRecord(order.Id, $"安排面试,面试时间:{body.Time},面试地点:{body.InterviewAddress},面试备注:{body.Remark ?? ""}", id, records[0].Id, "ScheduleInterview", true);
await LogRecord(order.Id, $"安排面试,面试时间:{body.Time}面试地点:{body.InterviewAddress},面试备注:{body.Remark ?? ""}", id, records[0].Id, "ScheduleInterview", true);
entity.Status = DIC_INTERVIEW_ORDER_STATUS.WaitInterview;
await Update(entity, ["Status", "UpdateTime", "UpdateBy"]);
@ -2347,7 +2347,7 @@ END";
await Update(entity, ["Status"]);
await _ghrh_InterviewOrderServices.Update(order, ["Status"]);
await _ghrh_InterviewRecordServices.Update(records, ["Status"]);
await LogRecord(order.Id, "变更是否报道!");
await LogRecord(order.Id, isOffer == true ? "标记为已报到!" : "标记为未报到!", id, null, "CheckIn");
}
}
@ -3645,7 +3645,7 @@ WHERE A.IsEnable = 1 AND C.IsEnable = 1 AND C.Status = A.Status";
default:
break;
}
item.Attachments = attachments;
items.Add(item);
}
logs.Add(new ResumeLog()

Loading…
Cancel
Save