Compare commits

..

No commits in common. "eb0f13c075be57c0c3fa74f2ba3eb957351035e3" and "e313f88bca066a891ad9a8bead4f9dc8044ddb02" have entirely different histories.

2 changed files with 12 additions and 56 deletions

View File

@ -2568,24 +2568,6 @@ namespace IRaCIS.Core.Infra.EFCore.Common
} }
foreach (var item in entitys.Where(x => x.Entity.GetType() == typeof(SubjectCanceDoctor)))
{
var type = GetEntityAuditOpt(item);
var entity = item.Entity as SubjectCanceDoctor;
await InsertInspection<SubjectCanceDoctor>(entity, type, x => new InspectionConvertDTO()
{
ObjectRelationParentId = entity.SubjectId,
ObjectRelationParentId3 = entity.TrialReadingCriterionId,
}, new { });
}
//申请重阅记录表 //申请重阅记录表
foreach (var item in entitys.Where(x => x.Entity.GetType() == typeof(VisitTaskReReading))) foreach (var item in entitys.Where(x => x.Entity.GetType() == typeof(VisitTaskReReading)))
@ -2596,7 +2578,7 @@ namespace IRaCIS.Core.Infra.EFCore.Common
var extraIdentification = string.Empty; var extraIdentification = string.Empty;
var reason = entity.RequestReReadingReason;
switch (_userInfo.RequestUrl) switch (_userInfo.RequestUrl)
{ {
case "VisitTask/applyReReading": case "VisitTask/applyReReading":
@ -2614,7 +2596,6 @@ namespace IRaCIS.Core.Infra.EFCore.Common
{ {
extraIdentification = "/" + 2; extraIdentification = "/" + 2;
} }
reason = entity.RequestReReadingRejectReason;
if (entity.RequestReReadingResultEnum == RequestReReadingResult.Agree) if (entity.RequestReReadingResultEnum == RequestReReadingResult.Agree)
{ {
@ -2633,7 +2614,7 @@ namespace IRaCIS.Core.Infra.EFCore.Common
{ {
VisitTaskId = entity.OriginalReReadingTaskId, VisitTaskId = entity.OriginalReReadingTaskId,
Reason = reason, Reason = entity.RequestReReadingReason,
ObjectRelationParentId = entity.OriginalReReadingTaskId, ObjectRelationParentId = entity.OriginalReReadingTaskId,
@ -3144,11 +3125,8 @@ namespace IRaCIS.Core.Infra.EFCore.Common
var entity = item.Entity as VisitTask; var entity = item.Entity as VisitTask;
var userRealName = await _dbContext.User.Where(x => x.Id == entity.DoctorUserId).Select(x => x.FullName).FirstOrDefaultAsync(); var userRealName = await _dbContext.User.Where(x => x.Id == entity.DoctorUserId).Select(x => x.FullName).FirstOrDefaultAsync();
VisitTaskAuditingDto obj = new VisitTaskAuditingDto() object obj = new { UserRealName= userRealName };
{
UserRealName = userRealName,
};
#region 标识区分 #region 标识区分
if (type == AuditOpt.Add) if (type == AuditOpt.Add)
@ -3214,8 +3192,7 @@ namespace IRaCIS.Core.Infra.EFCore.Common
{ {
//跳转阅片结果需要该参数 //跳转阅片结果需要该参数
var subjectCode = _dbContext.Subject.Where(t => t.Id == entity.SubjectId).Select(t => t.Code).First(); var subjectCode = _dbContext.Subject.Where(t => t.Id == entity.SubjectId).Select(t => t.Code).First();
obj = new { SubjectCode = subjectCode };
obj.SubjectCode=subjectCode;
} }
#region 裁判、肿瘤学、全局 都是通用的 #region 裁判、肿瘤学、全局 都是通用的
@ -3231,9 +3208,8 @@ namespace IRaCIS.Core.Infra.EFCore.Common
var r1 = list.Where(t => t.ArmEnum == Arm.DoubleReadingArm1).FirstOrDefault(); var r1 = list.Where(t => t.ArmEnum == Arm.DoubleReadingArm1).FirstOrDefault();
var r2 = list.Where(t => t.ArmEnum == Arm.DoubleReadingArm2).FirstOrDefault(); var r2 = list.Where(t => t.ArmEnum == Arm.DoubleReadingArm2).FirstOrDefault();
obj.R1 = r1.FullName;
obj.R2 = r2.FullName; obj = new { R1 = r1.FullName, R2 = r2.FullName, SelectResult = r1.Id == entity.JudgeResultTaskId ? "R1" : "R2" };
obj.SelectResult = r1.Id == entity.JudgeResultTaskId ? "R1" : "R2";
} }
@ -3316,13 +3292,6 @@ namespace IRaCIS.Core.Infra.EFCore.Common
#endregion #endregion
if (entity.SouceReadModuleId != null)
{
var subjectVisitId = await _dbContext.ReadModule.Where(x => x.Id == entity.SouceReadModuleId).Select(x => x.SubjectVisitId).FirstOrDefaultAsync();
obj.CutOffVisitName = await _dbContext.SubjectVisit.Where(x => x.Id == subjectVisitId).Select(x => x.BlindName).FirstOrDefaultAsync();
}
await InsertInspection<VisitTask>(entity, type, x => new InspectionConvertDTO() await InsertInspection<VisitTask>(entity, type, x => new InspectionConvertDTO()
{ {

View File

@ -120,20 +120,7 @@ namespace IRaCIS.Core.Infra.EFCore.Common.Dto
public object CommonData { get; set; } public object CommonData { get; set; }
} }
public class VisitTaskAuditingDto
{
public string UserRealName { get; set; }
public string SubjectCode { get; set; }
public string R1 { get; set; }
public string R2 { get; set; }
public string CutOffVisitName { get; set; }
public string SelectResult { get; set; }
}
public class InspectionConvertDTO : DataInspection public class InspectionConvertDTO : DataInspection
{ {
/// <summary> /// <summary>