using AutoMapper; using Volo.Abp.AutoMapper; using Win_in.Sfs.Shared.Application; using Win_in.Sfs.Wms.DataExchange.Domain; using Win_in.Sfs.Wms.DataExchange.WMS.BackFlushNote; using Win_in.Sfs.Wms.DataExchange.WMS.MaterialRequest; using Win_in.Sfs.Wms.DataExchange.WMS.PCK; using Win_in.Sfs.Wms.DataExchange.WMS.ProductReceiptNote; using Win_in.Sfs.Wms.DataExchange.WMS.ScrapNote; using Win_in.Sfs.Wms.Store.Application.Contracts; namespace Win_in.Sfs.Wms.DataExchange.Fawtyg.MesAgent; public class FawtygAutoMapperProfile : Profile { public FawtygAutoMapperProfile() { CreateMap(); CreateMap(); CreateMap(); CreateMap(); CreateMap(); CreateMap(); CreateMap() .Ignore(x => x.Number) .Ignore(x => x.ProductionPlanNumber) .Ignore(x => x.JobNumber) .Ignore(x => x.WorkShop) //必填 .Ignore(x => x.ReceiptType) .Ignore(x => x.SourceNumber) .Ignore(x => x.Worker) .Ignore(x => x.Remark) .Ignore(x => x.Details) .Ignore(x => x.ExtraProperties); CreateMap() .Ignore(x => x.Shift) .Ignore(x => x.ProdLine) .Ignore(x => x.BomVersion) .Ignore(x => x.Status) .Ignore(x => x.PackingCode) .Ignore(x => x.ContainerCode) .Ignore(x => x.StdPackQty) .Ignore(x => x.Lot) //必填 .Ignore(x => x.SupplierBatch) .Ignore(x => x.ArriveDate) .Ignore(x => x.ProduceDate) .Ignore(x => x.ExpireDate) .Ignore(x => x.ItemName) .Ignore(x => x.ItemDesc1) .Ignore(x => x.ItemDesc2) .Ignore(x => x.RecommendContainerCode) .Ignore(x => x.RecommendPackingCode) .Ignore(x => x.RecommendSupplierBatch) .Ignore(x => x.RecommendArriveDate) .Ignore(x => x.RecommendProduceDate) .Ignore(x => x.RecommendExpireDate) .Ignore(x => x.RecommendLot) .Ignore(x => x.RecommendToLocationCode) .Ignore(x => x.RecommendToLocationArea) .Ignore(x => x.RecommendToLocationGroup) .Ignore(x => x.RecommendToLocationErpCode) .Ignore(x => x.RecommendToWarehouseCode) .Ignore(x => x.RecommendQty) .Ignore(t => t.HandledContainerCode) .Ignore(x => x.HandledPackingCode) .Ignore(x => x.HandledSupplierBatch) .Ignore(x => x.HandledArriveDate) .Ignore(x => x.HandledProduceDate) .Ignore(x => x.HandledExpireDate) .Ignore(x => x.HandledLot) .Ignore(x => x.HandledToLocationCode) .Ignore(x => x.HandledToLocationArea) .Ignore(x => x.HandledToLocationGroup) .Ignore(x => x.HandledToLocationErpCode) .Ignore(x => x.HandledToWarehouseCode) .Ignore(x => x.HandledQty); CreateMap() //必填 .Ignore(x => x.Workshop) .Ignore(x => x.ProdLine) .Ignore(x => x.PreparationPlanNumber) .Ignore(x => x.AutoSubmit) .Ignore(x => x.AutoAgree) .Ignore(x => x.AutoHandle) .Ignore(x => x.AutoCompleteJob) .Ignore(x => x.DirectCreateNote) .Ignore(x => x.Worker) .Ignore(x => x.ActiveDate) .Ignore(x => x.Remark) .Ignore(x => x.Details) .Ignore(x => x.ExtraProperties); CreateMap() .Ignore(x => x.ProdLine) .Ignore(x => x.WorkStation) .Ignore(x => x.ExpiredTime) .Ignore(x => x.RequestStatus) .Ignore(x => x.ToLocationErpCode) .Ignore(x => x.Uom) .Ignore(x => x.StdPackQty) .Ignore(x => x.Remark) .Ignore(x => x.ItemName) .Ignore(x => x.ItemDesc1) .Ignore(x => x.ItemDesc2); CreateMap() .Ignore(x => x.Details) .Ignore(x => x.ExtraProperties) .Ignore(x => x.JobNumber) .Ignore(x => x.Workshop) .Ignore(x => x.RequestNumber) .Ignore(x => x.Worker) .Ignore(x => x.ActiveDate) ; CreateMap() .Ignore(x => x.ItemName) .Ignore(x => x.ItemDesc1) .Ignore(x => x.ItemDesc2) .Ignore(x => x.IssueTime) .Ignore(x => x.ExpiredTime) .Ignore(x => x.ProdLine) .Ignore(x => x.WorkStation) .Ignore(x => x.FromContainerCode) .Ignore(x => x.ToContainerCode) .Ignore(x => x.FromLot) .Ignore(x => x.ToLot) .Ignore(x => x.SupplierBatch) .Ignore(x => x.ArriveDate) .Ignore(x => x.ProduceDate) .Ignore(x => x.ExpireDate) .Ignore(x => x.FromLocationCode) .Ignore(x => x.FromLocationErpCode) .Ignore(x => x.FromWarehouseCode) .Ignore(x => x.StdPackQty) .Ignore(x => x.Remark) .Ignore(x => x.ToPackingCode) .Ignore(x => x.ToWarehouseCode) .Ignore(x => x.FromStatus) .Ignore(x => x.ToStatus) .Ignore(x => x.Uom) .IgnoreIHasRecommendAndHandledFrom(); CreateMap() .Ignore(x => x.Detail) ; CreateMap(); CreateMap() .Ignore(x => x.Details) .Ignore(x => x.ExtraProperties) .Ignore(x => x.Number) .Ignore(x => x.JobNumber) ; CreateMap() .Ignore(x => x.ItemName) .Ignore(x => x.ItemDesc1) .Ignore(x => x.ItemDesc2) .Ignore(x => x.FromPackingCode) .Ignore(x => x.ToPackingCode) .Ignore(x => x.FromContainerCode) .Ignore(x => x.ToContainerCode) .Ignore(x => x.FromLot) .Ignore(x => x.ToLot) .Ignore(x => x.SupplierBatch) .Ignore(x => x.ArriveDate) .Ignore(x => x.ProduceDate) .Ignore(x => x.ExpireDate) .Ignore(x => x.ToWarehouseCode) .Ignore(x => x.ToWarehouseCode) .Ignore(x => x.Uom) .Ignore(x => x.StdPackQty) ; } }