|
|
|
@ -347,18 +347,20 @@ namespace Myshipping.Application
|
|
|
|
|
tenantName = UserManager.TENANT_NAME
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
taskInfo.IS_PUBLIC = 1;
|
|
|
|
|
//这里只有派车不是公共任务,其他基本都是公共任务
|
|
|
|
|
if (info.Main.TaskType != TaskBaseTypeEnum.TRUCK_DISPATCH)
|
|
|
|
|
taskInfo.IS_PUBLIC = 1;
|
|
|
|
|
}
|
|
|
|
|
else if (!string.IsNullOrWhiteSpace(info.Main.DJYRecvUserId) && string.IsNullOrWhiteSpace(info.Main.TaskUserId))
|
|
|
|
|
{
|
|
|
|
|
userTendInfo = GetUserTendInfoByDJYUserId(info.Main.DJYRecvUserId, info.Main.DJYRecvUserEmail);
|
|
|
|
|
|
|
|
|
|
if(userTendInfo != null)
|
|
|
|
|
if (userTendInfo != null)
|
|
|
|
|
{
|
|
|
|
|
taskInfo.IS_PUBLIC = 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else if(string.IsNullOrWhiteSpace(info.Main.DJYRecvUserId) && string.IsNullOrWhiteSpace(info.Main.TaskUserId) &&
|
|
|
|
|
else if (string.IsNullOrWhiteSpace(info.Main.DJYRecvUserId) && string.IsNullOrWhiteSpace(info.Main.TaskUserId) &&
|
|
|
|
|
!string.IsNullOrWhiteSpace(info.Main.TaskRecvEmail) && info.Main.TaskTenatId.HasValue && info.Main.TaskTenatId.Value > 0)
|
|
|
|
|
{
|
|
|
|
|
userTendInfo = GetUserTendInfoByEmail(info.Main.TaskTenatId.Value, info.Main.TaskRecvEmail);
|
|
|
|
@ -435,6 +437,12 @@ namespace Myshipping.Application
|
|
|
|
|
|
|
|
|
|
fileCategory = TaskFileCategoryEnum.DRAFT.ToString();
|
|
|
|
|
}
|
|
|
|
|
else if (TaskBaseTypeEnum.SI_FEEDBACK.ToString() == taskInfo.TASK_BASE_TYPE)
|
|
|
|
|
{
|
|
|
|
|
attachFileType = "sisubmittedfiles";
|
|
|
|
|
|
|
|
|
|
fileCategory = TaskFileCategoryEnum.SI_SUBMITTED.ToString();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var noExtensionFileName = Path.GetFileNameWithoutExtension(file.FileName);
|
|
|
|
|
var fileFullName = await FileAttachHelper.SaveFile(taskInfo.PK_ID, bytes, batchNo, noExtensionFileName,
|
|
|
|
|