修改问题
parent
ab3cfd7acd
commit
77495f5922
|
@ -849,6 +849,7 @@ namespace IRaCIS.Core.API.Controllers
|
|||
public async Task<IResponseOutput> UpdateSubjectStatus(InsUpdateSubjectStatus opt)
|
||||
{
|
||||
var fun = _subjectService.UpdateSubjectStatus;
|
||||
|
||||
return await _inspectionService.Enforcement(opt.OptCommand, opt.AuditInfo, opt.SignInfo, fun);
|
||||
}
|
||||
|
||||
|
|
|
@ -1817,7 +1817,8 @@ namespace IRaCIS.Core.Application.Image.QA
|
|||
FirstGiveMedicineTime = command.SubjectFirstGiveMedicineTime,
|
||||
|
||||
});
|
||||
|
||||
if (data.IsBaseLine)
|
||||
{
|
||||
datas.Add(new DataInspection()
|
||||
{
|
||||
|
||||
|
@ -1833,6 +1834,8 @@ namespace IRaCIS.Core.Application.Image.QA
|
|||
|
||||
})
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
await _inspectionService.AddListInspectionRecordAsync(datas);
|
||||
}
|
||||
|
|
|
@ -33,7 +33,7 @@ namespace IRaCIS.Core.Application.Services
|
|||
{
|
||||
bool isadd=false;
|
||||
|
||||
if (svCommand.Id != null)
|
||||
if (svCommand.Id == null)
|
||||
{
|
||||
isadd=true;
|
||||
}
|
||||
|
@ -117,15 +117,15 @@ namespace IRaCIS.Core.Application.Services
|
|||
|
||||
//更新受试者 首次给药日期 是否入组确认
|
||||
if (svCommand.SubjectFirstGiveMedicineTime != null)
|
||||
{
|
||||
|
||||
if (svCommand.IsBaseLine)
|
||||
{
|
||||
List<DataInspection> datas = new List<DataInspection>();
|
||||
|
||||
// 更新受试者
|
||||
|
||||
subject.FirstGiveMedicineTime = svCommand.SubjectFirstGiveMedicineTime;
|
||||
datas.Add(new DataInspection()
|
||||
{
|
||||
|
||||
SubjectId = subject.Id,
|
||||
SiteId = subject.SiteId,
|
||||
TrialId = subject.TrialId,
|
||||
|
@ -135,12 +135,13 @@ namespace IRaCIS.Core.Application.Services
|
|||
JsonDetail = JsonConvert.SerializeObject(new
|
||||
{
|
||||
FirstGiveMedicineTime = subject.FirstGiveMedicineTime.Value.ToString("yyyy-MM-dd")
|
||||
|
||||
})
|
||||
});
|
||||
await _inspectionService.AddListInspectionRecordAsync(datas);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if (svCommand.IsEnrollmentConfirm != null)
|
||||
{
|
||||
|
||||
|
|
Loading…
Reference in New Issue