修改一版
parent
0500dca22a
commit
8153e2d64e
|
@ -179,6 +179,14 @@ namespace IRaCIS.Core.Application.Contracts
|
||||||
[Authorize(Policy = IRaCISPolicy.IQC)]
|
[Authorize(Policy = IRaCISPolicy.IQC)]
|
||||||
public async Task<IResponseOutput> AddOrUpdateTrialQCQuestionConfigure(TrialQCQuestionAddOrEdit addOrEditTrialQCQuestionConfigure)
|
public async Task<IResponseOutput> AddOrUpdateTrialQCQuestionConfigure(TrialQCQuestionAddOrEdit addOrEditTrialQCQuestionConfigure)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
|
if (await _trialQcQuestionRepository.AnyAsync(x => x.Id != addOrEditQCQuestionConfigure.Id && x.ShowOrder == addOrEditQCQuestionConfigure.ShowOrder))
|
||||||
|
{
|
||||||
|
throw new BusinessValidationFailedException("序号重复,操作失败");
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
await VerifyIsQCConfirmedAsync(addOrEditTrialQCQuestionConfigure.TrialId);
|
await VerifyIsQCConfirmedAsync(addOrEditTrialQCQuestionConfigure.TrialId);
|
||||||
|
|
||||||
var entity = await _trialQcQuestionRepository.InsertOrUpdateAsync(addOrEditTrialQCQuestionConfigure, true);
|
var entity = await _trialQcQuestionRepository.InsertOrUpdateAsync(addOrEditTrialQCQuestionConfigure, true);
|
||||||
|
|
|
@ -1426,10 +1426,36 @@ namespace IRaCIS.Application.Services
|
||||||
/// 添加肿瘤学阅片任务
|
/// 添加肿瘤学阅片任务
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public async Task AddOncologyTask(Guid readModuleId)
|
//public async Task<bool> AddOncologyTask(Guid readModuleId)
|
||||||
{
|
//{
|
||||||
|
// var readModuleInfo=await _readModuleRepository.Where(x=>x.Id==readModuleId&& x.ModuleType == ModuleTypeEnum.Oncology).Select(x => new ReadingGenerataTaskDTO
|
||||||
|
// {
|
||||||
|
// IsUrgent = x.IsUrgent ?? false,
|
||||||
|
// SubjectId = x.SubjectId,
|
||||||
|
// ReadingName = x.ModuleName,
|
||||||
|
// VisitNum = x.VisitNum,
|
||||||
|
// ReadModuleId = x.Id,
|
||||||
|
// ReadingCategory = ReadingCategory.Oncology,
|
||||||
|
// }).ToListAsync();
|
||||||
|
|
||||||
}
|
// // 如果当前是肿瘤学
|
||||||
|
// if (readModuleInfo.Count != 0)
|
||||||
|
// {
|
||||||
|
// if (taskInfo.JudgeVisitTaskId == null && (await _visitTaskRepository.Where(x => x.TaskState == TaskState.Effect && x.ReadingCategory == ReadingCategory.Global
|
||||||
|
// && x.ReadingTaskState == ReadingTaskState.HaveSigned
|
||||||
|
// ).CountAsync() == (int)readingType))
|
||||||
|
// {
|
||||||
|
// // 有裁判要等裁判完成之后才进行添加
|
||||||
|
// await _visitTaskHelpeService.AddTaskAsync(new GenerateTaskCommand()
|
||||||
|
// {
|
||||||
|
|
||||||
|
// ReadingCategory = GenerateTaskCategory.Oncology,
|
||||||
|
// TrialId = taskInfo.TrialId,
|
||||||
|
// ReadingGenerataTaskList = needReadList
|
||||||
|
// });
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
//}
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
Loading…
Reference in New Issue