稽查修改
parent
afbc43b83f
commit
3a62189503
|
@ -62,6 +62,7 @@ namespace IRaCIS.Core.Infra.EFCore.Common
|
||||||
return new List<Type>()
|
return new List<Type>()
|
||||||
{
|
{
|
||||||
typeof(TrialUserRole),
|
typeof(TrialUserRole),
|
||||||
|
typeof(TrialIdentityUser),
|
||||||
typeof(TrialSiteSurvey),
|
typeof(TrialSiteSurvey),
|
||||||
typeof(TrialSiteUserRole),
|
typeof(TrialSiteUserRole),
|
||||||
typeof(VisitStage),
|
typeof(VisitStage),
|
||||||
|
@ -1728,6 +1729,54 @@ namespace IRaCIS.Core.Infra.EFCore.Common
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
foreach (var item in entitys.Where(x => x.Entity.GetType() == typeof(UserRole)))
|
||||||
|
{
|
||||||
|
var type = GetEntityAuditOpt(item);
|
||||||
|
|
||||||
|
var entity = item.Entity as UserRole;
|
||||||
|
//var user = await _dbContext.Users.Include(x => x.UserTypeRole).FirstOrDefaultAsync(x => x.Id == entity.UserId);
|
||||||
|
await InsertInspection<UserRole>(entity, type, x => new InspectionConvertDTO
|
||||||
|
{
|
||||||
|
IsDistinctionInterface = type == AuditOpt.Update ? true : false,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// 项目参与人员
|
||||||
|
foreach (var item in entitys.Where(x => x.Entity.GetType() == typeof(TrialIdentityUser)))
|
||||||
|
{
|
||||||
|
var type = GetEntityAuditOpt(item);
|
||||||
|
var entity = item.Entity as TrialIdentityUser;
|
||||||
|
string extraIndentification = string.Empty;
|
||||||
|
|
||||||
|
var identityUser = await _dbContext.IdentityUser.AsNoTracking().Where(x => x.Id == entity.IdentityUserId).FirstOrDefaultAsync();
|
||||||
|
|
||||||
|
//if (type == AuditOpt.Update)
|
||||||
|
//{
|
||||||
|
// extraIndentification = "/" + entity.IsDeleted.ToString();
|
||||||
|
//}
|
||||||
|
|
||||||
|
|
||||||
|
//var user = await _dbContext.Users.Include(x => x.UserTypeRole).FirstOrDefaultAsync(x => x.Id == entity.UserId);
|
||||||
|
await InsertInspection<TrialIdentityUser>(entity, type, x => new InspectionConvertDTO
|
||||||
|
{
|
||||||
|
//IsDistinctionInterface = true ,
|
||||||
|
TrialId = x.TrialId,
|
||||||
|
ObjectRelationParentId = x.TrialId,
|
||||||
|
ExtraIndentification = extraIndentification,
|
||||||
|
//ObjectRelationParentId2 = x.IdentityUserId,
|
||||||
|
},new {
|
||||||
|
|
||||||
|
identityUser.FullName,
|
||||||
|
identityUser.EMail,
|
||||||
|
identityUser.Code,
|
||||||
|
identityUser.UserCode,
|
||||||
|
identityUser.UserName,
|
||||||
|
identityUser.DepartmentName,
|
||||||
|
identityUser.Phone,
|
||||||
|
identityUser.OrganizationName,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
// 项目人员
|
// 项目人员
|
||||||
foreach (var item in entitys.Where(x => x.Entity.GetType() == typeof(TrialUserRole)))
|
foreach (var item in entitys.Where(x => x.Entity.GetType() == typeof(TrialUserRole)))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue