|
|
@ -28,14 +28,14 @@ public class InjectionMoldingRequestReader : IReader |
|
|
|
private readonly IInjectionRequestAppService _injectionRequest; |
|
|
|
private readonly IItemBasicAppService _itemService; |
|
|
|
private readonly ILocationAppService _locService; |
|
|
|
private readonly IIncomingFromExternalManager _incomingFromExternalManager; |
|
|
|
|
|
|
|
private readonly ILogger<InjectionMoldingRequestReader> _logger; |
|
|
|
private readonly IOptions<InjectionMoldingTaskOptions> _options; |
|
|
|
private readonly IHttpClientFactory _httpClientFactory; |
|
|
|
|
|
|
|
public InjectionMoldingRequestReader( |
|
|
|
IInjectionRequestAppService injectionRequest |
|
|
|
, IIncomingFromExternalManager incomingFromExternalManager |
|
|
|
|
|
|
|
, ILogger<InjectionMoldingRequestReader> logger |
|
|
|
, IOptions<InjectionMoldingTaskOptions> options |
|
|
|
, IHttpClientFactory httpClientFactory |
|
|
@ -45,7 +45,7 @@ public class InjectionMoldingRequestReader : IReader |
|
|
|
) |
|
|
|
{ |
|
|
|
_injectionRequest = injectionRequest; |
|
|
|
_incomingFromExternalManager = incomingFromExternalManager; |
|
|
|
|
|
|
|
_logger = logger; |
|
|
|
_options = options; |
|
|
|
_httpClientFactory = httpClientFactory; |
|
|
@ -54,6 +54,11 @@ public class InjectionMoldingRequestReader : IReader |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 读取注塑叫料任务
|
|
|
|
/// </summary>
|
|
|
|
/// <returns></returns>
|
|
|
|
public virtual async Task<List<IncomingFromExternal>> ReadAsync() |
|
|
|
{ |
|
|
|
try |
|
|
@ -180,8 +185,24 @@ public class InjectionMoldingRequestReader : IReader |
|
|
|
|
|
|
|
return "Error occurred"; |
|
|
|
} |
|
|
|
private List<InjectionRequest> Parse(string p_str) |
|
|
|
{ |
|
|
|
List<InjectionRequest> requests = new List<InjectionRequest>(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return System.Text.Json.JsonSerializer.Deserialize<List<InjectionRequest>>(p_str); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public class InjectionRequest |
|
|
|
public class InjectionRequest |
|
|
|
{ |
|
|
|
/// <summary>
|
|
|
|
/// 零件M
|
|
|
|