用户签署文档稽查修改

Uat_Study
hang 2022-08-30 14:43:45 +08:00
parent 6cc56bc657
commit ecb7de083a
1 changed files with 10 additions and 12 deletions

View File

@ -144,8 +144,11 @@ namespace IRaCIS.Core.Infra.EFCore.Common
FileTypeId = systemDocument.FileTypeId,
Name = systemDocument.Name,
CreateTime = systemDocument.CreateTime,
IsSigned = "是",// 是否签署 添加了就是签署了
UploadTime = systemDocument.CreateTime,
CreateUserName = _userInfo.UserName,
UserType = _userInfo.UserTypeShortName,
IsSigned = true,// 是否签署 添加了就是签署了
});
}
@ -154,25 +157,20 @@ namespace IRaCIS.Core.Infra.EFCore.Common
{
var entity = item.Entity as TrialDocUserTypeConfirmedUser;
var trialId = await _dbContext.TrialDocument.Where(x => x.Id == entity.TrialDocumentId).Select(t => t.TrialId).FirstOrDefaultAsync();
//var trialDocument = await _dbContext.TrialDocument.Where(x => x.Id == entity.TrialDocumentId).FirstOrDefaultAsync();
//var trialid = trialDocument.TrialId;
var trialDoc = await _dbContext.TrialDocument.Where(x => x.Id == entity.TrialDocumentId).FirstOrDefaultAsync();
await InsertInspection<TrialDocUserTypeConfirmedUser>(entity as TrialDocUserTypeConfirmedUser, type, x => new InspectionConvertDTO()
{
TrialId = trialId,
TrialId = trialDoc.TrialId,
ObjectRelationParentId = x.TrialDocumentId
}, new
{
//FileTypeId = trialDocument.FileTypeId,
//Name = trialDocument.Name,
//CreateTime = trialDocument.CreateTime,
//IsSigned = "是",// 是否签署 添加了就是签署了
UploadTime = trialDoc.CreateTime,
CreateUserName=_userInfo.UserName,
CreateUserName = _userInfo.UserName,
UserType=_userInfo.UserTypeShortName,
IsSigned =true
});