纯html画简历表

master
xiaochanghai 7 months ago
parent 4b0bf65989
commit 3111debb7a
  1. 236
      Tiobon.Core.Api/Controllers/Ghrh/Ghrh_ResumeTemplatePreviewController.cs
  2. 30
      Tiobon.Core.Api/Tiobon.Core.Model.xml
  3. 184
      Tiobon.Core.Api/Views/Ghrh_ResumeTemplatePreview/Index.cshtml
  4. 2
      Tiobon.Core.Api/Views/Shared/_Layout.cshtml
  5. 5
      Tiobon.Core.Model/View/Ghrh/Ghrh_Resume.Dto.View.cs
  6. 2
      Tiobon.Core.Model/View/Ghrh/Ghrh_ResumeEduBG.Dto.View.cs
  7. 10
      Tiobon.Core.Model/View/Ghrh/Ghrh_ResumeLicence.Dto.View.cs
  8. 14
      Tiobon.Core.Model/View/Ghrh/Ghrh_ResumeTraining.Dto.View.cs
  9. 2
      Tiobon.Core.Services/CommonServices.cs
  10. 9
      Tiobon.Core.Services/Ghrh/Ghrh_ResumeEduBGServices.cs
  11. 2
      Tiobon.Core.Services/Ghrh/Ghrh_ResumeLicenceServices.cs
  12. 35
      Tiobon.Core.Services/Ghrh/Ghrh_ResumeServices.cs
  13. 4
      Tiobon.Core.Services/Ghrh/Ghrh_ResumeTrainingServices.cs
  14. 2
      Tiobon.Core.Services/Ghrh/Ghrh_ResumeWorkExpServices.cs

@ -5,22 +5,37 @@ using Tiobon.Core.Model.ViewModels.Extend;
namespace Tiobon.Core.Api.Controllers;
[AllowAnonymous, Route("Ghrh_ResumeTemplatePreview/[action]"), ApiExplorerSettings(GroupName = Grouping.GroupName_Other)]
[AllowAnonymous, Route("api/Ghrh_ResumeTemplatePreview/[action]"), ApiExplorerSettings(GroupName = Grouping.GroupName_Other)]
public class Ghrh_ResumeTemplatePreviewController : Controller
{
private readonly ISqlSugarClient _db;
private readonly IGhrh_ResumeServices _ghrh_ResumeServices;
private readonly IGhrh_ResumeHomeServices _ghrh_ResumeHomeServices;
private readonly IGhrh_ResumeEduBGServices _ghrh_ResumeEduBGServices;
private readonly IGhrh_ResumeWorkExpServices _ghrh_ResumeWorkExpServices;
private readonly IGhrh_ResumeLicenceServices _ghrh_ResumeLicenceServices;
private readonly IGhrh_ResumeTrainingServices _ghrh_ResumeTrainingServices;
private readonly IGhrh_ResumeStatementServices _ghrh_ResumeStatementServices;
public Ghrh_ResumeTemplatePreviewController(ISqlSugarClient db,
IGhrh_ResumeServices ghrh_ResumeServices,
IGhrh_ResumeEduBGServices ghrh_ResumeEduBGServices,
IGhrh_ResumeWorkExpServices ghrh_ResumeWorkExpServices,
IGhrh_ResumeLicenceServices ghrh_ResumeLicenceServices,
IGhrh_ResumeTrainingServices ghrh_ResumeTrainingServices,
IGhrh_ResumeStatementServices ghrh_ResumeStatementServices,
IGhrh_ResumeHomeServices ghrh_ResumeHomeServices)
{
_db = db;
_ghrh_ResumeServices = ghrh_ResumeServices;
_ghrh_ResumeHomeServices = ghrh_ResumeHomeServices;
_ghrh_ResumeEduBGServices = ghrh_ResumeEduBGServices;
_ghrh_ResumeWorkExpServices = ghrh_ResumeWorkExpServices;
_ghrh_ResumeLicenceServices = ghrh_ResumeLicenceServices;
_ghrh_ResumeTrainingServices = ghrh_ResumeTrainingServices;
_ghrh_ResumeStatementServices = ghrh_ResumeStatementServices;
}
/// <summary>
/// Index
@ -198,12 +213,43 @@ END";
if (o.field == "UrgentRelation") o.field = "UrgentRelationLabel";
if (o.field == "CertificateType") o.field = "CertificateTypeLabel";
if (o.field == "RegisteredType") o.field = "RegisteredTypeLabel";
if (o.field == "EduDegree") o.field = "EduDegreeLabel";
});
x.children = x.children.Where(o => o.field != "EduDegreeLabel"
&& o.field != "GenderLabel"
&& o.field != "StaffName"
&& o.field != "ApplyStatusLabel"
&& o.field != "WorkYears"
&& o.field != "WorkYears"
&& o.field != "Age").ToList();
}
if (x.tabKey == "Family")
x.children.ForEach(o =>
{
if (o.field == "Gender") o.field = "GenderLabel";
if (o.field == "RelationType") o.field = "RelationTypeLabel";
});
if (x.tabKey == "Education")
x.children.ForEach(o =>
{
if (o.field == "IsGraduate") o.field = "IsGraduateLabel";
if (o.field == "DegreeLevel") o.field = "DegreeLevelLabel";
if (o.field == "BeginDate") o.field = "BeginDate1";
if (o.field == "EndDate") o.field = "EndDate1";
});
if (x.tabKey == "WorkExp" || x.tabKey == "Licence")
x.children.ForEach(o =>
{
if (o.field == "BeginDate") o.field = "BeginDate1";
if (o.field == "EndDate") o.field = "EndDate1";
});
if (x.tabKey == "Training")
x.children.ForEach(o =>
{
if (o.field == "BeginDate") o.field = "BeginDate1";
if (o.field == "EndDate") o.field = "EndDate1";
if (o.field == "IsPass") o.field = "IsPassLabel";
});
}
x.children1 = null;
@ -218,7 +264,7 @@ END";
var formColumns = await QueryResumeFormColumn(1);
#region Base
var id = 1856146208591056896;
var id = 1851947974159110144;
var entity = await _ghrh_ResumeServices.QueryById(id);
var columnNames = formColumns.Where(x => x.GroupType == "Base").Select(x => x.ColumnName).ToList();
columnNames = columnNames.Distinct().ToList();
@ -234,12 +280,14 @@ END";
columnNames.Add("UrgentRelationLabel");
columnNames.Add("CertificateTypeLabel");
columnNames.Add("RegisteredTypeLabel");
columnNames.Add("EduDegreeLabel");
columnNames.ForEach(x =>
{
var value = entity.GetPropertyValue(x);
dicts.Add(x, value);
});
ViewBag.BaseDic = dicts;
ViewBag.entity = entity;
#endregion
#region 家庭关系
@ -247,7 +295,7 @@ END";
columnNames = formColumns.Where(x => x.GroupType == "Family").Select(x => x.ColumnName).ToList();
columnNames = columnNames.Distinct().ToList();
columnNames.Add("GenderLabel");
columnNames.Add("GenderLabel");
columnNames.Add("RelationTypeLabel");
var familys = await _ghrh_ResumeHomeServices.QueryDto(x => x.ResumeId != null && x.ResumeId == id);
var familyDic = new List<Dictionary<string, object>>();
familys.ForEach(family =>
@ -258,103 +306,103 @@ END";
var value = family.GetPropertyValue(x);
dicts.Add(x, value);
});
if (columnNames.Any(x => x == "AttachmentIDs"))
dicts["AttachmentIDs"] = family.AttachmentIDs;
familyDic.Add(dicts);
});
ViewBag.FamilyDic = familyDic;
#endregion
//#region 教育背景
//columnNames = formColumns.Where(x => x.GroupType == "Education").Select(x => x.ColumnName).ToList();
//columnNames = columnNames.Distinct().ToList();
//var educations = await _ghrh_ResumeEduBGServices.QueryDto(x => x.ResumeId != null && x.ResumeId == id);
//var educationDic = new List<Dictionary<string, object>>();
//educations.ForEach(education =>
//{
// var dicts = new Dictionary<string, object>();
// columnNames.ForEach(x =>
// {
// var value = education.GetPropertyValue(x);
// dicts.Add(x, value);
// });
// if (columnNames.Any(x => x == "AttachmentIDs"))
// dicts["AttachmentIDs"] = education.AttachmentIDs;
// educationDic.Add(dicts);
//});
//Data.Education = educationDic;
//#endregion
//#region 工作经历
//columnNames = formColumns.Where(x => x.GroupType == "WorkExp").Select(x => x.ColumnName).ToList();
//columnNames = columnNames.Distinct().ToList();
//var workExps = await _ghrh_ResumeWorkExpServices.QueryDto(x => x.ResumeId != null && x.ResumeId == id);
//var workExpDic = new List<Dictionary<string, object>>();
//workExps.ForEach(workExp =>
//{
// var dicts = new Dictionary<string, object>();
// columnNames.ForEach(x =>
// {
// var value = workExp.GetPropertyValue(x);
// dicts.Add(x, value);
// });
// if (columnNames.Any(x => x == "AttachmentIDs"))
// dicts["AttachmentIDs"] = workExp.AttachmentIDs;
// workExpDic.Add(dicts);
//});
//Data.WorkExp = workExpDic;
//#endregion
//#region 证件
//columnNames = formColumns.Where(x => x.GroupType == "Licence").Select(x => x.ColumnName).ToList();
//columnNames = columnNames.Distinct().ToList();
//var Licences = await _ghrh_ResumeLicenceServices.QueryDto(x => x.ResumeId != null && x.ResumeId == id);
//var licenceDic = new List<Dictionary<string, object>>();
//Licences.ForEach(licence =>
//{
// var dicts = new Dictionary<string, object>();
// columnNames.ForEach(x =>
// {
// var value = licence.GetPropertyValue(x);
// dicts.Add(x, value);
// });
// if (columnNames.Any(x => x == "AttachmentIDs"))
// dicts["AttachmentIDs"] = licence.AttachmentIDs;
// licenceDic.Add(dicts);
//});
//Data.Licence = licenceDic;
//#endregion
//#region 简历培训记录
//columnNames = formColumns.Where(x => x.GroupType == "Training").Select(x => x.ColumnName).ToList();
//columnNames = columnNames.Distinct().ToList();
//var Trainings = await _ghrh_ResumeTrainingServices.QueryDto(x => x.ResumeId != null && x.ResumeId == id);
//var trainingDic = new List<Dictionary<string, object>>();
//Trainings.ForEach(training =>
//{
// var dicts = new Dictionary<string, object>();
// columnNames.ForEach(x =>
// {
// var value = training.GetPropertyValue(x);
// dicts.Add(x, value);
// });
// if (columnNames.Any(x => x == "AttachmentIDs"))
// dicts["AttachmentIDs"] = training.AttachmentIDs;
// trainingDic.Add(dicts);
//});
//Data.Training = trainingDic;
//#endregion
//Data.Attachment = await Db.Queryable<Ghrs_Attachment>().Where(x => x.TableName == id.ObjToString()).ToListAsync();
//var statements = await _ghrh_ResumeStatementServices.QueryDto(x => x.ResumeId != null && x.ResumeId == id);//证件
//Data.Statement = statements.ToDictionary(person => person.StatementCode, person => person.TrueOrFalse);
#region 教育背景
columnNames = formColumns.Where(x => x.GroupType == "Education").Select(x => x.ColumnName).ToList();
columnNames = columnNames.Distinct().ToList();
columnNames.Add("IsGraduateLabel");
columnNames.Add("DegreeLevelLabel");
columnNames.Add("BeginDate1");
columnNames.Add("EndDate1");
var educations = await _ghrh_ResumeEduBGServices.QueryDto(x => x.ResumeId != null && x.ResumeId == id);
var educationDic = new List<Dictionary<string, object>>();
educations.ForEach(education =>
{
var dicts = new Dictionary<string, object>();
columnNames.ForEach(x =>
{
var value = education.GetPropertyValue(x);
dicts.Add(x, value);
});
educationDic.Add(dicts);
});
ViewBag.EducationDic = educationDic;
#endregion
#region 工作经历
columnNames = formColumns.Where(x => x.GroupType == "WorkExp").Select(x => x.ColumnName).ToList();
columnNames = columnNames.Distinct().ToList();
columnNames.Add("BeginDate1");
columnNames.Add("EndDate1");
var workExps = await _ghrh_ResumeWorkExpServices.QueryDto(x => x.ResumeId != null && x.ResumeId == id);
var workExpDic = new List<Dictionary<string, object>>();
workExps.ForEach(workExp =>
{
var dicts = new Dictionary<string, object>();
columnNames.ForEach(x =>
{
var value = workExp.GetPropertyValue(x);
dicts.Add(x, value);
});
workExpDic.Add(dicts);
});
ViewBag.WorkExpDic = workExpDic;
#endregion
#region 证件
columnNames = formColumns.Where(x => x.GroupType == "Licence").Select(x => x.ColumnName).ToList();
columnNames = columnNames.Distinct().ToList();
columnNames.Add("BeginDate1");
columnNames.Add("EndDate1");
var Licences = await _ghrh_ResumeLicenceServices.QueryDto(x => x.ResumeId != null && x.ResumeId == id);
var licenceDic = new List<Dictionary<string, object>>();
Licences.ForEach(licence =>
{
var dicts = new Dictionary<string, object>();
columnNames.ForEach(x =>
{
var value = licence.GetPropertyValue(x);
dicts.Add(x, value);
});
licenceDic.Add(dicts);
});
ViewBag.LicenceDic = licenceDic;
#endregion
#region 简历培训记录
columnNames = formColumns.Where(x => x.GroupType == "Training").Select(x => x.ColumnName).ToList();
columnNames = columnNames.Distinct().ToList();
columnNames.Add("BeginDate1");
columnNames.Add("EndDate1");
columnNames.Add("IsPassLabel");
var Trainings = await _ghrh_ResumeTrainingServices.QueryDto(x => x.ResumeId != null && x.ResumeId == id);
var trainingDic = new List<Dictionary<string, object>>();
Trainings.ForEach(training =>
{
var dicts = new Dictionary<string, object>();
columnNames.ForEach(x =>
{
var value = training.GetPropertyValue(x);
dicts.Add(x, value);
});
trainingDic.Add(dicts);
});
ViewBag.TrainingDic = trainingDic;
#endregion
var statements = await _ghrh_ResumeStatementServices.QueryDto(x => x.ResumeId != null && x.ResumeId == id);//证件
ViewBag.StatementDic = statements.ToDictionary(person => person.StatementCode, person => person.TrueOrFalse);
#endregion

@ -22472,6 +22472,11 @@
渠道
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeDto.EduDegreeLabel">
<summary>
学历
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeDto.TagList">
<summary>
标签
@ -22682,6 +22687,16 @@
修改信息
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeLicenceDto.BeginDate1">
<summary>
生效日
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeLicenceDto.EndDate1">
<summary>
失效日
</summary>
</member>
<member name="T:Tiobon.Core.Model.Models.Ghrh_ResumeStatementDto">
<summary>
简历声明(Dto.View1)
@ -22742,6 +22757,21 @@
修改信息
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeTrainingDto.BeginDate1">
<summary>
开始日期
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeTrainingDto.EndDate1">
<summary>
结束日期
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeTrainingDto.IsPassLabel">
<summary>
合格
</summary>
</member>
<member name="T:Tiobon.Core.Model.Models.Ghrh_ResumeWorkExpDto">
<summary>
工作经历(Dto.View1)

@ -1,10 +1,16 @@
@using Tiobon.Core.Model.ViewModels.Extend
@{
ViewData["Title"] = "测试测试";
Layout = "~/Views/Shared/_Layout.cshtml";
List<ResumeFormColumn> Columns = ViewBag.Columns;
Ghrh_ResumeDto entity = ViewBag.entity;
ViewData["Title"] = entity.StaffName;
Dictionary<string, object> BaseDic = ViewBag.BaseDic;
List<Dictionary<string, object>> FamilyDic = ViewBag.FamilyDic;
List<Dictionary<string, object>> EducationDic = ViewBag.EducationDic;
List<Dictionary<string, object>> WorkExpDic = ViewBag.WorkExpDic;
List<Dictionary<string, object>> LicenceDic = ViewBag.LicenceDic;
List<Dictionary<string, object>> TrainingDic = ViewBag.TrainingDic;
Dictionary<string, bool?> StatementDic = ViewBag.StatementDic;
}
<style type="text/css">
body {
@ -126,12 +132,12 @@
{
<main class="ghr-preview-staff-base-info" id="info">
<div class="staffPhoto">
<img src="http://g.tiobon.com/File/UploadPath/1_20241120174307502_1729436858909.png" alt="">
<img src="http://g.tiobon.com/@(entity.PhotoUrl)" alt="">
</div>
<div class="staffBaseInfo">
<div class="staffName">zy001&nbsp;</div>
<div class="staffEName">&nbsp;</div>
<div class="staffHumanResourcesMsg">T1006&nbsp; <span><span>|</span><span>测试一部</span> &nbsp; </span><span><span>|</span><span>岗位: (无)</span> &nbsp; </span><span><span>|</span><span>职等: (无)</span> &nbsp; </span></div>
<div class="staffName">@(entity.StaffName)&nbsp;</div>
<div class="staffEName">@(entity.ApplyStatusLabel)&nbsp;</div>
<div class="staffHumanResourcesMsg">经验:@(entity.WorkYears)年工作经验&nbsp; <span><span>|</span><span>年龄:@(entity.Age)</span> &nbsp; </span><span><span>|</span><span>学历: @(entity.EduDegreeLabel)</span> &nbsp; </span></div>
</div>
</main>
}
@ -143,7 +149,7 @@
if (item.children != null && item.children.Any())
foreach (var children in item.children)
{
<main class="ghr-preview-staff-resume-block-item" id="Base-0-StaffName">
<main class="ghr-preview-staff-resume-block-item" id="Base-0-StaffName" style="width:@(children.label=="备注"?"100%": "50%")">
<div class="label">@(children.label):</div>
<div class="itemValue">
@{
@ -176,7 +182,7 @@
if (item.children != null && item.children.Any())
foreach (var children in item.children)
{
<main class="ghr-preview-staff-resume-block-item" id="Base-0-StaffName">
<main class="ghr-preview-staff-resume-block-item" id="Base-0-StaffName" style="width:@(children.label=="备注"?"100%": "50%")">
<div class="label">@(children.label):</div>
<div class="itemValue">
@{
@ -194,6 +200,170 @@
}
}
else if (item.tabKey == "Education")
{
if (EducationDic.Count > 0)
{
<main class="ghr-preview-staff-resume-title" id="Base">
@item.tabName
</main>
}
for (var i = 0; i < EducationDic.Count; i++)
{
if (i > 0)
{
<div style="margin-top:20px;width:100%"></div>
}
if (item.children != null && item.children.Any())
foreach (var children in item.children)
{
<main class="ghr-preview-staff-resume-block-item" id="Base-0-StaffName" style="width:@(children.label=="备注"?"100%": "50%")">
<div class="label">@(children.label):</div>
<div class="itemValue">
@{
if (EducationDic[i].ContainsKey(children.field))
{
@EducationDic[i][children.field]
}
}
</div>
</main>
}
}
}
else if (item.tabKey == "WorkExp")
{
if (WorkExpDic.Count > 0)
{
<main class="ghr-preview-staff-resume-title" id="Base">
@item.tabName
</main>
}
for (var i = 0; i < WorkExpDic.Count; i++)
{
if (i > 0)
{
<div style="margin-top:20px;width:100%"></div>
}
if (item.children != null && item.children.Any())
foreach (var children in item.children)
{
<main class="ghr-preview-staff-resume-block-item" id="Base-0-StaffName" style="width:@(children.label=="备注"?"100%": "50%")">
<div class="label">@(children.label):</div>
<div class="itemValue">
@{
if (WorkExpDic[i].ContainsKey(children.field))
{
@WorkExpDic[i][children.field]
}
}
</div>
</main>
}
}
}
else if (item.tabKey == "Licence")
{
if (LicenceDic.Count > 0)
{
<main class="ghr-preview-staff-resume-title" id="Base">
@item.tabName
</main>
}
for (var i = 0; i < LicenceDic.Count; i++)
{
if (i > 0)
{
<div style="margin-top:20px;width:100%"></div>
}
if (item.children != null && item.children.Any())
foreach (var children in item.children)
{
<main class="ghr-preview-staff-resume-block-item" id="Base-0-StaffName" style="width:@(children.label=="备注"?"100%": "50%")">
<div class="label">@(children.label):</div>
<div class="itemValue">
@{
if (LicenceDic[i].ContainsKey(children.field))
{
@LicenceDic[i][children.field]
}
}
</div>
</main>
}
}
}
else if (item.tabKey == "Training")
{
if (TrainingDic.Count > 0)
{
<main class="ghr-preview-staff-resume-title" id="Base">
@item.tabName
</main>
}
for (var i = 0; i < TrainingDic.Count; i++)
{
if (i > 0)
{
<div style="margin-top:20px;width:100%"></div>
}
if (item.children != null && item.children.Any())
foreach (var children in item.children)
{
<main class="ghr-preview-staff-resume-block-item" id="Base-0-StaffName" style="width:@(children.label=="培训说明"?"100%": "50%")">
<div class="label">@(children.label):</div>
<div class="itemValue">
@{
if (TrainingDic[i].ContainsKey(children.field))
{
@TrainingDic[i][children.field]
}
}
</div>
</main>
}
}
}
else if (item.tabKey == "Statement")
{
var ii = 0;
if (item.children != null && item.children.Any())
{
<main class="ghr-preview-staff-resume-title" id="Base">
@item.tabName
</main>
}
if (item.children != null && item.children.Any())
foreach (var children in item.children)
{
if (ii > 0)
{
<div style="margin-top:20px;width:100%"></div>
}
<main class="ghr-preview-staff-resume-block-item" id="Base-0-StaffName" style="width:100%;display: flex;">
<div class="itemValue" style="width: 100%;">@(children.placeholder):</div>
<div class="label">
@{
ii++;
if (StatementDic.ContainsKey("Statement" + ii))
{
if (StatementDic["Statement" + ii] != null)
if (StatementDic["Statement" + ii] == true)
@("是")
else
@("否")
}
}
</div>
</main>
}
}
}
}
</div>

@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>乔邦科技 | @ViewData["Title"]</title>
<title>@ViewData["Title"]</title>
@RenderSection("Styles", required: false)
</head>
<body>

@ -89,6 +89,11 @@ public class Ghrh_ResumeDto : Ghrh_Resume
/// </summary>
public string ChannelLabel { get; set; }
/// <summary>
/// 学历
/// </summary>
public string EduDegreeLabel { get; set; }
/// <summary>
/// 标签
/// </summary>

@ -38,6 +38,8 @@ public class Ghrh_ResumeEduBGDto : Ghrh_ResumeEduBG
public string BeginDate1 { get; set; }
public string EndDate1 { get; set; }
public string IsGraduateLabel { get; set; }
public List<ResumeAttachment> AttachmentIDs { get; set; }
}

@ -34,4 +34,14 @@ public class Ghrh_ResumeLicenceDto : Ghrh_ResumeLicence
/// </summary>
public string UpdateDataInfo { get; set; }
public List<ResumeAttachment> AttachmentIDs { get; set; }
/// <summary>
/// 生效日
/// </summary>
public string BeginDate1 { get; set; }
/// <summary>
/// 失效日
/// </summary>
public string EndDate1 { get; set; }
}

@ -34,4 +34,18 @@ public class Ghrh_ResumeTrainingDto : Ghrh_ResumeTraining
/// </summary>
public string UpdateDataInfo { get; set; }
public List<ResumeAttachment> AttachmentIDs { get; set; }
/// <summary>
/// 开始日期
/// </summary>
public string BeginDate1 { get; set; }
/// <summary>
/// 结束日期
/// </summary>
public string EndDate1 { get; set; }
/// <summary>
/// 合格
/// </summary>
public string IsPassLabel { get; set; }
}

@ -1383,7 +1383,7 @@ public partial class CommonServices : BaseServices<RootEntityTkey<int>>, ICommon
{
display = true,
fnKey = "TBD14YN",
fnTitle = "重新安排面试",
fnTitle = "安排面试",
fnType = "row",
icon = "ess-icon-reject",
position = "left"

@ -19,7 +19,7 @@ public class Ghrh_ResumeEduBGServices : BaseServices<Ghrh_ResumeEduBG, Ghrh_Resu
var ids = data.Select(x => x.Id.ToString()).ToList();
var attachments = await Db.Queryable<Ghrs_Attachment>().Where(x => ids.Contains(x.TableName)).ToListAsync();
data.ForEach(x =>
data.ForEach(async x =>
{
x.AttachmentIDs = attachments
.Where(o => o.TableName == x.Id.ToString())
@ -32,8 +32,13 @@ public class Ghrh_ResumeEduBGServices : BaseServices<Ghrh_ResumeEduBG, Ghrh_Resu
AttachmentName = o.AttachmentName,
RemarkSz = o.RemarkSz
}).ToList();
});
if (x.IsGraduate != null)
x.IsGraduateLabel = x.IsGraduate == true ? "是" : "否";
x.DegreeLevelLabel = await GetParaLabel("EducationalBGLevel", x.DegreeLevel);
x.BeginDate1 = DateTimeHelper.ConvertToDayString(x.BeginDate);
x.EndDate1 = DateTimeHelper.ConvertToDayString(x.EndDate);
});
return data;
}
public override async Task<List<long>> Add(List<InsertGhrh_ResumeEduBGInput> listEntity)

@ -32,6 +32,8 @@ public class Ghrh_ResumeLicenceServices : BaseServices<Ghrh_ResumeLicence, Ghrh_
AttachmentName = o.AttachmentName,
RemarkSz = o.RemarkSz
}).ToList();
x.BeginDate1 = DateTimeHelper.ConvertToDayString(x.BeginDate);
x.EndDate1 = DateTimeHelper.ConvertToDayString(x.EndDate);
});
return data;

@ -88,6 +88,7 @@ public class Ghrh_ResumeServices : BaseServices<Ghrh_Resume, Ghrh_ResumeDto, Ins
x.RegisteredTypeLabel = await GetParaLabel("A08", x.RegisteredType);
x.ApplyStatusLabel = await GetParaLabel("ResumeApplyStatus", x.ApplyStatus);
x.ChannelLabel = await GetParaLabel("ResumeApplyStatus", x.Channel);
x.EduDegreeLabel = await GetParaLabel("EducationalBGLevel", x.EduDegree);
#region 计算年龄
if (x.Birthday != null && x.Birthday > DateTime.MinValue)
@ -247,17 +248,6 @@ public class Ghrh_ResumeServices : BaseServices<Ghrh_Resume, Ghrh_ResumeDto, Ins
var titles = await Db.Queryable<Ghra_Title>().Where(x => x.TitleID != null && titleIds.Contains(x.TitleID.Value)).ToListAsync();
var eduBGs = await _ghrh_ResumeEduBGServices.QueryDto(x => x.ResumeId != null && ids.Contains(x.ResumeId.Value));
var workExps = await _ghrh_ResumeWorkExpServices.QueryDto(x => x.ResumeId != null && ids.Contains(x.ResumeId.Value));
eduBGs.ForEach(async x =>
{
x.DegreeLevelLabel = await GetParaLabel("EducationalBGLevel", x.DegreeLevel);
x.BeginDate1 = DateTimeHelper.ConvertToDayString(x.BeginDate);
x.EndDate1 = DateTimeHelper.ConvertToDayString(x.EndDate);
});
workExps.ForEach(x =>
{
x.BeginDate1 = DateTimeHelper.ConvertToDayString(x.BeginDate);
x.EndDate1 = DateTimeHelper.ConvertToDayString(x.EndDate);
});
var tagIds = new List<long>();
list.ForEach(x =>
@ -1766,8 +1756,14 @@ END";
if (entity == null)
return ServiceResult.OprateFailed("无效的简历ID!");
string Status = string.Empty;
if (input.IsPass == false)
Status = DIC_INTERVIEW_ORDER_STATUS.InterviewFail;
else
Status = DIC_INTERVIEW_ORDER_STATUS.HasInterview;
var order = await _ghrh_InterviewOrderServices.QuerySingle(x => x.ResumeId == id);
order.Status = DIC_INTERVIEW_ORDER_STATUS.InterviewFail;
order.Status = Status;
order.IsPass = input.IsPass;
order.InterviewResult = input.Content;
await _ghrh_InterviewOrderServices.Update(order, ["Status", "IsPass", "InterviewResult"]);
@ -1776,10 +1772,10 @@ END";
record.InterviewResult = input.Content;
record.IsPass = input.IsPass;
record.AssessTime = DateTime.Now;
record.Status = DIC_INTERVIEW_ORDER_STATUS.InterviewFail;
record.Status = Status;
await _ghrh_InterviewRecordServices.Update(record, ["AssessTime", "Status", "IsPass", "InterviewResult"]);
await UpdateResumeStatus(entity, DIC_INTERVIEW_ORDER_STATUS.InterviewFail);
await UpdateResumeStatus(entity, Status);
await LogRecord(order.Id, $"填写了面试评估,轮数:{order.Round},是否通过:{(input.IsPass == true ? "" : "")},内容:{input.Content}!");
return ServiceResult.OprateSuccess();
@ -2306,8 +2302,10 @@ WHERE A.IsEnable = 1 AND C.IsEnable = 1";
var entity = base.QueryById(id);
var order = await _ghrh_InterviewOrderServices.QuerySingle(x => x.ResumeId == id);
var records = await _ghrh_InterviewRecordServices.Query(x => x.Round == order.Round && x.OrderId == order.Id);
var request = await _ghrh_HumanRequestServices.QueryById(order.RequestId);
if (order.RequestId.IsNotEmptyOrNull())
{
var request = await _ghrh_HumanRequestServices.QueryById(order.RequestId);
result.RequestId = order.RequestId;
result.DeptName = request.BelongDeptName;
result.TitleName = request.TitleName;
@ -2315,6 +2313,13 @@ WHERE A.IsEnable = 1 AND C.IsEnable = 1";
result.RecommendCount = request.RecommendCount;
result.InterviewCount = request.InterviewCount;
result.OfferCount = request.OfferCount;
}
else
{
result.DeptName = order.HireDeptName;
result.TitleName = order.HireTitleName;
}
result.Times = new List<string>();
result.Staffs = new();
if (records != null && records.Any())

@ -21,6 +21,10 @@ public class Ghrh_ResumeTrainingServices : BaseServices<Ghrh_ResumeTraining, Ghr
data.ForEach(x =>
{
x.BeginDate1 = DateTimeHelper.ConvertToDayString(x.BeginDate);
x.EndDate1 = DateTimeHelper.ConvertToDayString(x.EndDate);
if (x.IsPass != null)
x.IsPassLabel = x.IsPass == true ? "是" : "否";
x.AttachmentIDs = attachments
.Where(o => o.TableName == x.Id.ToString())
.Select(o => new ResumeAttachment()

@ -32,6 +32,8 @@ public class Ghrh_ResumeWorkExpServices : BaseServices<Ghrh_ResumeWorkExp, Ghrh_
AttachmentName = o.AttachmentName,
RemarkSz = o.RemarkSz
}).ToList();
x.BeginDate1 = DateTimeHelper.ConvertToDayString(x.BeginDate);
x.EndDate1 = DateTimeHelper.ConvertToDayString(x.EndDate);
});
return data;

Loading…
Cancel
Save