修改问题

Uat_Study
he 2022-04-18 15:31:17 +08:00
parent ab3cfd7acd
commit 77495f5922
3 changed files with 37 additions and 32 deletions

View File

@ -849,6 +849,7 @@ namespace IRaCIS.Core.API.Controllers
public async Task<IResponseOutput> UpdateSubjectStatus(InsUpdateSubjectStatus opt) public async Task<IResponseOutput> UpdateSubjectStatus(InsUpdateSubjectStatus opt)
{ {
var fun = _subjectService.UpdateSubjectStatus; var fun = _subjectService.UpdateSubjectStatus;
return await _inspectionService.Enforcement(opt.OptCommand, opt.AuditInfo, opt.SignInfo, fun); return await _inspectionService.Enforcement(opt.OptCommand, opt.AuditInfo, opt.SignInfo, fun);
} }

View File

@ -1817,22 +1817,25 @@ namespace IRaCIS.Core.Application.Image.QA
FirstGiveMedicineTime = command.SubjectFirstGiveMedicineTime, FirstGiveMedicineTime = command.SubjectFirstGiveMedicineTime,
}); });
if (data.IsBaseLine)
datas.Add(new DataInspection()
{ {
datas.Add(new DataInspection()
SubjectId = command.SubjectId,
SiteId = data.SiteId,
TrialId = data.TrialId,
IsSign = false,
Identification= "Edit|Subject|Info|Subject",
CreateTime =DateTime.Now.AddSeconds(1),
JsonDetail = JsonConvert.SerializeObject(new
{ {
FirstGiveMedicineTime= command.SubjectFirstGiveMedicineTime.Value.ToString("yyyy-MM-dd")
}) SubjectId = command.SubjectId,
}) ; SiteId = data.SiteId,
TrialId = data.TrialId,
IsSign = false,
Identification = "Edit|Subject|Info|Subject",
CreateTime = DateTime.Now.AddSeconds(1),
JsonDetail = JsonConvert.SerializeObject(new
{
FirstGiveMedicineTime = command.SubjectFirstGiveMedicineTime.Value.ToString("yyyy-MM-dd")
})
});
}
await _inspectionService.AddListInspectionRecordAsync(datas); await _inspectionService.AddListInspectionRecordAsync(datas);
} }

View File

@ -33,7 +33,7 @@ namespace IRaCIS.Core.Application.Services
{ {
bool isadd=false; bool isadd=false;
if (svCommand.Id != null) if (svCommand.Id == null)
{ {
isadd=true; isadd=true;
} }
@ -118,27 +118,28 @@ namespace IRaCIS.Core.Application.Services
//更新受试者 首次给药日期 是否入组确认 //更新受试者 首次给药日期 是否入组确认
if (svCommand.SubjectFirstGiveMedicineTime != null) if (svCommand.SubjectFirstGiveMedicineTime != null)
{ {
List<DataInspection> datas = new List<DataInspection>();
// 更新受试者 if (svCommand.IsBaseLine)
subject.FirstGiveMedicineTime = svCommand.SubjectFirstGiveMedicineTime;
datas.Add(new DataInspection()
{ {
List<DataInspection> datas = new List<DataInspection>();
SubjectId = subject.Id, // 更新受试者
SiteId = subject.SiteId, subject.FirstGiveMedicineTime = svCommand.SubjectFirstGiveMedicineTime;
TrialId = subject.TrialId, datas.Add(new DataInspection()
IsSign = false,
Identification= "Edit|Subject|Info|Subject",
CreateTime = DateTime.Now.AddSeconds(1),
JsonDetail = JsonConvert.SerializeObject(new
{ {
FirstGiveMedicineTime = subject.FirstGiveMedicineTime.Value.ToString("yyyy-MM-dd") SubjectId = subject.Id,
SiteId = subject.SiteId,
}) TrialId = subject.TrialId,
}); IsSign = false,
await _inspectionService.AddListInspectionRecordAsync(datas); Identification = "Edit|Subject|Info|Subject",
CreateTime = DateTime.Now.AddSeconds(1),
JsonDetail = JsonConvert.SerializeObject(new
{
FirstGiveMedicineTime = subject.FirstGiveMedicineTime.Value.ToString("yyyy-MM-dd")
})
});
await _inspectionService.AddListInspectionRecordAsync(datas);
}
} }
if (svCommand.IsEnrollmentConfirm != null) if (svCommand.IsEnrollmentConfirm != null)