|
@@ -252,7 +252,7 @@ namespace OASystem.Domain.Dtos.System
|
|
|
|
|
|
public class EditUserInfoDto
|
|
|
{
|
|
|
- //public int CurrUserId { get; set; }
|
|
|
+ public int CurrUserId { get; set; }
|
|
|
|
|
|
public int Id { get; set; }
|
|
|
|
|
@@ -316,7 +316,7 @@ namespace OASystem.Domain.Dtos.System
|
|
|
/// <summary>
|
|
|
/// 入职时间
|
|
|
/// </summary>
|
|
|
- public string Edate { get; set; }
|
|
|
+ public string? Edate { get; set; } = null;
|
|
|
///// <summary>
|
|
|
///// 离职时间
|
|
|
///// </summary>
|
|
@@ -325,18 +325,18 @@ namespace OASystem.Domain.Dtos.System
|
|
|
///// 工龄
|
|
|
///// </summary>
|
|
|
//public int Seniority { get; set; }
|
|
|
- /// <summary>
|
|
|
- /// 生日
|
|
|
- /// </summary>
|
|
|
- public string Birthday { get; set; }
|
|
|
+ ///// <summary>
|
|
|
+ ///// 生日
|
|
|
+ ///// </summary>
|
|
|
+ //public string? Birthday { get; set; } = null;
|
|
|
/// <summary>
|
|
|
/// 身份证号码
|
|
|
/// </summary>
|
|
|
public string IDCard { get; set; }
|
|
|
- /// <summary>
|
|
|
- /// 开始工作时
|
|
|
- /// </summary>
|
|
|
- public string? StartWorkDate { get; set; }
|
|
|
+ ///// <summary>
|
|
|
+ ///// 开始工作时
|
|
|
+ ///// </summary>
|
|
|
+ //public string? StartWorkDate { get; set; }= null;
|
|
|
/// <summary>
|
|
|
/// 毕业学校
|
|
|
/// </summary>
|
|
@@ -388,8 +388,9 @@ namespace OASystem.Domain.Dtos.System
|
|
|
|
|
|
public class EditUserInfoDtoValidator : AbstractValidator<EditUserInfoDto>
|
|
|
{
|
|
|
- public EditUserInfoDtoValidator()
|
|
|
+ public EditUserInfoDtoValidator()
|
|
|
{
|
|
|
+ //RuleFor(x => x.CurrUserId).LessThan(1).WithMessage("暂无修改权限!");
|
|
|
RuleFor(x => x.CnName).NotEmpty().WithMessage("姓名不能为空!");
|
|
|
RuleFor(x => x.EnName).NotEmpty().WithMessage("英文名不能为空!");
|
|
|
RuleFor(x => x.Number).NotEmpty().WithMessage("工号不能为空!");
|