修改一版
parent
813eaff653
commit
93b06597fa
|
@ -33,7 +33,8 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
|
|||
public bool IsVisit { get; set; }
|
||||
}
|
||||
|
||||
public class GetTrialClinicalData
|
||||
{
|
||||
}
|
||||
public class GetTrialClinicalDataSelectIndto
|
||||
{
|
||||
public int MyProperty { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
|
@ -13,7 +13,7 @@ using MassTransit;
|
|||
namespace IRaCIS.Application.Services
|
||||
{
|
||||
/// <summary>
|
||||
/// 临床数据配置
|
||||
/// 阅片临床数据配置
|
||||
/// </summary>
|
||||
[ApiExplorerSettings(GroupName = "Reading")]
|
||||
public class ClinicalDataSetService : BaseService
|
||||
|
@ -39,7 +39,24 @@ namespace IRaCIS.Application.Services
|
|||
return ResponseOutput.Ok(entity.Id.ToString());
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 删除
|
||||
/// </summary>
|
||||
/// <param name="id"></param>
|
||||
/// <returns></returns>
|
||||
[HttpDelete("{id:guid}")]
|
||||
public async Task<IResponseOutput> ReadingClinicalData(Guid id)
|
||||
{
|
||||
await _readingClinicalDataRepository.DeleteFromQueryAsync(x => x.Id == id, true);
|
||||
return ResponseOutput.Result(true);
|
||||
}
|
||||
|
||||
|
||||
//public async Task<> GetTrialClinicalDataSelect()
|
||||
|
||||
//public async Task<List<>> GetTrialClinicalData()
|
||||
|
||||
///// <summary>
|
||||
|
@ -78,7 +95,7 @@ namespace IRaCIS.Application.Services
|
|||
//}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
///// <summary>
|
||||
///// 将系统配置添加到项目配置
|
||||
|
@ -100,7 +117,7 @@ namespace IRaCIS.Application.Services
|
|||
// ClinicalDataLevel=x.ClinicalDataLevel,
|
||||
// ClinicalUploadType=x.ClinicalUploadType,
|
||||
// TrialId= trialId,
|
||||
|
||||
|
||||
// }).ToList();
|
||||
// await _clinicalDataTrialSetRepository.AddRangeAsync(dataSets);
|
||||
// var result= await _clinicalDataTrialSetRepository.SaveChangesAsync();
|
||||
|
|
|
@ -16,6 +16,10 @@ namespace IRaCIS.Core.Application.Contracts
|
|||
/// </summary>
|
||||
public string SubjectCodeRule { get; set; } = string.Empty;
|
||||
|
||||
|
||||
|
||||
public List<Guid> ClinicalDataTrialSetIds { get; set; } = new List<Guid>();
|
||||
|
||||
public bool IsSubjectSecondCodeView { get; set; }
|
||||
|
||||
/// <summary>
|
||||
|
@ -76,7 +80,6 @@ namespace IRaCIS.Core.Application.Contracts
|
|||
|
||||
public List<Guid> CriterionIds { get; set; } = new List<Guid>();
|
||||
|
||||
public List<Guid> ClinicalDataTrialSetIds { get; set; } = new List<Guid>();
|
||||
|
||||
public Guid TrialId { get; set; }
|
||||
|
||||
|
|
|
@ -161,6 +161,24 @@ namespace IRaCIS.Core.Application
|
|||
_mapper.Map(trialConfig, trialInfo);
|
||||
trialInfo.UpdateTime = DateTime.Now;
|
||||
|
||||
|
||||
var noconfirmids = await _clinicalDataTrialSetRepository.Where(x => x.TrialId == trialConfig.TrialId && !trialConfig.ClinicalDataTrialSetIds.Contains(x.Id)).Select(x => x.Id).ToListAsync();
|
||||
foreach (var item in trialConfig.ClinicalDataTrialSetIds)
|
||||
{
|
||||
await _clinicalDataTrialSetRepository.UpdatePartialFromQueryAsync(item, x => new ClinicalDataTrialSet()
|
||||
{
|
||||
IsConfirm = true
|
||||
});
|
||||
}
|
||||
|
||||
foreach (var item in noconfirmids)
|
||||
{
|
||||
await _clinicalDataTrialSetRepository.UpdatePartialFromQueryAsync(item, x => new ClinicalDataTrialSet()
|
||||
{
|
||||
IsConfirm = false
|
||||
});
|
||||
}
|
||||
|
||||
return ResponseOutput.Ok(await _repository.SaveChangesAsync());
|
||||
}
|
||||
|
||||
|
@ -314,22 +332,7 @@ namespace IRaCIS.Core.Application
|
|||
|
||||
|
||||
|
||||
var noconfirmids = await _clinicalDataTrialSetRepository.Where(x => x.TrialId == trialConfig.TrialId && !trialConfig.ClinicalDataTrialSetIds.Contains(x.Id)).Select(x => x.Id).ToListAsync();
|
||||
foreach (var item in trialConfig.ClinicalDataTrialSetIds)
|
||||
{
|
||||
await _clinicalDataTrialSetRepository.UpdatePartialFromQueryAsync(item, x => new ClinicalDataTrialSet()
|
||||
{
|
||||
IsConfirm = true
|
||||
});
|
||||
}
|
||||
|
||||
foreach (var item in noconfirmids)
|
||||
{
|
||||
await _clinicalDataTrialSetRepository.UpdatePartialFromQueryAsync(item, x => new ClinicalDataTrialSet()
|
||||
{
|
||||
IsConfirm = false
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue