Uat_Study
parent
fe62c051d7
commit
30f912a6a0
|
@ -109,7 +109,6 @@ namespace IRaCIS.Core.API.Controllers
|
||||||
|
|
||||||
public async Task<IResponseOutput> ConfigTrialBasicInfo(DataInspectionDto<BasicTrialConfig> opt)
|
public async Task<IResponseOutput> ConfigTrialBasicInfo(DataInspectionDto<BasicTrialConfig> opt)
|
||||||
{
|
{
|
||||||
|
|
||||||
var fun = _trialConfigService.ConfigTrialBasicInfo;
|
var fun = _trialConfigService.ConfigTrialBasicInfo;
|
||||||
return await _inspectionService.Enforcement(opt.OptCommand, opt.AuditInfo, opt.SignInfo, fun);
|
return await _inspectionService.Enforcement(opt.OptCommand, opt.AuditInfo, opt.SignInfo, fun);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
using IRaCIS.Application.Contracts;
|
using Castle.Core.Internal;
|
||||||
|
using IRaCIS.Application.Contracts;
|
||||||
using IRaCIS.Core.Application.Contracts;
|
using IRaCIS.Core.Application.Contracts;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
using System;
|
using System;
|
||||||
|
@ -141,15 +142,34 @@ namespace IRaCIS.Core.Application.Service.Inspection.DTO
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
public class DataInspectionDto<T> : InspectionBase, IInspectionDTO, ISignDTO
|
public class DataInspectionDto<T> : IInspectionDTO, ISignDTO
|
||||||
{
|
{
|
||||||
public DataInspectionDto()
|
|
||||||
{
|
|
||||||
this.AuditInfo.JsonDetail= JsonConvert.SerializeObject(this.OptCommand);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public T OptCommand { get; set; }
|
public T OptCommand { get; set; }
|
||||||
|
|
||||||
|
|
||||||
|
public DataInspectionAddDTO AuditInfo
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
if (auditInfo.JsonDetail.IsNullOrEmpty())
|
||||||
|
{
|
||||||
|
auditInfo.JsonDetail = JsonConvert.SerializeObject(OptCommand);
|
||||||
|
}
|
||||||
|
|
||||||
|
return auditInfo;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
auditInfo = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private DataInspectionAddDTO auditInfo=new DataInspectionAddDTO ();
|
||||||
|
|
||||||
|
public SignDTO SignInfo { get; set; } = new SignDTO() { };
|
||||||
}
|
}
|
||||||
|
|
||||||
#region 受试者
|
#region 受试者
|
||||||
|
|
Loading…
Reference in New Issue