master
parent
8e0f5afa6c
commit
6dcf32f1f1
|
@ -437,7 +437,14 @@ namespace IRaCIS.Core.API.Controllers
|
||||||
{
|
{
|
||||||
await _repository.BatchUpdateAsync<VisitTask>(t => t.Id == visitTaskId, u => new VisitTask() { PackState = PackState.Packing });
|
await _repository.BatchUpdateAsync<VisitTask>(t => t.Id == visitTaskId, u => new VisitTask() { PackState = PackState.Packing });
|
||||||
|
|
||||||
var info = _repository.Where<VisitTask>(t => t.Id == visitTaskId).Select(t => new { t.TrialId, t.Subject.SiteId, t.SubjectId, t.SourceSubjectVisitId }).FirstOrDefault();
|
var info = _repository.Where<VisitTask>(t => t.Id == visitTaskId).Select(t => new { t.TrialId, t.Subject.SiteId, t.SubjectId, t.SourceSubjectVisitId ,
|
||||||
|
|
||||||
|
SubjectCode=t.Subject.Code,
|
||||||
|
t.IsAnalysisCreate,
|
||||||
|
t.BlindSubjectCode,
|
||||||
|
t.TaskName,
|
||||||
|
|
||||||
|
}).FirstOrDefault();
|
||||||
|
|
||||||
|
|
||||||
var folderPath = FileStoreHelper.GetSubjectVisitDicomFolderPhysicalPath(_hostEnvironment, info.TrialId, info.SiteId, info.SubjectId, info.SourceSubjectVisitId.Value);
|
var folderPath = FileStoreHelper.GetSubjectVisitDicomFolderPhysicalPath(_hostEnvironment, info.TrialId, info.SiteId, info.SubjectId, info.SourceSubjectVisitId.Value);
|
||||||
|
@ -445,8 +452,10 @@ namespace IRaCIS.Core.API.Controllers
|
||||||
// 获取文件夹中的文件列表
|
// 获取文件夹中的文件列表
|
||||||
var files = Directory.GetFiles(folderPath);
|
var files = Directory.GetFiles(folderPath);
|
||||||
|
|
||||||
|
var patinetid = info.IsAnalysisCreate == true ? info.BlindSubjectCode : info.SubjectCode;
|
||||||
|
|
||||||
// 创建一个唯一的ZIP文件名
|
// 创建一个唯一的ZIP文件名
|
||||||
var zipFileName = $"Image_Compressed_{DateTime.Now:yyyyMMddHHmmss}.zip";
|
var zipFileName = $"{patinetid.Replace(" ", "")}_{info.TaskName.Replace(" ", "")}_{DateTime.Now:yyyyMMddHHmmss}.zip";
|
||||||
|
|
||||||
var tempStoreFolder = Path.Combine(FileStoreHelper.GetIRaCISRootDataFolder(_hostEnvironment), StaticData.Folder.TempFileFolder);
|
var tempStoreFolder = Path.Combine(FileStoreHelper.GetIRaCISRootDataFolder(_hostEnvironment), StaticData.Folder.TempFileFolder);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue