设置删除序列
parent
76fe03a741
commit
f18cd3ebb3
|
@ -50,8 +50,8 @@ namespace IRaCIS.Core.Infra.EFCore.Common
|
||||||
public async Task IncomingEntitys(List<EntityEntry> entitys)
|
public async Task IncomingEntitys(List<EntityEntry> entitys)
|
||||||
{
|
{
|
||||||
// 修改
|
// 修改
|
||||||
await InsertAddEntitys(entitys.Where(x => x.State == EntityState.Modified && ((!typeof(ISoftDelete).IsAssignableFrom(x.Entity.GetType())
|
await InsertAddEntitys(entitys.Where(x => x.State == EntityState.Modified && (!typeof(ISoftDelete).IsAssignableFrom(x.Entity.GetType())
|
||||||
|| !(bool)x.Entity.GetType().GetProperty("IsDeleted").GetValue(x.Entity))||x.Entity.GetType()== typeof(DicomSeries))
|
|| !(bool)x.Entity.GetType().GetProperty("IsDeleted").GetValue(x.Entity))
|
||||||
).ToList(), "Update");
|
).ToList(), "Update");
|
||||||
|
|
||||||
// 新增
|
// 新增
|
||||||
|
@ -59,7 +59,7 @@ namespace IRaCIS.Core.Infra.EFCore.Common
|
||||||
|
|
||||||
// 删除
|
// 删除
|
||||||
await InsertAddEntitys(entitys.Where(x => x.State == EntityState.Deleted
|
await InsertAddEntitys(entitys.Where(x => x.State == EntityState.Deleted
|
||||||
||((typeof(ISoftDelete).IsAssignableFrom(x.Entity.GetType())&& x.Entity.GetType() != typeof(DicomSeries) && (bool)x.Entity.GetType().GetProperty("IsDeleted").GetValue(x.Entity)))
|
|| ((typeof(ISoftDelete).IsAssignableFrom(x.Entity.GetType()) && (bool)x.Entity.GetType().GetProperty("IsDeleted").GetValue(x.Entity)))
|
||||||
).ToList(), "Deleted");
|
).ToList(), "Deleted");
|
||||||
|
|
||||||
|
|
||||||
|
@ -137,8 +137,6 @@ namespace IRaCIS.Core.Infra.EFCore.Common
|
||||||
await InsertInspection<DicomStudy>(item, type, x => new DataInspection()
|
await InsertInspection<DicomStudy>(item, type, x => new DataInspection()
|
||||||
{
|
{
|
||||||
GeneralId = x.Id,
|
GeneralId = x.Id,
|
||||||
|
|
||||||
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -761,7 +761,7 @@ namespace IRaCIS.Core.Infra.EFCore
|
||||||
{
|
{
|
||||||
|
|
||||||
Key = "AuditState",
|
Key = "AuditState",
|
||||||
Code = trialtype == TrialQCProcess.SingleAudit ? "AuditStateRC" : "AuditStatePE",
|
Code = trialtype == TrialQCProcess.SingleAudit ? "AuditStatePE" : "AuditStateRC",
|
||||||
Type = "Code",
|
Type = "Code",
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue