diff --git a/Tiobon.Core.Api/Controllers/Ghra/Ghra_StaffEduBGController.cs b/Tiobon.Core.Api/Controllers/Ghra/Ghra_StaffEduBGController.cs new file mode 100644 index 00000000..c35014a3 --- /dev/null +++ b/Tiobon.Core.Api/Controllers/Ghra/Ghra_StaffEduBGController.cs @@ -0,0 +1,14 @@ +namespace Tiobon.Core.Api.Controllers; + +/// +/// Ghra_StaffEduBG(Controller) +/// +[Route("api/[controller]")] +[ApiController, GlobalActionFilter] +[Authorize(Permissions.Name), ApiExplorerSettings(GroupName = Grouping.GroupName_Ghra)] +public class Ghra_StaffEduBGController : BaseController +{ + public Ghra_StaffEduBGController(IGhra_StaffEduBGServices service) : base(service) + { + } +} \ No newline at end of file diff --git a/Tiobon.Core.Api/Tiobon.Core.Model.xml b/Tiobon.Core.Api/Tiobon.Core.Model.xml index 602bc30a..e44483b8 100644 --- a/Tiobon.Core.Api/Tiobon.Core.Model.xml +++ b/Tiobon.Core.Api/Tiobon.Core.Model.xml @@ -864,6 +864,96 @@ IsSalaryPay + + + Ghra_StaffEduBG (Dto.Base) + + + + + 教育背景ID + + + + + 员工ID + + + + + 开始日期 + + + + + 结束日期 + + + + + 学校名称 + + + + + 科系 + + + + + 学历 + + + + + 毕业否 + + + + + RemarkSz + + + + + SortNo + + + + + IsDefault + + + + + AttachmentIDs + + + + + Reverse1 + + + + + Reverse2 + + + + + Reverse3 + + + + + Reverse4 + + + + + Reverse5 + + Ghra_StaffLicence (Dto.Base) @@ -7845,6 +7935,11 @@ 特殊饮食 + + + 员工ID + + 教育背景 (Dto.Base) @@ -11047,6 +11142,11 @@ Ghra_Staff (Dto.EditInput) + + + Ghra_StaffEduBG (Dto.EditInput) + + Ghra_StaffLicence (Dto.EditInput) @@ -11447,6 +11547,11 @@ Ghra_Staff (Dto.InsertInput) + + + Ghra_StaffEduBG (Dto.InsertInput) + + Ghra_StaffLicence (Dto.InsertInput) @@ -12868,6 +12973,96 @@ IsSalaryPay + + + Ghra_StaffEduBG (Model) + + + + + 教育背景ID + + + + + 员工ID + + + + + 开始日期 + + + + + 结束日期 + + + + + 学校名称 + + + + + 科系 + + + + + 学历 + + + + + 毕业否 + + + + + RemarkSz + + + + + SortNo + + + + + IsDefault + + + + + AttachmentIDs + + + + + Reverse1 + + + + + Reverse2 + + + + + Reverse3 + + + + + Reverse4 + + + + + Reverse5 + + Ghra_StaffLicence (Model) @@ -19986,6 +20181,11 @@ 特殊饮食 + + + 员工ID + + 教育背景 (Model) @@ -23882,6 +24082,21 @@ 修改信息 + + + Ghra_StaffEduBG(Dto.View1) + + + + + 创建信息 + + + + + 修改信息 + + Ghra_StaffLicence(Dto.View) diff --git a/Tiobon.Core.Api/Tiobon.Core.xml b/Tiobon.Core.Api/Tiobon.Core.xml index 2d1fac9a..6c403e76 100644 --- a/Tiobon.Core.Api/Tiobon.Core.xml +++ b/Tiobon.Core.Api/Tiobon.Core.xml @@ -696,6 +696,11 @@ + + + Ghra_StaffEduBG(Controller) + + Ghra_StaffLicence(Controller) diff --git a/Tiobon.Core.IServices/Ghra/IGhra_StaffEduBGServices.cs b/Tiobon.Core.IServices/Ghra/IGhra_StaffEduBGServices.cs new file mode 100644 index 00000000..434db318 --- /dev/null +++ b/Tiobon.Core.IServices/Ghra/IGhra_StaffEduBGServices.cs @@ -0,0 +1,11 @@ +using Tiobon.Core.IServices.BASE; +using Tiobon.Core.Model.Models; + +namespace Tiobon.Core.IServices; + +/// +/// Ghra_StaffEduBG(自定义服务接口) +/// + public interface IGhra_StaffEduBGServices :IBaseServices +{ + } \ No newline at end of file diff --git a/Tiobon.Core.Model/Base/BasePoco.cs b/Tiobon.Core.Model/Base/BasePoco.cs index ec5f4143..09a2f7a6 100644 --- a/Tiobon.Core.Model/Base/BasePoco.cs +++ b/Tiobon.Core.Model/Base/BasePoco.cs @@ -1,6 +1,4 @@ -using System.ComponentModel.DataAnnotations; -using SqlSugar; -using Tiobon.Core.Model.Models.RootTkey.Interface; +using Tiobon.Core.Model.Models.RootTkey.Interface; namespace Tiobon.Core.Model; diff --git a/Tiobon.Core.Model/Base/Ghra/Ghra_StaffEduBG.Dto.Base.cs b/Tiobon.Core.Model/Base/Ghra/Ghra_StaffEduBG.Dto.Base.cs new file mode 100644 index 00000000..71a3cb00 --- /dev/null +++ b/Tiobon.Core.Model/Base/Ghra/Ghra_StaffEduBG.Dto.Base.cs @@ -0,0 +1,122 @@ +/* 代码由框架生成,任何更改都可能导致被代码生成器覆盖,可自行修改。 +* Ghra_StaffEduBG.cs +* +*功 能: N / A +* 类 名: Ghra_StaffEduBG +* +* Ver 变更日期 负责人 变更内容 +* ─────────────────────────────────── +*V0.01 2024/12/6 13:45:45 SimonHsiao 初版 +* +* Copyright(c) 2024 Tiobon Corporation. All Rights Reserved. +*┌──────────────────────────────────┐ +*│ 此技术信息为本公司机密信息,未经本公司书面同意禁止向第三方披露. │ +*│ 作者:SimonHsiao │ +*└──────────────────────────────────┘ +*/ +namespace Tiobon.Core.Model.Models; + + +/// +/// Ghra_StaffEduBG (Dto.Base) +/// +public class Ghra_StaffEduBGBase +{ + + /// + /// 教育背景ID + /// + public int? StaffEduBGID { get; set; } + + /// + /// 员工ID + /// + public int? StaffID { get; set; } + + /// + /// 开始日期 + /// + [Display(Name = "BeginDate"), Description("开始日期"), MaxLength(100, ErrorMessage = "开始日期 不能超过 100 个字符")] + public string BeginDate { get; set; } + + /// + /// 结束日期 + /// + [Display(Name = "EndDate"), Description("结束日期"), MaxLength(100, ErrorMessage = "结束日期 不能超过 100 个字符")] + public string EndDate { get; set; } + + /// + /// 学校名称 + /// + [Display(Name = "SchoolName"), Description("学校名称"), MaxLength(1000, ErrorMessage = "学校名称 不能超过 1000 个字符")] + public string SchoolName { get; set; } + + /// + /// 科系 + /// + [Display(Name = "DeptName"), Description("科系"), MaxLength(1000, ErrorMessage = "科系 不能超过 1000 个字符")] + public string DeptName { get; set; } + + /// + /// 学历 + /// + [Display(Name = "DegreeLevel"), Description("学历"), MaxLength(100, ErrorMessage = "学历 不能超过 100 个字符")] + public string DegreeLevel { get; set; } + + /// + /// 毕业否 + /// + public int? IsGraduate { get; set; } + + /// + /// RemarkSz + /// + [Display(Name = "RemarkSz"), Description("RemarkSz"), MaxLength(2000, ErrorMessage = "RemarkSz 不能超过 2000 个字符")] + public string RemarkSz { get; set; } + + /// + /// SortNo + /// + public int? SortNo { get; set; } + + /// + /// IsDefault + /// + public int? IsDefault { get; set; } + + /// + /// AttachmentIDs + /// + [Display(Name = "AttachmentIDs"), Description("AttachmentIDs"), MaxLength(-1, ErrorMessage = "AttachmentIDs 不能超过 -1 个字符")] + public string AttachmentIDs { get; set; } + + /// + /// Reverse1 + /// + [Display(Name = "Reverse1"), Description("Reverse1"), MaxLength(1000, ErrorMessage = "Reverse1 不能超过 1000 个字符")] + public string Reverse1 { get; set; } + + /// + /// Reverse2 + /// + [Display(Name = "Reverse2"), Description("Reverse2"), MaxLength(1000, ErrorMessage = "Reverse2 不能超过 1000 个字符")] + public string Reverse2 { get; set; } + + /// + /// Reverse3 + /// + [Display(Name = "Reverse3"), Description("Reverse3"), MaxLength(1000, ErrorMessage = "Reverse3 不能超过 1000 个字符")] + public string Reverse3 { get; set; } + + /// + /// Reverse4 + /// + [Display(Name = "Reverse4"), Description("Reverse4"), MaxLength(1000, ErrorMessage = "Reverse4 不能超过 1000 个字符")] + public string Reverse4 { get; set; } + + /// + /// Reverse5 + /// + [Display(Name = "Reverse5"), Description("Reverse5"), MaxLength(1000, ErrorMessage = "Reverse5 不能超过 1000 个字符")] + public string Reverse5 { get; set; } +} diff --git a/Tiobon.Core.Model/Base/Ghrh/Ghrh_Resume.Dto.Base.cs b/Tiobon.Core.Model/Base/Ghrh/Ghrh_Resume.Dto.Base.cs index ac26c20b..c33536f7 100644 --- a/Tiobon.Core.Model/Base/Ghrh/Ghrh_Resume.Dto.Base.cs +++ b/Tiobon.Core.Model/Base/Ghrh/Ghrh_Resume.Dto.Base.cs @@ -6,7 +6,7 @@ * * Ver 变更日期 负责人 变更内容 * ─────────────────────────────────── -*V0.01 2024/12/6 12:45:01 SimonHsiao 初版 +*V0.01 2024/12/6 13:49:56 SimonHsiao 初版 * * Copyright(c) 2024 Tiobon Corporation. All Rights Reserved. *┌──────────────────────────────────┐ @@ -461,4 +461,9 @@ public class Ghrh_ResumeBase /// [Display(Name = "SpecialDiet"), Description("特殊饮食"), MaxLength(256, ErrorMessage = "特殊饮食 不能超过 256 个字符")] public string SpecialDiet { get; set; } + + /// + /// 员工ID + /// + public int? StaffId { get; set; } } diff --git a/Tiobon.Core.Model/Edit/Ghra/Ghra_StaffEduBG.Dto.EditInput.cs b/Tiobon.Core.Model/Edit/Ghra/Ghra_StaffEduBG.Dto.EditInput.cs new file mode 100644 index 00000000..e5b02369 --- /dev/null +++ b/Tiobon.Core.Model/Edit/Ghra/Ghra_StaffEduBG.Dto.EditInput.cs @@ -0,0 +1,26 @@ +/* 代码由框架生成,任何更改都可能导致被代码生成器覆盖,可自行修改。 +* Ghra_StaffEduBG.cs +* +*功 能: N / A +* 类 名: Ghra_StaffEduBG +* +* Ver 变更日期 负责人 变更内容 +* ─────────────────────────────────── +*V0.01 2024/12/6 13:45:45 SimonHsiao 初版 +* +* Copyright(c) 2024 Tiobon Corporation. All Rights Reserved. +*┌──────────────────────────────────┐ +*│ 此技术信息为本公司机密信息,未经本公司书面同意禁止向第三方披露. │ +*│ 作者:SimonHsiao │ +*└──────────────────────────────────┘ +*/ + +namespace Tiobon.Core.Model.Models; + + +/// +/// Ghra_StaffEduBG (Dto.EditInput) +/// +public class EditGhra_StaffEduBGInput : Ghra_StaffEduBGBase +{ +} diff --git a/Tiobon.Core.Model/Insert/Ghra/Ghra_StaffEduBG.Dto.InsertInput.cs b/Tiobon.Core.Model/Insert/Ghra/Ghra_StaffEduBG.Dto.InsertInput.cs new file mode 100644 index 00000000..24de6abd --- /dev/null +++ b/Tiobon.Core.Model/Insert/Ghra/Ghra_StaffEduBG.Dto.InsertInput.cs @@ -0,0 +1,26 @@ +/* 代码由框架生成,任何更改都可能导致被代码生成器覆盖,可自行修改。 +* Ghra_StaffEduBG.cs +* +*功 能: N / A +* 类 名: Ghra_StaffEduBG +* +* Ver 变更日期 负责人 变更内容 +* ─────────────────────────────────── +*V0.01 2024/12/6 13:45:45 SimonHsiao 初版 +* +* Copyright(c) 2024 Tiobon Corporation. All Rights Reserved. +*┌──────────────────────────────────┐ +*│ 此技术信息为本公司机密信息,未经本公司书面同意禁止向第三方披露. │ +*│ 作者:SimonHsiao │ +*└──────────────────────────────────┘ +*/ + +namespace Tiobon.Core.Model.Models; + + +/// +/// Ghra_StaffEduBG (Dto.InsertInput) +/// +public class InsertGhra_StaffEduBGInput : Ghra_StaffEduBGBase +{ +} diff --git a/Tiobon.Core.Model/Models/Ghra/Ghra_StaffEduBG.cs b/Tiobon.Core.Model/Models/Ghra/Ghra_StaffEduBG.cs new file mode 100644 index 00000000..1002605e --- /dev/null +++ b/Tiobon.Core.Model/Models/Ghra/Ghra_StaffEduBG.cs @@ -0,0 +1,124 @@ +/* 代码由框架生成,任何更改都可能导致被代码生成器覆盖,可自行修改。 +* Ghra_StaffEduBG.cs +* +*功 能: N / A +* 类 名: Ghra_StaffEduBG +* +* Ver 变更日期 负责人 变更内容 +* ─────────────────────────────────── +*V0.01 2024/12/6 13:45:45 SimonHsiao 初版 +* +* Copyright(c) 2024 Tiobon Corporation. All Rights Reserved. +*┌──────────────────────────────────┐ +*│ 此技术信息为本公司机密信息,未经本公司书面同意禁止向第三方披露. │ +*│ 作者:SimonHsiao │ +*└──────────────────────────────────┘ +*/ +namespace Tiobon.Core.Model.Models; + + +/// +/// Ghra_StaffEduBG (Model) +/// +[SugarTable("Ghra_StaffEduBG", "Ghra_StaffEduBG"), Entity(TableCnName = "Ghra_StaffEduBG", TableName = "Ghra_StaffEduBG")] +public class Ghra_StaffEduBG : BasePoco1 +{ + + /// + /// 教育背景ID + /// + [SugarColumn(IsNullable = false, IsPrimaryKey = true, IsIdentity = true), Display(Name = "表主键")] + public int? StaffEduBGID { get; set; } + + /// + /// 员工ID + /// + public int? StaffID { get; set; } + + /// + /// 开始日期 + /// + [Display(Name = "BeginDate"), Description("开始日期"), MaxLength(100, ErrorMessage = "开始日期 不能超过 100 个字符")] + public string BeginDate { get; set; } + + /// + /// 结束日期 + /// + [Display(Name = "EndDate"), Description("结束日期"), MaxLength(100, ErrorMessage = "结束日期 不能超过 100 个字符")] + public string EndDate { get; set; } + + /// + /// 学校名称 + /// + [Display(Name = "SchoolName"), Description("学校名称"), MaxLength(1000, ErrorMessage = "学校名称 不能超过 1000 个字符")] + public string SchoolName { get; set; } + + /// + /// 科系 + /// + [Display(Name = "DeptName"), Description("科系"), MaxLength(1000, ErrorMessage = "科系 不能超过 1000 个字符")] + public string DeptName { get; set; } + + /// + /// 学历 + /// + [Display(Name = "DegreeLevel"), Description("学历"), MaxLength(100, ErrorMessage = "学历 不能超过 100 个字符")] + public string DegreeLevel { get; set; } + + /// + /// 毕业否 + /// + public int? IsGraduate { get; set; } + + /// + /// RemarkSz + /// + [Display(Name = "RemarkSz"), Description("RemarkSz"), MaxLength(2000, ErrorMessage = "RemarkSz 不能超过 2000 个字符")] + public string RemarkSz { get; set; } + + /// + /// SortNo + /// + public int? SortNo { get; set; } + + /// + /// IsDefault + /// + public int? IsDefault { get; set; } + + /// + /// AttachmentIDs + /// + [Display(Name = "AttachmentIDs"), Description("AttachmentIDs"), MaxLength(-1, ErrorMessage = "AttachmentIDs 不能超过 -1 个字符")] + public string AttachmentIDs { get; set; } + + /// + /// Reverse1 + /// + [Display(Name = "Reverse1"), Description("Reverse1"), MaxLength(1000, ErrorMessage = "Reverse1 不能超过 1000 个字符")] + public string Reverse1 { get; set; } + + /// + /// Reverse2 + /// + [Display(Name = "Reverse2"), Description("Reverse2"), MaxLength(1000, ErrorMessage = "Reverse2 不能超过 1000 个字符")] + public string Reverse2 { get; set; } + + /// + /// Reverse3 + /// + [Display(Name = "Reverse3"), Description("Reverse3"), MaxLength(1000, ErrorMessage = "Reverse3 不能超过 1000 个字符")] + public string Reverse3 { get; set; } + + /// + /// Reverse4 + /// + [Display(Name = "Reverse4"), Description("Reverse4"), MaxLength(1000, ErrorMessage = "Reverse4 不能超过 1000 个字符")] + public string Reverse4 { get; set; } + + /// + /// Reverse5 + /// + [Display(Name = "Reverse5"), Description("Reverse5"), MaxLength(1000, ErrorMessage = "Reverse5 不能超过 1000 个字符")] + public string Reverse5 { get; set; } +} diff --git a/Tiobon.Core.Model/Models/Ghrh/Ghrh_Resume.cs b/Tiobon.Core.Model/Models/Ghrh/Ghrh_Resume.cs index 98c8ab5a..4142eaa6 100644 --- a/Tiobon.Core.Model/Models/Ghrh/Ghrh_Resume.cs +++ b/Tiobon.Core.Model/Models/Ghrh/Ghrh_Resume.cs @@ -6,7 +6,7 @@ * * Ver 变更日期 负责人 变更内容 * ─────────────────────────────────── -*V0.01 2024/12/6 12:45:01 SimonHsiao 初版 +*V0.01 2024/12/6 13:49:56 SimonHsiao 初版 * * Copyright(c) 2024 Tiobon Corporation. All Rights Reserved. *┌──────────────────────────────────┐ @@ -462,4 +462,9 @@ public class Ghrh_Resume : BasePoco /// [Display(Name = "SpecialDiet"), Description("特殊饮食"), MaxLength(256, ErrorMessage = "特殊饮食 不能超过 256 个字符")] public string SpecialDiet { get; set; } + + /// + /// 员工ID + /// + public int? StaffId { get; set; } } diff --git a/Tiobon.Core.Model/Models/Ghrs/Ghrs_Attachment.cs b/Tiobon.Core.Model/Models/Ghrs/Ghrs_Attachment.cs index 328ecc76..9807cb77 100644 --- a/Tiobon.Core.Model/Models/Ghrs/Ghrs_Attachment.cs +++ b/Tiobon.Core.Model/Models/Ghrs/Ghrs_Attachment.cs @@ -27,6 +27,7 @@ public class Ghrs_Attachment : BasePoco1 /// /// Ghr附件记录ID /// + [SugarColumn(IsNullable = false, IsPrimaryKey = true, IsIdentity = true), Display(Name = "表主键")] public int? AttachmentID { get; set; } /// diff --git a/Tiobon.Core.Model/View/Ghra/Ghra_StaffEduBG.Dto.View.cs b/Tiobon.Core.Model/View/Ghra/Ghra_StaffEduBG.Dto.View.cs new file mode 100644 index 00000000..d7812d02 --- /dev/null +++ b/Tiobon.Core.Model/View/Ghra/Ghra_StaffEduBG.Dto.View.cs @@ -0,0 +1,34 @@ +/* 代码由框架生成,任何更改都可能导致被代码生成器覆盖,可自行修改。 +* Ghra_StaffEduBG.cs +* +*功 能: N / A +* 类 名: Ghra_StaffEduBG +* +* Ver 变更日期 负责人 变更内容 +* ─────────────────────────────────── +*V0.01 2024/12/6 13:45:45 SimonHsiao 初版 +* +* Copyright(c) 2024 Tiobon Corporation. All Rights Reserved. +*┌──────────────────────────────────┐ +*│ 此技术信息为本公司机密信息,未经本公司书面同意禁止向第三方披露. │ +*│ 作者:SimonHsiao │ +*└──────────────────────────────────┘ +*/ + +namespace Tiobon.Core.Model.Models; + +/// +/// Ghra_StaffEduBG(Dto.View1) +/// +public class Ghra_StaffEduBGDto : Ghra_StaffEduBG +{ + /// + /// 创建信息 + /// + public string CreateDataInfo { get; set; } + + /// + /// 修改信息 + /// + public string UpdateDataInfo { get; set; } +} diff --git a/Tiobon.Core.Model/ViewModels/Extend/ResumeViewTab.cs b/Tiobon.Core.Model/ViewModels/Extend/ResumeViewTab.cs index 2f87d42f..12d6afbe 100644 --- a/Tiobon.Core.Model/ViewModels/Extend/ResumeViewTab.cs +++ b/Tiobon.Core.Model/ViewModels/Extend/ResumeViewTab.cs @@ -300,6 +300,13 @@ public class ResumeAttachment { public long? AttachmentID { get; set; } public string AttachFileExtension { get; set; } + + public string AttachmentNo { get; set; } + + public string AttachmentType { get; set; } + + public string AttachmentEname { get; set; } + public string AttachFileName { get; set; } public long? AttachFileSize { get; set; } public string RelativePath { get; set; } public string AttachmentName { get; set; } diff --git a/Tiobon.Core.Services/Ghra/Ghra_StaffEduBGServices.cs b/Tiobon.Core.Services/Ghra/Ghra_StaffEduBGServices.cs new file mode 100644 index 00000000..59f1ee88 --- /dev/null +++ b/Tiobon.Core.Services/Ghra/Ghra_StaffEduBGServices.cs @@ -0,0 +1,15 @@ +namespace Tiobon.Core.Services; + +/// +/// Ghra_StaffEduBG (服务) +/// +public class Ghra_StaffEduBGServices : BaseServices, IGhra_StaffEduBGServices +{ + private readonly IBaseRepository _dal; + public Ghra_StaffEduBGServices(ICaching caching, IBaseRepository dal) + { + this._dal = dal; + base.BaseDal = dal; + base._caching = caching; + } +} \ No newline at end of file diff --git a/Tiobon.Core.Services/Ghrh/Ghrh_ResumeServices.cs b/Tiobon.Core.Services/Ghrh/Ghrh_ResumeServices.cs index 2940740b..269f57f4 100644 --- a/Tiobon.Core.Services/Ghrh/Ghrh_ResumeServices.cs +++ b/Tiobon.Core.Services/Ghrh/Ghrh_ResumeServices.cs @@ -3064,31 +3064,7 @@ WHERE A.IsEnable = 1 AND C.IsEnable = 1 AND C.Status = A.Status"; staff.IsEnable = 1; #endregion - #region 家庭关系 - var familys = await _ghrh_ResumeHomeServices.QueryDto(x => x.ResumeId != null && x.ResumeId == id); - - #endregion - - #region 教育背景 - var educations = await _ghrh_ResumeEduBGServices.QueryDto(x => x.ResumeId != null && x.ResumeId == id); - - #endregion - - #region 工作经历 - var workExps = await _ghrh_ResumeWorkExpServices.QueryDto(x => x.ResumeId != null && x.ResumeId == id); - - #endregion - - #region 证件 - var Licences = await _ghrh_ResumeLicenceServices.QueryDto(x => x.ResumeId != null && x.ResumeId == id); - - #endregion - #region 简历培训记录 - var Trainings = await _ghrh_ResumeTrainingServices.QueryDto(x => x.ResumeId != null && x.ResumeId == id); - - - #endregion var applyOrder = await Db.Queryable().Where(x => x.ResumeId == id).FirstAsync(); if (applyOrder != null) @@ -3103,7 +3079,91 @@ WHERE A.IsEnable = 1 AND C.IsEnable = 1 AND C.Status = A.Status"; if (staffId > 0) { entity.IsSyncToStaff = true; - await Update(entity, ["IsSyncToStaff"]); + entity.StaffId = staffId; + await Update(entity, ["IsSyncToStaff", "StaffId"]); + + #region 家庭关系 + var familys = await _ghrh_ResumeHomeServices.QueryDto(x => x.ResumeId != null && x.ResumeId == id); + for (int i = 0; i < familys.Count; i++) + { + var family = familys[i]; + var staffEduBG = new Ghra_StaffEduBG() + { + StaffID = staffId, + BeginDate = education.BeginDate.ObjToString(), + EndDate = education.EndDate.ObjToString(), + SchoolName = education.SchoolName, + DeptName = education.DeptName, + DegreeLevel = education.DegreeLevel, + IsGraduate = education.IsGraduate == true ? 1 : 0, + RemarkSz = education.RemarkSz + }; + var staffEduBGId = await Db.Insertable(staffEduBG).ExecuteReturnIdentityAsync(); + var attachments = await Db.Queryable().Where(x => x.TableName == education.Id.ObjToString()).ToListAsync(); + + if (attachments.Any()) + { + attachments.ForEach(x => + { + x.CreateTime = DateTime.Now; + x.TableName = "Ghra_StaffEduBG"; + x.StaffID = staffId; + x.TableKeyID = staffEduBGId; + }); + await Db.Insertable(attachments).ExecuteReturnIdentityAsync(); + } + } + #endregion + + #region 教育背景 + var educations = await _ghrh_ResumeEduBGServices.QueryDto(x => x.ResumeId != null && x.ResumeId == id); + + for (int i = 0; i < educations.Count; i++) + { + var education = educations[i]; + var staffEduBG = new Ghra_StaffEduBG() + { + StaffID = staffId, + BeginDate = education.BeginDate.ObjToString(), + EndDate = education.EndDate.ObjToString(), + SchoolName = education.SchoolName, + DeptName = education.DeptName, + DegreeLevel = education.DegreeLevel, + IsGraduate = education.IsGraduate == true ? 1 : 0, + RemarkSz = education.RemarkSz + }; + var staffEduBGId = await Db.Insertable(staffEduBG).ExecuteReturnIdentityAsync(); + var attachments = await Db.Queryable().Where(x => x.TableName == education.Id.ObjToString()).ToListAsync(); + + if (attachments.Any()) + { + attachments.ForEach(x => + { + x.CreateTime = DateTime.Now; + x.TableName = "Ghra_StaffEduBG"; + x.StaffID = staffId; + x.TableKeyID = staffEduBGId; + }); + await Db.Insertable(attachments).ExecuteReturnIdentityAsync(); + } + } + #endregion + + #region 工作经历 + var workExps = await _ghrh_ResumeWorkExpServices.QueryDto(x => x.ResumeId != null && x.ResumeId == id); + + #endregion + + #region 证件 + var Licences = await _ghrh_ResumeLicenceServices.QueryDto(x => x.ResumeId != null && x.ResumeId == id); + + #endregion + + #region 简历培训记录 + var Trainings = await _ghrh_ResumeTrainingServices.QueryDto(x => x.ResumeId != null && x.ResumeId == id); + + + #endregion } return true;