|
|
|
@ -539,14 +539,14 @@ namespace DS.WMS.Core.TaskPlat.Method
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var noExtensionFileName = Path.GetFileNameWithoutExtension(file.FileName);
|
|
|
|
|
var fileFullName = await SaveFile(taskInfo.Id.ToString(),
|
|
|
|
|
var relativePath = await SaveFile(taskInfo.Id.ToString(),
|
|
|
|
|
bytes,
|
|
|
|
|
batchNo,
|
|
|
|
|
noExtensionFileName,
|
|
|
|
|
GetFileType(file.FileName),
|
|
|
|
|
attachFileType);
|
|
|
|
|
|
|
|
|
|
if (!string.IsNullOrWhiteSpace(fileFullName))
|
|
|
|
|
if (!string.IsNullOrWhiteSpace(relativePath))
|
|
|
|
|
{
|
|
|
|
|
if (info.Main.FileList == null)
|
|
|
|
|
{
|
|
|
|
@ -558,7 +558,7 @@ namespace DS.WMS.Core.TaskPlat.Method
|
|
|
|
|
PKId = SnowFlakeSingle.Instance.NextId(),
|
|
|
|
|
FileName = file.FileName,
|
|
|
|
|
FileType = Path.GetExtension(file.FileName).ToLower(),
|
|
|
|
|
FilePath = fileFullName,
|
|
|
|
|
FilePath = relativePath,
|
|
|
|
|
FileCategory = fileCategory
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
@ -630,14 +630,14 @@ namespace DS.WMS.Core.TaskPlat.Method
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var noExtensionFileName = Path.GetFileNameWithoutExtension(modifyFile.FileName);
|
|
|
|
|
var fileFullName = await SaveFile(taskInfo.Id.ToString(),
|
|
|
|
|
var relativePath = await SaveFile(taskInfo.Id.ToString(),
|
|
|
|
|
bytes,
|
|
|
|
|
batchNo,
|
|
|
|
|
noExtensionFileName,
|
|
|
|
|
GetFileType(modifyFile.FileName),
|
|
|
|
|
attachFileType);
|
|
|
|
|
|
|
|
|
|
if (!string.IsNullOrWhiteSpace(fileFullName))
|
|
|
|
|
if (!string.IsNullOrWhiteSpace(relativePath))
|
|
|
|
|
{
|
|
|
|
|
if (info.Main.FileList == null)
|
|
|
|
|
{
|
|
|
|
@ -649,7 +649,7 @@ namespace DS.WMS.Core.TaskPlat.Method
|
|
|
|
|
PKId = SnowFlakeSingle.Instance.NextId(),
|
|
|
|
|
FileName = modifyFile.FileName,
|
|
|
|
|
FileType = Path.GetExtension(modifyFile.FileName).ToLower(),
|
|
|
|
|
FilePath = fileFullName,
|
|
|
|
|
FilePath = relativePath,
|
|
|
|
|
FileCategory = fileCategory
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|