Uat_Study
parent
ca44f1ea82
commit
b2984125c5
|
@ -78,15 +78,14 @@ namespace IRaCIS.Core.Application.Service.Inspection
|
||||||
from lefttrialSign in trialSigntemp.DefaultIfEmpty()
|
from lefttrialSign in trialSigntemp.DefaultIfEmpty()
|
||||||
|
|
||||||
|
|
||||||
join frontAuditConfig in _repository.GetQueryable<FrontAuditConfig>().Where(x=>x.ConfigType=="M"&&x.Identification!=null) on new
|
join leftfrontAuditConfig in _repository.GetQueryable<FrontAuditConfig>().Where(x=>x.ConfigType=="M"&&x.Identification!=null) on new
|
||||||
{
|
{
|
||||||
data.Identification
|
data.Identification
|
||||||
} equals new
|
} equals new
|
||||||
{
|
{
|
||||||
frontAuditConfig.Identification,
|
leftfrontAuditConfig.Identification,
|
||||||
|
|
||||||
} into frontAuditConfigtemp
|
}
|
||||||
from leftfrontAuditConfig in frontAuditConfigtemp.DefaultIfEmpty()
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -181,53 +180,56 @@ namespace IRaCIS.Core.Application.Service.Inspection
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public async Task<dynamic> Enforcement(dynamic OptCommand, DataInspectionAddDTO AuditInfo, SignDTO SignInfo, dynamic fun, IResponseOutput? response=null)
|
public async Task<dynamic> Enforcement(dynamic OptCommand, DataInspectionAddDTO AuditInfo, SignDTO SignInfo, dynamic fun, IResponseOutput? response=null)
|
||||||
{
|
{
|
||||||
if (response!=null&&response.IsSuccess == false)
|
|
||||||
{
|
|
||||||
return response;
|
|
||||||
}
|
|
||||||
Guid? signId = null;
|
|
||||||
MapData(OptCommand, AuditInfo);
|
|
||||||
if (AuditInfo.IsSign)
|
|
||||||
{
|
|
||||||
// 验证用户签名信息
|
|
||||||
var verifyResult = await VerifySignatureAsync(SignInfo);
|
|
||||||
signId = await AddSignRecordAsync(SignInfo);
|
|
||||||
if (verifyResult.IsSuccess == false)
|
|
||||||
{
|
|
||||||
return verifyResult;
|
|
||||||
}
|
|
||||||
//await AddSignRecordAsync(SignInfo);
|
|
||||||
}
|
|
||||||
|
|
||||||
IResponseOutput bResult;
|
return ResponseOutput.Ok();
|
||||||
|
|
||||||
if (response != null)
|
//if (response!=null&&response.IsSuccess == false)
|
||||||
{
|
//{
|
||||||
bResult = response;
|
// return response;
|
||||||
}
|
//}
|
||||||
else
|
//Guid? signId = null;
|
||||||
{
|
//MapData(OptCommand, AuditInfo);
|
||||||
bResult = await fun(OptCommand);
|
//if (AuditInfo.IsSign)
|
||||||
}
|
//{
|
||||||
|
// // 验证用户签名信息
|
||||||
|
// var verifyResult = await VerifySignatureAsync(SignInfo);
|
||||||
|
// signId = await AddSignRecordAsync(SignInfo);
|
||||||
|
// if (verifyResult.IsSuccess == false)
|
||||||
|
// {
|
||||||
|
// return verifyResult;
|
||||||
|
// }
|
||||||
|
// //await AddSignRecordAsync(SignInfo);
|
||||||
|
//}
|
||||||
|
|
||||||
// 用户 签名某个文档
|
//IResponseOutput bResult;
|
||||||
if (bResult.IsSuccess == false)
|
|
||||||
{
|
|
||||||
return bResult;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (AuditInfo.IsSign)
|
//if (response != null)
|
||||||
{
|
//{
|
||||||
var signSuccess = await _repository.BatchUpdateAsync<TrialSign>(t => t.Id == signId, u => new TrialSign() { IsCompleted = true });
|
// bResult = response;
|
||||||
}
|
//}
|
||||||
|
//else
|
||||||
|
//{
|
||||||
|
// bResult = await fun(OptCommand);
|
||||||
|
//}
|
||||||
|
|
||||||
// 判断是否需要前面
|
//// 用户 签名某个文档
|
||||||
if (AuditInfo.NeedSava)
|
//if (bResult.IsSuccess == false)
|
||||||
{
|
//{
|
||||||
await AddInspectionRecordAsync(AuditInfo, signId);
|
// return bResult;
|
||||||
}
|
//}
|
||||||
|
|
||||||
return bResult;
|
//if (AuditInfo.IsSign)
|
||||||
|
//{
|
||||||
|
// var signSuccess = await _repository.BatchUpdateAsync<TrialSign>(t => t.Id == signId, u => new TrialSign() { IsCompleted = true });
|
||||||
|
//}
|
||||||
|
|
||||||
|
//// 判断是否需要前面
|
||||||
|
//if (AuditInfo.NeedSava)
|
||||||
|
//{
|
||||||
|
// await AddInspectionRecordAsync(AuditInfo, signId);
|
||||||
|
//}
|
||||||
|
|
||||||
|
//return bResult;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue