添加修改原因

Uat_Study
he 2022-04-25 10:26:40 +08:00
parent da0cf9cc28
commit 6f09114bda
7 changed files with 30 additions and 9 deletions

View File

@ -219,11 +219,11 @@ namespace IRaCIS.Core.API.Controllers
/// <returns></returns> /// <returns></returns>
[HttpPost, Route("Inspection/QCOperation/CloseCheckChallenge")] [HttpPost, Route("Inspection/QCOperation/CloseCheckChallenge")]
[UnitOfWork] [UnitOfWork]
public async Task<IResponseOutput> CloseCheckChallenge(DataInspectionDto<IDDto> opt) public async Task<IResponseOutput> CloseCheckChallenge(DataInspectionDto<CloseCheckChallengeDto> opt)
{ {
var fun = _qCOperationService.CloseCheckChallenge; var fun = _qCOperationService.CloseCheckChallenge;
opt.AuditInfo.Reason = opt.OptCommand.CloseCheckChallenge;
return await _inspectionService.Enforcement(opt.OptCommand.Id, opt.AuditInfo, opt.SignInfo, fun); return await _inspectionService.Enforcement(opt.OptCommand, opt.AuditInfo, opt.SignInfo, fun);
} }
/// <summary> /// <summary>

View File

@ -104,7 +104,7 @@
一致性核查 质疑的添加/回复 一致性核查 质疑的添加/回复
</summary> </summary>
</member> </member>
<member name="M:IRaCIS.Core.API.Controllers.InspectionController.CloseCheckChallenge(IRaCIS.Core.Application.Service.Inspection.DTO.DataInspectionDto{IRaCIS.Core.Application.Contracts.IDDto})"> <member name="M:IRaCIS.Core.API.Controllers.InspectionController.CloseCheckChallenge(IRaCIS.Core.Application.Service.Inspection.DTO.DataInspectionDto{IRaCIS.Core.Application.Contracts.DTO.CloseCheckChallengeDto})">
<summary> <summary>
删除QC质疑记录 删除QC质疑记录
</summary> </summary>

View File

@ -704,6 +704,11 @@
<member name="T:IRaCIS.Core.Application.Contracts.PreviousPDFAddOrEdit"> <member name="T:IRaCIS.Core.Application.Contracts.PreviousPDFAddOrEdit">
<summary> PreviousPDFAddOrEdit 列表查询参数模型</summary> <summary> PreviousPDFAddOrEdit 列表查询参数模型</summary>
</member> </member>
<member name="T:IRaCIS.Core.Application.Contracts.DTO.CloseCheckChallengeDto">
<summary>
关闭一致性质疑Dto
</summary>
</member>
<member name="T:IRaCIS.Core.Application.Contracts.QCQuestionConfigureView"> <member name="T:IRaCIS.Core.Application.Contracts.QCQuestionConfigureView">
<summary> QCQuestionConfigureView 列表视图模型 </summary> <summary> QCQuestionConfigureView 列表视图模型 </summary>
</member> </member>
@ -1446,7 +1451,7 @@
<param name="checkDialogCommand"></param> <param name="checkDialogCommand"></param>
<returns></returns> <returns></returns>
</member> </member>
<member name="M:IRaCIS.Core.Application.Image.QA.QCOperationService.CloseCheckChallenge(System.Guid)"> <member name="M:IRaCIS.Core.Application.Image.QA.QCOperationService.CloseCheckChallenge(IRaCIS.Core.Application.Contracts.DTO.CloseCheckChallengeDto)">
<summary> <summary>
关闭 一致性核查质疑 关闭 一致性核查质疑
</summary> </summary>

View File

@ -424,6 +424,17 @@ namespace IRaCIS.Core.Application.Contracts.DTO
} }
/// <summary>
/// 关闭一致性质疑Dto
/// </summary>
public class CloseCheckChallengeDto
{
public Guid subjectVisitId { get; set; }
public string CloseCheckChallenge { get; set; }
}
public class CheckChallengeDialogCommand public class CheckChallengeDialogCommand
{ {
public string TalkContent { get; set; } = String.Empty; public string TalkContent { get; set; } = String.Empty;

View File

@ -23,7 +23,7 @@ namespace IRaCIS.Core.Application.Image.QA
Task<QCChallenge> AddOrUpdateQCChallenge(QCChallengeCommand qaQuestionCommand, Guid trialId, [FromRoute] TrialQCProcess trialQCProcess, [FromRoute] CurrentQC currentQCType); Task<QCChallenge> AddOrUpdateQCChallenge(QCChallengeCommand qaQuestionCommand, Guid trialId, [FromRoute] TrialQCProcess trialQCProcess, [FromRoute] CurrentQC currentQCType);
Task<IResponseOutput> AddOrUpdateQCQuestionAnswerList(QCQuestionAnswerCommand[] qcQuestionAnswerCommands, Guid trialId, Guid subjectVisitId, [FromRoute] TrialQCProcess trialQCProcess, [FromRoute] CurrentQC currentQCType); Task<IResponseOutput> AddOrUpdateQCQuestionAnswerList(QCQuestionAnswerCommand[] qcQuestionAnswerCommands, Guid trialId, Guid subjectVisitId, [FromRoute] TrialQCProcess trialQCProcess, [FromRoute] CurrentQC currentQCType);
Task<IResponseOutput> AddQCChallengeReply(QADialogCommand qaDialogCommand); Task<IResponseOutput> AddQCChallengeReply(QADialogCommand qaDialogCommand);
Task<IResponseOutput> CloseCheckChallenge(Guid subjectVisitId); Task<IResponseOutput> CloseCheckChallenge(CloseCheckChallengeDto input);
Task<IResponseOutput> CloseQCChallenge(Guid qcChallengeId, Guid subjectVisitId, [FromRoute] QCChallengeCloseEnum closeEnum, [FromRoute] string closeReason); Task<IResponseOutput> CloseQCChallenge(Guid qcChallengeId, Guid subjectVisitId, [FromRoute] QCChallengeCloseEnum closeEnum, [FromRoute] string closeReason);
Task<IResponseOutput> CRCRequestReUpload(Guid qcChallengeId); Task<IResponseOutput> CRCRequestReUpload(Guid qcChallengeId);
Task<IResponseOutput> CRCRequestToQC(CRCRequestToQCCommand cRCRequestToQCCommand); Task<IResponseOutput> CRCRequestToQC(CRCRequestToQCCommand cRCRequestToQCCommand);

View File

@ -296,10 +296,10 @@ namespace IRaCIS.Core.Application.Image.QA
/// <returns></returns> /// <returns></returns>
[HttpPut("{trialId:guid}/{subjectVisitId:guid}")] [HttpPut("{trialId:guid}/{subjectVisitId:guid}")]
[TypeFilter(typeof(TrialResourceFilter))] [TypeFilter(typeof(TrialResourceFilter))]
public async Task<IResponseOutput> CloseCheckChallenge(Guid subjectVisitId) public async Task<IResponseOutput> CloseCheckChallenge(CloseCheckChallengeDto input)
{ {
var sv = await _subjectVisitRepository.FirstOrDefaultAsync(t => t.Id == subjectVisitId); var sv = await _subjectVisitRepository.FirstOrDefaultAsync(t => t.Id == input.subjectVisitId);
if (sv == null) return Null404NotFound(sv); if (sv == null) return Null404NotFound(sv);
@ -307,7 +307,7 @@ namespace IRaCIS.Core.Application.Image.QA
{ {
ResponseOutput.NotOk("执行一致性核查的访视 不允许关闭质疑!"); ResponseOutput.NotOk("执行一致性核查的访视 不允许关闭质疑!");
} }
sv.CloseTheReason = input.CloseCheckChallenge;
sv.CheckChallengeState = CheckChanllengeTypeEnum.Closed; sv.CheckChallengeState = CheckChanllengeTypeEnum.Closed;
await _repository.SaveChangesAsync(); await _repository.SaveChangesAsync();

View File

@ -130,6 +130,11 @@ namespace IRaCIS.Core.Domain.Models
public bool IsEnrollmentConfirm { get; set; } public bool IsEnrollmentConfirm { get; set; }
/// <summary>
/// 关闭一致性质疑原因
/// </summary>
public string CloseTheReason { get; set; }
//导航属性 //导航属性