修改稽查
parent
684dbbd8e1
commit
65b52a1836
|
@ -2526,6 +2526,37 @@ namespace IRaCIS.Core.Infra.EFCore.Common
|
|||
#endregion
|
||||
|
||||
|
||||
#region PI 审核
|
||||
|
||||
foreach (var item in entitys.Where(x => x.Entity.GetType() == typeof(PIAudit)))
|
||||
{
|
||||
var type = GetEntityAuditOpt(item);
|
||||
|
||||
var entity = item.Entity as PIAudit;
|
||||
|
||||
await InsertInspection<PIAudit>(item.Entity as PIAudit, type, x => new InspectionConvertDTO()
|
||||
{
|
||||
ObjectRelationParentId = entity.VisitTaskId,
|
||||
IsDistinctionInterface=true
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
foreach (var item in entitys.Where(x => x.Entity.GetType() == typeof(SubjectVisitClinicalDialog)))
|
||||
{
|
||||
var type = GetEntityAuditOpt(item);
|
||||
|
||||
var entity = item.Entity as SubjectVisitClinicalDialog;
|
||||
|
||||
await InsertInspection<SubjectVisitClinicalDialog>(item.Entity as SubjectVisitClinicalDialog, type, x => new InspectionConvertDTO()
|
||||
{
|
||||
ObjectRelationParentId = entity.SubjectVisitId,
|
||||
IsDistinctionInterface = false
|
||||
});
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
//任务
|
||||
foreach (var item in entitys.Where(x => x.Entity.GetType() == typeof(VisitTask)))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue