添加接口
parent
42edc62f04
commit
0c6031c04c
|
@ -35,6 +35,7 @@ namespace IRaCIS.Core.API.Controllers
|
||||||
private readonly ITrialConfigService _trialConfigService;
|
private readonly ITrialConfigService _trialConfigService;
|
||||||
private readonly ISubjectService _subjectService;
|
private readonly ISubjectService _subjectService;
|
||||||
private readonly ISubjectVisitService _subjectVisitService;
|
private readonly ISubjectVisitService _subjectVisitService;
|
||||||
|
private readonly IQCOperationService _qCOperationService;
|
||||||
private readonly IVisitPlanService _visitPlanService;
|
private readonly IVisitPlanService _visitPlanService;
|
||||||
private readonly IInspectionService _inspectionService;
|
private readonly IInspectionService _inspectionService;
|
||||||
private readonly IRepository<DataInspection> _dataInspectionRepository;
|
private readonly IRepository<DataInspection> _dataInspectionRepository;
|
||||||
|
@ -50,22 +51,26 @@ namespace IRaCIS.Core.API.Controllers
|
||||||
ITrialConfigService _trialConfigService,
|
ITrialConfigService _trialConfigService,
|
||||||
ISubjectService _subjectService,
|
ISubjectService _subjectService,
|
||||||
ISubjectVisitService subjectVisitService,
|
ISubjectVisitService subjectVisitService,
|
||||||
|
IQCOperationService qCOperationService,
|
||||||
IVisitPlanService visitPlanService
|
IVisitPlanService visitPlanService
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
_repository = repository;
|
this._repository = repository;
|
||||||
_mapper = mapper;
|
this._mapper = mapper;
|
||||||
_userInfo = userInfo;
|
this._userInfo = userInfo;
|
||||||
this._inspectionService = sinspectionService;
|
this._inspectionService = sinspectionService;
|
||||||
this._trialDocumentService = trialDocumentService;
|
this._trialDocumentService = trialDocumentService;
|
||||||
this._qCListService = _qCListService;
|
this._qCListService = _qCListService;
|
||||||
this._trialConfigService = _trialConfigService;
|
this._trialConfigService = _trialConfigService;
|
||||||
this._subjectService = _subjectService;
|
this._subjectService = _subjectService;
|
||||||
_subjectVisitService = subjectVisitService;
|
this._subjectVisitService = subjectVisitService;
|
||||||
|
this._qCOperationService = qCOperationService;
|
||||||
this._visitPlanService = visitPlanService;
|
this._visitPlanService = visitPlanService;
|
||||||
this._dataInspectionRepository = dataInspectionRepository;
|
this._dataInspectionRepository = dataInspectionRepository;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取稽查数据
|
/// 获取稽查数据
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -76,6 +81,45 @@ namespace IRaCIS.Core.API.Controllers
|
||||||
return await _inspectionService.GetInspectionData(dto);
|
return await _inspectionService.GetInspectionData(dto);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#region Qc
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 调整影像状态
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="opt"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
[HttpPost, Route("Inspection/QCOperation/UpdateSubjectAndSVInfo")]
|
||||||
|
[UnitOfWork]
|
||||||
|
public async Task<IResponseOutput> UpdateSubjectAndSVInfo(DataInspectionDto<UploadSubjectAndVisitCommand> opt)
|
||||||
|
{
|
||||||
|
var fun = _qCOperationService.UpdateSubjectAndSVInfo;
|
||||||
|
return await _inspectionService.Enforcement(opt.OptCommand, opt.AuditInfo, opt.SignInfo, fun);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 删除影像
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="opt"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
[HttpPost, Route("Inspection/QCOperation/deleteStudyList")]
|
||||||
|
[UnitOfWork]
|
||||||
|
public async Task<IResponseOutput> deleteStudyList(DataInspectionDto<DeleteStudyList> opt)
|
||||||
|
{
|
||||||
|
var fun = await _qCOperationService.DeleteStudyList(opt.OptCommand.ids, opt.OptCommand.subjectVisitId, opt.OptCommand.trialId);
|
||||||
|
if (!fun.IsSuccess)
|
||||||
|
{
|
||||||
|
return ResponseOutput.NotOk(fun.ErrorMessage);
|
||||||
|
}
|
||||||
|
return await _inspectionService.Enforcement(opt.OptCommand, opt.AuditInfo, opt.SignInfo,null, fun);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
#region 访视计划
|
#region 访视计划
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 新增或添加访视计划
|
/// 新增或添加访视计划
|
||||||
|
|
|
@ -183,6 +183,15 @@ namespace IRaCIS.Core.Application.Service.Inspection.DTO
|
||||||
public SignDTO SignInfo { get; set; } = new SignDTO() { };
|
public SignDTO SignInfo { get; set; } = new SignDTO() { };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#region Qc
|
||||||
|
public class DeleteStudyList
|
||||||
|
{
|
||||||
|
public Guid[] ids { get; set; }
|
||||||
|
public Guid subjectVisitId { get; set; }
|
||||||
|
public Guid trialId { get; set; }
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
#region 受试者
|
#region 受试者
|
||||||
public class InsSubjectCommand : InspectionBase, IInspectionDTO, ISignDTO
|
public class InsSubjectCommand : InspectionBase, IInspectionDTO, ISignDTO
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue