using Mapster; using Myshipping.Application.EDI; using Myshipping.Application.Entity; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; namespace Myshipping.Application { public class BookingEDIMapper : IRegister { public void Register(TypeAdapterConfig config) { config.ForType() .Map(dest => dest.WEITUO, src => src.WEITUO) .Map(dest => dest.ORDERNO, src => src.CUSTNO) .Map(dest => dest.MBLNO, src => src.MBLNO) .Map(dest => dest.BLFRT, src => src.BLFRT) .Map(dest => dest.VESSEL, src => src.VESSEL) //.Map(dest => dest.VOYNO, src => src.VOYNO)//这里去掉映射,以后航次号都是取内部航次 .Map(dest => dest.ETD, src => src.ETD.HasValue ? src.ETD.Value.ToString("yyyy-MM-dd") : "") .Map(dest => dest.ETA, src => src.ETA.HasValue ? src.ETA.Value.ToString("yyyy-MM-dd") : "") .Map(dest => dest.CLOSINGDATE, src => src.CLOSINGDATE.HasValue ? src.CLOSINGDATE.Value.ToString("yyyy-MM-dd") : "") .Map(dest => dest.SIREMARK, src => src.SIREMARK) .Map(dest => dest.SHIPPER, src => src.SHIPPER) .Map(dest => dest.CONSIGNEE, src => src.CONSIGNEE) .Map(dest => dest.NOTIFYPARTY, src => src.NOTIFYPARTY) .Map(dest => dest.NOTIFYPARTY2, src => src.NOTIFYPARTY2) .Map(dest => dest.HSCODE, src => src.HSCODE) .Map(dest => dest.MARKS, src => src.MARKS) .Map(dest => dest.DESCRIPTION, src => src.DESCRIPTION) .Map(dest => dest.PORTLOADID, src => src.PORTLOADID) .Map(dest => dest.PORTLOAD, src => src.PORTLOAD) .Map(dest => dest.PORTDISCHARGEID, src => src.PORTDISCHARGEID) .Map(dest => dest.PORTDISCHARGE, src => src.PORTDISCHARGE) .Map(dest => dest.DESTINATIONID, src => src.DESTINATIONID) .Map(dest => dest.DESTINATION, src => src.DESTINATION) .Map(dest => dest.PKGS, src => src.PKGS.HasValue ? src.PKGS.Value : 0) .Map(dest => dest.KINDPKGS, src => src.KINDPKGS) .Map(dest => dest.KGS, src => src.KGS.HasValue ? src.KGS.Value : 0) .Map(dest => dest.CBM, src => src.CBM.HasValue ? src.CBM.Value : 0) .Map(dest => dest.CARGOID, src => src.CARGOID) .Map(dest => dest.DCLASS, src => src.DCLASS) .Map(dest => dest.DUNNO, src => src.DUNNO) .Map(dest => dest.TEMPSET, src => src.TEMPSET) .Map(dest => dest.REEFERF, src => src.REEFERF) .Map(dest => dest.HUMIDITY, src => src.HUMIDITY) .Map(dest => dest.PREPARDAT, src => src.PREPARDAT) .Map(dest => dest.PAYABLEAT, src => src.PAYABLEAT) .Map(dest => dest.PREPARDATID, src => src.PREPARDATID) .Map(dest => dest.PAYABLEATID, src => src.PAYABLEATID) .Map(dest => dest.ISSUETYPE, src => src.ISSUETYPE) .Map(dest => dest.NOBILL, src => src.NOBILL) .Map(dest => dest.ISSUEPLACE, src => src.ISSUEPLACE) .Map(dest => dest.COPYNOBILL, src => src.COPYNOBILL) .Map(dest => dest.ISSUEPLACEID, src => src.ISSUEPLACEID) .Map(dest => dest.SERVICE, src => src.SERVICE) .Map(dest => dest.CONTRACTNO, src => src.CONTRACTNO)//运费协议号=约号 .Map(dest => dest.CONSIGNEEDOORADDR, src => src.CONSIGNEEDOORADDR) .Map(dest => dest.SHIPPERDOORADDR, src => src.SHIPPERDOORADDR) .Map(dest => dest.SCACCODE, src => src.SCACCODE) .Map(dest => dest.ISCONTAINERSOC, src => src.ISCONTAINERSOC) .Map(dest => dest.FREIGHTPAYER, src => src.FREIGHTPAYER) .Map(dest => dest.PLACEDELIVERYID, src => src.PLACEDELIVERYID) .Map(dest => dest.PLACEDELIVERY, src => src.PLACEDELIVERY) .Map(dest => dest.CARRIER, src => src.CARRIER) .Map(dest => dest.CARRIERID, src => src.CARRIERID) .Map(dest => dest.GOODSCODE, src => src.GOODSCODE); config.ForType() .Map(dest => dest.CTNNUM, src => src.CTNNUM.HasValue? src.CTNNUM.Value:0) .Map(dest => dest.CNTRNO, src => src.CNTRNO) .Map(dest => dest.SEALNO, src => src.SEALNO) .Map(dest => dest.PKGS, src => src.PKGS.HasValue? src.PKGS.Value:0) .Map(dest => dest.KINDPKGS, src => src.KINDPKGS) .Map(dest => dest.KGS, src => src.KGS.HasValue ? src.KGS.Value:0) .Map(dest => dest.CBM, src => src.CBM.HasValue ? src.CBM.Value : 0) .Map(dest => dest.TAREWEIGHT, src => src.TAREWEIGHT.HasValue ? src.TAREWEIGHT.Value : 0); config.ForType() //.Map(dest => dest.CNTRNO, src => src.CNTRNO) .Map(dest => dest.HSCODE, src => src.HSCODE) .Map(dest => dest.MARKS, src => src.MARKS) .Map(dest => dest.DESCRIPTION, src => src.DESCRIPTION) .Map(dest => dest.PKGS, src => src.PKGS.HasValue ? src.PKGS.Value : 0) .Map(dest => dest.KINDPKGS, src => src.KINDPKGS) .Map(dest => dest.KGS, src => src.KGS.HasValue ? src.KGS.Value : 0) .Map(dest => dest.CBM, src => src.CBM.HasValue ? src.CBM.Value : 0); config.ForType() .Map(dest => dest.CARRIERID, src => src.carrierId) .Map(dest => dest.PRICE_REFERENCE, src => src.priceReference) .Map(dest => dest.PRODUCT_CODE, src => src.productCode) .Map(dest => dest.SENDER, src => src.sender) .Map(dest => dest.BOOKEDBY_COMPANY_NAME, src => src.bookedByCompanyName) .Map(dest => dest.BOOKEDBY_COMPANY_PARTYCODE, src => src.bookedByMaerskPartyCode) .Map(dest => dest.BOOKEDBY_COMPANY_CONTACT, src => src.bookedByCompanyContactName) .Map(dest => dest.BOOKEDBY_COMPANY_CONTACT_EMAIL, src => src.bookedByCompanyContactEmail) .Map(dest => dest.IS_BOOKING_PART_OWN_PRICE, src => src.isBookingPartOwnPrice) .Map(dest => dest.PRICE_OWNER_COMPANY_NAME, src => src.priceOwnerCompanyName) .Map(dest => dest.PRICE_OWNER_COMPANY_PARTYCODE, src => src.priceOwnerMaerskPartyCode) .Map(dest => dest.PRICE_OWNER_COMPANY_CONTACT, src => src.priceOwnerContactName) .Map(dest => dest.PRICE_OWNER_COMPANY_CONTACT_EMAIL, src => src.priceOwnerContactEmail) .Map(dest => dest.CARRIER_CODE, src => src.carrierCode) .Map(dest => dest.EARLIEST_DEPARTURE_DATE, src => src.earliestDepartureDate) .Map(dest => dest.EXPORT_SERVICE_MODE, src => src.exportServiceMode) .Map(dest => dest.IMPORT_SERVICE_MODE, src => src.importServiceMode) .Map(dest => dest.PLACERECEIPT_CITY, src => src.placeOfReceiptCityName) .Map(dest => dest.PLACERECEIPT_UNLOC_CODE, src => src.placeOfReceiptUnLocCode) .Map(dest => dest.PLACEDELIVERY_CITY, src => src.placeOfDeliveryCityName) .Map(dest => dest.PLACEDELIVERY_UNLOC_CODE, src => src.placeOfDeliveryUnLocCode) .Map(dest => dest.ETD, src => src.originDepartureDateTimeLocal) .Map(dest => dest.ETA, src => src.destinationArrivalDateTimeLocal) .Map(dest => dest.VESSEL, src => src.vesselName) .Map(dest => dest.VESSEL_CODE, src => src.carrierVesselCode) .Map(dest => dest.VOYNO, src => src.exportVoyageNumber) .Map(dest => dest.TRANSPORT_MODE, src => src.transportMode) .Map(dest => dest.TOTAL_CARGO_WEIGHT, src => src.totalCargoWeight) .Map(dest => dest.NO_OF_PROBES, src => src.noOfProbes) .Map(dest => dest.TEMPSET, src => src.temperature) .Map(dest => dest.VENT, src => src.ventilation) .Map(dest => dest.HUMIDITY, src => src.humidity) .Map(dest => dest.COMMODITY_CODE_TYPE, src => src.commodityCodeType) .Map(dest => dest.GOODSCODE, src => src.commodityCode) .Map(dest => dest.GOODSNAME, src => src.commodityName) .Map(dest => dest.CARGO_TYPE, src => src.cargoType) .Map(dest => dest.PLACERECEIPT_COUNTRY_CODE, src => src.placeOfReceiptCountryCode) .Map(dest => dest.PLACEDELIVERY_COUNTRY_CODE, src => src.placeOfDeliveryCountryCode) .Map(dest => dest.EST_SAILING_DAYS, src => src.EstSailingDays) .Map(dest => dest.PRICE_REFERENCE_ID, src => src.priceReferenceId) .Map(dest => dest.PRICE_REFERENCE_NAME, src => src.priceReferenceName) .Map(dest => dest.PRICE_OWNER_REFERENCE_ID, src => src.priceOwnerReferenceId) .Map(dest => dest.PRICE_OWNER_REFERENCE, src => src.priceOwnerReference) .Map(dest => dest.PRICE_OWNER_REFERENCE_NAME, src => src.priceOwnerReferenceName) .Map(dest => dest.IS_REEFER, src => src.isReefer) .Map(dest => dest.IS_SHIPPER_OWNED, src => src.isShipperOwned) .Map(dest => dest.IS_IMPORT_RETURNED, src => src.isImportReturned) .Map(dest => dest.CARRIER_PRODUCT_ID, src => src.carrierProductId) .Map(dest => dest.IS_SEND_NO_SCHEDULE, src => src.isSendNoSchedule) .Map(dest => dest.PLACERECEIPT_COUNTRY_NAME, src => src.placeOfReceiptCountryName) .Map(dest => dest.PLACERECEIPT_REGION_NAME, src => src.placeOfReceiptRegionName) .Map(dest => dest.PLACEDELIVERY_COUNTRY_NAME, src => src.placeOfDeliveryCountryName) .Map(dest => dest.PLACEDELIVERY_REGION_NAME, src => src.placeOfDeliveryRegionName) .Map(dest => dest.USER_PLACEDELIVERY_CITY, src => src.userPlaceOfDeliveryCityName) .Map(dest => dest.USER_PLACEDELIVERY_COUNTRY_CODE, src => src.userPlaceOfDeliveryCountryCode) .Map(dest => dest.USER_PLACEDELIVERY_COUNTRY_NAME, src => src.userPlaceOfDeliveryCountryName) .Map(dest => dest.USER_PLACEDELIVERY_UNLOC_CODE, src => src.userPlaceOfDeliveryUnLocCode) .Map(dest => dest.USER_PLACEDELIVERY_REGION_NAME, src => src.userPlaceOfDeliveryRegionName) .Map(dest => dest.USER_PLACERECEIPT_CITY, src => src.userPlaceOfReceiptCityName) .Map(dest => dest.USER_PLACERECEIPT_COUNTRY_CODE, src => src.userPlaceOfReceiptCountryCode) .Map(dest => dest.USER_PLACERECEIPT_COUNTRY_NAME, src => src.userPlaceOfReceiptCountryName) .Map(dest => dest.USER_PLACERECEIPT_UNLOC_CODE, src => src.userPlaceOfReceiptUnLocCode) .Map(dest => dest.USER_PLACERECEIPT_REGION_NAME, src => src.userPlaceOfReceiptRegionName) .Map(dest => dest.SHIP_RATE_PID, src => src.PId) .Map(dest => dest.SHIP_RATE_MD5, src => src.MD5) .Map(dest => dest.PLACERECEIPT_GEO_ID, src => src.carrierCollectionOriginGeoID) .Map(dest => dest.PLACEDELIVERY_GEO_ID, src => src.carrierDeliveryDestinationGeoID); config.ForType() .Map(dest => dest.id, src => src.Id) .Map(dest => dest.carrierId, src => src.CARRIERID) .Map(dest => dest.priceReference, src => src.PRICE_REFERENCE) .Map(dest => dest.productCode, src => src.PRODUCT_CODE) .Map(dest => dest.sender, src => src.SENDER) .Map(dest => dest.bookedByCompanyName, src => src.BOOKEDBY_COMPANY_NAME) .Map(dest => dest.bookedByMaerskPartyCode, src => src.BOOKEDBY_COMPANY_PARTYCODE) .Map(dest => dest.bookedByCompanyContactName, src => src.BOOKEDBY_COMPANY_CONTACT) .Map(dest => dest.bookedByCompanyContactEmail, src => src.BOOKEDBY_COMPANY_CONTACT_EMAIL) .Map(dest => dest.isBookingPartOwnPrice, src => src.IS_BOOKING_PART_OWN_PRICE) .Map(dest => dest.priceOwnerCompanyName, src => src.PRICE_OWNER_COMPANY_NAME) .Map(dest => dest.priceOwnerMaerskPartyCode, src => src.PRICE_OWNER_COMPANY_PARTYCODE) .Map(dest => dest.priceOwnerContactName, src => src.PRICE_OWNER_COMPANY_CONTACT) .Map(dest => dest.priceOwnerContactEmail, src => src.PRICE_OWNER_COMPANY_CONTACT_EMAIL) .Map(dest => dest.carrierCode, src => src.CARRIER_CODE) .Map(dest => dest.earliestDepartureDate, src => src.EARLIEST_DEPARTURE_DATE) .Map(dest => dest.exportServiceMode, src => src.EXPORT_SERVICE_MODE) .Map(dest => dest.importServiceMode, src => src.IMPORT_SERVICE_MODE) .Map(dest => dest.placeOfReceiptCityName, src => src.PLACERECEIPT_CITY) .Map(dest => dest.placeOfReceiptUnLocCode, src => src.PLACERECEIPT_UNLOC_CODE) .Map(dest => dest.placeOfDeliveryCityName, src => src.PLACEDELIVERY_CITY) .Map(dest => dest.placeOfDeliveryUnLocCode, src => src.PLACEDELIVERY_UNLOC_CODE) .Map(dest => dest.originDepartureDateTimeLocal, src => src.ETD) .Map(dest => dest.destinationArrivalDateTimeLocal, src => src.ETA) .Map(dest => dest.vesselName, src => src.VESSEL) .Map(dest => dest.carrierVesselCode, src => src.VESSEL_CODE) .Map(dest => dest.exportVoyageNumber, src => src.VOYNO) .Map(dest => dest.transportMode, src => src.TRANSPORT_MODE) .Map(dest => dest.totalCargoWeight, src => src.TOTAL_CARGO_WEIGHT) .Map(dest => dest.noOfProbes, src => src.NO_OF_PROBES) .Map(dest => dest.temperature, src => src.TEMPSET) .Map(dest => dest.ventilation, src => src.VENT) .Map(dest => dest.humidity, src => src.HUMIDITY) .Map(dest => dest.commodityCodeType, src => src.COMMODITY_CODE_TYPE) .Map(dest => dest.commodityCode, src => src.GOODSCODE) .Map(dest => dest.commodityName, src => src.GOODSNAME) .Map(dest => dest.isReefer, src => src.IS_REEFER) .Map(dest => dest.cargoType, src => src.CARGO_TYPE) .Map(dest => dest.placeOfReceiptCountryCode, src => src.PLACERECEIPT_COUNTRY_CODE) .Map(dest => dest.placeOfDeliveryCountryCode, src => src.PLACEDELIVERY_COUNTRY_CODE) .Map(dest => dest.EstSailingDays, src => src.EST_SAILING_DAYS) .Map(dest => dest.priceReferenceId, src => src.PRICE_REFERENCE_ID) .Map(dest => dest.priceReferenceName, src => src.PRICE_REFERENCE_NAME) .Map(dest => dest.priceOwnerReferenceId, src => src.PRICE_OWNER_REFERENCE_ID) .Map(dest => dest.priceOwnerReference, src => src.PRICE_OWNER_REFERENCE) .Map(dest => dest.priceOwnerReferenceName, src => src.PRICE_OWNER_REFERENCE_NAME) .Map(dest => dest.isShipperOwned, src => src.IS_SHIPPER_OWNED) .Map(dest => dest.isImportReturned, src => src.IS_IMPORT_RETURNED) .Map(dest => dest.carrierProductId, src => src.CARRIER_PRODUCT_ID) .Map(dest => dest.isSendNoSchedule, src => src.IS_SEND_NO_SCHEDULE) .Map(dest => dest.placeOfReceiptCountryName, src => src.PLACERECEIPT_COUNTRY_NAME) .Map(dest => dest.placeOfReceiptRegionName, src => src.PLACERECEIPT_REGION_NAME) .Map(dest => dest.placeOfDeliveryCountryName, src => src.PLACEDELIVERY_COUNTRY_NAME) .Map(dest => dest.placeOfDeliveryRegionName, src => src.PLACEDELIVERY_REGION_NAME) .Map(dest => dest.userPlaceOfDeliveryCityName, src => src.USER_PLACEDELIVERY_CITY) .Map(dest => dest.userPlaceOfDeliveryCountryCode, src => src.USER_PLACEDELIVERY_COUNTRY_CODE) .Map(dest => dest.userPlaceOfDeliveryCountryName, src => src.USER_PLACEDELIVERY_COUNTRY_NAME) .Map(dest => dest.userPlaceOfDeliveryUnLocCode, src => src.USER_PLACEDELIVERY_UNLOC_CODE) .Map(dest => dest.userPlaceOfDeliveryRegionName, src => src.USER_PLACEDELIVERY_REGION_NAME) .Map(dest => dest.userPlaceOfReceiptCityName, src => src.USER_PLACERECEIPT_CITY) .Map(dest => dest.userPlaceOfReceiptCountryCode, src => src.USER_PLACERECEIPT_COUNTRY_CODE) .Map(dest => dest.userPlaceOfReceiptCountryName, src => src.USER_PLACERECEIPT_COUNTRY_NAME) .Map(dest => dest.userPlaceOfReceiptUnLocCode, src => src.USER_PLACERECEIPT_UNLOC_CODE) .Map(dest => dest.userPlaceOfReceiptRegionName, src => src.USER_PLACERECEIPT_REGION_NAME) .Map(dest => dest.PId, src => src.SHIP_RATE_PID) .Map(dest => dest.MD5, src => src.SHIP_RATE_MD5) .Map(dest => dest.bookingChannelTypeName, src => src.BOOKING_CHANNEL_TYPE_NAME) .Map(dest => dest.bookingChannelType, src => src.BOOKING_CHANNEL_TYPE) .Map(dest => dest.carrierCollectionOriginGeoID, src => src.PLACERECEIPT_GEO_ID) .Map(dest => dest.carrierDeliveryDestinationGeoID, src => src.PLACEDELIVERY_GEO_ID) .Map(dest => dest.Status, src => src.STATUS); config.ForType() .Map(dest => dest.CTN_CODE, src => src.ctnCode) .Map(dest => dest.CTN_NAME, src => src.ctnName) .Map(dest => dest.CTN_NUM, src => src.ctnNum) .Map(dest => dest.CTN_SUFFER_WEIGHT, src => src.ctnSufferWeight); config.ForType() .Map(dest => dest.id, src => src.Id) .Map(dest => dest.carrierId, src => src.CARRIERID) .Map(dest => dest.priceReference, src => src.PRICE_REFERENCE) .Map(dest => dest.productCode, src => src.PRODUCT_CODE) .Map(dest => dest.sender, src => src.SENDER) .Map(dest => dest.bookedByCompanyName, src => src.BOOKEDBY_COMPANY_NAME) .Map(dest => dest.bookedByCompanyPartyCode, src => src.BOOKEDBY_COMPANY_PARTYCODE) .Map(dest => dest.bookedByCompanyContact, src => src.BOOKEDBY_COMPANY_CONTACT) .Map(dest => dest.bookedByCompanyEmail, src => src.BOOKEDBY_COMPANY_CONTACT_EMAIL) .Map(dest => dest.isbookingPartOwnPrice, src => src.IS_BOOKING_PART_OWN_PRICE) .Map(dest => dest.priceOwnerCompanyName, src => src.PRICE_OWNER_COMPANY_NAME) .Map(dest => dest.priceOwnerCompanyPartyCode, src => src.PRICE_OWNER_COMPANY_PARTYCODE) .Map(dest => dest.priceOwnerCompanyContact, src => src.PRICE_OWNER_COMPANY_CONTACT) .Map(dest => dest.priceOwnerCompanyContactEmail, src => src.PRICE_OWNER_COMPANY_CONTACT_EMAIL) .Map(dest => dest.carrierCode, src => src.CARRIER_CODE) .Map(dest => dest.earliestDepartureDate, src => src.EARLIEST_DEPARTURE_DATE) .Map(dest => dest.exportServiceMode, src => src.EXPORT_SERVICE_MODE) .Map(dest => dest.importServiceMode, src => src.IMPORT_SERVICE_MODE) .Map(dest => dest.placeReceiptCity, src => src.PLACERECEIPT_CITY) .Map(dest => dest.placeReceiptUnlocCode, src => src.PLACERECEIPT_UNLOC_CODE) .Map(dest => dest.placeDeliveryCity, src => src.PLACEDELIVERY_CITY) .Map(dest => dest.placeDeliveryUnlocCode, src => src.PLACEDELIVERY_UNLOC_CODE) .Map(dest => dest.etd, src => src.ETD) .Map(dest => dest.atd, src => src.ETA) .Map(dest => dest.vessel, src => src.VESSEL) .Map(dest => dest.vesselCode, src => src.VESSEL_CODE) .Map(dest => dest.voyno, src => src.VOYNO) .Map(dest => dest.transportMode, src => src.TRANSPORT_MODE) .Map(dest => dest.totalCargoWeight, src => src.TOTAL_CARGO_WEIGHT) .Map(dest => dest.noOfProbes, src => src.NO_OF_PROBES) .Map(dest => dest.tempSet, src => src.TEMPSET) .Map(dest => dest.tempId, src => src.TEMPID) .Map(dest => dest.vent, src => src.VENT) .Map(dest => dest.humidity, src => src.HUMIDITY) .Map(dest => dest.commodityCodeType, src => src.COMMODITY_CODE_TYPE) .Map(dest => dest.goodsCode, src => src.GOODSCODE) .Map(dest => dest.goodsName, src => src.GOODSNAME) .Map(dest => dest.isReefer, src => src.IS_REEFER) .Map(dest => dest.cargoType, src => src.CARGO_TYPE) .Map(dest => dest.placeDeliveryId, src => src.PLACEDELIVERYID) .Map(dest => dest.placeDelivery, src => src.PLACEDELIVERY) .Map(dest => dest.portLoadId, src => src.PORTLOADID) .Map(dest => dest.portLoad, src => src.PORTLOAD) .Map(dest => dest.portDischargeId, src => src.PORTDISCHARGEID) .Map(dest => dest.portDischarge, src => src.PORTDISCHARGE) .Map(dest => dest.laneCode, src => src.LANECODE) .Map(dest => dest.laneName, src => src.LANENAME) .Map(dest => dest.carriageType, src => src.CARRIAGE_TYPE) .Map(dest => dest.carriageTypeName, src => src.CARRIAGE_TYPE_NAME) .Map(dest => dest.bookingSlotType, src => src.BOOKING_SLOT_TYPE) .Map(dest => dest.bookingSlotTypeName, src => src.BOOKING_SLOT_TYPE_NAME) .Map(dest => dest.issueType, src => src.ISSUETYPE) .Map(dest => dest.ctnStat, src => src.CTN_STAT) .Map(dest => dest.weekAt, src => src.WEEK_AT) .Map(dest => dest.sendTime, src => src.SEND_TIME) .Map(dest => dest.cargoType, src => src.CARGO_TYPE) .Map(dest => dest.placeOfReceiptCountryCode, src => src.PLACERECEIPT_COUNTRY_CODE) .Map(dest => dest.placeOfDeliveryCountryCode, src => src.PLACEDELIVERY_COUNTRY_CODE) .Map(dest => dest.EstSailingDays, src => src.EST_SAILING_DAYS) .Map(dest => dest.priceReferenceId, src => src.PRICE_REFERENCE_ID) .Map(dest => dest.priceReferenceName, src => src.PRICE_REFERENCE_NAME) .Map(dest => dest.statusName, src => src.STATUS_NAME) .Map(dest => dest.priceOwnerReferenceId, src => src.PRICE_OWNER_REFERENCE_ID) .Map(dest => dest.priceOwnerReference, src => src.PRICE_OWNER_REFERENCE) .Map(dest => dest.priceOwnerReferenceName, src => src.PRICE_OWNER_REFERENCE_NAME) .Map(dest => dest.CreatedTime, src => src.CreatedTime) .Map(dest => dest.CreatedUserId, src => src.CreatedUserId) .Map(dest => dest.CreatedUserName, src => src.CreatedUserName) .Map(dest => dest.UpdatedTime, src => src.UpdatedTime) .Map(dest => dest.UpdatedUserId, src => src.UpdatedUserId) .Map(dest => dest.UpdatedUserName, src => src.UpdatedUserName) .Map(dest => dest.isShipperOwned, src => src.IS_SHIPPER_OWNED) .Map(dest => dest.isImportReturned, src => src.IS_IMPORT_RETURNED) .Map(dest => dest.isRecvBC, src => src.IS_RECV_BC) .Map(dest => dest.LstRecvBCDate, src => src.LST_RECV_BC_DATE) .Map(dest => dest.isRecvBKCancel, src => src.IS_RECV_BK_CANCEL) .Map(dest => dest.LstRecvBKCancelDate, src => src.LST_RECV_BK_CANCEL_DATE) .Map(dest => dest.TimerPlanId, src => src.TIMER_PLAN_ID) .Map(dest => dest.TimerPlanName, src => src.TIMER_PLAN_NAME); config.ForType() .Map(dest => dest.id, src => src.Id) .Map(dest => dest.carrierId, src => src.CARRIERID) .Map(dest => dest.priceReference, src => src.PRICE_REFERENCE) .Map(dest => dest.productCode, src => src.PRODUCT_CODE) .Map(dest => dest.sender, src => src.SENDER) .Map(dest => dest.bookedByCompanyName, src => src.BOOKEDBY_COMPANY_NAME) .Map(dest => dest.bookedByCompanyPartyCode, src => src.BOOKEDBY_COMPANY_PARTYCODE) .Map(dest => dest.bookedByCompanyContact, src => src.BOOKEDBY_COMPANY_CONTACT) .Map(dest => dest.bookedByCompanyEmail, src => src.BOOKEDBY_COMPANY_CONTACT_EMAIL) .Map(dest => dest.isbookingPartOwnPrice, src => src.IS_BOOKING_PART_OWN_PRICE) .Map(dest => dest.priceOwnerCompanyName, src => src.PRICE_OWNER_COMPANY_NAME) .Map(dest => dest.priceOwnerCompanyPartyCode, src => src.PRICE_OWNER_COMPANY_PARTYCODE) .Map(dest => dest.priceOwnerCompanyContact, src => src.PRICE_OWNER_COMPANY_CONTACT) .Map(dest => dest.priceOwnerCompanyContactEmail, src => src.PRICE_OWNER_COMPANY_CONTACT_EMAIL) .Map(dest => dest.carrierCode, src => src.CARRIER_CODE) .Map(dest => dest.earliestDepartureDate, src => src.EARLIEST_DEPARTURE_DATE) .Map(dest => dest.exportServiceMode, src => src.EXPORT_SERVICE_MODE) .Map(dest => dest.importServiceMode, src => src.IMPORT_SERVICE_MODE) .Map(dest => dest.placeReceiptCity, src => src.PLACERECEIPT_CITY) .Map(dest => dest.placeReceiptUnlocCode, src => src.PLACERECEIPT_UNLOC_CODE) .Map(dest => dest.placeDeliveryCity, src => src.PLACEDELIVERY_CITY) .Map(dest => dest.placeDeliveryUnlocCode, src => src.PLACEDELIVERY_UNLOC_CODE) .Map(dest => dest.etd, src => src.ETD) .Map(dest => dest.atd, src => src.ETA) .Map(dest => dest.vessel, src => src.VESSEL) .Map(dest => dest.vesselCode, src => src.VESSEL_CODE) .Map(dest => dest.voyno, src => src.VOYNO) .Map(dest => dest.transportMode, src => src.TRANSPORT_MODE) .Map(dest => dest.totalCargoWeight, src => src.TOTAL_CARGO_WEIGHT) .Map(dest => dest.noOfProbes, src => src.NO_OF_PROBES) .Map(dest => dest.tempSet, src => src.TEMPSET) .Map(dest => dest.tempId, src => src.TEMPID) .Map(dest => dest.vent, src => src.VENT) .Map(dest => dest.humidity, src => src.HUMIDITY) .Map(dest => dest.commodityCodeType, src => src.COMMODITY_CODE_TYPE) .Map(dest => dest.goodsCode, src => src.GOODSCODE) .Map(dest => dest.goodsName, src => src.GOODSNAME) .Map(dest => dest.isReefer, src => src.IS_REEFER) .Map(dest => dest.cargoType, src => src.CARGO_TYPE) .Map(dest => dest.placeDeliveryId, src => src.PLACEDELIVERYID) .Map(dest => dest.placeDelivery, src => src.PLACEDELIVERY) .Map(dest => dest.portLoadId, src => src.PORTLOADID) .Map(dest => dest.portLoad, src => src.PORTLOAD) .Map(dest => dest.portDischargeId, src => src.PORTDISCHARGEID) .Map(dest => dest.portDischarge, src => src.PORTDISCHARGE) .Map(dest => dest.laneCode, src => src.LANECODE) .Map(dest => dest.laneName, src => src.LANENAME) .Map(dest => dest.carriageType, src => src.CARRIAGE_TYPE) .Map(dest => dest.carriageTypeName, src => src.CARRIAGE_TYPE_NAME) .Map(dest => dest.bookingSlotType, src => src.BOOKING_SLOT_TYPE) .Map(dest => dest.bookingSlotTypeName, src => src.BOOKING_SLOT_TYPE_NAME) .Map(dest => dest.issueType, src => src.ISSUETYPE) .Map(dest => dest.ctnStat, src => src.CTN_STAT) .Map(dest => dest.weekAt, src => src.WEEK_AT) .Map(dest => dest.sendTime, src => src.SEND_TIME) .Map(dest => dest.cargoType, src => src.CARGO_TYPE) .Map(dest => dest.priceReferenceId, src => src.PRICE_REFERENCE_ID) .Map(dest => dest.priceReferenceName, src => src.PRICE_REFERENCE_NAME) .Map(dest => dest.statusName, src => src.STATUS_NAME) .Map(dest => dest.CreatedTime, src => src.CreatedTime) .Map(dest => dest.CreatedUserId, src => src.CreatedUserId) .Map(dest => dest.CreatedUserName, src => src.CreatedUserName) .Map(dest => dest.UpdatedTime, src => src.UpdatedTime) .Map(dest => dest.UpdatedUserId, src => src.UpdatedUserId) .Map(dest => dest.UpdatedUserName, src => src.UpdatedUserName) .Map(dest => dest.isShipperOwned, src => src.IS_SHIPPER_OWNED) .Map(dest => dest.isImportReturned, src => src.IS_IMPORT_RETURNED) .Map(dest => dest.isRecvBC, src => src.IS_RECV_BC) .Map(dest => dest.LstRecvBCDate, src => src.LST_RECV_BC_DATE) .Map(dest => dest.isRecvBKCancel, src => src.IS_RECV_BK_CANCEL) .Map(dest => dest.LstRecvBKCancelDate, src => src.LST_RECV_BK_CANCEL_DATE) .Map(dest => dest.bookingReference, src => src.BOOKING_REFERENCE) .Map(dest => dest.estSailingDays, src => src.EST_SAILING_DAYS) .Map(dest => dest.PId, src => src.SHIP_RATE_PID) .Map(dest => dest.priceID, src => src.PRICE_ID) .Map(dest => dest.ShipRateTotalAmount, src => src.SHIP_RATE_TOTAL_AMOUNT) .Map(dest => dest.ShipRateTotalCurrency, src => src.SHIP_RATE_TOTAL_CURRENCY) .Map(dest => dest.bookingChannelType, src => src.BOOKING_CHANNEL_TYPE) .Map(dest => dest.bookingChannelTypeName, src => src.BOOKING_CHANNEL_TYPE_NAME) .Map(dest => dest.isJob, src => src.IS_JOB) .Map(dest => dest.jobTime, src => src.JOB_TIME) .Map(dest => dest.timerPlanId, src => src.TIMER_PLAN_ID) .Map(dest => dest.timerPlanName, src => src.TIMER_PLAN_NAME); } } }