修改DRAFT任务

master
jianghaiqing 8 months ago
parent bf90e142f2
commit bf41b71ee8

@ -10,10 +10,10 @@ using System.Threading.Tasks;
namespace Myshipping.Application
{
/// <summary>
/// 任务目的港未提货未返箱
/// 任务格式单
/// </summary>
[SugarTable("task_pod_discharge_gateout_full")]
[Description("任务目的港未提货未返箱")]
[SugarTable("task_draft_info")]
[Description("任务格式单")]
public class TaskDraftInfo : TaskManageDbEntity
{
/// <summary>

@ -43,6 +43,16 @@ namespace Myshipping.Application
[Description("Booking Cancellation Notice")]
BC_CANCEL_NOTICE,
/// <summary>
/// Booking Cancellation
/// </summary>
[Description("Draft")]
DRAFT,
/// <summary>
/// Booking Cancellation Notice
/// </summary>
[Description("Draft Notice")]
DRAFT_NOTICE,
/// <summary>
/// 空
/// </summary>
[Description("NONE")]

@ -417,6 +417,12 @@ namespace Myshipping.Application
fileCategory = TaskFileCategoryEnum.BC_CANCEL.ToString();
}
else if (TaskBaseTypeEnum.DRAFT.ToString() == taskInfo.TASK_BASE_TYPE)
{
attachFileType = "draftfiles";
fileCategory = TaskFileCategoryEnum.DRAFT.ToString();
}
var noExtensionFileName = Path.GetFileNameWithoutExtension(file.FileName);
var fileFullName = await FileAttachHelper.SaveFile(taskInfo.PK_ID, bytes, batchNo, noExtensionFileName,
@ -466,6 +472,12 @@ namespace Myshipping.Application
fileCategory = TaskFileCategoryEnum.BC_CANCEL_NOTICE.ToString();
}
else if (TaskBaseTypeEnum.DRAFT.ToString() == taskInfo.TASK_BASE_TYPE)
{
attachFileType = "draftnoticefiles";
fileCategory = TaskFileCategoryEnum.DRAFT.ToString();
}
var noExtensionFileName = Path.GetFileNameWithoutExtension(modifyFile.FileName);
var fileFullName = await FileAttachHelper.SaveFile(taskInfo.PK_ID, bytes, batchNo, noExtensionFileName,

Loading…
Cancel
Save