修改一版
This commit is contained in:
@@ -8,6 +8,9 @@ using IRaCIS.Core.Infrastructure.Extention;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using System.Threading.Tasks;
|
||||
using IRaCIS.Application.Services;
|
||||
using IRaCIS.Core.Application.Service.Inspection.DTO;
|
||||
using IRaCIS.Core.Infra.EFCore;
|
||||
using IRaCIS.Core.Application.Service.Inspection.Interface;
|
||||
|
||||
namespace IRaCIS.Core.API.Controllers.Special
|
||||
{
|
||||
@@ -18,19 +21,36 @@ namespace IRaCIS.Core.API.Controllers.Special
|
||||
{
|
||||
private readonly ITrialService _trialService;
|
||||
private readonly ICalculateService _calculateService;
|
||||
private readonly IInspectionService _inspectionService;
|
||||
|
||||
public FinancialChangeController(ITrialService trialService, ICalculateService calculateService)
|
||||
public FinancialChangeController(ITrialService trialService, ICalculateService calculateService,
|
||||
IInspectionService inspectionService
|
||||
)
|
||||
{
|
||||
_trialService = trialService;
|
||||
_calculateService = calculateService;
|
||||
this._inspectionService = inspectionService;
|
||||
}
|
||||
|
||||
|
||||
//[TrialAudit(AuditType.TrialAudit, AuditOptType.AddOrUpdateTrial)]
|
||||
|
||||
/// <summary> 添加实验项目-返回新增Id[AUTH]</summary>
|
||||
/// <param name="param"></param>
|
||||
/// <returns>新记录Id</returns>
|
||||
|
||||
//[TrialAudit(AuditType.TrialAudit, AuditOptType.AddOrUpdateTrial)]
|
||||
[HttpPost, Route("Inspection/trial/addOrUpdateTrial")]
|
||||
[UnitOfWork]
|
||||
|
||||
public async Task<IResponseOutput> AddOrUpdateTrialInspection(DataInspectionDto<TrialCommand> opt)
|
||||
{
|
||||
var fun = AddOrUpdateTrial;
|
||||
return await _inspectionService.Enforcement(opt.OptCommand, opt.AuditInfo, opt.SignInfo, fun);
|
||||
}
|
||||
|
||||
|
||||
/// <summary> 添加实验项目-返回新增Id[AUTH]</summary>
|
||||
/// <param name="param"></param>
|
||||
/// <returns>新记录Id</returns>
|
||||
[HttpPost, Route("trial/addOrUpdateTrial")]
|
||||
|
||||
public async Task<IResponseOutput> AddOrUpdateTrial(TrialCommand param)
|
||||
|
||||
@@ -95,7 +95,6 @@ namespace IRaCIS.Core.API.Controllers
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
#region 影像质疑
|
||||
/// <summary>
|
||||
|
||||
@@ -238,10 +238,7 @@ namespace IRaCIS.Api.Controllers
|
||||
TrialId = savedInfo.TrialId,
|
||||
SubjectVisitId = savedInfo.SubjectVisitId,
|
||||
Identification = "Edit|Visit|Status|Visit-Image Upload|Add Image",
|
||||
JsonDetail = JsonConvert.SerializeObject(new
|
||||
{
|
||||
SubmitState = await _dictionaryService.GetBasicDataTranslateItem("SubmitState", savedInfo.SubmitState),
|
||||
})
|
||||
JsonDetail = JsonConvert.SerializeObject(savedInfo)
|
||||
});
|
||||
|
||||
await _inspectionService.AddListInspectionRecordAsync(datas);
|
||||
|
||||
Reference in New Issue
Block a user