111
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace SimpleAdmin.Application;
|
||||
|
||||
/// <summary>
|
||||
@@ -29,6 +31,84 @@ public class OnboardingEmployeePageInput : BasePageInput
|
||||
/// 岗位 Id。
|
||||
/// </summary>
|
||||
public long? PositionId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 用工类型。
|
||||
/// </summary>
|
||||
public string EmploymentType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 转正状态。
|
||||
/// </summary>
|
||||
public string RegularizationStatus { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 社保状态。
|
||||
/// </summary>
|
||||
public string SocialInsuranceStatus { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 编辑员工人事信息。
|
||||
/// </summary>
|
||||
public class OnboardingEmployeeHrUpdateInput
|
||||
{
|
||||
[IdNotNull(ErrorMessage = "员工Id不能为空")]
|
||||
public long Id { get; set; }
|
||||
|
||||
[Required(ErrorMessage = "请选择用工类型")]
|
||||
public string EmploymentType { get; set; }
|
||||
|
||||
public string ContractNature { get; set; }
|
||||
|
||||
[Required(ErrorMessage = "请选择社保状态")]
|
||||
public string SocialInsuranceStatus { get; set; }
|
||||
|
||||
public string SocialInsuranceCompany { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 员工转正办理参数。
|
||||
/// </summary>
|
||||
public class OnboardingEmployeeRegularizeInput
|
||||
{
|
||||
[IdNotNull(ErrorMessage = "员工Id不能为空")]
|
||||
public long Id { get; set; }
|
||||
|
||||
[Required(ErrorMessage = "请选择转正日期")]
|
||||
public DateTime? RegularizationDate { get; set; }
|
||||
|
||||
public string Remark { get; set; }
|
||||
|
||||
public List<long> FileIds { get; set; } = new();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 撤销员工转正参数。
|
||||
/// </summary>
|
||||
public class OnboardingEmployeeRegularizationRevokeInput
|
||||
{
|
||||
[IdNotNull(ErrorMessage = "员工Id不能为空")]
|
||||
public long Id { get; set; }
|
||||
|
||||
[Required(ErrorMessage = "请填写撤销原因")]
|
||||
public string Remark { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 正式员工档案导出结果。
|
||||
/// </summary>
|
||||
public class OnboardingEmployeeExportFile
|
||||
{
|
||||
/// <summary>
|
||||
/// Excel 文件字节。
|
||||
/// </summary>
|
||||
public byte[] FileBytes { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 下载文件名。
|
||||
/// </summary>
|
||||
public string FileName { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -56,6 +136,12 @@ public class OnboardingEmployeeDetailOutput
|
||||
/// </summary>
|
||||
public List<ObTaskContract> Contracts { get; set; } = new List<ObTaskContract>();
|
||||
|
||||
/// <summary>
|
||||
/// 审核建档时冻结的员工合同业务快照,包含常用字段及全部自定义变量。
|
||||
/// </summary>
|
||||
public List<ObEmployeeContractSnapshot> ContractSnapshots { get; set; }
|
||||
= new List<ObEmployeeContractSnapshot>();
|
||||
|
||||
/// <summary>
|
||||
/// 员工入职时上传的身份证、学历证明、体检报告等资料。
|
||||
/// </summary>
|
||||
@@ -71,4 +157,10 @@ public class OnboardingEmployeeDetailOutput
|
||||
/// 提交与审核记录列表。
|
||||
/// </summary>
|
||||
public List<ObTaskAudit> Audits { get; set; } = new List<ObTaskAudit>();
|
||||
|
||||
/// <summary>
|
||||
/// 员工转正及人事维护历史。
|
||||
/// </summary>
|
||||
public List<ObEmployeeChangeRecord> ChangeRecords { get; set; }
|
||||
= new List<ObEmployeeChangeRecord>();
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
namespace SimpleAdmin.Application;
|
||||
|
||||
/// <summary>
|
||||
/// 定义正式员工档案查询业务能力。
|
||||
/// 定义员工档案查询和人事维护业务能力。
|
||||
/// </summary>
|
||||
public interface IOnboardingEmployeeService : ITransient
|
||||
{
|
||||
@@ -10,6 +10,22 @@ public interface IOnboardingEmployeeService : ITransient
|
||||
/// </summary>
|
||||
Task<SqlSugarPagedList<ObEmployee>> Page(OnboardingEmployeePageInput input);
|
||||
/// <summary>
|
||||
/// 按当前列表筛选条件导出员工明细。
|
||||
/// </summary>
|
||||
Task<OnboardingEmployeeExportFile> Export(OnboardingEmployeePageInput input);
|
||||
/// <summary>
|
||||
/// 编辑员工用工、社保及合同性质等人事信息。
|
||||
/// </summary>
|
||||
Task UpdateHrInfo(OnboardingEmployeeHrUpdateInput input);
|
||||
/// <summary>
|
||||
/// 人工办理员工转正。
|
||||
/// </summary>
|
||||
Task Regularize(OnboardingEmployeeRegularizeInput input);
|
||||
/// <summary>
|
||||
/// 撤销一次员工转正,历史记录和附件继续保留。
|
||||
/// </summary>
|
||||
Task RevokeRegularization(OnboardingEmployeeRegularizationRevokeInput input);
|
||||
/// <summary>
|
||||
/// 查询正式员工及其来源任务、合同和审核记录。
|
||||
/// </summary>
|
||||
Task<OnboardingEmployeeDetailOutput> Detail(BaseIdInput input);
|
||||
|
||||
+1008
-13
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user