_baseMappingProfile.cs 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368
  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_RestaurantInfo, RestaurantInfoView>();
  101. CreateMap<RestaurantOpDto, Grp_RestaurantInfo>();
  102. #endregion
  103. #region 出入境费用明细
  104. CreateMap<Grp_EnterExitCost, EnterExitCostInfoView>();
  105. CreateMap<EnterExitCostOperateDto, Grp_EnterExitCost>();
  106. CreateMap<DayAndCostAddView, Grp_DayAndCost>();
  107. CreateMap<Grp_EnterExitCostDraft, EnterExitCostDraftInfoView>();
  108. CreateMap<EnterExitCostDraftOpDto, Grp_EnterExitCostDraft>();
  109. CreateMap<DayAndCostDraftAddView, Grp_DayAndCostDraft>();
  110. CreateMap<Grp_DayAndCostDraft, DayAndCostDraftAddView>();
  111. CreateMap<Grp_EnterExitCost, EnterExitCostMobileInfoView>();
  112. CreateMap<Grp_EnterExitCost, EnterExitCostMobileParentInfoView>();
  113. CreateMap<PostEnterExitCostMobileFeeOpCheckboxDto, Grp_EnterExitCost>();
  114. CreateMap<PostEnterExitCostMobileOpStep1Dto, Grp_EnterExitCost>();
  115. CreateMap<PostEnterExitCostMobileOpStep2Dto, Grp_EnterExitCost>();
  116. CreateMap<DayAndCostMobileInfoDto, Grp_DayAndCost>();
  117. CreateMap<DayOtherPriceMobileInfoDto, Grp_DayOtherPrice>();
  118. CreateMap<PostEnterExitCostMobileOpSingleStep3To6Dto, Grp_DayAndCost>();
  119. CreateMap<PostEnterExitCostMobileOpSingleStep7Dto, Grp_DayOtherPrice>();
  120. CreateMap<Grp_EnterExitCostDraft, Grp_EnterExitCost>();
  121. CreateMap<Grp_DayAndCostDraft, Grp_DayAndCost>();
  122. CreateMap<Grp_DayOtherPriceDraft, Grp_DayOtherPrice>();
  123. #endregion
  124. #region 出入境国家费用标准
  125. CreateMap<NationalTravelFeeOperateDto, Grp_NationalTravelFee>();
  126. #endregion
  127. #region 签证费用录入
  128. CreateMap<OpVisaPriceDto, Grp_VisaInfo>();
  129. CreateMap<OpVisaPriceDto, Grp_CreditCardPayment>();
  130. #endregion
  131. #region op费用
  132. CreateMap<OpCarTouristGuideGroundDto, Grp_CarTouristGuideGroundReservations>();
  133. CreateMap<Grp_CreditCardPayment, CarTouristCreditCardPaymentView>();
  134. CreateMap<Grp_CarTouristGuideGroundReservationsContent, CarTouristGuideGroundReservationsContentView>();
  135. #endregion
  136. #region 成本
  137. CreateMap<Grp_GroupCostDto, Grp_GroupCost>();
  138. CreateMap<Grp_CheckBoxsDto, Grp_CheckBoxs>();
  139. CreateMap<Grp_CostTypeHotelNumberDto, Grp_CostTypeHotelNumber>();
  140. CreateMap<Grp_GroupCostParameterDto, Grp_GroupCostParameter>();
  141. CreateMap<Grp_GroupCost, Grp_GroupCostDto>();
  142. CreateMap<Grp_GroupCostParameter, Grp_GroupCostParameterDto>();
  143. #endregion
  144. #region 酒店预订
  145. CreateMap<Grp_HotelReservations, HotelReservationsByIdView>();
  146. CreateMap<Grp_CreditCardPayment, Grp_CreditCardView>();
  147. CreateMap<OpHotelReservationsData, Grp_HotelReservations>();
  148. CreateMap<HotelReservationsContnetDetailsView, Grp_HotelReservationsContent>();
  149. CreateMap<OpHotelReservationsData, Grp_CreditCardPayment>();
  150. #endregion
  151. #region 酒店预订-New 2024-01-02 09:32
  152. CreateMap<HotelReservationsAddOrEditDto, Grp_HotelReservations>();
  153. CreateMap<HotelReservationsAddOrEditDto, Grp_CreditCardPayment>();
  154. #endregion
  155. CreateMap<Grp_Customers, CustomersByIdView>();
  156. CreateMap<Grp_CreditCardPayment, CreditCardView>();
  157. CreateMap<OpCustomersDto, Grp_Customers>();
  158. CreateMap<OpCustomersDto, Grp_CreditCardPayment>();
  159. #region 签证提成录入
  160. CreateMap<VisaCommissionCreateDto, Grp_VisaCommission>();
  161. CreateMap<VisaCommissionCreateView, Grp_VisaCommission>();
  162. #endregion
  163. #region 团组接待意见调查
  164. CreateMap<OpinionaireManageInfo, Grp_Opinionaire>();
  165. CreateMap<Grp_Opinionaire, OpinionaireUserListView>();
  166. CreateMap<OpinionaireUserSaveInfo, Grp_Opinionaire>();
  167. CreateMap<Res_TranslatorLibrary, TranslatorLibraryInfoView>();
  168. CreateMap<Res_TranslatorLibrary, TranslatorView>();
  169. CreateMap<TranslatorView, Res_TranslatorLibrary>();
  170. #endregion
  171. #endregion
  172. #region Resource
  173. #region 车公司资料
  174. CreateMap<Res_CarData, CarDataView>();
  175. CreateMap<AddCarDataDto, Res_CarData>();
  176. CreateMap<UpCarDataDto, Res_CarData>();
  177. CreateMap<Res_CarData, CarDataSelectView>();
  178. #endregion
  179. #region 导游地接资料
  180. CreateMap<Res_LocalGuideData, LocalGuideDataView>();
  181. CreateMap<LocalGuideOperationDto, Res_LocalGuideData>();
  182. CreateMap<Res_LocalGuideData, Res_LocalGuideData_ListItemView>();
  183. #endregion
  184. #region 机场三字码资料
  185. CreateMap<Res_ThreeCode, ThreeCodeView>();
  186. CreateMap<ThreeCodeOperationDto, Res_ThreeCode>();
  187. #endregion
  188. #region 代理商合作资料
  189. CreateMap<OpAirTicketAgentDto, Res_AirTicketAgent>();
  190. #endregion
  191. #region 酒店资料数据
  192. CreateMap<Res_HotelData, HotelDataView>();
  193. CreateMap<Res_HotelData, QueryHotelDataSelect>();
  194. CreateMap<OperationHotelDto, Res_HotelData>();
  195. #endregion
  196. #region 签证费用资料
  197. CreateMap<Res_CountryFeeCost, CountryFeeCostView>();
  198. CreateMap<OperationCountryFeeCostDto, Res_CountryFeeCost>();
  199. #endregion
  200. #region 物料供应商
  201. CreateMap<Edit_ResItemVendorDto, Res_ItemVendor>()
  202. .ForMember(dest => dest.Address, opt => opt.MapFrom(src => src.VendorAddress))
  203. .ForMember(dest => dest.CreateUserId, opt => opt.MapFrom(src => src.SysUserId))
  204. .ForMember(dest => dest.Remark, opt => opt.MapFrom(src => src.Remark))
  205. .ForMember(dest => dest.FullName, opt => opt.MapFrom(src => src.VendorFullName))
  206. .ForMember(dest => dest.Id, opt => opt.MapFrom(src => src.VendorId))
  207. .ForMember(dest => dest.Job, opt => opt.MapFrom(src => src.VendorJob))
  208. .ForMember(dest => dest.Linker, opt => opt.MapFrom(src => src.VendorLinker))
  209. .ForMember(dest => dest.Mobile, opt => opt.MapFrom(src => src.VendorMobile))
  210. .ForMember(dest => dest.ShortName, opt => opt.MapFrom(src => src.VendorShortName))
  211. .ForMember(dest => dest.BusRange, opt => opt.MapFrom(src => src.BusRange));
  212. CreateMap<Edit_ResItemInfoDto, Res_ItemDetailInfo>();
  213. #endregion
  214. #region 商邀资料
  215. CreateMap<OpInvitationOfficialActivityDto, Res_InvitationOfficialActivityData>();
  216. CreateMap<Res_InvitationOfficialActivityData, IOAInfoView>();
  217. #endregion
  218. #region 公务出访
  219. CreateMap<OpOfficialActivitiesDto, Res_OfficialActivities>();
  220. #endregion
  221. #region 请示数据库
  222. CreateMap<OpAskDataDto, Res_AskData>();
  223. #endregion
  224. #region 黑屏代码录入
  225. CreateMap<OpTicketBlackCodeDto, Air_TicketBlackCode>();
  226. #endregion
  227. #region 翻译人员库
  228. CreateMap<TranslatorLibraryOpDto, Res_TranslatorLibrary>();
  229. #endregion
  230. #region 供应商资料库
  231. CreateMap<MediaSupplierAddOrEditDto, Res_MediaSuppliers>();
  232. #endregion
  233. #region 保险国家基础费用
  234. CreateMap<InsuranceCostOpDto, Res_BasicInsuranceCost>();
  235. #endregion
  236. #endregion
  237. #region Crm
  238. #region 客户公司资料板块
  239. CreateMap<OperationClientCompanyDto, Crm_CustomerCompany>();
  240. #endregion
  241. #region 客户资料板块
  242. CreateMap<DeleClient, Crm_DeleClient>();
  243. CreateMap<CustomerFamily,Crm_VisaCustomerFamily>();
  244. CreateMap<CustomerCerts, Crm_CustomerCert>();
  245. CreateMap<VisaCustomerCompany, Crm_VisaCustomerCompany>();
  246. CreateMap<VisaCustomerSchool,Crm_VisaCustomerSchool>();
  247. #endregion
  248. #region 新客户资料
  249. CreateMap<NewClientOpDto, Crm_NewClientData>();
  250. CreateMap<Crm_NewClientData, NewClientDataView>();
  251. CreateMap<Crm_NewClientData, NewClientDataExcelDownloadView>();
  252. #endregion
  253. #endregion
  254. #region Financial
  255. CreateMap<AddDailyFeePaymentDto, Fin_DailyFeePayment>();
  256. CreateMap<AddDailyFeePaymentContentDto, Fin_DailyFeePaymentContent>();
  257. CreateMap<EditDailyFeePaymentDto, Fin_DailyFeePayment>();
  258. CreateMap<EditDailyFeePaymentContentDto, Fin_DailyFeePaymentContent>();
  259. #region 收款账单
  260. CreateMap<Fin_ForeignReceivables, ProceedsReceivedNewView>();
  261. #endregion
  262. #endregion
  263. #region Statistics
  264. CreateMap<StatisticsBRCostView, StatisticsBRCostBriefView>();
  265. CreateMap<GroupRoyaltyFeeInfo, GroupRoyaltyFeeView>();
  266. CreateMap<GroupRoyaltyFeeInfo, GroupRoyaltyFeeExcelView>();
  267. CreateMap<CorporateProfitInfo, CorporateProfitItem>();
  268. #endregion
  269. #region 人事 模块
  270. //CreateMap<WageSheetInfoView, Pm_WageSheet>();
  271. CreateMap<Pm_WageSheet, WageSheetItemInfoView>();
  272. CreateMap<WageAddOrEditDto, Pm_WageSheet>();
  273. CreateMap<WageSheetInfos, Pm_WageSheet>();
  274. CreateMap<SalaryCalculatorSingleDto, Pm_WageSheet>();
  275. CreateMap<WageSheetInfoView, Pm_WageSheet>();
  276. CreateMap<Pm_WageSheet, WageSheetInfoView>();
  277. CreateMap<Pm_WageSheet, WageSheetInfoView>();
  278. CreateMap<WageSheetMonthWorkdaysAddOrEditDto, Pm_WageIssueWorkingDay>();
  279. CreateMap<CalendarInfoView, Sys_Calendar>();
  280. CreateMap<TaskAllocationAddOrEditDto, Pm_TaskAllocation>();
  281. #region 进销存
  282. CreateMap<GoodsStorageOpDto, Pm_GoodsStorage>();
  283. CreateMap<GoodsReceiveOpDto, Pm_GoodsReceive>();
  284. CreateMap<GoodsReceiveInfoMobileView, GoodsReceiveInfoView>(); //
  285. CreateMap<GoodsReceiveListMobileView, GoodsReceiveListView>();
  286. #endregion
  287. #endregion
  288. #region 倒推表
  289. CreateMap<InvertedListUpdateDto, Grp_InvertedList>();
  290. CreateMap<VisaCountryInfo, Grp_InvertedListVisaCountry>();
  291. #endregion
  292. #region 酒店询价
  293. CreateMap<HotelInquiryAddOrEditDto, Grp_HotelInquiry>();
  294. #endregion
  295. #region 市场客户资料 --> 拜访客户记录
  296. CreateMap<MarketingSalesVCOperrateDto, Grp_VisitingClients>();
  297. CreateMap<VisitingClientsListView, Grp_VisitingClients>();
  298. #endregion
  299. }
  300. }
  301. }