|
|
@ -3490,7 +3490,7 @@ namespace Myshipping.Application
|
|
|
|
public async Task<IActionResult> DownloadClosingEDI([FromQuery] string taskPKId, [FromQuery] string orderNo, [FromQuery] bool useForwarderCode,
|
|
|
|
public async Task<IActionResult> DownloadClosingEDI([FromQuery] string taskPKId, [FromQuery] string orderNo, [FromQuery] bool useForwarderCode,
|
|
|
|
[FromQuery] string forwarderCode, [FromQuery] string forwarderName, [FromQuery] string fileRole, [FromQuery] string sendType)
|
|
|
|
[FromQuery] string forwarderCode, [FromQuery] string forwarderName, [FromQuery] string fileRole, [FromQuery] string sendType)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (sendType?.ToUpper() != "B")
|
|
|
|
if (sendType?.ToUpper() != "E")
|
|
|
|
throw Oops.Oh($"sendType只接收E-截单");
|
|
|
|
throw Oops.Oh($"sendType只接收E-截单");
|
|
|
|
|
|
|
|
|
|
|
|
var taskInfo = _taskBaseInfoRepository.AsQueryable().First(t => t.PK_ID == taskPKId);
|
|
|
|
var taskInfo = _taskBaseInfoRepository.AsQueryable().First(t => t.PK_ID == taskPKId);
|
|
|
@ -3552,7 +3552,7 @@ namespace Myshipping.Application
|
|
|
|
public async Task<string> SendClosingEDI([FromQuery] string taskPKId, [FromQuery] string orderNo, [FromQuery] bool useForwarderCode,
|
|
|
|
public async Task<string> SendClosingEDI([FromQuery] string taskPKId, [FromQuery] string orderNo, [FromQuery] bool useForwarderCode,
|
|
|
|
[FromQuery] string forwarderCode, [FromQuery] string forwarderName, [FromQuery] string fileRole, [FromQuery] string sendType)
|
|
|
|
[FromQuery] string forwarderCode, [FromQuery] string forwarderName, [FromQuery] string fileRole, [FromQuery] string sendType)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (sendType?.ToUpper() != "B")
|
|
|
|
if (sendType?.ToUpper() != "E")
|
|
|
|
throw Oops.Oh($"sendType只接收E-截单");
|
|
|
|
throw Oops.Oh($"sendType只接收E-截单");
|
|
|
|
|
|
|
|
|
|
|
|
var taskInfo = _taskBaseInfoRepository.AsQueryable().First(t => t.PK_ID == taskPKId);
|
|
|
|
var taskInfo = _taskBaseInfoRepository.AsQueryable().First(t => t.PK_ID == taskPKId);
|
|
|
|