修改字典
parent
37da8bd3e9
commit
da45898e02
|
@ -55,6 +55,9 @@ namespace IRaCIS.Core.Application.Contracts
|
|||
|
||||
public SubmitStateEnum SubmitState { get; set; }
|
||||
|
||||
public AuditStateEnum AuditState { get; set; }
|
||||
public ForwardStateEnum ForwardState { get; set; }
|
||||
|
||||
//public string SubjectName => LastName + " / " + FirstName;
|
||||
//public string FirstName { get; set; } = string.Empty;
|
||||
//public string LastName { get; set; } = string.Empty;
|
||||
|
|
|
@ -1943,10 +1943,10 @@ namespace IRaCIS.Core.Application.Image.QA
|
|||
|
||||
var info = await _subjectVisitRepository.Where(t => t.Id == subjectVisitId).ProjectTo<DicomTrialSiteSubjectInfo>(_mapper.ConfigurationProvider).FirstOrDefaultAsync();
|
||||
Dictionary<string, object> keyValuePairs = new Dictionary<string, object>() {
|
||||
{"SubmitState","已提交" },
|
||||
{ "AuditState","通过"},
|
||||
{ "CheckState",info.CheckState== CheckStateEnum.CVIng? "核查中": "核查通过"},
|
||||
{ "ForwardState",""}
|
||||
{"SubmitState",info.SubmitState },
|
||||
{ "AuditState",info.AuditState},
|
||||
{ "CheckState",info.CheckState},
|
||||
{ "ForwardState",info.ForwardState}
|
||||
|
||||
};
|
||||
DataInspection data = new DataInspection()
|
||||
|
@ -2016,14 +2016,14 @@ namespace IRaCIS.Core.Application.Image.QA
|
|||
await _subjectVisitRepository.BatchUpdateAsync(t => t.Id == subjectVisitId,
|
||||
u => new SubjectVisit() { ForwardState = ForwardStateEnum.Forwarded, ForwardUserId = _userInfo.Id, ForwardTime = DateTime.Now });
|
||||
|
||||
keyValuePairs["ForwardState"] = "转发成功";
|
||||
keyValuePairs["ForwardState"] = ForwardStateEnum.Forwarded;
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
||||
await _subjectVisitRepository.BatchUpdateAsync(t => t.Id == subjectVisitId,
|
||||
u => new SubjectVisit() { ForwardState = ForwardStateEnum.ForwardFailed });
|
||||
keyValuePairs["ForwardState"] = "转发失败";
|
||||
keyValuePairs["ForwardState"] = ForwardStateEnum.ForwardFailed;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -602,10 +602,7 @@ namespace IRaCIS.Core.Infra.EFCore
|
|||
IsSign = false,
|
||||
CreateTime = createtime,
|
||||
Identification = "Init|Subject|Status|Subject",
|
||||
JsonDetail = JsonConvert.SerializeObject(new
|
||||
{
|
||||
Status = "新增",
|
||||
})
|
||||
JsonDetail = JsonConvert.SerializeObject(entity)
|
||||
});
|
||||
}
|
||||
await AddListInspectionRecordAsync(datas);
|
||||
|
|
Loading…
Reference in New Issue