PM阅片跟踪列表
This commit is contained in:
@@ -142,6 +142,15 @@ namespace IRaCIS.Core.Application.Contracts
|
||||
|
||||
}
|
||||
|
||||
public class TrialReadingTaskViewConfig
|
||||
{
|
||||
public Guid TrialId { get; set; }
|
||||
|
||||
public ReadingTaskViewMethod ReadingTaskViewEnum { get; set; }
|
||||
|
||||
public bool IsReadingTaskViewInOrder { get; set; } = true;
|
||||
}
|
||||
|
||||
public class TrialUrgentConfig
|
||||
{
|
||||
public Guid TrialId { get; set; }
|
||||
|
||||
@@ -393,5 +393,23 @@ namespace IRaCIS.Core.Application
|
||||
return ResponseOutput.Ok(await _trialRepository.SaveChangesAsync());
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 配置项目赌片规则信息
|
||||
/// </summary>
|
||||
/// <param name="trialConfig"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPut]
|
||||
public async Task<IResponseOutput> ConfigTrialReadingTaskViewRule(TrialReadingTaskViewConfig trialConfig)
|
||||
{
|
||||
var trialInfo = (await _trialRepository.FirstOrDefaultAsync(t => t.Id == trialConfig.TrialId)).IfNullThrowException();
|
||||
|
||||
_mapper.Map(trialConfig, trialInfo);
|
||||
|
||||
return ResponseOutput.Ok(await _trialRepository.SaveChangesAsync());
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,6 +21,9 @@ namespace IRaCIS.Core.Application.Service
|
||||
|
||||
CreateMap<TrialTaskConfig, Trial>().ForMember(d => d.Id, u => u.MapFrom(s => s.TrialId)).ReverseMap();
|
||||
|
||||
CreateMap<TrialReadingTaskViewConfig, Trial>().ForMember(d => d.Id, u => u.MapFrom(s => s.TrialId)).ReverseMap();
|
||||
|
||||
|
||||
CreateMap<UserTrialCommand, TrialUser>();
|
||||
|
||||
CreateMap<TrialSiteCommand, TrialSite>()
|
||||
|
||||
Reference in New Issue
Block a user