|
|
|
@ -73,7 +73,7 @@ namespace IRaCIS.Core.Application.Service.Common
|
|
|
|
|
var exportInfo = (await _trialRepository.Where(t => t.Id == visitSearchDTO.TrialId).IgnoreQueryFilters().ProjectTo<ExcelExportInfo>(_mapper.ConfigurationProvider).FirstOrDefaultAsync()).IfNullThrowException();
|
|
|
|
|
|
|
|
|
|
exportInfo.List = list;
|
|
|
|
|
|
|
|
|
|
exportInfo.IsEn_US = _userInfo.IsEn_Us;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return await ExcelExportHelper.DataExportAsync(StaticData.Export.TrialCRCUploadImageList_Export, exportInfo, $"{exportInfo.ResearchProgramNo}", _commonDocumentRepository, _hostEnvironment, _dictionaryService, typeof(CRCVisitExportDTO));
|
|
|
|
@ -123,6 +123,7 @@ namespace IRaCIS.Core.Application.Service.Common
|
|
|
|
|
var exportInfo = (await _trialRepository.Where(t => t.Id == challengeQuery.TrialId).IgnoreQueryFilters().ProjectTo<ExcelExportInfo>(_mapper.ConfigurationProvider).FirstOrDefaultAsync()).IfNullThrowException();
|
|
|
|
|
|
|
|
|
|
exportInfo.List = list;
|
|
|
|
|
exportInfo.IsEn_US = _userInfo.IsEn_Us;
|
|
|
|
|
|
|
|
|
|
return await ExcelExportHelper.DataExportAsync(StaticData.Export.TrialQCImageChanllengeList_Export, exportInfo, $"{exportInfo.ResearchProgramNo}", _commonDocumentRepository, _hostEnvironment, _dictionaryService, typeof(QCChanllengeExportDto));
|
|
|
|
|
}
|
|
|
|
@ -159,6 +160,7 @@ namespace IRaCIS.Core.Application.Service.Common
|
|
|
|
|
var exportInfo = (await _trialRepository.Where(t => t.Id == param.TrialId).IgnoreQueryFilters().ProjectTo<ExcelExportInfo>(_mapper.ConfigurationProvider).FirstOrDefaultAsync()).IfNullThrowException();
|
|
|
|
|
|
|
|
|
|
exportInfo.List = list;
|
|
|
|
|
exportInfo.IsEn_US = _userInfo.IsEn_Us;
|
|
|
|
|
|
|
|
|
|
return await ExcelExportHelper.DataExportAsync(StaticData.Export.TrialSubjectList_Export, exportInfo, $"{exportInfo.ResearchProgramNo}", _commonDocumentRepository, _hostEnvironment, _dictionaryService, typeof(SubjectExportDTO));
|
|
|
|
|
|
|
|
|
@ -266,6 +268,7 @@ namespace IRaCIS.Core.Application.Service.Common
|
|
|
|
|
exportInfo.CriterionName = await _repository.Where<ReadingQuestionCriterionTrial>(u => u.TrialId == dto.TrialId && u.IsConfirm && u.Id == dto.TrialReadingCriterionId).Select(t => t.CriterionName).FirstOrDefaultAsync();
|
|
|
|
|
|
|
|
|
|
exportInfo.List = list;
|
|
|
|
|
exportInfo.IsEn_US = _userInfo.IsEn_Us;
|
|
|
|
|
|
|
|
|
|
var (memoryStream, fileName) = await ExcelExportHelper.DataExport_NpoiTestAsync(StaticData.Export.TrialSubjectProgressList_Export, exportInfo, /*"", */_commonDocumentRepository, _hostEnvironment, _dictionaryService, typeof(SubjectProgressDto));
|
|
|
|
|
|
|
|
|
@ -405,6 +408,8 @@ namespace IRaCIS.Core.Application.Service.Common
|
|
|
|
|
var exportInfo = (await _trialRepository.Where(t => t.Id == studyQuery.TrialId).IgnoreQueryFilters().ProjectTo<ExcelExportInfo>(_mapper.ConfigurationProvider).FirstOrDefaultAsync()).IfNullThrowException();
|
|
|
|
|
|
|
|
|
|
exportInfo.List = list;
|
|
|
|
|
exportInfo.IsEn_US = _userInfo.IsEn_Us;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return await ExcelExportHelper.DataExportAsync(StaticData.Export.TrialStudyUploadMonitor_Export, exportInfo, $"{exportInfo.ResearchProgramNo}", _commonDocumentRepository, _hostEnvironment, _dictionaryService, typeof(UnionStudyMonitorExportDto));
|
|
|
|
|
|
|
|
|
@ -439,6 +444,7 @@ namespace IRaCIS.Core.Application.Service.Common
|
|
|
|
|
var exportInfo = (await _trialRepository.Where(t => t.Id == param.TrialId).IgnoreQueryFilters().ProjectTo<ExcelExportInfo>(_mapper.ConfigurationProvider).FirstOrDefaultAsync()).IfNullThrowException();
|
|
|
|
|
|
|
|
|
|
exportInfo.List = list;
|
|
|
|
|
exportInfo.IsEn_US = _userInfo.IsEn_Us;
|
|
|
|
|
|
|
|
|
|
return await ExcelExportHelper.DataExportAsync(StaticData.Export.TrialSubjectReadingPeriodList_Export, exportInfo, $"{exportInfo.ResearchProgramNo}", _commonDocumentRepository, _hostEnvironment, _dictionaryService, typeof(ReadPeriodExportDto));
|
|
|
|
|
|
|
|
|
@ -527,6 +533,7 @@ namespace IRaCIS.Core.Application.Service.Common
|
|
|
|
|
var exportInfo = (await _trialRepository.Where(t => t.Id == studyQuery.TrialId).IgnoreQueryFilters().ProjectTo<ExcelExportInfo>(_mapper.ConfigurationProvider).FirstOrDefaultAsync()).IfNullThrowException();
|
|
|
|
|
|
|
|
|
|
exportInfo.List = list;
|
|
|
|
|
exportInfo.IsEn_US = _userInfo.IsEn_Us;
|
|
|
|
|
|
|
|
|
|
return await ExcelExportHelper.DataExportAsync(StaticData.Export.TrialStudyList_Export, exportInfo, $"{exportInfo.ResearchProgramNo}", _commonDocumentRepository, _hostEnvironment, _dictionaryService, typeof(UnionStudyExportDTO));
|
|
|
|
|
}
|
|
|
|
@ -565,6 +572,7 @@ namespace IRaCIS.Core.Application.Service.Common
|
|
|
|
|
var exportInfo = (await _trialRepository.Where(t => t.Id == checkQuery.TrialId).IgnoreQueryFilters().ProjectTo<ExcelExportInfo>(_mapper.ConfigurationProvider).FirstOrDefaultAsync()).IfNullThrowException();
|
|
|
|
|
|
|
|
|
|
exportInfo.List = list;
|
|
|
|
|
exportInfo.IsEn_US = _userInfo.IsEn_Us;
|
|
|
|
|
|
|
|
|
|
return await ExcelExportHelper.DataExportAsync(StaticData.Export.TrialSubjectVisitCheckList_Export, exportInfo, $"{exportInfo.ResearchProgramNo}", _commonDocumentRepository, _hostEnvironment, _dictionaryService, typeof(PMKCheckEXportDTO));
|
|
|
|
|
}
|
|
|
|
@ -615,6 +623,7 @@ namespace IRaCIS.Core.Application.Service.Common
|
|
|
|
|
var exportInfo = (await _trialRepository.Where(t => t.Id == queryVisitTask.TrialId).IgnoreQueryFilters().ProjectTo<ExcelExportInfo>(_mapper.ConfigurationProvider).FirstOrDefaultAsync()).IfNullThrowException();
|
|
|
|
|
|
|
|
|
|
exportInfo.List = list;
|
|
|
|
|
exportInfo.IsEn_US = _userInfo.IsEn_Us;
|
|
|
|
|
|
|
|
|
|
return await ExcelExportHelper.DataExportAsync(StaticData.Export.TrialReadingTaskList_Export, exportInfo, $"{exportInfo.ResearchProgramNo}", _commonDocumentRepository, _hostEnvironment, _dictionaryService, typeof(ReadingTaskExportDto));
|
|
|
|
|
}
|
|
|
|
@ -665,6 +674,7 @@ namespace IRaCIS.Core.Application.Service.Common
|
|
|
|
|
var exportInfo = (await _trialRepository.Where(t => t.Id == queryVisitTask.TrialId).IgnoreQueryFilters().ProjectTo<ExcelExportInfo>(_mapper.ConfigurationProvider).FirstOrDefaultAsync()).IfNullThrowException();
|
|
|
|
|
|
|
|
|
|
exportInfo.List = list;
|
|
|
|
|
exportInfo.IsEn_US = _userInfo.IsEn_Us;
|
|
|
|
|
|
|
|
|
|
return await ExcelExportHelper.DataExportAsync(StaticData.Export.TrialReReadingTaskList_Export, exportInfo, $"{exportInfo.ResearchProgramNo}", _commonDocumentRepository, _hostEnvironment, _dictionaryService, typeof(ReReadingTaskExportDto));
|
|
|
|
|
}
|
|
|
|
@ -706,6 +716,7 @@ namespace IRaCIS.Core.Application.Service.Common
|
|
|
|
|
var exportInfo = (await _trialRepository.Where(t => t.Id == inQuery.TrialId).IgnoreQueryFilters().ProjectTo<ExcelExportInfo>(_mapper.ConfigurationProvider).FirstOrDefaultAsync()).IfNullThrowException();
|
|
|
|
|
|
|
|
|
|
exportInfo.List = list;
|
|
|
|
|
exportInfo.IsEn_US = _userInfo.IsEn_Us;
|
|
|
|
|
|
|
|
|
|
return await ExcelExportHelper.DataExportAsync(StaticData.Export.TrialMedicalReviewList_Export, exportInfo, $"{exportInfo.ResearchProgramNo}", _commonDocumentRepository, _hostEnvironment, _dictionaryService, typeof(TaskMedicalReviewExportDto));
|
|
|
|
|
}
|
|
|
|
@ -789,6 +800,7 @@ namespace IRaCIS.Core.Application.Service.Common
|
|
|
|
|
|
|
|
|
|
exportInfo.CriterionName = await _repository.Where<ReadingQuestionCriterionTrial>(u => u.TrialId == queryVisitTask.TrialId && u.IsConfirm && u.Id == queryVisitTask.TrialReadingCriterionId).Select(t => t.CriterionName).FirstOrDefaultAsync();
|
|
|
|
|
exportInfo.List = list;
|
|
|
|
|
exportInfo.IsEn_US = _userInfo.IsEn_Us;
|
|
|
|
|
|
|
|
|
|
return await ExcelExportHelper.DataExportAsync(StaticData.Export.TrialSelfAnalysisList_Export, exportInfo, $"{exportInfo.ResearchProgramNo}_{exportInfo.CriterionName}", _commonDocumentRepository, _hostEnvironment, _dictionaryService, typeof(SelftAnalysisExport));
|
|
|
|
|
}
|
|
|
|
@ -892,6 +904,7 @@ namespace IRaCIS.Core.Application.Service.Common
|
|
|
|
|
var exportInfo = (await _trialRepository.Where(t => t.Id == queryVisitTask.TrialId).IgnoreQueryFilters().ProjectTo<ExcelExportInfo>(_mapper.ConfigurationProvider).FirstOrDefaultAsync()).IfNullThrowException();
|
|
|
|
|
exportInfo.CriterionName = await _repository.Where<ReadingQuestionCriterionTrial>(u => u.TrialId == queryVisitTask.TrialId && u.IsConfirm && u.Id == queryVisitTask.TrialReadingCriterionId).Select(t => t.CriterionName).FirstOrDefaultAsync();
|
|
|
|
|
exportInfo.List = newList;
|
|
|
|
|
exportInfo.IsEn_US = _userInfo.IsEn_Us;
|
|
|
|
|
|
|
|
|
|
return await ExcelExportHelper.DataExportAsync(StaticData.Export.TrialGroupAnalysisList_Export, exportInfo, $"{exportInfo.ResearchProgramNo}_{exportInfo.CriterionName}", _commonDocumentRepository, _hostEnvironment, _dictionaryService, typeof(GroupAnalysisExport));
|
|
|
|
|
}
|
|
|
|
@ -1044,6 +1057,7 @@ namespace IRaCIS.Core.Application.Service.Common
|
|
|
|
|
list = DealJudgeMark(criterion.ArbitrationRule, list);
|
|
|
|
|
|
|
|
|
|
exportInfo.List = list;
|
|
|
|
|
exportInfo.IsEn_US = _userInfo.IsEn_Us;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return await ExcelExportHelper.DataExportAsync(StaticData.Export.OverallTumorEvaluation_Export, exportInfo, $"{exportInfo.ResearchProgramNo}_{exportInfo.CriterionName}", _commonDocumentRepository, _hostEnvironment, _dictionaryService, typeof(OverallTumorEvaluationExport), criterion.CriterionType);
|
|
|
|
@ -1102,6 +1116,7 @@ namespace IRaCIS.Core.Application.Service.Common
|
|
|
|
|
list = DealJudgeMark(criterion.ArbitrationRule, list);
|
|
|
|
|
|
|
|
|
|
exportInfo.List = list;
|
|
|
|
|
exportInfo.IsEn_US = _userInfo.IsEn_Us;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return await ExcelExportHelper.DataExportAsync(StaticData.Export.RECIST1Point1EvaluationOfTumorEfficacy_Export, exportInfo, $"{exportInfo.ResearchProgramNo}_{exportInfo.CriterionName}", _commonDocumentRepository, _hostEnvironment, _dictionaryService, typeof(RECIST1Point1EvaluationOfTumorEfficacyExport), criterion.CriterionType);
|
|
|
|
@ -1192,6 +1207,7 @@ namespace IRaCIS.Core.Application.Service.Common
|
|
|
|
|
//处理裁判标记
|
|
|
|
|
list = DealJudgeMark(criterion.ArbitrationRule, list);
|
|
|
|
|
exportInfo.List = exportList;
|
|
|
|
|
exportInfo.IsEn_US = _userInfo.IsEn_Us;
|
|
|
|
|
|
|
|
|
|
return await ExcelExportHelper.DataExportAsync(StaticData.Export.RECIST1Point1DetailedOfEvaluatedLesion_Export, exportInfo, $"{exportInfo.ResearchProgramNo}", _commonDocumentRepository, _hostEnvironment, _dictionaryService, typeof(RECIST1Point1DetailedOfEvaluatedLesionExport), criterion.CriterionType);
|
|
|
|
|
|
|
|
|
@ -1224,6 +1240,7 @@ namespace IRaCIS.Core.Application.Service.Common
|
|
|
|
|
//处理裁判标记
|
|
|
|
|
list = DealJudgeMark(criterion.ArbitrationRule, list);
|
|
|
|
|
exportInfo.List = exportList;
|
|
|
|
|
exportInfo.IsEn_US = _userInfo.IsEn_Us;
|
|
|
|
|
|
|
|
|
|
return await ExcelExportHelper.DataExportAsync(StaticData.Export.PCWG3Point1DetailedOfEvaluatedLesion_Export, exportInfo, $"{exportInfo.ResearchProgramNo}", _commonDocumentRepository, _hostEnvironment, _dictionaryService, typeof(PCWG3DetailedOfEvaluatedLesionExport), criterion.CriterionType);
|
|
|
|
|
|
|
|
|
|