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