Uat_Study
parent
e81627ed88
commit
9471ed07f9
|
@ -333,19 +333,25 @@ namespace IRaCIS.Application.Services
|
|||
return ResponseOutput.NotOk("基线VisitDay 不是最小的, 不允许确认");
|
||||
}
|
||||
|
||||
List<DataInspection> datas = new List<DataInspection>();
|
||||
//更新项目访视计划状态为已确认
|
||||
await _trialRepository.UpdateFromQueryAsync(u => u.Id == trialId, t => new Trial() { VisitPlanConfirmed = true });
|
||||
|
||||
//找到访视计划修改的Item
|
||||
var changedList = await _visitStageRepository.Where(t => t.TrialId == trialId && t.IsConfirmed == false)
|
||||
.Select(t => new { t.Trial.IsHaveFirstGiveMedicineDate, t.Id, t.VisitName, t.VisitWindowLeft, t.VisitWindowRight, t.VisitDay, t.VisitNum, t.IsBaseLine }).ToListAsync();
|
||||
changedList.ForEach(x =>
|
||||
{
|
||||
|
||||
|
||||
});
|
||||
|
||||
|
||||
//访视计划 整体状态变更为 确认
|
||||
await _visitStageRepository.UpdateFromQueryAsync(u => u.TrialId == trialId, t => new VisitStage() { IsConfirmed = true });
|
||||
|
||||
var stat = new VisitPlanInfluenceStat() { TrialId = trialId };
|
||||
List<DataInspection> datas = new List<DataInspection>();
|
||||
|
||||
foreach (var changedItem in changedList)
|
||||
{
|
||||
//找到该项目 访视已经执行,并且配置了有首次给药日期 并且更新后超窗的访视,要把超窗之前的值也要查询出来
|
||||
|
@ -488,6 +494,9 @@ namespace IRaCIS.Application.Services
|
|||
});
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue