清理一致性分析任务和配置
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
46a304b5a6
commit
47d8ec7576
|
@ -15383,6 +15383,13 @@
|
||||||
<param name="outEnrollTime"></param>
|
<param name="outEnrollTime"></param>
|
||||||
<returns></returns>
|
<returns></returns>
|
||||||
</member>
|
</member>
|
||||||
|
<member name="M:IRaCIS.Application.Services.TestService.DeleteConsistentDate(System.Guid)">
|
||||||
|
<summary>
|
||||||
|
清理一致性分析任务
|
||||||
|
</summary>
|
||||||
|
<param name="trialReadingCriterionId"></param>
|
||||||
|
<returns></returns>
|
||||||
|
</member>
|
||||||
<member name="M:IRaCIS.Application.Services.TestService.ModifyClinicalDataTable">
|
<member name="M:IRaCIS.Application.Services.TestService.ModifyClinicalDataTable">
|
||||||
<summary>
|
<summary>
|
||||||
维护临床数据 --一定要在同步表前同步数据才行
|
维护临床数据 --一定要在同步表前同步数据才行
|
||||||
|
|
|
@ -69,6 +69,31 @@ namespace IRaCIS.Application.Services
|
||||||
//_cache = cache;
|
//_cache = cache;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 清理一致性分析任务
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="trialReadingCriterionId"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
public async Task<IResponseOutput> DeleteConsistentDate(Guid trialReadingCriterionId)
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
var consistentSubjectIdList = _repository.Where<VisitTask>(t => t.TrialReadingCriterionId == trialReadingCriterionId && t.IsAnalysisCreate == true).Select(t => t.SubjectId).ToList();
|
||||||
|
|
||||||
|
await _repository.BatchDeleteAsync<TaskConsistentRule>(t => t.TrialReadingCriterionId == trialReadingCriterionId);
|
||||||
|
|
||||||
|
await _repository.BatchDeleteAsync<VisitTask>(t => t.TrialReadingCriterionId == trialReadingCriterionId && t.IsAnalysisCreate == true);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
await _repository.BatchDeleteAsync<ReadingConsistentClinicalDataPDF>(t => consistentSubjectIdList.Contains(t.ReadingConsistentClinicalData.SubjectId));
|
||||||
|
|
||||||
|
await _repository.BatchDeleteAsync<ReadingConsistentClinicalData>(t => consistentSubjectIdList.Contains(t.SubjectId));
|
||||||
|
|
||||||
|
|
||||||
|
await _repository.SaveChangesAsync();
|
||||||
|
return ResponseOutput.Ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
public async Task<IResponseOutput> TestEFcore8()
|
public async Task<IResponseOutput> TestEFcore8()
|
||||||
|
@ -274,22 +299,22 @@ namespace IRaCIS.Application.Services
|
||||||
throw new BusinessValidationFailedException("word 模板没有英文书签");
|
throw new BusinessValidationFailedException("word 模板没有英文书签");
|
||||||
}
|
}
|
||||||
|
|
||||||
// 创建一个要删除段落的列表
|
// 创建一个要删除段落的列表
|
||||||
|
|
||||||
//XWPFParagraph bookmarkParagraph = null;
|
//XWPFParagraph bookmarkParagraph = null;
|
||||||
|
|
||||||
//foreach (var paragraph in doc.Paragraphs)
|
//foreach (var paragraph in doc.Paragraphs)
|
||||||
//{
|
//{
|
||||||
|
|
||||||
// foreach (var bookmark in paragraph.GetCTP().GetBookmarkStartList())
|
// foreach (var bookmark in paragraph.GetCTP().GetBookmarkStartList())
|
||||||
// {
|
// {
|
||||||
// if (bookmark.name == "en_us")
|
// if (bookmark.name == "en_us")
|
||||||
// {
|
// {
|
||||||
// bookmarkParagraph = paragraph;
|
// bookmarkParagraph = paragraph;
|
||||||
// break;
|
// break;
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
//}
|
//}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -300,7 +325,7 @@ namespace IRaCIS.Application.Services
|
||||||
// doc.RemoveBodyElement(i);
|
// doc.RemoveBodyElement(i);
|
||||||
//}
|
//}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
using (FileStream outStream = new FileStream("C:\\Users\\hang\\Desktop\\test1.docx", FileMode.Create, FileAccess.Write))
|
using (FileStream outStream = new FileStream("C:\\Users\\hang\\Desktop\\test1.docx", FileMode.Create, FileAccess.Write))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue