Browse Source

修改映射

集成Redis
郑勃旭 2 years ago
parent
commit
080519c04f
  1. 3
      be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application/Calendars/InterfaceCalendarAutoMapperProfile.cs
  2. 5
      be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application/CustomerItems/CustomerItemAutoMapperProfile.cs
  3. 4
      be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application/ErpLocations/ErpLocationAutoMapperProfile.cs
  4. 4
      be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application/ItemPacks/ItemPackAutoMapperProfile.cs
  5. 5
      be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application/SupplierItems/SupplierItemAutoMapperProfile.cs
  6. 1
      be/Modules/Inventory/src/Win_in.Sfs.Wms.Inventory.Application/Balances/BalanceAutoMapperProfile.cs
  7. 9
      be/Modules/Label/src/Win_in.Sfs.Label.Application/InventoryLabels/InventoryLabelAutoMapperProfile.cs
  8. 4
      be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Notes/BackFlushNotes/BackFlushNoteAutoMapperProfile.cs
  9. 5
      be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Notes/ProductReceiptNotes/ProductReceiptNoteAutoMapperProfile.cs
  10. 2
      be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Orders/PurchaseOrders/PurchaseOrderAutoMapperProfile.cs
  11. 4
      be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Orders/SaleOrders/SaleOrderAutoMapperProfile.cs

3
be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application/Calendars/InterfaceCalendarAutoMapperProfile.cs

@ -12,5 +12,8 @@ public partial class BasedataApplicationAutoMapperProfile : Profile
CreateMap<InterfaceCalendar, InterfaceCalendarDTO>()
.IgnoreAuditedObjectProperties()
.ReverseMap();
CreateMap<InterfaceCalendarEditInput, InterfaceCalendar>()
.IgnoreAuditedObjectProperties()
.Ignore(x => x.ConcurrencyStamp).Ignore(x => x.Id);
}
}

5
be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application/CustomerItems/CustomerItemAutoMapperProfile.cs

@ -23,7 +23,10 @@ public partial class BasedataApplicationAutoMapperProfile : Profile
.Ignore(x => x.ReportStatus)
.Ignore(x => x.ReportReason)
;
CreateMap<CustomerItemEditInput, CustomerItem>()
.IgnoreAuditedObjectProperties()
.Ignore(x => x.ConcurrencyStamp)
.Ignore(x => x.Id);
}
}

4
be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application/ErpLocations/ErpLocationAutoMapperProfile.cs

@ -18,6 +18,8 @@ public partial class BasedataApplicationAutoMapperProfile : Profile
.Ignore(x => x.Remark)
.Ignore(x => x.ExtraProperties)
.Ignore(x => x.ConcurrencyStamp);
CreateMap<ErpLocationEditInput, ErpLocation>()
.IgnoreAuditedObjectProperties()
.Ignore(x => x.ConcurrencyStamp).Ignore(x => x.Id);
}
}

4
be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application/ItemPacks/ItemPackAutoMapperProfile.cs

@ -26,6 +26,8 @@ public partial class BasedataApplicationAutoMapperProfile : Profile
.Ignore(x => x.ExtraProperties)
.Ignore(x => x.ConcurrencyStamp)
;
CreateMap<ItemPackEditInput, ItemPack>()
.IgnoreAuditedObjectProperties()
.Ignore(x => x.ConcurrencyStamp).Ignore(x => x.Id);
}
}

5
be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application/SupplierItems/SupplierItemAutoMapperProfile.cs

@ -24,5 +24,10 @@ public partial class BasedataApplicationAutoMapperProfile : Profile
CreateMap<SupplierItem, SupplierItemImportInput>()
.Ignore(x => x.ReportStatus)
.Ignore(x => x.ReportReason);
CreateMap<SupplierItemEditInput, SupplierItem>()
.IgnoreAuditedObjectProperties()
//.ForMember(x => x.SupplierPackQty, y => y.MapFrom(d => new UomQty(d.SupplierPackUom, d.SupplierPackQty)))
.Ignore(x => x.ConcurrencyStamp)
.Ignore(x => x.Id);
}
}

1
be/Modules/Inventory/src/Win_in.Sfs.Wms.Inventory.Application/Balances/BalanceAutoMapperProfile.cs

@ -31,5 +31,6 @@ public partial class InventoryApplicationAutoMapperProfile : Profile
CreateMap<BalanceDTO, ExpectInEditInput>()
.Ignore(x => x.JobNumber)
.Ignore(x => x.Worker);
}
}

9
be/Modules/Label/src/Win_in.Sfs.Label.Application/InventoryLabels/InventoryLabelAutoMapperProfile.cs

@ -51,5 +51,14 @@ public class InventoryLabelAutoMapperProfile : Profile
.Ignore(x => x.Id)
.Ignore(x => x.StdPackQty)
.Ignore(x => x.Uom);
CreateMap<InventoryLabelEditInput, InventoryLabel>()
.IgnoreAuditedObjectProperties()
//.MapItemBatchQtyStdPackDto()
.MapPurchaseInfoDto()
.MapProductionInfoDto()
.MapQualityInfoDto()
.Ignore(x => x.ConcurrencyStamp)
.Ignore(x => x.Id);
}
}

4
be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Notes/BackFlushNotes/BackFlushNoteAutoMapperProfile.cs

@ -22,5 +22,9 @@ public partial class StoreApplicationAutoMapperProfile : Profile
.Ignore(x => x.TenantId)
.Ignore(x => x.Number)
.Ignore(x => x.Id);
CreateMap<BackFlushNoteEditInput, BackFlushNote>()
.IgnoreAuditedObjectProperties();
}
}

5
be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Notes/ProductReceiptNotes/ProductReceiptNoteAutoMapperProfile.cs

@ -23,5 +23,10 @@ public partial class StoreApplicationAutoMapperProfile : Profile
.Ignore(x => x.TenantId)
.Ignore(x => x.Number)
.Ignore(x => x.Id);
CreateMap<ProductReceiptNoteEditInput, ProductReceiptNote>()
.IgnoreAuditedObjectProperties()
.Ignore(x => x.Shift)
.Ignore(x => x.ConcurrencyStamp)
.Ignore(x => x.Id);
}
}

2
be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Orders/PurchaseOrders/PurchaseOrderAutoMapperProfile.cs

@ -55,5 +55,7 @@ public partial class StoreApplicationAutoMapperProfile : Profile
.Ignore(x => x.TenantId)
.Ignore(x => x.MasterID)
.Ignore(x => x.Id);
CreateMap<PurchaseOrderEditInput, PurchaseOrder>()
.IgnoreAuditedObjectProperties();
}
}

4
be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Orders/SaleOrders/SaleOrderAutoMapperProfile.cs

@ -45,5 +45,9 @@ public partial class StoreApplicationAutoMapperProfile : Profile
.Ignore(x => x.Number)
.IgnoreAuditedObjectProperties()
.Ignore(x => x.Id);
CreateMap<SaleOrderEditInput, SaleOrder>()
.IgnoreAuditedObjectProperties();
//.MapContactsDto()
//.Ignore(x => x.ConcurrencyStamp).Ignore(x => x.Id);
}
}

Loading…
Cancel
Save