修改Booking Cancellation 附件类型

optimize
jianghaiqing 10 months ago
parent 347533cbb0
commit 1042e3a011

@ -33,6 +33,16 @@ namespace Myshipping.Application
[Description("Booking Amendment Notice")]
BC_MODIFY_NOTICE,
/// <summary>
/// Booking Cancellation
/// </summary>
[Description("Booking Cancellation")]
BC_CANCEL,
/// <summary>
/// Booking Cancellation Notice
/// </summary>
[Description("Booking Cancellation Notice")]
BC_CANCEL_NOTICE,
/// <summary>
/// 空
/// </summary>
[Description("NONE")]

@ -468,6 +468,9 @@ namespace Myshipping.Application
{
throw Oops.Bah($"未找到订舱编号为 {slotNO} 的数据");
}
id = model.Id;
model.IsDeleted = true;
await _repBase.UpdateAsync(model);

@ -360,6 +360,12 @@ namespace Myshipping.Application
fileCategory = TaskFileCategoryEnum.BC_MODIFY.ToString();
}
else if (TaskBaseTypeEnum.CANCELLATION.ToString() == taskInfo.TASK_BASE_TYPE)
{
attachFileType = "bccancelfiles";
fileCategory = TaskFileCategoryEnum.BC_CANCEL.ToString();
}
var noExtensionFileName = Path.GetFileNameWithoutExtension(file.FileName);
var fileFullName = await FileAttachHelper.SaveFile(taskInfo.PK_ID, bytes, batchNo, noExtensionFileName,
@ -403,6 +409,12 @@ namespace Myshipping.Application
fileCategory = TaskFileCategoryEnum.BC_MODIFY_NOTICE.ToString();
}
else if (TaskBaseTypeEnum.CANCELLATION.ToString() == taskInfo.TASK_BASE_TYPE)
{
attachFileType = "bccancelnoticefiles";
fileCategory = TaskFileCategoryEnum.BC_CANCEL_NOTICE.ToString();
}
var noExtensionFileName = Path.GetFileNameWithoutExtension(modifyFile.FileName);
var fileFullName = await FileAttachHelper.SaveFile(taskInfo.PK_ID, bytes, batchNo, noExtensionFileName,

Loading…
Cancel
Save