修改访视列表
This commit is contained in:
@@ -42,7 +42,7 @@ namespace IRaCIS.Application.Contracts
|
||||
|
||||
public string BlindFollowUpPrefix { get; set; }
|
||||
|
||||
//public bool SubjectHasAdded { get; set; }
|
||||
public bool IsHaveGeneratedTask { get; set; }
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -60,6 +60,7 @@ namespace IRaCIS.Application.Services
|
||||
var list = await query.ToListAsync();
|
||||
var trial = (await _repository.FirstOrDefaultAsync<Trial>(t => t.Id == trialId)).IfNullThrowException();
|
||||
|
||||
var isHaveGeneratedTask = (await _repository.AnyAsync<VisitTask>(t => t.TrialId == trialId));
|
||||
return new VisitPlanView()
|
||||
{
|
||||
VisitPlanList = list,
|
||||
@@ -68,6 +69,7 @@ namespace IRaCIS.Application.Services
|
||||
IsHaveFirstGiveMedicineDate = trial.IsHaveFirstGiveMedicineDate,
|
||||
BlindBaseLineName=trial.BlindBaseLineName,
|
||||
BlindFollowUpPrefix=trial.BlindFollowUpPrefix,
|
||||
IsHaveGeneratedTask= isHaveGeneratedTask,
|
||||
//SubjectHasAdded = _subjectVisitRepository.Any(t => t.TrialId == trialId)
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user