已报到简历数据转换至人事资料

master
xiaochanghai 7 months ago
parent 79807d6092
commit 5f322d82bd
  1. 14
      Tiobon.Core.Api/Controllers/Ghra/Ghra_StaffEduBGController.cs
  2. 215
      Tiobon.Core.Api/Tiobon.Core.Model.xml
  3. 5
      Tiobon.Core.Api/Tiobon.Core.xml
  4. 11
      Tiobon.Core.IServices/Ghra/IGhra_StaffEduBGServices.cs
  5. 4
      Tiobon.Core.Model/Base/BasePoco.cs
  6. 122
      Tiobon.Core.Model/Base/Ghra/Ghra_StaffEduBG.Dto.Base.cs
  7. 7
      Tiobon.Core.Model/Base/Ghrh/Ghrh_Resume.Dto.Base.cs
  8. 26
      Tiobon.Core.Model/Edit/Ghra/Ghra_StaffEduBG.Dto.EditInput.cs
  9. 26
      Tiobon.Core.Model/Insert/Ghra/Ghra_StaffEduBG.Dto.InsertInput.cs
  10. 124
      Tiobon.Core.Model/Models/Ghra/Ghra_StaffEduBG.cs
  11. 7
      Tiobon.Core.Model/Models/Ghrh/Ghrh_Resume.cs
  12. 1
      Tiobon.Core.Model/Models/Ghrs/Ghrs_Attachment.cs
  13. 34
      Tiobon.Core.Model/View/Ghra/Ghra_StaffEduBG.Dto.View.cs
  14. 7
      Tiobon.Core.Model/ViewModels/Extend/ResumeViewTab.cs
  15. 15
      Tiobon.Core.Services/Ghra/Ghra_StaffEduBGServices.cs
  16. 110
      Tiobon.Core.Services/Ghrh/Ghrh_ResumeServices.cs

@ -0,0 +1,14 @@
namespace Tiobon.Core.Api.Controllers;
/// <summary>
/// Ghra_StaffEduBG(Controller)
/// </summary>
[Route("api/[controller]")]
[ApiController, GlobalActionFilter]
[Authorize(Permissions.Name), ApiExplorerSettings(GroupName = Grouping.GroupName_Ghra)]
public class Ghra_StaffEduBGController : BaseController<IGhra_StaffEduBGServices, Ghra_StaffEduBG, Ghra_StaffEduBGDto, InsertGhra_StaffEduBGInput, EditGhra_StaffEduBGInput>
{
public Ghra_StaffEduBGController(IGhra_StaffEduBGServices service) : base(service)
{
}
}

@ -864,6 +864,96 @@
IsSalaryPay
</summary>
</member>
<member name="T:Tiobon.Core.Model.Models.Ghra_StaffEduBGBase">
<summary>
Ghra_StaffEduBG (Dto.Base)
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghra_StaffEduBGBase.StaffEduBGID">
<summary>
教育背景ID
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghra_StaffEduBGBase.StaffID">
<summary>
员工ID
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghra_StaffEduBGBase.BeginDate">
<summary>
开始日期
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghra_StaffEduBGBase.EndDate">
<summary>
结束日期
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghra_StaffEduBGBase.SchoolName">
<summary>
学校名称
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghra_StaffEduBGBase.DeptName">
<summary>
科系
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghra_StaffEduBGBase.DegreeLevel">
<summary>
学历
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghra_StaffEduBGBase.IsGraduate">
<summary>
毕业否
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghra_StaffEduBGBase.RemarkSz">
<summary>
RemarkSz
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghra_StaffEduBGBase.SortNo">
<summary>
SortNo
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghra_StaffEduBGBase.IsDefault">
<summary>
IsDefault
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghra_StaffEduBGBase.AttachmentIDs">
<summary>
AttachmentIDs
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghra_StaffEduBGBase.Reverse1">
<summary>
Reverse1
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghra_StaffEduBGBase.Reverse2">
<summary>
Reverse2
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghra_StaffEduBGBase.Reverse3">
<summary>
Reverse3
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghra_StaffEduBGBase.Reverse4">
<summary>
Reverse4
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghra_StaffEduBGBase.Reverse5">
<summary>
Reverse5
</summary>
</member>
<member name="T:Tiobon.Core.Model.Models.Ghra_StaffLicenceBase">
<summary>
Ghra_StaffLicence (Dto.Base)
@ -7845,6 +7935,11 @@
特殊饮食
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeBase.StaffId">
<summary>
员工ID
</summary>
</member>
<member name="T:Tiobon.Core.Model.Models.Ghrh_ResumeEduBGBase">
<summary>
教育背景 (Dto.Base)
@ -11047,6 +11142,11 @@
Ghra_Staff (Dto.EditInput)
</summary>
</member>
<member name="T:Tiobon.Core.Model.Models.EditGhra_StaffEduBGInput">
<summary>
Ghra_StaffEduBG (Dto.EditInput)
</summary>
</member>
<member name="T:Tiobon.Core.Model.Models.EditGhra_StaffLicenceInput">
<summary>
Ghra_StaffLicence (Dto.EditInput)
@ -11447,6 +11547,11 @@
Ghra_Staff (Dto.InsertInput)
</summary>
</member>
<member name="T:Tiobon.Core.Model.Models.InsertGhra_StaffEduBGInput">
<summary>
Ghra_StaffEduBG (Dto.InsertInput)
</summary>
</member>
<member name="T:Tiobon.Core.Model.Models.InsertGhra_StaffLicenceInput">
<summary>
Ghra_StaffLicence (Dto.InsertInput)
@ -12868,6 +12973,96 @@
IsSalaryPay
</summary>
</member>
<member name="T:Tiobon.Core.Model.Models.Ghra_StaffEduBG">
<summary>
Ghra_StaffEduBG (Model)
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghra_StaffEduBG.StaffEduBGID">
<summary>
教育背景ID
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghra_StaffEduBG.StaffID">
<summary>
员工ID
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghra_StaffEduBG.BeginDate">
<summary>
开始日期
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghra_StaffEduBG.EndDate">
<summary>
结束日期
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghra_StaffEduBG.SchoolName">
<summary>
学校名称
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghra_StaffEduBG.DeptName">
<summary>
科系
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghra_StaffEduBG.DegreeLevel">
<summary>
学历
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghra_StaffEduBG.IsGraduate">
<summary>
毕业否
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghra_StaffEduBG.RemarkSz">
<summary>
RemarkSz
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghra_StaffEduBG.SortNo">
<summary>
SortNo
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghra_StaffEduBG.IsDefault">
<summary>
IsDefault
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghra_StaffEduBG.AttachmentIDs">
<summary>
AttachmentIDs
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghra_StaffEduBG.Reverse1">
<summary>
Reverse1
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghra_StaffEduBG.Reverse2">
<summary>
Reverse2
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghra_StaffEduBG.Reverse3">
<summary>
Reverse3
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghra_StaffEduBG.Reverse4">
<summary>
Reverse4
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghra_StaffEduBG.Reverse5">
<summary>
Reverse5
</summary>
</member>
<member name="T:Tiobon.Core.Model.Models.Ghra_StaffLicence">
<summary>
Ghra_StaffLicence (Model)
@ -19986,6 +20181,11 @@
特殊饮食
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_Resume.StaffId">
<summary>
员工ID
</summary>
</member>
<member name="T:Tiobon.Core.Model.Models.Ghrh_ResumeEduBG">
<summary>
教育背景 (Model)
@ -23882,6 +24082,21 @@
修改信息
</summary>
</member>
<member name="T:Tiobon.Core.Model.Models.Ghra_StaffEduBGDto">
<summary>
Ghra_StaffEduBG(Dto.View1)
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghra_StaffEduBGDto.CreateDataInfo">
<summary>
创建信息
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghra_StaffEduBGDto.UpdateDataInfo">
<summary>
修改信息
</summary>
</member>
<member name="T:Tiobon.Core.Model.Models.Ghra_StaffLicenceDto">
<summary>
Ghra_StaffLicence(Dto.View)

@ -696,6 +696,11 @@
<param name="Id"></param>
<returns></returns>
</member>
<member name="T:Tiobon.Core.Api.Controllers.Ghra_StaffEduBGController">
<summary>
Ghra_StaffEduBG(Controller)
</summary>
</member>
<member name="T:Tiobon.Core.Api.Controllers.Ghra_StaffLicenceController">
<summary>
Ghra_StaffLicence(Controller)

@ -0,0 +1,11 @@
using Tiobon.Core.IServices.BASE;
using Tiobon.Core.Model.Models;
namespace Tiobon.Core.IServices;
/// <summary>
/// Ghra_StaffEduBG(自定义服务接口)
/// </summary>
public interface IGhra_StaffEduBGServices :IBaseServices<Ghra_StaffEduBG, Ghra_StaffEduBGDto, InsertGhra_StaffEduBGInput, EditGhra_StaffEduBGInput>
{
}

@ -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;

@ -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;
/// <summary>
/// Ghra_StaffEduBG (Dto.Base)
/// </summary>
public class Ghra_StaffEduBGBase
{
/// <summary>
/// 教育背景ID
/// </summary>
public int? StaffEduBGID { get; set; }
/// <summary>
/// 员工ID
/// </summary>
public int? StaffID { get; set; }
/// <summary>
/// 开始日期
/// </summary>
[Display(Name = "BeginDate"), Description("开始日期"), MaxLength(100, ErrorMessage = "开始日期 不能超过 100 个字符")]
public string BeginDate { get; set; }
/// <summary>
/// 结束日期
/// </summary>
[Display(Name = "EndDate"), Description("结束日期"), MaxLength(100, ErrorMessage = "结束日期 不能超过 100 个字符")]
public string EndDate { get; set; }
/// <summary>
/// 学校名称
/// </summary>
[Display(Name = "SchoolName"), Description("学校名称"), MaxLength(1000, ErrorMessage = "学校名称 不能超过 1000 个字符")]
public string SchoolName { get; set; }
/// <summary>
/// 科系
/// </summary>
[Display(Name = "DeptName"), Description("科系"), MaxLength(1000, ErrorMessage = "科系 不能超过 1000 个字符")]
public string DeptName { get; set; }
/// <summary>
/// 学历
/// </summary>
[Display(Name = "DegreeLevel"), Description("学历"), MaxLength(100, ErrorMessage = "学历 不能超过 100 个字符")]
public string DegreeLevel { get; set; }
/// <summary>
/// 毕业否
/// </summary>
public int? IsGraduate { get; set; }
/// <summary>
/// RemarkSz
/// </summary>
[Display(Name = "RemarkSz"), Description("RemarkSz"), MaxLength(2000, ErrorMessage = "RemarkSz 不能超过 2000 个字符")]
public string RemarkSz { get; set; }
/// <summary>
/// SortNo
/// </summary>
public int? SortNo { get; set; }
/// <summary>
/// IsDefault
/// </summary>
public int? IsDefault { get; set; }
/// <summary>
/// AttachmentIDs
/// </summary>
[Display(Name = "AttachmentIDs"), Description("AttachmentIDs"), MaxLength(-1, ErrorMessage = "AttachmentIDs 不能超过 -1 个字符")]
public string AttachmentIDs { get; set; }
/// <summary>
/// Reverse1
/// </summary>
[Display(Name = "Reverse1"), Description("Reverse1"), MaxLength(1000, ErrorMessage = "Reverse1 不能超过 1000 个字符")]
public string Reverse1 { get; set; }
/// <summary>
/// Reverse2
/// </summary>
[Display(Name = "Reverse2"), Description("Reverse2"), MaxLength(1000, ErrorMessage = "Reverse2 不能超过 1000 个字符")]
public string Reverse2 { get; set; }
/// <summary>
/// Reverse3
/// </summary>
[Display(Name = "Reverse3"), Description("Reverse3"), MaxLength(1000, ErrorMessage = "Reverse3 不能超过 1000 个字符")]
public string Reverse3 { get; set; }
/// <summary>
/// Reverse4
/// </summary>
[Display(Name = "Reverse4"), Description("Reverse4"), MaxLength(1000, ErrorMessage = "Reverse4 不能超过 1000 个字符")]
public string Reverse4 { get; set; }
/// <summary>
/// Reverse5
/// </summary>
[Display(Name = "Reverse5"), Description("Reverse5"), MaxLength(1000, ErrorMessage = "Reverse5 不能超过 1000 个字符")]
public string Reverse5 { get; set; }
}

@ -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
/// </summary>
[Display(Name = "SpecialDiet"), Description("特殊饮食"), MaxLength(256, ErrorMessage = "特殊饮食 不能超过 256 个字符")]
public string SpecialDiet { get; set; }
/// <summary>
/// 员工ID
/// </summary>
public int? StaffId { get; set; }
}

@ -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;
/// <summary>
/// Ghra_StaffEduBG (Dto.EditInput)
/// </summary>
public class EditGhra_StaffEduBGInput : Ghra_StaffEduBGBase
{
}

@ -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;
/// <summary>
/// Ghra_StaffEduBG (Dto.InsertInput)
/// </summary>
public class InsertGhra_StaffEduBGInput : Ghra_StaffEduBGBase
{
}

@ -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;
/// <summary>
/// Ghra_StaffEduBG (Model)
/// </summary>
[SugarTable("Ghra_StaffEduBG", "Ghra_StaffEduBG"), Entity(TableCnName = "Ghra_StaffEduBG", TableName = "Ghra_StaffEduBG")]
public class Ghra_StaffEduBG : BasePoco1
{
/// <summary>
/// 教育背景ID
/// </summary>
[SugarColumn(IsNullable = false, IsPrimaryKey = true, IsIdentity = true), Display(Name = "表主键")]
public int? StaffEduBGID { get; set; }
/// <summary>
/// 员工ID
/// </summary>
public int? StaffID { get; set; }
/// <summary>
/// 开始日期
/// </summary>
[Display(Name = "BeginDate"), Description("开始日期"), MaxLength(100, ErrorMessage = "开始日期 不能超过 100 个字符")]
public string BeginDate { get; set; }
/// <summary>
/// 结束日期
/// </summary>
[Display(Name = "EndDate"), Description("结束日期"), MaxLength(100, ErrorMessage = "结束日期 不能超过 100 个字符")]
public string EndDate { get; set; }
/// <summary>
/// 学校名称
/// </summary>
[Display(Name = "SchoolName"), Description("学校名称"), MaxLength(1000, ErrorMessage = "学校名称 不能超过 1000 个字符")]
public string SchoolName { get; set; }
/// <summary>
/// 科系
/// </summary>
[Display(Name = "DeptName"), Description("科系"), MaxLength(1000, ErrorMessage = "科系 不能超过 1000 个字符")]
public string DeptName { get; set; }
/// <summary>
/// 学历
/// </summary>
[Display(Name = "DegreeLevel"), Description("学历"), MaxLength(100, ErrorMessage = "学历 不能超过 100 个字符")]
public string DegreeLevel { get; set; }
/// <summary>
/// 毕业否
/// </summary>
public int? IsGraduate { get; set; }
/// <summary>
/// RemarkSz
/// </summary>
[Display(Name = "RemarkSz"), Description("RemarkSz"), MaxLength(2000, ErrorMessage = "RemarkSz 不能超过 2000 个字符")]
public string RemarkSz { get; set; }
/// <summary>
/// SortNo
/// </summary>
public int? SortNo { get; set; }
/// <summary>
/// IsDefault
/// </summary>
public int? IsDefault { get; set; }
/// <summary>
/// AttachmentIDs
/// </summary>
[Display(Name = "AttachmentIDs"), Description("AttachmentIDs"), MaxLength(-1, ErrorMessage = "AttachmentIDs 不能超过 -1 个字符")]
public string AttachmentIDs { get; set; }
/// <summary>
/// Reverse1
/// </summary>
[Display(Name = "Reverse1"), Description("Reverse1"), MaxLength(1000, ErrorMessage = "Reverse1 不能超过 1000 个字符")]
public string Reverse1 { get; set; }
/// <summary>
/// Reverse2
/// </summary>
[Display(Name = "Reverse2"), Description("Reverse2"), MaxLength(1000, ErrorMessage = "Reverse2 不能超过 1000 个字符")]
public string Reverse2 { get; set; }
/// <summary>
/// Reverse3
/// </summary>
[Display(Name = "Reverse3"), Description("Reverse3"), MaxLength(1000, ErrorMessage = "Reverse3 不能超过 1000 个字符")]
public string Reverse3 { get; set; }
/// <summary>
/// Reverse4
/// </summary>
[Display(Name = "Reverse4"), Description("Reverse4"), MaxLength(1000, ErrorMessage = "Reverse4 不能超过 1000 个字符")]
public string Reverse4 { get; set; }
/// <summary>
/// Reverse5
/// </summary>
[Display(Name = "Reverse5"), Description("Reverse5"), MaxLength(1000, ErrorMessage = "Reverse5 不能超过 1000 个字符")]
public string Reverse5 { get; set; }
}

@ -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
/// </summary>
[Display(Name = "SpecialDiet"), Description("特殊饮食"), MaxLength(256, ErrorMessage = "特殊饮食 不能超过 256 个字符")]
public string SpecialDiet { get; set; }
/// <summary>
/// 员工ID
/// </summary>
public int? StaffId { get; set; }
}

@ -27,6 +27,7 @@ public class Ghrs_Attachment : BasePoco1
/// <summary>
/// Ghr附件记录ID
/// </summary>
[SugarColumn(IsNullable = false, IsPrimaryKey = true, IsIdentity = true), Display(Name = "表主键")]
public int? AttachmentID { get; set; }
/// <summary>

@ -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;
/// <summary>
/// Ghra_StaffEduBG(Dto.View1)
/// </summary>
public class Ghra_StaffEduBGDto : Ghra_StaffEduBG
{
/// <summary>
/// 创建信息
/// </summary>
public string CreateDataInfo { get; set; }
/// <summary>
/// 修改信息
/// </summary>
public string UpdateDataInfo { get; set; }
}

@ -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; }

@ -0,0 +1,15 @@
namespace Tiobon.Core.Services;
/// <summary>
/// Ghra_StaffEduBG (服务)
/// </summary>
public class Ghra_StaffEduBGServices : BaseServices<Ghra_StaffEduBG, Ghra_StaffEduBGDto, InsertGhra_StaffEduBGInput, EditGhra_StaffEduBGInput>, IGhra_StaffEduBGServices
{
private readonly IBaseRepository<Ghra_StaffEduBG> _dal;
public Ghra_StaffEduBGServices(ICaching caching, IBaseRepository<Ghra_StaffEduBG> dal)
{
this._dal = dal;
base.BaseDal = dal;
base._caching = caching;
}
}

@ -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<Ghrh_OfferApplyOrder>().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<Ghrs_Attachment>().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<Ghrs_Attachment>().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;

Loading…
Cancel
Save