|
|
@ -1,7 +1,11 @@ |
|
|
|
using System.Collections.Generic; |
|
|
|
using System.Linq; |
|
|
|
using System.Threading.Tasks; |
|
|
|
using IdentityServer4.Models; |
|
|
|
using Microsoft.AspNetCore.Authorization; |
|
|
|
using Microsoft.AspNetCore.Mvc; |
|
|
|
using Volo.Abp.ObjectMapping; |
|
|
|
using Win_in.Sfs.Wms.Inventory.Application.Contracts; |
|
|
|
using Win_in.Sfs.Wms.Store.Application.Contracts; |
|
|
|
using Win_in.Sfs.Wms.Store.Domain; |
|
|
|
using Win_in.Sfs.Wms.Store.Domain.Shared; |
|
|
@ -27,11 +31,49 @@ public class IntegrationPackingNoteAppService : |
|
|
|
IIntegrationPackingNoteAppService |
|
|
|
{ |
|
|
|
private readonly IIntegrationPackingNoteManager _integrationPackingNoteManager; |
|
|
|
private readonly IBalanceAppService _balanceAppService; |
|
|
|
|
|
|
|
public IntegrationPackingNoteAppService( |
|
|
|
IIntegrationPackingNoteRepository repository, |
|
|
|
IIntegrationPackingNoteManager integrationPackingNoteManager) : base(repository) |
|
|
|
IIntegrationPackingNoteManager integrationPackingNoteManager, IBalanceAppService balanceAppService) : base(repository) |
|
|
|
{ |
|
|
|
_integrationPackingNoteManager = integrationPackingNoteManager; |
|
|
|
_balanceAppService = balanceAppService; |
|
|
|
} |
|
|
|
|
|
|
|
[HttpPost("")] |
|
|
|
public override Task<IntegrationPackingNoteDTO> CreateAsync(IntegrationPackingNoteEditInput input) |
|
|
|
{ |
|
|
|
//标签记录
|
|
|
|
|
|
|
|
//库存移动
|
|
|
|
|
|
|
|
//创建标签
|
|
|
|
return base.CreateAsync(input); |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 构造 库存转移日志实体
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="dto"></param>
|
|
|
|
/// <returns></returns>
|
|
|
|
private List<TransferLogEditInput> BuildTransferLogs(IntegrationPackingNoteDTO dto) |
|
|
|
{ |
|
|
|
var transferLogCreateInputs = new List<TransferLogEditInput>(); |
|
|
|
|
|
|
|
//foreach (var detail in dto.Details.Where(detail => detail.Qty != 0))
|
|
|
|
//{
|
|
|
|
// var transferLog = ObjectMapper.Map<DeliverNoteDetail, TransferLogEditInput>(detail);
|
|
|
|
|
|
|
|
// transferLog.TransType = TransType;
|
|
|
|
// transferLog.TransSubType = ConvertToTransSubType(deliverNote.DeliverRequestType);
|
|
|
|
// transferLog.Worker = deliverNote.Worker;
|
|
|
|
// transferLog.DocNumber = deliverNote.Number;
|
|
|
|
// transferLog.JobNumber = deliverNote.JobNumber;
|
|
|
|
|
|
|
|
// transferLogCreateInputs.Add(transferLog);
|
|
|
|
//}
|
|
|
|
|
|
|
|
return transferLogCreateInputs; |
|
|
|
} |
|
|
|
} |
|
|
|