_baseMappingProfile.cs 15 KB

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