|
|
|
@ -1352,20 +1352,20 @@ namespace Myshipping.Application
|
|
|
|
|
/// <param name="taskOperTypeEnum">操作类型</param>
|
|
|
|
|
/// <param name="sortNo">顺序号</param>
|
|
|
|
|
/// <returns>返回回执</returns>
|
|
|
|
|
private async Task<TaskManageOrderResultDto> InnerManualTask(string batchNo, TaskBaseInfo taskBaseInfo,
|
|
|
|
|
private async Task<TaskManageOrderResultDto> InnerManualTask(string batchNo, TaskBaseInfo model,
|
|
|
|
|
TaskOperTypeEnum taskOperTypeEnum, int sortNo)
|
|
|
|
|
{
|
|
|
|
|
TaskManageOrderResultDto result = new TaskManageOrderResultDto();
|
|
|
|
|
|
|
|
|
|
result.bno = taskBaseInfo.TASK_NO;
|
|
|
|
|
result.bno = model.TASK_NO;
|
|
|
|
|
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
var model = _taskBaseInfoRepository.AsQueryable().First(t => t.PK_ID == taskBaseInfo.PK_ID);
|
|
|
|
|
//var model = _taskBaseInfoRepository.Context.CopyNew().Queryable<TaskBaseInfo>().First(t => t.PK_ID == taskBaseInfo.PK_ID);
|
|
|
|
|
|
|
|
|
|
if (taskOperTypeEnum == TaskOperTypeEnum.COMPLETE_TASK)
|
|
|
|
|
{
|
|
|
|
|
if(taskBaseInfo.TASK_TYPE == TaskBusiTypeEnum.TRUCK_DISPATCH.ToString())
|
|
|
|
|
if(model.TASK_TYPE == TaskBusiTypeEnum.TRUCK_DISPATCH.ToString())
|
|
|
|
|
{
|
|
|
|
|
if(model.STATUS == TaskStatusEnum.Cancel.ToString())
|
|
|
|
|
{
|
|
|
|
@ -1373,7 +1373,7 @@ namespace Myshipping.Application
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (taskBaseInfo.TASK_TYPE == TaskBusiTypeEnum.CANCELLATION.ToString())
|
|
|
|
|
if (model.TASK_TYPE == TaskBusiTypeEnum.CANCELLATION.ToString())
|
|
|
|
|
{
|
|
|
|
|
//收到订舱已被取消邮件后生成的任务,如果点击完成,(订舱状态变为【退舱】,注意这里还需要确认)
|
|
|
|
|
}
|
|
|
|
@ -1397,7 +1397,7 @@ namespace Myshipping.Application
|
|
|
|
|
}
|
|
|
|
|
else if (taskOperTypeEnum == TaskOperTypeEnum.CANCEL_TASK)
|
|
|
|
|
{
|
|
|
|
|
if (taskBaseInfo.TASK_TYPE == TaskBusiTypeEnum.CHANGE_SHIP.ToString())
|
|
|
|
|
if (model.TASK_TYPE == TaskBusiTypeEnum.CHANGE_SHIP.ToString())
|
|
|
|
|
{
|
|
|
|
|
model.STATUS = TaskStatusEnum.Cancel.ToString();
|
|
|
|
|
model.STATUS_NAME = TaskStatusEnum.Cancel.GetDescription();
|
|
|
|
@ -1412,7 +1412,7 @@ namespace Myshipping.Application
|
|
|
|
|
it.STATUS_NAME
|
|
|
|
|
}).ExecuteCommand();
|
|
|
|
|
}
|
|
|
|
|
else if (taskBaseInfo.TASK_TYPE == TaskBusiTypeEnum.ABORT_CHANGE_SHIP.ToString())
|
|
|
|
|
else if (model.TASK_TYPE == TaskBusiTypeEnum.ABORT_CHANGE_SHIP.ToString())
|
|
|
|
|
{
|
|
|
|
|
/*
|
|
|
|
|
1.如果原换船通知已经接受,需要把原船名航次恢复并通知客户取消换船。
|
|
|
|
|