using OASystem.Domain.Dtos.CRM; using OASystem.Domain.Dtos.Groups; using OASystem.Domain.Dtos.Resource; using OASystem.Domain.Dtos.System; using OASystem.Domain.Dtos.UserDto; using OASystem.Domain.Entities; using OASystem.Domain.Entities.Customer; using OASystem.Domain.Entities.Groups; using OASystem.Domain.Entities.Resource; using OASystem.Domain.Entities.System; using OASystem.Domain.ViewModels; using OASystem.Domain.ViewModels.Resource; using OASystem.Domain.ViewModels.System; namespace OASystem.Domain.AutoMappers { public class _baseMappingProfile : Profile { public _baseMappingProfile() { #region Login CreateMap(); #endregion #region Systen #region 消息 CreateMap(); CreateMap(); #endregion #region 数据类型板块 CreateMap(); CreateMap(); #endregion #region 公司板块 CreateMap(); CreateMap(); CreateMap(); #endregion #region 部门板块 CreateMap(); CreateMap(); CreateMap(); #endregion #region 岗位板块 CreateMap(); CreateMap(); CreateMap(); #endregion #region 用户板块 CreateMap(); CreateMap(); CreateMap(); #endregion #region 功能权限板块 CreateMap(); #endregion #endregion #region Group CreateMap(); CreateMap(); CreateMap(); #endregion #region Resource #region 车公司资料 CreateMap(); CreateMap(); CreateMap(); #endregion #region 导游地接资料 CreateMap(); CreateMap(); #endregion #region 机场三字码资料 CreateMap(); CreateMap(); #endregion #region 酒店资料数据 CreateMap(); CreateMap(); CreateMap(); #endregion #region 签证费用资料 CreateMap(); CreateMap(); #endregion #region 物料供应商 CreateMap() .ForMember(dest => dest.Address, opt => opt.MapFrom(src => src.VendorAddress)) .ForMember(dest => dest.CreateUserId, opt => opt.MapFrom(src => src.SysUserId)) .ForMember(dest => dest.Remark, opt => opt.MapFrom(src => src.Remark)) .ForMember(dest => dest.FullName, opt => opt.MapFrom(src => src.VendorFullName)) .ForMember(dest => dest.Id, opt => opt.MapFrom(src => src.VendorId)) .ForMember(dest => dest.Job, opt => opt.MapFrom(src => src.VendorJob)) .ForMember(dest => dest.Linker, opt => opt.MapFrom(src => src.VendorLinker)) .ForMember(dest => dest.Mobile, opt => opt.MapFrom(src => src.VendorMobile)) .ForMember(dest => dest.ShortName, opt => opt.MapFrom(src => src.VendorShortName)); CreateMap(); #endregion #endregion #region Crm #region 客户公司资料板块 CreateMap(); #endregion #endregion } } }