修改字典
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user