Browse Source

初步测试新移库

dev_DY_CC
刘云峰 1 year ago
parent
commit
c1e67e8c6d
  1. 7
      be/Modules/Shared/src/Win_in.Sfs.Shared.Domain.Shared/Enums/Inventory/EnumTransType.cs
  2. 10
      be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Jobs/TransferLibJobs/TransferLibJobAutoMapperProfile.cs
  3. 14
      be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Notes/TransferLibNotes/TransferLibNoteMapperProfile.cs
  4. 4
      be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Requests/TransferLibRequests/TransferLibRequestAppService.cs
  5. 15
      be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Requests/TransferLibRequests/TransferLibRequestMapperProfile.cs
  6. 4
      be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/StoreApplicationAutoMapperProfile.cs

7
be/Modules/Shared/src/Win_in.Sfs.Shared.Domain.Shared/Enums/Inventory/EnumTransType.cs

@ -91,6 +91,13 @@ public enum EnumTransType
[Display(Name = "库内转移")]
Transfer = 31,
/// <summary>
/// 新版库内转移
/// </summary>
[Display(Name = "新版库内转移")]
TransferLib = 68,
/// <summary>
/// 库间调拨
/// </summary>

10
be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Jobs/TransferLibJobs/TransferLibJobAutoMapperProfile.cs

@ -20,6 +20,14 @@ public partial class StoreApplicationAutoMapperProfile : Profile
.Ignore(x => x.MasterID)
.Ignore(x => x.TenantId)
.Ignore(x => x.Number)
.Ignore(x => x.Id);
.Ignore(x => x.Id)
.IgnoreAuditedObjectProperties();
CreateMap<TransferLibJobEditInput, TransferLibJob>()
.IgnoreAuditedObjectProperties()
.Ignore(x => x.Number)
.Ignore(x => x.Id)
.IgnoreAuditedObjectProperties();
}
}

14
be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Notes/TransferLibNotes/TransferLibNoteMapperProfile.cs

@ -11,18 +11,10 @@ public partial class StoreApplicationAutoMapperProfile : Profile
{
CreateMap<TransferLibNote, TransferLibNoteDTO>()
.ReverseMap();
CreateMap<TransferLibNoteDetail, TransferLibNoteDetailDTO>()
.ReverseMap();
CreateMap<TransferLibNoteEditInput, TransferLibNote>()
.IgnoreAuditedObjectProperties()
;
CreateMap<TransferLibNoteDetailInput, TransferLibNoteDetail>()
.IgnoreAuditedObjectProperties()
;
CreateMap<TransferLibNoteDetailDTO, TransferLibNoteDetail>();
CreateMap<TransferLibNoteDetail, TransferLibNoteDetailDTO>();
.IgnoreAuditedObjectProperties();
CreateMap<TransferLibNoteDetailInput, TransferLibNoteDetail>()
.IgnoreAuditedObjectProperties()

4
be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Requests/TransferLibRequests/TransferLibRequestAppService.cs

@ -172,7 +172,7 @@ public class TransferLibRequestAppService : SfsStoreRequestAppServiceBase
private async Task SetEntityPropertiesAsync(TransferLibRequest entity, EnumTransSubType subType)
{
var tranType = await TransactionTypeAclService.GetByTransTypeAsync(EnumTransType.Transfer, subType)
var tranType = await TransactionTypeAclService.GetByTransTypeAsync(EnumTransType.TransferLib, subType)
.ConfigureAwait(false);
Check.NotNull(tranType, "事务类型", "事务类型不存在");
entity.Worker = CurrentUser.GetUserName();
@ -319,7 +319,7 @@ public class TransferLibRequestAppService : SfsStoreRequestAppServiceBase
var entity = ObjectMapper.Map<TransferLibRequestEditInput, TransferLibRequest>(input);
var subType = Enum.Parse<EnumTransSubType>(input.Type);
var tranType = await TransactionTypeAclService.GetByTransTypeAsync(EnumTransType.Transfer, subType)
var tranType = await TransactionTypeAclService.GetByTransTypeAsync(EnumTransType.TransferLib, subType)
.ConfigureAwait(false);
entity.Type = ((int)subType).ToString();
entity.AutoCompleteJob = tranType.AutoCompleteJob;

15
be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Requests/TransferLibRequests/TransferLibRequestMapperProfile.cs

@ -21,7 +21,20 @@ public partial class StoreApplicationAutoMapperProfile : Profile
.Ignore(x => x.MasterID)
.Ignore(x => x.TenantId)
.Ignore(x => x.Number)
.Ignore(x => x.Id);
.Ignore(x => x.Id)
.IgnoreAuditedObjectProperties();
CreateMap<TransferLibRequestEditInput, TransferLibRequest>()
.IgnoreAuditedObjectProperties()
.Ignore(x => x.ActiveDate)
.Ignore(x => x.Remark)
.Ignore(x => x.ExtraProperties)
.Ignore(x => x.ConcurrencyStamp)
.Ignore(x => x.RequestStatus)
.Ignore(x => x.TenantId)
.Ignore(x => x.Number)
.Ignore(x => x.Id)
.IgnoreAuditedObjectProperties();
CreateMap<TransferLibRequestImportInput, TransferLibRequest>()
.IgnoreAuditedObjectProperties()

4
be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/StoreApplicationAutoMapperProfile.cs

@ -85,6 +85,7 @@ public partial class StoreApplicationAutoMapperProfile : Profile
UnplannedReceiptNoteAutoMapperProfile();
WarehouseTransferNoteMapperProfile();
TransferNoteMapperProfile();
TransferLibNoteMapperProfile();
NoOkConvertOkNoteAutoMapperProfile();
InventoryInitialNoteAutoMapperProfile();
WipWarehouseAdjustNoteMapperProfile();
@ -110,11 +111,10 @@ public partial class StoreApplicationAutoMapperProfile : Profile
UnplannedReceiptJobAutoMapperProfile();
ProductionReturnJobAutoMapperProfile();
TransferLibJobAutoMapperProfile();
#endregion
ExchangeDataAutoMapperProfile();
EquipmentRecordAutoMapperProfile();
TransferLibJobAutoMapperProfile();
}
}

Loading…
Cancel
Save