纯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. 186
      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. 51
      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; 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 public class Ghrh_ResumeTemplatePreviewController : Controller
{ {
private readonly ISqlSugarClient _db; private readonly ISqlSugarClient _db;
private readonly IGhrh_ResumeServices _ghrh_ResumeServices; private readonly IGhrh_ResumeServices _ghrh_ResumeServices;
private readonly IGhrh_ResumeHomeServices _ghrh_ResumeHomeServices; 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, public Ghrh_ResumeTemplatePreviewController(ISqlSugarClient db,
IGhrh_ResumeServices ghrh_ResumeServices, 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) IGhrh_ResumeHomeServices ghrh_ResumeHomeServices)
{ {
_db = db; _db = db;
_ghrh_ResumeServices = ghrh_ResumeServices; _ghrh_ResumeServices = ghrh_ResumeServices;
_ghrh_ResumeHomeServices = ghrh_ResumeHomeServices; _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> /// <summary>
/// Index /// Index
@ -198,12 +213,43 @@ END";
if (o.field == "UrgentRelation") o.field = "UrgentRelationLabel"; if (o.field == "UrgentRelation") o.field = "UrgentRelationLabel";
if (o.field == "CertificateType") o.field = "CertificateTypeLabel"; if (o.field == "CertificateType") o.field = "CertificateTypeLabel";
if (o.field == "RegisteredType") o.field = "RegisteredTypeLabel"; 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") if (x.tabKey == "Family")
x.children.ForEach(o => x.children.ForEach(o =>
{ {
if (o.field == "Gender") o.field = "GenderLabel"; 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; x.children1 = null;
@ -218,7 +264,7 @@ END";
var formColumns = await QueryResumeFormColumn(1); var formColumns = await QueryResumeFormColumn(1);
#region Base #region Base
var id = 1856146208591056896; var id = 1851947974159110144;
var entity = await _ghrh_ResumeServices.QueryById(id); var entity = await _ghrh_ResumeServices.QueryById(id);
var columnNames = formColumns.Where(x => x.GroupType == "Base").Select(x => x.ColumnName).ToList(); var columnNames = formColumns.Where(x => x.GroupType == "Base").Select(x => x.ColumnName).ToList();
columnNames = columnNames.Distinct().ToList(); columnNames = columnNames.Distinct().ToList();
@ -234,12 +280,14 @@ END";
columnNames.Add("UrgentRelationLabel"); columnNames.Add("UrgentRelationLabel");
columnNames.Add("CertificateTypeLabel"); columnNames.Add("CertificateTypeLabel");
columnNames.Add("RegisteredTypeLabel"); columnNames.Add("RegisteredTypeLabel");
columnNames.Add("EduDegreeLabel");
columnNames.ForEach(x => columnNames.ForEach(x =>
{ {
var value = entity.GetPropertyValue(x); var value = entity.GetPropertyValue(x);
dicts.Add(x, value); dicts.Add(x, value);
}); });
ViewBag.BaseDic = dicts; ViewBag.BaseDic = dicts;
ViewBag.entity = entity;
#endregion #endregion
#region 家庭关系 #region 家庭关系
@ -247,7 +295,7 @@ END";
columnNames = formColumns.Where(x => x.GroupType == "Family").Select(x => x.ColumnName).ToList(); columnNames = formColumns.Where(x => x.GroupType == "Family").Select(x => x.ColumnName).ToList();
columnNames = columnNames.Distinct().ToList(); columnNames = columnNames.Distinct().ToList();
columnNames.Add("GenderLabel"); columnNames.Add("GenderLabel");
columnNames.Add("GenderLabel"); columnNames.Add("RelationTypeLabel");
var familys = await _ghrh_ResumeHomeServices.QueryDto(x => x.ResumeId != null && x.ResumeId == id); var familys = await _ghrh_ResumeHomeServices.QueryDto(x => x.ResumeId != null && x.ResumeId == id);
var familyDic = new List<Dictionary<string, object>>(); var familyDic = new List<Dictionary<string, object>>();
familys.ForEach(family => familys.ForEach(family =>
@ -258,103 +306,103 @@ END";
var value = family.GetPropertyValue(x); var value = family.GetPropertyValue(x);
dicts.Add(x, value); dicts.Add(x, value);
}); });
if (columnNames.Any(x => x == "AttachmentIDs"))
dicts["AttachmentIDs"] = family.AttachmentIDs;
familyDic.Add(dicts); familyDic.Add(dicts);
}); });
ViewBag.FamilyDic = familyDic; ViewBag.FamilyDic = familyDic;
#endregion #endregion
//#region 教育背景 #region 教育背景
//columnNames = formColumns.Where(x => x.GroupType == "Education").Select(x => x.ColumnName).ToList(); columnNames = formColumns.Where(x => x.GroupType == "Education").Select(x => x.ColumnName).ToList();
//columnNames = columnNames.Distinct().ToList(); columnNames = columnNames.Distinct().ToList();
//var educations = await _ghrh_ResumeEduBGServices.QueryDto(x => x.ResumeId != null && x.ResumeId == id); columnNames.Add("IsGraduateLabel");
//var educationDic = new List<Dictionary<string, object>>(); columnNames.Add("DegreeLevelLabel");
//educations.ForEach(education => columnNames.Add("BeginDate1");
//{ columnNames.Add("EndDate1");
// var dicts = new Dictionary<string, object>(); var educations = await _ghrh_ResumeEduBGServices.QueryDto(x => x.ResumeId != null && x.ResumeId == id);
// columnNames.ForEach(x => var educationDic = new List<Dictionary<string, object>>();
// { educations.ForEach(education =>
// var value = education.GetPropertyValue(x); {
// dicts.Add(x, value); var dicts = new Dictionary<string, object>();
// }); columnNames.ForEach(x =>
// if (columnNames.Any(x => x == "AttachmentIDs")) {
// dicts["AttachmentIDs"] = education.AttachmentIDs; var value = education.GetPropertyValue(x);
// educationDic.Add(dicts); dicts.Add(x, value);
//}); });
educationDic.Add(dicts);
//Data.Education = educationDic; });
//#endregion
ViewBag.EducationDic = educationDic;
//#region 工作经历 #endregion
//columnNames = formColumns.Where(x => x.GroupType == "WorkExp").Select(x => x.ColumnName).ToList();
//columnNames = columnNames.Distinct().ToList(); #region 工作经历
//var workExps = await _ghrh_ResumeWorkExpServices.QueryDto(x => x.ResumeId != null && x.ResumeId == id); columnNames = formColumns.Where(x => x.GroupType == "WorkExp").Select(x => x.ColumnName).ToList();
//var workExpDic = new List<Dictionary<string, object>>(); columnNames = columnNames.Distinct().ToList();
//workExps.ForEach(workExp => columnNames.Add("BeginDate1");
//{ columnNames.Add("EndDate1");
// var dicts = new Dictionary<string, object>(); var workExps = await _ghrh_ResumeWorkExpServices.QueryDto(x => x.ResumeId != null && x.ResumeId == id);
// columnNames.ForEach(x => var workExpDic = new List<Dictionary<string, object>>();
// { workExps.ForEach(workExp =>
// var value = workExp.GetPropertyValue(x); {
// dicts.Add(x, value); var dicts = new Dictionary<string, object>();
// }); columnNames.ForEach(x =>
// if (columnNames.Any(x => x == "AttachmentIDs")) {
// dicts["AttachmentIDs"] = workExp.AttachmentIDs; var value = workExp.GetPropertyValue(x);
// workExpDic.Add(dicts); dicts.Add(x, value);
//}); });
workExpDic.Add(dicts);
//Data.WorkExp = workExpDic; });
//#endregion
ViewBag.WorkExpDic = workExpDic;
//#region 证件 #endregion
//columnNames = formColumns.Where(x => x.GroupType == "Licence").Select(x => x.ColumnName).ToList();
//columnNames = columnNames.Distinct().ToList(); #region 证件
//var Licences = await _ghrh_ResumeLicenceServices.QueryDto(x => x.ResumeId != null && x.ResumeId == id); columnNames = formColumns.Where(x => x.GroupType == "Licence").Select(x => x.ColumnName).ToList();
//var licenceDic = new List<Dictionary<string, object>>(); columnNames = columnNames.Distinct().ToList();
//Licences.ForEach(licence => columnNames.Add("BeginDate1");
//{ columnNames.Add("EndDate1");
// var dicts = new Dictionary<string, object>(); var Licences = await _ghrh_ResumeLicenceServices.QueryDto(x => x.ResumeId != null && x.ResumeId == id);
// columnNames.ForEach(x => var licenceDic = new List<Dictionary<string, object>>();
// { Licences.ForEach(licence =>
// var value = licence.GetPropertyValue(x); {
// dicts.Add(x, value); var dicts = new Dictionary<string, object>();
// }); columnNames.ForEach(x =>
// if (columnNames.Any(x => x == "AttachmentIDs")) {
// dicts["AttachmentIDs"] = licence.AttachmentIDs; var value = licence.GetPropertyValue(x);
// licenceDic.Add(dicts); dicts.Add(x, value);
//}); });
licenceDic.Add(dicts);
//Data.Licence = licenceDic; });
//#endregion
ViewBag.LicenceDic = licenceDic;
//#region 简历培训记录 #endregion
//columnNames = formColumns.Where(x => x.GroupType == "Training").Select(x => x.ColumnName).ToList();
//columnNames = columnNames.Distinct().ToList(); #region 简历培训记录
//var Trainings = await _ghrh_ResumeTrainingServices.QueryDto(x => x.ResumeId != null && x.ResumeId == id); columnNames = formColumns.Where(x => x.GroupType == "Training").Select(x => x.ColumnName).ToList();
//var trainingDic = new List<Dictionary<string, object>>(); columnNames = columnNames.Distinct().ToList();
//Trainings.ForEach(training => columnNames.Add("BeginDate1");
//{ columnNames.Add("EndDate1");
// var dicts = new Dictionary<string, object>(); columnNames.Add("IsPassLabel");
// columnNames.ForEach(x => var Trainings = await _ghrh_ResumeTrainingServices.QueryDto(x => x.ResumeId != null && x.ResumeId == id);
// { var trainingDic = new List<Dictionary<string, object>>();
// var value = training.GetPropertyValue(x); Trainings.ForEach(training =>
// dicts.Add(x, value); {
// }); var dicts = new Dictionary<string, object>();
// if (columnNames.Any(x => x == "AttachmentIDs")) columnNames.ForEach(x =>
// dicts["AttachmentIDs"] = training.AttachmentIDs; {
// trainingDic.Add(dicts); var value = training.GetPropertyValue(x);
//}); dicts.Add(x, value);
});
//Data.Training = trainingDic; trainingDic.Add(dicts);
//#endregion });
//Data.Attachment = await Db.Queryable<Ghrs_Attachment>().Where(x => x.TableName == id.ObjToString()).ToListAsync(); ViewBag.TrainingDic = trainingDic;
//var statements = await _ghrh_ResumeStatementServices.QueryDto(x => x.ResumeId != null && x.ResumeId == id);//证件 #endregion
//Data.Statement = statements.ToDictionary(person => person.StatementCode, person => person.TrueOrFalse); var statements = await _ghrh_ResumeStatementServices.QueryDto(x => x.ResumeId != null && x.ResumeId == id);//证件
ViewBag.StatementDic = statements.ToDictionary(person => person.StatementCode, person => person.TrueOrFalse);
#endregion #endregion

@ -22472,6 +22472,11 @@
渠道 渠道
</summary> </summary>
</member> </member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeDto.EduDegreeLabel">
<summary>
学历
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeDto.TagList"> <member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeDto.TagList">
<summary> <summary>
标签 标签
@ -22682,6 +22687,16 @@
修改信息 修改信息
</summary> </summary>
</member> </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"> <member name="T:Tiobon.Core.Model.Models.Ghrh_ResumeStatementDto">
<summary> <summary>
简历声明(Dto.View1) 简历声明(Dto.View1)
@ -22742,6 +22757,21 @@
修改信息 修改信息
</summary> </summary>
</member> </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"> <member name="T:Tiobon.Core.Model.Models.Ghrh_ResumeWorkExpDto">
<summary> <summary>
工作经历(Dto.View1) 工作经历(Dto.View1)

@ -1,10 +1,16 @@
@using Tiobon.Core.Model.ViewModels.Extend @using Tiobon.Core.Model.ViewModels.Extend
@{ @{
ViewData["Title"] = "测试测试";
Layout = "~/Views/Shared/_Layout.cshtml"; Layout = "~/Views/Shared/_Layout.cshtml";
List<ResumeFormColumn> Columns = ViewBag.Columns; List<ResumeFormColumn> Columns = ViewBag.Columns;
Ghrh_ResumeDto entity = ViewBag.entity;
ViewData["Title"] = entity.StaffName;
Dictionary<string, object> BaseDic = ViewBag.BaseDic; Dictionary<string, object> BaseDic = ViewBag.BaseDic;
List<Dictionary<string, object>> FamilyDic = ViewBag.FamilyDic; 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"> <style type="text/css">
body { body {
@ -30,7 +36,7 @@
.pageContainer .a4page.displayMode { .pageContainer .a4page.displayMode {
margin: 20px auto; margin: 20px auto;
/* border: 1px #d3d3d3 solid; /* border: 1px #d3d3d3 solid;
box-shadow: 0 0 5px #0000001a; */ box-shadow: 0 0 5px #0000001a; */
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
} }
@ -126,12 +132,12 @@
{ {
<main class="ghr-preview-staff-base-info" id="info"> <main class="ghr-preview-staff-base-info" id="info">
<div class="staffPhoto"> <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>
<div class="staffBaseInfo"> <div class="staffBaseInfo">
<div class="staffName">zy001&nbsp;</div> <div class="staffName">@(entity.StaffName)&nbsp;</div>
<div class="staffEName">&nbsp;</div> <div class="staffEName">@(entity.ApplyStatusLabel)&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="staffHumanResourcesMsg">经验:@(entity.WorkYears)年工作经验&nbsp; <span><span>|</span><span>年龄:@(entity.Age)</span> &nbsp; </span><span><span>|</span><span>学历: @(entity.EduDegreeLabel)</span> &nbsp; </span></div>
</div> </div>
</main> </main>
} }
@ -143,7 +149,7 @@
if (item.children != null && item.children.Any()) if (item.children != null && item.children.Any())
foreach (var children in item.children) 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="label">@(children.label):</div>
<div class="itemValue"> <div class="itemValue">
@{ @{
@ -176,7 +182,7 @@
if (item.children != null && item.children.Any()) if (item.children != null && item.children.Any())
foreach (var children in item.children) 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="label">@(children.label):</div>
<div class="itemValue"> <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> </div>

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

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

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

@ -34,4 +34,14 @@ public class Ghrh_ResumeLicenceDto : Ghrh_ResumeLicence
/// </summary> /// </summary>
public string UpdateDataInfo { get; set; } public string UpdateDataInfo { get; set; }
public List<ResumeAttachment> AttachmentIDs { 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> /// </summary>
public string UpdateDataInfo { get; set; } public string UpdateDataInfo { get; set; }
public List<ResumeAttachment> AttachmentIDs { 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, display = true,
fnKey = "TBD14YN", fnKey = "TBD14YN",
fnTitle = "重新安排面试", fnTitle = "安排面试",
fnType = "row", fnType = "row",
icon = "ess-icon-reject", icon = "ess-icon-reject",
position = "left" 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 ids = data.Select(x => x.Id.ToString()).ToList();
var attachments = await Db.Queryable<Ghrs_Attachment>().Where(x => ids.Contains(x.TableName)).ToListAsync(); var attachments = await Db.Queryable<Ghrs_Attachment>().Where(x => ids.Contains(x.TableName)).ToListAsync();
data.ForEach(x => data.ForEach(async x =>
{ {
x.AttachmentIDs = attachments x.AttachmentIDs = attachments
.Where(o => o.TableName == x.Id.ToString()) .Where(o => o.TableName == x.Id.ToString())
@ -32,8 +32,13 @@ public class Ghrh_ResumeEduBGServices : BaseServices<Ghrh_ResumeEduBG, Ghrh_Resu
AttachmentName = o.AttachmentName, AttachmentName = o.AttachmentName,
RemarkSz = o.RemarkSz RemarkSz = o.RemarkSz
}).ToList(); }).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; return data;
} }
public override async Task<List<long>> Add(List<InsertGhrh_ResumeEduBGInput> listEntity) 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, AttachmentName = o.AttachmentName,
RemarkSz = o.RemarkSz RemarkSz = o.RemarkSz
}).ToList(); }).ToList();
x.BeginDate1 = DateTimeHelper.ConvertToDayString(x.BeginDate);
x.EndDate1 = DateTimeHelper.ConvertToDayString(x.EndDate);
}); });
return data; return data;

@ -88,6 +88,7 @@ public class Ghrh_ResumeServices : BaseServices<Ghrh_Resume, Ghrh_ResumeDto, Ins
x.RegisteredTypeLabel = await GetParaLabel("A08", x.RegisteredType); x.RegisteredTypeLabel = await GetParaLabel("A08", x.RegisteredType);
x.ApplyStatusLabel = await GetParaLabel("ResumeApplyStatus", x.ApplyStatus); x.ApplyStatusLabel = await GetParaLabel("ResumeApplyStatus", x.ApplyStatus);
x.ChannelLabel = await GetParaLabel("ResumeApplyStatus", x.Channel); x.ChannelLabel = await GetParaLabel("ResumeApplyStatus", x.Channel);
x.EduDegreeLabel = await GetParaLabel("EducationalBGLevel", x.EduDegree);
#region 计算年龄 #region 计算年龄
if (x.Birthday != null && x.Birthday > DateTime.MinValue) 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 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 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)); 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>(); var tagIds = new List<long>();
list.ForEach(x => list.ForEach(x =>
@ -1766,8 +1756,14 @@ END";
if (entity == null) if (entity == null)
return ServiceResult.OprateFailed("无效的简历ID!"); 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); 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.IsPass = input.IsPass;
order.InterviewResult = input.Content; order.InterviewResult = input.Content;
await _ghrh_InterviewOrderServices.Update(order, ["Status", "IsPass", "InterviewResult"]); await _ghrh_InterviewOrderServices.Update(order, ["Status", "IsPass", "InterviewResult"]);
@ -1776,10 +1772,10 @@ END";
record.InterviewResult = input.Content; record.InterviewResult = input.Content;
record.IsPass = input.IsPass; record.IsPass = input.IsPass;
record.AssessTime = DateTime.Now; record.AssessTime = DateTime.Now;
record.Status = DIC_INTERVIEW_ORDER_STATUS.InterviewFail; record.Status = Status;
await _ghrh_InterviewRecordServices.Update(record, ["AssessTime", "Status", "IsPass", "InterviewResult"]); 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}!"); await LogRecord(order.Id, $"填写了面试评估,轮数:{order.Round},是否通过:{(input.IsPass == true ? "" : "")},内容:{input.Content}!");
return ServiceResult.OprateSuccess(); return ServiceResult.OprateSuccess();
@ -2306,15 +2302,24 @@ WHERE A.IsEnable = 1 AND C.IsEnable = 1";
var entity = base.QueryById(id); var entity = base.QueryById(id);
var order = await _ghrh_InterviewOrderServices.QuerySingle(x => x.ResumeId == 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 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())
result.RequestId = order.RequestId; {
result.DeptName = request.BelongDeptName; var request = await _ghrh_HumanRequestServices.QueryById(order.RequestId);
result.TitleName = request.TitleName; result.RequestId = order.RequestId;
result.ResumeCount = request.ResumeCount; result.DeptName = request.BelongDeptName;
result.RecommendCount = request.RecommendCount; result.TitleName = request.TitleName;
result.InterviewCount = request.InterviewCount; result.ResumeCount = request.ResumeCount;
result.OfferCount = request.OfferCount; 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.Times = new List<string>();
result.Staffs = new(); result.Staffs = new();
if (records != null && records.Any()) if (records != null && records.Any())

@ -21,6 +21,10 @@ public class Ghrh_ResumeTrainingServices : BaseServices<Ghrh_ResumeTraining, Ghr
data.ForEach(x => 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 x.AttachmentIDs = attachments
.Where(o => o.TableName == x.Id.ToString()) .Where(o => o.TableName == x.Id.ToString())
.Select(o => new ResumeAttachment() .Select(o => new ResumeAttachment()

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

Loading…
Cancel
Save