EmployeeCreateDto.cs 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. using System.ComponentModel.DataAnnotations;
  2. using Abp.AutoMapper;
  3. using IwbZero.AppServiceBase;
  4. namespace ShwasherSys.CompanyInfo.EmployeeInfo.Dto
  5. {
  6. /// <summary>
  7. /// 人员信息维护
  8. /// </summary>
  9. [AutoMapTo(typeof(Employee))]
  10. public class EmployeeCreateDto:IwbEntityDto<int>
  11. {
  12. /// <summary>
  13. /// 人员编号
  14. /// </summary>
  15. [Required]
  16. [StringLength(Employee.NoMaxLength)]
  17. public string No { get; set; }
  18. /// <summary>
  19. /// 人员姓名
  20. /// </summary>
  21. [Required]
  22. [StringLength(Employee.NameMaxLength)]
  23. public string Name { get; set; }
  24. /// <summary>
  25. /// 身份证号
  26. /// </summary>
  27. [StringLength(Employee.CardIdMaxLength)]
  28. public string CardId { get; set; }
  29. /// <summary>
  30. /// 性别
  31. /// </summary>
  32. public int Gender { get; set; }
  33. /// <summary>
  34. /// 手机号
  35. /// </summary>
  36. [StringLength(Employee.PhoneMaxLength)]
  37. public string PhoneNumber { get; set; }
  38. /// <summary>
  39. /// 部门
  40. /// </summary>
  41. [StringLength(20)]
  42. public string DepartmentNo { get; set; }
  43. /// <summary>
  44. /// 职务
  45. /// </summary>
  46. [StringLength(20)]
  47. public string DutyNo { get; set; }
  48. /// <summary>
  49. /// 详情
  50. /// </summary>
  51. [StringLength(Employee.DescMaxLength)]
  52. public string Description { get; set; }
  53. }
  54. }