修改一版
parent
18da53338d
commit
ebe9b1216f
|
@ -111,8 +111,9 @@ namespace IRaCIS.Core.API.Controllers
|
||||||
{
|
{
|
||||||
|
|
||||||
opt.Data.IsTrialBasicLogicConfirmed = true;
|
opt.Data.IsTrialBasicLogicConfirmed = true;
|
||||||
|
var singid= await _inspectionService.RecordSing(opt.SignInfo);
|
||||||
var result = await _trialConfigService.ConfigTrialBasicInfo(opt.Data);
|
var result = await _trialConfigService.ConfigTrialBasicInfo(opt.Data);
|
||||||
await _inspectionService.RecordSing(opt.SignInfo, result);
|
await _inspectionService.CompletedSign(singid, result);
|
||||||
return result;
|
return result;
|
||||||
|
|
||||||
|
|
||||||
|
@ -127,8 +128,9 @@ namespace IRaCIS.Core.API.Controllers
|
||||||
[UnitOfWork]
|
[UnitOfWork]
|
||||||
public async Task<IResponseOutput> TrialConfigSignatureConfirm(DataInspectionDto<SignConfirmDTO> opt)
|
public async Task<IResponseOutput> TrialConfigSignatureConfirm(DataInspectionDto<SignConfirmDTO> opt)
|
||||||
{
|
{
|
||||||
|
var singid = await _inspectionService.RecordSing(opt.SignInfo);
|
||||||
var result = await _trialConfigService.TrialConfigSignatureConfirm(opt.Data);
|
var result = await _trialConfigService.TrialConfigSignatureConfirm(opt.Data);
|
||||||
await _inspectionService.RecordSing(opt.SignInfo, result);
|
await _inspectionService.CompletedSign(singid, result);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -146,8 +148,10 @@ namespace IRaCIS.Core.API.Controllers
|
||||||
public async Task<IResponseOutput> ConfigTrialProcessInfoConfirm(DataInspectionDto<TrialProcessConfig> opt)
|
public async Task<IResponseOutput> ConfigTrialProcessInfoConfirm(DataInspectionDto<TrialProcessConfig> opt)
|
||||||
{
|
{
|
||||||
opt.Data.IsTrialProcessConfirmed = true;
|
opt.Data.IsTrialProcessConfirmed = true;
|
||||||
|
|
||||||
|
var singid = await _inspectionService.RecordSing(opt.SignInfo);
|
||||||
var result = await _trialConfigService.ConfigTrialProcessInfo(opt.Data);
|
var result = await _trialConfigService.ConfigTrialProcessInfo(opt.Data);
|
||||||
await _inspectionService.RecordSing(opt.SignInfo,result);
|
await _inspectionService.CompletedSign(singid, result);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -165,8 +169,9 @@ namespace IRaCIS.Core.API.Controllers
|
||||||
public async Task<IResponseOutput> ConfigTrialUrgentInfoConfirm(DataInspectionDto<TrialUrgentConfig> opt)
|
public async Task<IResponseOutput> ConfigTrialUrgentInfoConfirm(DataInspectionDto<TrialUrgentConfig> opt)
|
||||||
{
|
{
|
||||||
opt.Data.IsTrialUrgentConfirmed = true;
|
opt.Data.IsTrialUrgentConfirmed = true;
|
||||||
|
var singid = await _inspectionService.RecordSing(opt.SignInfo);
|
||||||
var result= await _trialConfigService.ConfigTrialUrgentInfo(opt.Data);
|
var result= await _trialConfigService.ConfigTrialUrgentInfo(opt.Data);
|
||||||
await _inspectionService.RecordSing(opt.SignInfo, result);
|
await _inspectionService.CompletedSign(singid, result);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -180,8 +185,9 @@ namespace IRaCIS.Core.API.Controllers
|
||||||
[UnitOfWork]
|
[UnitOfWork]
|
||||||
public async Task<IResponseOutput> CRCRequestToQC(DataInspectionDto<CRCRequestToQCCommand> opt)
|
public async Task<IResponseOutput> CRCRequestToQC(DataInspectionDto<CRCRequestToQCCommand> opt)
|
||||||
{
|
{
|
||||||
|
var singid = await _inspectionService.RecordSing(opt.SignInfo);
|
||||||
var result = await _qCOperationService.CRCRequestToQC(opt.Data);
|
var result = await _qCOperationService.CRCRequestToQC(opt.Data);
|
||||||
await _inspectionService.RecordSing(opt.SignInfo, result);
|
await _inspectionService.CompletedSign(singid, result);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -193,8 +199,9 @@ namespace IRaCIS.Core.API.Controllers
|
||||||
[UnitOfWork]
|
[UnitOfWork]
|
||||||
public async Task<IResponseOutput> QCPassedOrFailed(DataInspectionDto<QCPassedOrFailedDto> opt)
|
public async Task<IResponseOutput> QCPassedOrFailed(DataInspectionDto<QCPassedOrFailedDto> opt)
|
||||||
{
|
{
|
||||||
|
var singid = await _inspectionService.RecordSing(opt.SignInfo);
|
||||||
var result= await _qCOperationService.QCPassedOrFailed(opt.Data.trialId, opt.Data.subjectVisitId, opt.Data.auditState);
|
var result= await _qCOperationService.QCPassedOrFailed(opt.Data.trialId, opt.Data.subjectVisitId, opt.Data.auditState);
|
||||||
await _inspectionService.RecordSing(opt.SignInfo, result);
|
await _inspectionService.CompletedSign(singid, result);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -205,8 +212,9 @@ namespace IRaCIS.Core.API.Controllers
|
||||||
[UnitOfWork]
|
[UnitOfWork]
|
||||||
public async Task<IResponseOutput> CheckBack(DataInspectionDto<IDDto> opt)
|
public async Task<IResponseOutput> CheckBack(DataInspectionDto<IDDto> opt)
|
||||||
{
|
{
|
||||||
|
var singid = await _inspectionService.RecordSing(opt.SignInfo);
|
||||||
var result = await _qCOperationService.CheckBack(opt.Data.Id);
|
var result = await _qCOperationService.CheckBack(opt.Data.Id);
|
||||||
await _inspectionService.RecordSing(opt.SignInfo, result);
|
await _inspectionService.CompletedSign(singid, result);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -221,8 +229,9 @@ namespace IRaCIS.Core.API.Controllers
|
||||||
[UnitOfWork]
|
[UnitOfWork]
|
||||||
public async Task<IResponseOutput> SetReuploadFinished(DataInspectionDto<CRCReuploadFinishedCommand> opt)
|
public async Task<IResponseOutput> SetReuploadFinished(DataInspectionDto<CRCReuploadFinishedCommand> opt)
|
||||||
{
|
{
|
||||||
|
var singid = await _inspectionService.RecordSing(opt.SignInfo);
|
||||||
var result = await _qCOperationService.SetReuploadFinished(opt.Data);
|
var result = await _qCOperationService.SetReuploadFinished(opt.Data);
|
||||||
await _inspectionService.RecordSing(opt.SignInfo, result);
|
await _inspectionService.CompletedSign(singid, result);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -235,8 +244,9 @@ namespace IRaCIS.Core.API.Controllers
|
||||||
[UnitOfWork]
|
[UnitOfWork]
|
||||||
public async Task<IResponseOutput> UpdateTrialState(DataInspectionDto<UpdateTrialStateDto> opt)
|
public async Task<IResponseOutput> UpdateTrialState(DataInspectionDto<UpdateTrialStateDto> opt)
|
||||||
{
|
{
|
||||||
|
var singid = await _inspectionService.RecordSing(opt.SignInfo);
|
||||||
var result = await _trialConfigService.UpdateTrialState(opt.Data.trialId, opt.Data.trialStatusStr, opt.Data.reason);
|
var result = await _trialConfigService.UpdateTrialState(opt.Data.trialId, opt.Data.trialStatusStr, opt.Data.reason);
|
||||||
await _inspectionService.RecordSing(opt.SignInfo, result);
|
await _inspectionService.CompletedSign(singid, result);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -249,8 +259,9 @@ namespace IRaCIS.Core.API.Controllers
|
||||||
[UnitOfWork]
|
[UnitOfWork]
|
||||||
public async Task<IResponseOutput> UserConfirm(DataInspectionDto<UserConfirmCommand> opt)
|
public async Task<IResponseOutput> UserConfirm(DataInspectionDto<UserConfirmCommand> opt)
|
||||||
{
|
{
|
||||||
|
var singid = await _inspectionService.RecordSing(opt.SignInfo);
|
||||||
var result = await _trialDocumentService.UserConfirm(opt.Data);
|
var result = await _trialDocumentService.UserConfirm(opt.Data);
|
||||||
await _inspectionService.RecordSing(opt.SignInfo, result);
|
await _inspectionService.CompletedSign(singid, result);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -331,7 +331,7 @@
|
||||||
批次Id
|
批次Id
|
||||||
</summary>
|
</summary>
|
||||||
</member>
|
</member>
|
||||||
<member name="M:IRaCIS.Core.Application.Service.Inspection.InspectionService.RecordSing(IRaCIS.Core.Application.Contracts.SignDTO,IRaCIS.Core.Infrastructure.Extention.IResponseOutput)">
|
<member name="M:IRaCIS.Core.Application.Service.Inspection.InspectionService.RecordSing(IRaCIS.Core.Application.Contracts.SignDTO)">
|
||||||
<summary>
|
<summary>
|
||||||
传入参数记录ID
|
传入参数记录ID
|
||||||
</summary>
|
</summary>
|
||||||
|
@ -339,6 +339,14 @@
|
||||||
<param name="response"></param>
|
<param name="response"></param>
|
||||||
<returns></returns>
|
<returns></returns>
|
||||||
</member>
|
</member>
|
||||||
|
<member name="M:IRaCIS.Core.Application.Service.Inspection.InspectionService.CompletedSign(System.Guid,IRaCIS.Core.Infrastructure.Extention.IResponseOutput)">
|
||||||
|
<summary>
|
||||||
|
完成签名
|
||||||
|
</summary>
|
||||||
|
<param name="signId"></param>
|
||||||
|
<param name="response"></param>
|
||||||
|
<returns></returns>
|
||||||
|
</member>
|
||||||
<member name="M:IRaCIS.Core.Application.Service.Inspection.InspectionService.VerifySignatureAsync(IRaCIS.Core.Application.Contracts.SignDTO)">
|
<member name="M:IRaCIS.Core.Application.Service.Inspection.InspectionService.VerifySignatureAsync(IRaCIS.Core.Application.Contracts.SignDTO)">
|
||||||
<summary> 验证用户签名信息 </summary> ///
|
<summary> 验证用户签名信息 </summary> ///
|
||||||
</member>
|
</member>
|
||||||
|
|
|
@ -167,18 +167,36 @@ namespace IRaCIS.Core.Application.Service.Inspection
|
||||||
/// <param name="SignInfo"></param>
|
/// <param name="SignInfo"></param>
|
||||||
/// <param name="response"></param>
|
/// <param name="response"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public async Task RecordSing(SignDTO SignInfo, IResponseOutput response)
|
public async Task<Guid> RecordSing(SignDTO SignInfo)
|
||||||
{
|
{
|
||||||
if (SignInfo != null&&response.IsSuccess)
|
if (SignInfo != null)
|
||||||
{
|
{
|
||||||
var verifyResult = await VerifySignatureAsync(SignInfo);
|
var verifyResult = await VerifySignatureAsync(SignInfo);
|
||||||
var signId = await AddSignRecordAsync(SignInfo);
|
var signId = await AddSignRecordAsync(SignInfo);
|
||||||
_userInfo.SignId = signId;
|
_userInfo.SignId = signId;
|
||||||
await _repository.BatchUpdateAsync<TrialSign>(t => t.Id == signId, u => new TrialSign() { IsCompleted = true });
|
return signId;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return default(Guid);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 完成签名
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="signId"></param>
|
||||||
|
/// <param name="response"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
public async Task CompletedSign(Guid signId, IResponseOutput response)
|
||||||
|
{
|
||||||
|
if (response.IsSuccess)
|
||||||
|
{
|
||||||
|
await _repository.BatchUpdateAsync<TrialSign>(t => t.Id == signId, u => new TrialSign() { IsCompleted = true });
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary> 验证用户签名信息 </summary> ///
|
/// <summary> 验证用户签名信息 </summary> ///
|
||||||
|
|
|
@ -17,7 +17,10 @@ namespace IRaCIS.Core.Application.Service.Inspection.Interface
|
||||||
|
|
||||||
Task<Guid> AddSignRecordAsync(SignDTO signDTO);
|
Task<Guid> AddSignRecordAsync(SignDTO signDTO);
|
||||||
|
|
||||||
Task RecordSing(SignDTO SignInfo, IResponseOutput response);
|
Task<Guid> RecordSing(SignDTO SignInfo);
|
||||||
|
|
||||||
|
|
||||||
|
Task CompletedSign(Guid signId, IResponseOutput response);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -4,4 +4,4 @@ update DataInspection set BatchId=Id where BatchId is null
|
||||||
|
|
||||||
update QCChallenge set Code=ChallengeCode
|
update QCChallenge set Code=ChallengeCode
|
||||||
|
|
||||||
update QCChallenge set ChallengeCode='D'+ RIGHT('00000'+CAST( Code AS nvarchar(50)),5);
|
update QCChallenge set ChallengeCode='Q'+ RIGHT('00000'+CAST( Code AS nvarchar(50)),5);
|
|
@ -164,7 +164,7 @@ namespace IRaCIS.Core.Infra.EFCore.Common
|
||||||
}, new
|
}, new
|
||||||
{
|
{
|
||||||
TrialDicList = string.Join(",", trials)
|
TrialDicList = string.Join(",", trials)
|
||||||
});
|
}, item.OriginalValues);
|
||||||
}
|
}
|
||||||
|
|
||||||
// 访视计划
|
// 访视计划
|
||||||
|
@ -899,7 +899,9 @@ namespace IRaCIS.Core.Infra.EFCore.Common
|
||||||
type = type + (entity.ParentId == null ? "/parent" : string.Empty);
|
type = type + (entity.ParentId == null ? "/parent" : string.Empty);
|
||||||
break;
|
break;
|
||||||
case nameof(Trial):
|
case nameof(Trial):
|
||||||
var oldentity = originaldata as Trial;
|
entity = entityobj as Trial;
|
||||||
|
Guid id = entity.Id;
|
||||||
|
Trial oldentity =await _dbContext.Trial.Where(x=>x.Id==id).FirstOrDefaultAsync();
|
||||||
switch (_userInfo.RequestUrl.ToLower())
|
switch (_userInfo.RequestUrl.ToLower())
|
||||||
{
|
{
|
||||||
case "configtrialbasicinfo/configtrialbasicinfoconfirm":
|
case "configtrialbasicinfo/configtrialbasicinfoconfirm":
|
||||||
|
|
Loading…
Reference in New Issue