|
@ -3,6 +3,7 @@ using System.Reflection; |
|
|
using System.Threading.Tasks; |
|
|
using System.Threading.Tasks; |
|
|
using Microsoft.AspNetCore.Authorization; |
|
|
using Microsoft.AspNetCore.Authorization; |
|
|
using Microsoft.AspNetCore.Mvc; |
|
|
using Microsoft.AspNetCore.Mvc; |
|
|
|
|
|
using Microsoft.Extensions.DependencyInjection; |
|
|
using Volo.Abp; |
|
|
using Volo.Abp; |
|
|
using Win_in.Sfs.Wms.Store.Application.Contracts; |
|
|
using Win_in.Sfs.Wms.Store.Application.Contracts; |
|
|
using Win_in.Sfs.Wms.Store.Domain; |
|
|
using Win_in.Sfs.Wms.Store.Domain; |
|
@ -18,10 +19,12 @@ public class TransferLibJobAppService |
|
|
: SfsJobAppServiceBase<TransferLibJob, TransferLibJobDetail, TransferLibJobDTO, SfsJobRequestInputBase, TransferLibJobCheckInput, TransferLibJobEditInput>, |
|
|
: SfsJobAppServiceBase<TransferLibJob, TransferLibJobDetail, TransferLibJobDTO, SfsJobRequestInputBase, TransferLibJobCheckInput, TransferLibJobEditInput>, |
|
|
ITransferLibJobAppService |
|
|
ITransferLibJobAppService |
|
|
{ |
|
|
{ |
|
|
|
|
|
private readonly IServiceProvider _serviceProvider; |
|
|
|
|
|
|
|
|
public TransferLibJobAppService( |
|
|
public TransferLibJobAppService( |
|
|
ITransferLibJobRepository repository, ITransferLibJobManager TransferLibJobManager |
|
|
ITransferLibJobRepository repository, ITransferLibJobManager TransferLibJobManager, IServiceProvider serviceProvider) : base(repository, TransferLibJobManager) |
|
|
) : base(repository, TransferLibJobManager) |
|
|
|
|
|
{ |
|
|
{ |
|
|
|
|
|
_serviceProvider = serviceProvider; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
@ -32,6 +35,11 @@ public class TransferLibJobAppService |
|
|
/// <returns></returns>
|
|
|
/// <returns></returns>
|
|
|
public override async Task<TransferLibJobDTO> CompleteAsync(Guid id, TransferLibJobDTO dto) |
|
|
public override async Task<TransferLibJobDTO> CompleteAsync(Guid id, TransferLibJobDTO dto) |
|
|
{ |
|
|
{ |
|
|
|
|
|
var str = "Win_in.Sfs.Wms.Store.Application.InjectionJobAppService"; |
|
|
|
|
|
var implementation=_serviceProvider.GetService(Type.GetType("Win_in.Sfs.Wms.Store.Application.InjectionJobAppService")); |
|
|
|
|
|
MethodInfo methodInfo=implementation.GetType().GetMethod("Test"); |
|
|
|
|
|
methodInfo.Invoke(implementation, null); |
|
|
|
|
|
|
|
|
string methodPrefix = "TransferLibJobAppService.CompleteAsync - "; |
|
|
string methodPrefix = "TransferLibJobAppService.CompleteAsync - "; |
|
|
|
|
|
|
|
|
if (dto.CallServerName.IsNullOrEmpty()) |
|
|
if (dto.CallServerName.IsNullOrEmpty()) |
|
|