添加接口
This commit is contained in:
@@ -7,6 +7,7 @@ using Castle.Core.Internal;
|
||||
using IRaCIS.Application.Contracts;
|
||||
using IRaCIS.Application.Interfaces;
|
||||
using IRaCIS.Core.Application.Contracts;
|
||||
using IRaCIS.Core.Application.Contracts.DTO;
|
||||
using IRaCIS.Core.Application.Filter;
|
||||
using IRaCIS.Core.Application.Image.QA;
|
||||
using IRaCIS.Core.Application.Interfaces;
|
||||
@@ -77,8 +78,8 @@ namespace IRaCIS.Core.API.Controllers
|
||||
this._dataInspectionRepository = dataInspectionRepository;
|
||||
}
|
||||
|
||||
|
||||
|
||||
#region 获取稽查数据
|
||||
/// <summary>
|
||||
/// 获取稽查数据
|
||||
/// </summary>
|
||||
@@ -88,6 +89,8 @@ namespace IRaCIS.Core.API.Controllers
|
||||
{
|
||||
return await _inspectionService.GetInspectionData(dto);
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
#region 影像质疑
|
||||
/// <summary>
|
||||
@@ -107,6 +110,148 @@ namespace IRaCIS.Core.API.Controllers
|
||||
return await _inspectionService.Enforcement(opt.OptCommand, opt.AuditInfo, opt.SignInfo, null, fun);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加或者更新 QC核对问题列表
|
||||
/// </summary>
|
||||
/// <param name="opt"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("Inspection/QCOperation/AddOrUpdateQCQuestionAnswerList")]
|
||||
[UnitOfWork]
|
||||
public async Task<IResponseOutput> AddOrUpdateQCQuestionAnswerList(DataInspectionDto<AddOrUpdateQCQuestionAnswerListDto> opt)
|
||||
|
||||
{
|
||||
var fun = await _qCOperationService.AddOrUpdateQCQuestionAnswerList(opt.OptCommand.qcQuestionAnswerCommands, opt.OptCommand.trialId, opt.OptCommand.subjectVisitId,opt.OptCommand.trialQCProcess,opt.OptCommand.currentQCType);
|
||||
if (!fun.IsSuccess)
|
||||
{
|
||||
return ResponseOutput.NotOk(fun.ErrorMessage);
|
||||
}
|
||||
return await _inspectionService.Enforcement(opt.OptCommand, opt.AuditInfo, opt.SignInfo, null, fun);
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 添加和更新质疑
|
||||
/// </summary>
|
||||
[HttpPost, Route("Inspection/QCOperation/AddOrUpdateQCChallenge")]
|
||||
[UnitOfWork]
|
||||
public async Task<IResponseOutput> AddOrUpdateQCChallenge(DataInspectionDto<AddOrUpdateQCChallengeDto> opt)
|
||||
{
|
||||
var fun = await _qCOperationService.AddOrUpdateQCChallenge(opt.OptCommand.qaQuestionCommand, opt.OptCommand.trialId, opt.OptCommand.trialQCProcess, opt.OptCommand.currentQCType);
|
||||
if (!fun.IsSuccess)
|
||||
{
|
||||
return ResponseOutput.NotOk(fun.ErrorMessage);
|
||||
}
|
||||
return await _inspectionService.Enforcement(opt.OptCommand, opt.AuditInfo, opt.SignInfo, null, fun);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 回复质疑
|
||||
/// </summary>
|
||||
[HttpPost, Route("Inspection/QCOperation/AddQCChallengeReply")]
|
||||
[UnitOfWork]
|
||||
public async Task<IResponseOutput> AddQCChallengeReply(DataInspectionDto<QADialogCommand> opt)
|
||||
|
||||
{
|
||||
var fun = _qCOperationService.AddQCChallengeReply;
|
||||
return await _inspectionService.Enforcement(opt.OptCommand, opt.AuditInfo, opt.SignInfo, fun);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 关闭质疑
|
||||
/// </summary>
|
||||
[HttpPost, Route("Inspection/QCOperation/CloseQCChallenge")]
|
||||
[UnitOfWork]
|
||||
public async Task<IResponseOutput> CloseQCChallenge(DataInspectionDto<CloseQCChallengeDto> opt)
|
||||
{
|
||||
var fun = await _qCOperationService.CloseQCChallenge(opt.OptCommand.qcChallengeId, opt.OptCommand.subjectVisitId, opt.OptCommand.closeEnum, opt.OptCommand.closeReason);
|
||||
if (!fun.IsSuccess)
|
||||
{
|
||||
return ResponseOutput.NotOk(fun.ErrorMessage);
|
||||
}
|
||||
return await _inspectionService.Enforcement(opt.OptCommand, opt.AuditInfo, opt.SignInfo, null, fun);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 删除QC质疑记录
|
||||
/// </summary>
|
||||
/// <param name="opt"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("Inspection/QCOperation/DeleteQCChallenge")]
|
||||
[UnitOfWork]
|
||||
public async Task<IResponseOutput> DeleteQCChallenge(DataInspectionDto<IDDto> opt)
|
||||
{
|
||||
var fun = _qCOperationService.DeleteQCChallenge;
|
||||
|
||||
return await _inspectionService.Enforcement(opt.OptCommand.Id, opt.AuditInfo, opt.SignInfo, fun);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 一致性核查 质疑的添加/回复
|
||||
/// </summary>
|
||||
[HttpPost, Route("Inspection/QCOperation/AddCheckChallengeReply")]
|
||||
[UnitOfWork]
|
||||
public async Task<IResponseOutput> AddCheckChallengeReply(DataInspectionDto<CheckChallengeDialogCommand> opt)
|
||||
|
||||
{
|
||||
var fun = _qCOperationService.AddCheckChallengeReply;
|
||||
return await _inspectionService.Enforcement(opt.OptCommand, opt.AuditInfo, opt.SignInfo, fun);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 删除QC质疑记录
|
||||
/// </summary>
|
||||
/// <param name="opt"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("Inspection/QCOperation/CloseCheckChallenge")]
|
||||
[UnitOfWork]
|
||||
public async Task<IResponseOutput> CloseCheckChallenge(DataInspectionDto<IDDto> opt)
|
||||
{
|
||||
var fun = _qCOperationService.CloseCheckChallenge;
|
||||
|
||||
return await _inspectionService.Enforcement(opt.OptCommand.Id, opt.AuditInfo, opt.SignInfo, fun);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 手动设置一致性核查通过
|
||||
/// </summary>
|
||||
[HttpPost, Route("Inspection/QCOperation/SetCheckPass")]
|
||||
[UnitOfWork]
|
||||
public async Task<IResponseOutput> SetCheckPass(DataInspectionDto<IDDto> opt)
|
||||
{
|
||||
var fun = _qCOperationService.SetCheckPass;
|
||||
return await _inspectionService.Enforcement(opt.OptCommand.Id, opt.AuditInfo, opt.SignInfo, fun);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// CRC 请求回退
|
||||
/// </summary>
|
||||
[HttpPost, Route("Inspection/QCOperation/CRCRequstCheckBack")]
|
||||
[UnitOfWork]
|
||||
public async Task<IResponseOutput> CRCRequstCheckBack(DataInspectionDto<IDDto> opt)
|
||||
{
|
||||
var fun = _qCOperationService.CRCRequstCheckBack;
|
||||
return await _inspectionService.Enforcement(opt.OptCommand.Id, opt.AuditInfo, opt.SignInfo, fun);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 一致性核查 回退 对话记录不清除 只允许PM回退
|
||||
/// </summary>
|
||||
[HttpPost, Route("Inspection/QCOperation/CheckBack")]
|
||||
[UnitOfWork]
|
||||
public async Task<IResponseOutput> CheckBack(DataInspectionDto<IDDto> opt)
|
||||
{
|
||||
var fun = _qCOperationService.CheckBack;
|
||||
return await _inspectionService.Enforcement(opt.OptCommand.Id, opt.AuditInfo, opt.SignInfo, fun);
|
||||
}
|
||||
#endregion
|
||||
#region 影像上传
|
||||
|
||||
|
||||
@@ -98,6 +98,10 @@
|
||||
<Folder Include="Properties\PublishProfiles\" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<None Include="..\.editorconfig" Link=".editorconfig" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Content Update="NLog.config">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
|
||||
@@ -65,6 +65,62 @@
|
||||
<param name="opt"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:IRaCIS.Core.API.Controllers.InspectionController.AddOrUpdateQCQuestionAnswerList(IRaCIS.Core.Application.Service.Inspection.DTO.DataInspectionDto{IRaCIS.Core.Application.Service.Inspection.DTO.AddOrUpdateQCQuestionAnswerListDto})">
|
||||
<summary>
|
||||
添加或者更新 QC核对问题列表
|
||||
</summary>
|
||||
<param name="opt"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:IRaCIS.Core.API.Controllers.InspectionController.AddOrUpdateQCChallenge(IRaCIS.Core.Application.Service.Inspection.DTO.DataInspectionDto{IRaCIS.Core.Application.Service.Inspection.DTO.AddOrUpdateQCChallengeDto})">
|
||||
<summary>
|
||||
添加和更新质疑
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:IRaCIS.Core.API.Controllers.InspectionController.AddQCChallengeReply(IRaCIS.Core.Application.Service.Inspection.DTO.DataInspectionDto{IRaCIS.Core.Application.Contracts.DTO.QADialogCommand})">
|
||||
<summary>
|
||||
回复质疑
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:IRaCIS.Core.API.Controllers.InspectionController.CloseQCChallenge(IRaCIS.Core.Application.Service.Inspection.DTO.DataInspectionDto{IRaCIS.Core.Application.Service.Inspection.DTO.CloseQCChallengeDto})">
|
||||
<summary>
|
||||
关闭质疑
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:IRaCIS.Core.API.Controllers.InspectionController.DeleteQCChallenge(IRaCIS.Core.Application.Service.Inspection.DTO.DataInspectionDto{IRaCIS.Core.Application.Contracts.IDDto})">
|
||||
<summary>
|
||||
删除QC质疑记录
|
||||
</summary>
|
||||
<param name="opt"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:IRaCIS.Core.API.Controllers.InspectionController.AddCheckChallengeReply(IRaCIS.Core.Application.Service.Inspection.DTO.DataInspectionDto{IRaCIS.Core.Application.Contracts.DTO.CheckChallengeDialogCommand})">
|
||||
<summary>
|
||||
一致性核查 质疑的添加/回复
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:IRaCIS.Core.API.Controllers.InspectionController.CloseCheckChallenge(IRaCIS.Core.Application.Service.Inspection.DTO.DataInspectionDto{IRaCIS.Core.Application.Contracts.IDDto})">
|
||||
<summary>
|
||||
删除QC质疑记录
|
||||
</summary>
|
||||
<param name="opt"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:IRaCIS.Core.API.Controllers.InspectionController.SetCheckPass(IRaCIS.Core.Application.Service.Inspection.DTO.DataInspectionDto{IRaCIS.Core.Application.Contracts.IDDto})">
|
||||
<summary>
|
||||
手动设置一致性核查通过
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:IRaCIS.Core.API.Controllers.InspectionController.CRCRequstCheckBack(IRaCIS.Core.Application.Service.Inspection.DTO.DataInspectionDto{IRaCIS.Core.Application.Contracts.IDDto})">
|
||||
<summary>
|
||||
CRC 请求回退
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:IRaCIS.Core.API.Controllers.InspectionController.CheckBack(IRaCIS.Core.Application.Service.Inspection.DTO.DataInspectionDto{IRaCIS.Core.Application.Contracts.IDDto})">
|
||||
<summary>
|
||||
一致性核查 回退 对话记录不清除 只允许PM回退
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:IRaCIS.Core.API.Controllers.InspectionController.UpdateSubjectAndSVInfo(IRaCIS.Core.Application.Service.Inspection.DTO.DataInspectionDto{IRaCIS.Core.Application.Contracts.UploadSubjectAndVisitCommand})">
|
||||
<summary>
|
||||
疾病进展确认评估
|
||||
|
||||
Reference in New Issue
Block a user