|
@ -56,6 +56,8 @@ using Win.Sfs.SettleAccount.Errors; |
|
|
using Win.Sfs.SettleAccount.Entities.Errors; |
|
|
using Win.Sfs.SettleAccount.Entities.Errors; |
|
|
using Win.Sfs.SettleAccount.Entities.BQ.Dtos; |
|
|
using Win.Sfs.SettleAccount.Entities.BQ.Dtos; |
|
|
using SettleAccount.Domain.BQ; |
|
|
using SettleAccount.Domain.BQ; |
|
|
|
|
|
using System.ComponentModel.DataAnnotations; |
|
|
|
|
|
using System.Reflection; |
|
|
|
|
|
|
|
|
namespace Win.Sfs.SettleAccount |
|
|
namespace Win.Sfs.SettleAccount |
|
|
{ |
|
|
{ |
|
@ -923,7 +925,8 @@ namespace Win.Sfs.SettleAccount |
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
private void CreateMapTB_RePartsRelationship() |
|
|
private void CreateMapTB_RePartsRelationship() |
|
|
{ |
|
|
{ |
|
|
CreateMap<TB_RePartsRelationship, TB_RePartsRelationship_DTO>(); |
|
|
CreateMap<TB_RePartsRelationship, TB_RePartsRelationship_DTO>() |
|
|
|
|
|
.ForMember(x => x.BusinessTypeDisplayName, y => y.MapFrom(t => t.BusinessType.GetType().GetField(t.BusinessType.ToString()).GetCustomAttribute<DisplayAttribute>().Name)); |
|
|
CreateMap<TB_RePartsRelationship, TB_RePartsRelationship_EXPORT_DTO>(); |
|
|
CreateMap<TB_RePartsRelationship, TB_RePartsRelationship_EXPORT_DTO>(); |
|
|
CreateMap<TB_RePartsRelationship_IMPORT_DTO, TB_RePartsRelationship>(); |
|
|
CreateMap<TB_RePartsRelationship_IMPORT_DTO, TB_RePartsRelationship>(); |
|
|
} |
|
|
} |
|
|