LawyerDto.cs 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. using System;
  2. using Abp.AutoMapper;
  3. using Abp.Application.Services.Dto;
  4. using AutoMapper.Configuration.Annotations;
  5. namespace ContractService.Lawyer.Dto
  6. {
  7. /// <summary>
  8. /// 律师信息
  9. /// </summary>
  10. [AutoMapTo(typeof(LawyerInfo)),AutoMapFrom(typeof(LawyerInfo))]
  11. public class LawyerDto: EntityDto<string>
  12. {
  13. public LawyerDto()
  14. {
  15. }
  16. public LawyerDto(LawyerInfoClone clone)
  17. {
  18. Id = clone.Id;
  19. Code = clone.Code;
  20. Name = clone.Name;
  21. Email = clone.Email;
  22. Profile = clone.Profile;
  23. Birthday = clone.Birthday;
  24. IdCard = clone.IdCard;
  25. PhoneNumber = clone.PhoneNumber;
  26. PhoneNumber2 = clone.PhoneNumber2;
  27. LawFirmNo = clone.LawFirmNo;
  28. LawFirmName = clone.LawFirmName;
  29. UserName = clone.UserName;
  30. OrganizationNo = clone.OrganizationNo;
  31. OrganizationName = clone.OrganizationName;
  32. IsMaster = clone.IsMaster;
  33. }
  34. /// <summary>
  35. /// 律师编号
  36. /// </summary>
  37. public string Code { get; set; }
  38. /// <summary>
  39. /// 律师姓名
  40. /// </summary>
  41. public string Name { get; set; }
  42. /// <summary>
  43. /// 律师简介
  44. /// </summary>
  45. public string Profile { get; set; }
  46. /// <summary>
  47. /// 出生日期
  48. /// </summary>
  49. public DateTime? Birthday { get; set; }
  50. public string Email { get; set; }
  51. /// <summary>
  52. /// 身份证号
  53. /// </summary>
  54. public string IdCard { get; set; }
  55. /// <summary>
  56. /// 联系号码
  57. /// </summary>
  58. public string PhoneNumber { get; set; }
  59. /// <summary>
  60. /// 备用号码
  61. /// </summary>
  62. public string PhoneNumber2 { get; set; }
  63. /// <summary>
  64. /// 用户名
  65. /// </summary>
  66. public string UserName { get; set; }
  67. /// <summary>
  68. /// 组织信息
  69. /// </summary>
  70. public string OrganizationNo { get; set; }
  71. [Ignore]
  72. public string OrganizationName { get; set; }
  73. /// <summary>
  74. /// 律所信息
  75. /// </summary>
  76. public string LawFirmNo { get; set; }
  77. [Ignore]
  78. public string LawFirmName { get; set; }
  79. [Ignore]
  80. public bool IsMaster { get; set; }
  81. }
  82. }