using System; using Abp.AutoMapper; using Abp.Application.Services.Dto; using AutoMapper.Configuration.Annotations; namespace ContractService.Lawyer.Dto { /// /// 律师信息 /// [AutoMapTo(typeof(LawyerInfo)),AutoMapFrom(typeof(LawyerInfo))] public class LawyerDto: EntityDto { public LawyerDto() { } public LawyerDto(LawyerInfoClone clone) { Id = clone.Id; Code = clone.Code; Name = clone.Name; Email = clone.Email; Profile = clone.Profile; Birthday = clone.Birthday; IdCard = clone.IdCard; PhoneNumber = clone.PhoneNumber; PhoneNumber2 = clone.PhoneNumber2; LawFirmNo = clone.LawFirmNo; LawFirmName = clone.LawFirmName; UserName = clone.UserName; OrganizationNo = clone.OrganizationNo; OrganizationName = clone.OrganizationName; IsMaster = clone.IsMaster; } /// /// 律师编号 /// public string Code { get; set; } /// /// 律师姓名 /// public string Name { get; set; } /// /// 律师简介 /// public string Profile { get; set; } /// /// 出生日期 /// public DateTime? Birthday { get; set; } public string Email { get; set; } /// /// 身份证号 /// public string IdCard { get; set; } /// /// 联系号码 /// public string PhoneNumber { get; set; } /// /// 备用号码 /// public string PhoneNumber2 { get; set; } /// /// 用户名 /// public string UserName { get; set; } /// /// 组织信息 /// public string OrganizationNo { get; set; } [Ignore] public string OrganizationName { get; set; } /// /// 律所信息 /// public string LawFirmNo { get; set; } [Ignore] public string LawFirmName { get; set; } [Ignore] public bool IsMaster { get; set; } } }