_baseMappingProfile.cs 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318
  1. using OASystem.Domain.Dtos.CRM;
  2. using OASystem.Domain.Dtos.Groups;
  3. using OASystem.Domain.Dtos.Resource;
  4. using OASystem.Domain.Dtos.System;
  5. using OASystem.Domain.Dtos.UserDto;
  6. using OASystem.Domain.Entities;
  7. using OASystem.Domain.Entities.Customer;
  8. using OASystem.Domain.Entities.Business;
  9. using OASystem.Domain.Entities.Groups;
  10. using OASystem.Domain.Entities.Resource;
  11. using OASystem.Domain.Entities.System;
  12. using OASystem.Domain.ViewModels;
  13. using OASystem.Domain.ViewModels.Business;
  14. using OASystem.Domain.ViewModels.Resource;
  15. using OASystem.Domain.ViewModels.System;
  16. using OASystem.Domain.Dtos.Financial;
  17. using OASystem.Domain.Entities.Financial;
  18. using static OASystem.Domain.Dtos.CRM.NewClientDataQueryDto;
  19. using OASystem.Domain.ViewModels.Groups;
  20. using OASystem.Domain.ViewModels.CRM;
  21. using OASystem.Domain.ViewModels.PersonnelModule;
  22. using OASystem.Domain.Entities.PersonnelModule;
  23. using OASystem.Domain.Dtos.PersonnelModule;
  24. using OASystem.Domain.Dtos.Statistics;
  25. using OASystem.Domain.ViewModels.Financial;
  26. namespace OASystem.Domain.AutoMappers
  27. {
  28. public class _baseMappingProfile : Profile
  29. {
  30. public _baseMappingProfile()
  31. {
  32. #region Login
  33. CreateMap<LoginDto, Sys_Users>();
  34. CreateMap<UpdateDto, Sys_Users>();
  35. #endregion
  36. #region Systen
  37. #region 消息
  38. CreateMap<Sys_Message, DepartmentIView>();
  39. CreateMap<Sys_MessageReadAuth, DepartmentIView>();
  40. #endregion
  41. #region 数据类型板块
  42. CreateMap<OperationSetDataTypeDto, Sys_SetDataType>();
  43. CreateMap<OperationSetDataDto, Sys_SetData>();
  44. CreateMap<Sys_SetData, SetDataInfoView>();
  45. CreateMap<Sys_SetData, SetDataCurrencyInfoView>();
  46. #endregion
  47. #region 公司板块
  48. CreateMap<Sys_Company, CompanyView>();
  49. CreateMap<AddCompanyDto, Sys_Company>();
  50. CreateMap<EditCompanyDto, Sys_Company>();
  51. #endregion
  52. #region 部门板块
  53. CreateMap<Sys_Department, DepartmentIView>();
  54. CreateMap<AddDepartmentDto, Sys_Department>();
  55. CreateMap<EditDepartmentDto, Sys_Department>();
  56. #endregion
  57. #region 岗位板块
  58. CreateMap<Sys_JobPost, JobPostView>();
  59. CreateMap<AddJobPostDto, Sys_JobPost>();
  60. CreateMap<Sys_JobPostI, JobPostView>();
  61. #endregion
  62. #region 用户板块
  63. CreateMap<UserDto, Sys_Users>();
  64. CreateMap<Sys_Users, UserInfo>();
  65. CreateMap<UserInfo, UserInfoWebView>();
  66. CreateMap<EditUserInfoDto, Sys_Users>();
  67. #endregion
  68. #region 功能权限板块
  69. CreateMap<OperationFunInitDta, Sys_PageFunctionPermission>();
  70. #endregion
  71. #endregion
  72. #region Group
  73. CreateMap<GroupListDto, Grp_DelegationInfo>();
  74. CreateMap<Grp_ScheduleDetailUpdDto, Grp_ScheduleDetailInfo>();
  75. CreateMap<Grp_ScheduleDetailInsertDto, Grp_ScheduleDetailInfo>();
  76. CreateMap<TaskAssignmenDto, Grp_GroupsTaskAssignment>();
  77. CreateMap<Grp_DelegationInfo, ShareGroupInfoIIView>();
  78. CreateMap<GroupProcessOperationDto, GroupOperationDto>();
  79. CreateMap<DelegationInfoWebView, GroupProcessOperationDto>();
  80. #region 机票费用录入
  81. CreateMap<AirTicketResOp, Grp_AirTicketReservations>();
  82. CreateMap<CardPayment, Grp_CreditCardPayment>();
  83. CreateMap<Grp_GroupCostParameter,AirGroupCostParameterView>();
  84. CreateMap<Edit_GrpCreditCardPaymentDto, Grp_CreditCardPayment>();
  85. #endregion
  86. #region 团组增减款项
  87. CreateMap<DecreasePaymentsOpDto, Grp_DecreasePayments>();
  88. #endregion
  89. #region 商邀费用
  90. CreateMap<OpInvitationOfficialActivitiesDto, Grp_InvitationOfficialActivities>();
  91. CreateMap<OpInvitationOfficialActivitiesDto,Res_InvitationOfficialActivityData>();
  92. CreateMap<Grp_InvitationOfficialActivities, InvitationOfficialActivitiesByIdView>();
  93. CreateMap<Grp_InvitationOfficialActivities, Grp_InvitationOfficialActivitiesView>();
  94. #endregion
  95. #region 团组英文资料
  96. CreateMap<OpDelegationEnDataDto, Grp_DelegationEnData>();
  97. #endregion
  98. #region 出入境费用明细
  99. CreateMap<Grp_EnterExitCost, EnterExitCostInfoView>();
  100. CreateMap<EnterExitCostOperateDto, Grp_EnterExitCost>();
  101. CreateMap<DayAndCostAddView, Grp_DayAndCost>();
  102. #endregion
  103. #region 出入境国家费用标准
  104. CreateMap<NationalTravelFeeOperateDto, Grp_NationalTravelFee>();
  105. #endregion
  106. #region 签证费用录入
  107. CreateMap<OpVisaPriceDto, Grp_VisaInfo>();
  108. CreateMap<OpVisaPriceDto, Grp_CreditCardPayment>();
  109. #endregion
  110. #region op费用
  111. CreateMap<OpCarTouristGuideGroundDto, Grp_CarTouristGuideGroundReservations>();
  112. CreateMap<Grp_CreditCardPayment, CarTouristCreditCardPaymentView>();
  113. CreateMap<Grp_CarTouristGuideGroundReservationsContent, CarTouristGuideGroundReservationsContentView>();
  114. #endregion
  115. #region 成本
  116. CreateMap<Grp_GroupCostDto, Grp_GroupCost>();
  117. CreateMap<Grp_CheckBoxsDto, Grp_CheckBoxs>();
  118. CreateMap<Grp_CostTypeHotelNumberDto, Grp_CostTypeHotelNumber>();
  119. CreateMap<Grp_GroupCostParameterDto, Grp_GroupCostParameter>();
  120. CreateMap<Grp_GroupCost, Grp_GroupCostDto>();
  121. CreateMap<Grp_GroupCostParameter, Grp_GroupCostParameterDto>();
  122. #endregion
  123. #region 酒店预订
  124. CreateMap<Grp_HotelReservations, HotelReservationsByIdView>();
  125. CreateMap<Grp_CreditCardPayment, Grp_CreditCardView>();
  126. CreateMap<OpHotelReservationsData, Grp_HotelReservations>();
  127. CreateMap<HotelReservationsContnetDetailsView, Grp_HotelReservationsContent>();
  128. CreateMap<OpHotelReservationsData, Grp_CreditCardPayment>();
  129. #endregion
  130. #region 酒店预订-New 2024-01-02 09:32
  131. CreateMap<HotelReservationsAddOrEditDto, Grp_HotelReservations>();
  132. CreateMap<HotelReservationsAddOrEditDto, Grp_CreditCardPayment>();
  133. #endregion
  134. CreateMap<Grp_Customers, CustomersByIdView>();
  135. CreateMap<Grp_CreditCardPayment, CreditCardView>();
  136. CreateMap<OpCustomersDto, Grp_Customers>();
  137. CreateMap<OpCustomersDto, Grp_CreditCardPayment>();
  138. #region 签证提成录入
  139. CreateMap<VisaCommissionCreateDto, Grp_VisaCommission>();
  140. CreateMap<VisaCommissionCreateView, Grp_VisaCommission>();
  141. #endregion
  142. #region 团组接待意见调查
  143. CreateMap<OpinionaireManageInfo, Grp_Opinionaire>();
  144. CreateMap<Grp_Opinionaire, OpinionaireUserListView>();
  145. CreateMap<OpinionaireUserSaveInfo, Grp_Opinionaire>();
  146. CreateMap<Res_TranslatorLibrary, TranslatorLibraryInfoView>();
  147. #endregion
  148. #endregion
  149. #region Resource
  150. #region 车公司资料
  151. CreateMap<Res_CarData, CarDataView>();
  152. CreateMap<AddCarDataDto, Res_CarData>();
  153. CreateMap<Res_CarData, CarDataSelectView>();
  154. #endregion
  155. #region 导游地接资料
  156. CreateMap<Res_LocalGuideData, LocalGuideDataView>();
  157. CreateMap<LocalGuideOperationDto, Res_LocalGuideData>();
  158. #endregion
  159. #region 机场三字码资料
  160. CreateMap<Res_ThreeCode, ThreeCodeView>();
  161. CreateMap<ThreeCodeOperationDto, Res_ThreeCode>();
  162. #endregion
  163. #region 代理商合作资料
  164. CreateMap<OpAirTicketAgentDto, Res_AirTicketAgent>();
  165. #endregion
  166. #region 酒店资料数据
  167. CreateMap<Res_HotelData, HotelDataView>();
  168. CreateMap<Res_HotelData, QueryHotelDataSelect>();
  169. CreateMap<OperationHotelDto, Res_HotelData>();
  170. #endregion
  171. #region 签证费用资料
  172. CreateMap<Res_CountryFeeCost, CountryFeeCostView>();
  173. CreateMap<OperationCountryFeeCostDto, Res_CountryFeeCost>();
  174. #endregion
  175. #region 物料供应商
  176. CreateMap<Edit_ResItemVendorDto, Res_ItemVendor>()
  177. .ForMember(dest => dest.Address, opt => opt.MapFrom(src => src.VendorAddress))
  178. .ForMember(dest => dest.CreateUserId, opt => opt.MapFrom(src => src.SysUserId))
  179. .ForMember(dest => dest.Remark, opt => opt.MapFrom(src => src.Remark))
  180. .ForMember(dest => dest.FullName, opt => opt.MapFrom(src => src.VendorFullName))
  181. .ForMember(dest => dest.Id, opt => opt.MapFrom(src => src.VendorId))
  182. .ForMember(dest => dest.Job, opt => opt.MapFrom(src => src.VendorJob))
  183. .ForMember(dest => dest.Linker, opt => opt.MapFrom(src => src.VendorLinker))
  184. .ForMember(dest => dest.Mobile, opt => opt.MapFrom(src => src.VendorMobile))
  185. .ForMember(dest => dest.ShortName, opt => opt.MapFrom(src => src.VendorShortName))
  186. .ForMember(dest => dest.BusRange, opt => opt.MapFrom(src => src.BusRange));
  187. CreateMap<Edit_ResItemInfoDto, Res_ItemDetailInfo>();
  188. #endregion
  189. #region 商邀资料
  190. CreateMap<OpInvitationOfficialActivityDto, Res_InvitationOfficialActivityData>();
  191. CreateMap<Res_InvitationOfficialActivityData, IOAInfoView>();
  192. #endregion
  193. #region 公务出访
  194. CreateMap<OpOfficialActivitiesDto, Res_OfficialActivities>();
  195. #endregion
  196. #region 请示数据库
  197. CreateMap<OpAskDataDto, Res_AskData>();
  198. #endregion
  199. #region 黑屏代码录入
  200. CreateMap<OpTicketBlackCodeDto, Air_TicketBlackCode>();
  201. #endregion
  202. #region 翻译人员库
  203. CreateMap<TranslatorLibraryOpDto, Res_TranslatorLibrary>();
  204. #endregion
  205. #endregion
  206. #region Crm
  207. #region 客户公司资料板块
  208. CreateMap<OperationClientCompanyDto, Crm_CustomerCompany>();
  209. #endregion
  210. #region 客户资料板块
  211. CreateMap<DeleClient, Crm_DeleClient>();
  212. CreateMap<CustomerFamily,Crm_VisaCustomerFamily>();
  213. CreateMap<CustomerCerts, Crm_CustomerCert>();
  214. CreateMap<VisaCustomerCompany, Crm_VisaCustomerCompany>();
  215. CreateMap<VisaCustomerSchool,Crm_VisaCustomerSchool>();
  216. #endregion
  217. #region 新客户资料
  218. CreateMap<NewClientOpDto, Crm_NewClientData>();
  219. CreateMap<Crm_NewClientData, NewClientDataView>();
  220. #endregion
  221. #endregion
  222. #region Financial
  223. CreateMap<AddDailyFeePaymentDto, Fin_DailyFeePayment>();
  224. CreateMap<AddDailyFeePaymentContentDto, Fin_DailyFeePaymentContent>();
  225. CreateMap<EditDailyFeePaymentDto, Fin_DailyFeePayment>();
  226. CreateMap<EditDailyFeePaymentContentDto, Fin_DailyFeePaymentContent>();
  227. #region 收款账单
  228. CreateMap<Fin_ForeignReceivables, ProceedsReceivedNewView>();
  229. #endregion
  230. #endregion
  231. #region Statistics
  232. CreateMap<StatisticsBRCostView, StatisticsBRCostBriefView>();
  233. #endregion
  234. #region 人事 模块
  235. //CreateMap<WageSheetInfoView, Pm_WageSheet>();
  236. CreateMap<Pm_WageSheet, WageSheetItemInfoView>();
  237. CreateMap<WageAddOrEditDto, Pm_WageSheet>();
  238. CreateMap<WageSheetInfos, Pm_WageSheet>();
  239. CreateMap<SalaryCalculatorSingleDto, Pm_WageSheet>();
  240. CreateMap<WageSheetInfoView, Pm_WageSheet>();
  241. CreateMap<Pm_WageSheet, WageSheetInfoView>();
  242. CreateMap<Pm_WageSheet, WageSheetInfoView>();
  243. CreateMap<WageSheetMonthWorkdaysAddOrEditDto, Pm_WageIssueWorkingDay>();
  244. CreateMap<CalendarInfoView, Sys_Calendar>();
  245. CreateMap<TaskAllocationAddOrEditDto, Pm_TaskAllocation>();
  246. #region 进销存
  247. CreateMap<GoodsStorageOpDto, Pm_GoodsStorage>();
  248. CreateMap<GoodsReceiveOpDto, Pm_GoodsReceive>();
  249. CreateMap<GoodsReceiveInfoMobileView, GoodsReceiveInfoView>(); //
  250. CreateMap<GoodsReceiveListMobileView, GoodsReceiveListView>();
  251. #endregion
  252. #endregion
  253. #region 倒推表
  254. CreateMap<InvertedListUpdateDto, Grp_InvertedList>();
  255. CreateMap<VisaCountryInfo, Grp_InvertedListVisaCountry>();
  256. #endregion
  257. #region 酒店询价
  258. CreateMap<HotelInquiryAddOrEditDto, Grp_HotelInquiry>();
  259. #endregion
  260. #region 市场客户资料 --> 拜访客户记录
  261. CreateMap<MarketingSalesVCOperrateDto, Grp_VisitingClients>();
  262. CreateMap<VisitingClientsListView, Grp_VisitingClients>();
  263. #endregion
  264. }
  265. }
  266. }