增加验证
parent
e1d4402b85
commit
f8f8df18ab
|
@ -31,7 +31,7 @@ namespace IRaCIS.Core.Application.Filter
|
||||||
}
|
}
|
||||||
else if(context.Exception.GetType() == typeof(QueryBusinessObjectNotExistException))
|
else if(context.Exception.GetType() == typeof(QueryBusinessObjectNotExistException))
|
||||||
{
|
{
|
||||||
context.Result = new JsonResult(ResponseOutput.NotOk( context.Exception.Message), ApiResponseCodeEnum.DataNotExist);
|
context.Result = new JsonResult(ResponseOutput.NotOk( context.Exception.Message, ApiResponseCodeEnum.DataNotExist));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -609,13 +609,6 @@ namespace IRaCIS.Core.Application.Image.QA
|
||||||
{
|
{
|
||||||
var sv = (await _subjectVisitRepository.FirstOrDefaultAsync(t => t.Id == subjectVisitId)).IfNullThrowException();
|
var sv = (await _subjectVisitRepository.FirstOrDefaultAsync(t => t.Id == subjectVisitId)).IfNullThrowException();
|
||||||
|
|
||||||
|
|
||||||
if (_userInfo.Id != sv.CurrentActionUserId)
|
|
||||||
{
|
|
||||||
throw new BusinessValidationFailedException("您不是该质控任务当前领取人,没有操作权限!");
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
var temp = await GetVisitQCStudyAndSeriesList(subjectVisitId);
|
var temp = await GetVisitQCStudyAndSeriesList(subjectVisitId);
|
||||||
|
|
||||||
var qacheckList = await GetQCQuestionAnswerList(subjectVisitId, sv.TrialId, trialQCProcess, currentQCType);
|
var qacheckList = await GetQCQuestionAnswerList(subjectVisitId, sv.TrialId, trialQCProcess, currentQCType);
|
||||||
|
|
|
@ -946,6 +946,12 @@ namespace IRaCIS.Core.Application.Image.QA
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
[HttpGet]
|
||||||
|
public async Task IsCanQCOpt(Guid sujectVisitId)
|
||||||
|
{
|
||||||
|
await VerifyIsCanQCAsync(null,sujectVisitId);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
private async Task VerifyIsCanQCAsync(SubjectVisit? subjectVisit, Guid? sujectVisitId = null)
|
private async Task VerifyIsCanQCAsync(SubjectVisit? subjectVisit, Guid? sujectVisitId = null)
|
||||||
{
|
{
|
||||||
|
@ -972,7 +978,7 @@ namespace IRaCIS.Core.Application.Image.QA
|
||||||
if (dbSubjectVisit.CurrentActionUserId == null && dbSubjectVisit.IsTake==false)
|
if (dbSubjectVisit.CurrentActionUserId == null && dbSubjectVisit.IsTake==false)
|
||||||
{
|
{
|
||||||
|
|
||||||
return ResponseOutput.NotOk("当前访视已被释放,不允许替换", ApiResponseCodeEnum.NeedTips);
|
return ResponseOutput.NotOk("当前访视的影像质控任务已被原领取人释放。您可以通过“领取”获得", ApiResponseCodeEnum.NeedTips);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -19,11 +19,6 @@ namespace IRaCIS.Application.Services
|
||||||
_trialRepository = trialRepository;
|
_trialRepository = trialRepository;
|
||||||
}
|
}
|
||||||
|
|
||||||
public string Get()
|
|
||||||
{
|
|
||||||
return String.Empty;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[HttpPost]
|
[HttpPost]
|
||||||
|
|
Loading…
Reference in New Issue