删除FristAddTaskNum
parent
0d26daa3b0
commit
b2d681da09
|
@ -8687,11 +8687,6 @@
|
||||||
截图地址
|
截图地址
|
||||||
</summary>
|
</summary>
|
||||||
</member>
|
</member>
|
||||||
<member name="P:IRaCIS.Core.Application.Service.Reading.Dto.ReadingTableAnswerRowInfoBase.FristAddTaskNum">
|
|
||||||
<summary>
|
|
||||||
第一次添加的任务ID
|
|
||||||
</summary>
|
|
||||||
</member>
|
|
||||||
<member name="P:IRaCIS.Core.Application.Service.Reading.Dto.ReadingTableAnswerRowInfoBase.CreateUserId">
|
<member name="P:IRaCIS.Core.Application.Service.Reading.Dto.ReadingTableAnswerRowInfoBase.CreateUserId">
|
||||||
<summary>
|
<summary>
|
||||||
CreateUserId
|
CreateUserId
|
||||||
|
|
|
@ -855,12 +855,6 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string? PicturePath { get; set; }
|
public string? PicturePath { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 第一次添加的任务ID
|
|
||||||
/// </summary>
|
|
||||||
public decimal FristAddTaskNum { get; set; } = 0;
|
|
||||||
|
|
||||||
|
|
||||||
public SplitOrMergeType? SplitOrMergeType { get; set; }
|
public SplitOrMergeType? SplitOrMergeType { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -1033,6 +1027,8 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
|
||||||
|
|
||||||
public string MergeName { get; set; }
|
public string MergeName { get; set; }
|
||||||
|
|
||||||
|
public decimal FristAddTaskNum { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 病灶类型
|
/// 病灶类型
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -2350,8 +2346,6 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
|
||||||
|
|
||||||
public bool? IsCanEditPosition { get; set; }
|
public bool? IsCanEditPosition { get; set; }
|
||||||
|
|
||||||
public decimal FristAddTaskNum { get; set; } = 0;
|
|
||||||
|
|
||||||
public decimal? WW { get; set; }
|
public decimal? WW { get; set; }
|
||||||
|
|
||||||
public decimal? WL { get; set; }
|
public decimal? WL { get; set; }
|
||||||
|
|
|
@ -280,6 +280,7 @@ namespace IRaCIS.Core.Application.Service
|
||||||
.ForMember(d => d.ReadingQuestionSystemId, u => u.MapFrom(s => s.Id));
|
.ForMember(d => d.ReadingQuestionSystemId, u => u.MapFrom(s => s.Id));
|
||||||
|
|
||||||
CreateMap<ReadingTableAnswerRowInfo, TableAnsweRowInfo>()
|
CreateMap<ReadingTableAnswerRowInfo, TableAnsweRowInfo>()
|
||||||
|
.ForMember(d => d.FristAddTaskNum, u => u.MapFrom(s => s.FristAddTask.VisitTaskNum))
|
||||||
.ForMember(dest => dest.CreateUserRole, opt => opt.Ignore())
|
.ForMember(dest => dest.CreateUserRole, opt => opt.Ignore())
|
||||||
.ForMember(d => d.MergeName, u => u.MapFrom(s => s.MergeRow == null ? string.Empty : s.MergeRow.ReadingQuestionTrial.OrderMark + s.MergeRow.RowIndex.GetLesionMark()))
|
.ForMember(d => d.MergeName, u => u.MapFrom(s => s.MergeRow == null ? string.Empty : s.MergeRow.ReadingQuestionTrial.OrderMark + s.MergeRow.RowIndex.GetLesionMark()))
|
||||||
.ForMember(d => d.SplitName, u => u.MapFrom(s => s.SplitRow == null ? string.Empty : s.SplitRow.ReadingQuestionTrial.OrderMark + s.SplitRow.RowIndex.GetLesionMark()))
|
.ForMember(d => d.SplitName, u => u.MapFrom(s => s.SplitRow == null ? string.Empty : s.SplitRow.ReadingQuestionTrial.OrderMark + s.SplitRow.RowIndex.GetLesionMark()))
|
||||||
|
|
|
@ -179,7 +179,7 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
|
||||||
var baseLineVisitId = await _subjectVisitRepository.Where(x => x.SubjectId == visitTask.SubjectId && x.IsBaseLine).Select(x => x.Id).FirstOrDefaultAsync();
|
var baseLineVisitId = await _subjectVisitRepository.Where(x => x.SubjectId == visitTask.SubjectId && x.IsBaseLine).Select(x => x.Id).FirstOrDefaultAsync();
|
||||||
|
|
||||||
|
|
||||||
var rowInfoList = await _readingTableAnswerRowInfoRepository.Where(x => x.VisitTaskId == visitTaskId).ToListAsync();
|
var rowInfoList = await _readingTableAnswerRowInfoRepository.Where(x => x.VisitTaskId == visitTaskId).Include(x=>x.FristAddTask).ToListAsync();
|
||||||
|
|
||||||
var baseLinetaskId = await _visitTaskRepository.Where(x => x.SourceSubjectVisitId == baseLineVisitId && x.TaskState == TaskState.Effect
|
var baseLinetaskId = await _visitTaskRepository.Where(x => x.SourceSubjectVisitId == baseLineVisitId && x.TaskState == TaskState.Effect
|
||||||
&& x.TrialReadingCriterionId == visitTask.TrialReadingCriterionId
|
&& x.TrialReadingCriterionId == visitTask.TrialReadingCriterionId
|
||||||
|
@ -228,7 +228,7 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
|
||||||
RowIndex = x.RowIndex,
|
RowIndex = x.RowIndex,
|
||||||
MeasureData = x.MeasureData,
|
MeasureData = x.MeasureData,
|
||||||
OtherMeasureData = x.OtherMeasureData,
|
OtherMeasureData = x.OtherMeasureData,
|
||||||
FristAddTaskNum = x.FristAddTaskNum,
|
FristAddTaskNum = x.FristAddTask.VisitTaskNum,
|
||||||
TableQuestionList = tableQuestion.Where(y => y.QuestionId == item.QuestionId && y.RowId == x.Id).ToList(),
|
TableQuestionList = tableQuestion.Where(y => y.QuestionId == item.QuestionId && y.RowId == x.Id).ToList(),
|
||||||
|
|
||||||
}).ToList();
|
}).ToList();
|
||||||
|
|
|
@ -702,7 +702,6 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
|
||||||
IsCurrentTaskAdd = true,
|
IsCurrentTaskAdd = true,
|
||||||
BlindName = taskinfo.TaskBlindName,
|
BlindName = taskinfo.TaskBlindName,
|
||||||
OrderMark = questionInfo.OrderMark,
|
OrderMark = questionInfo.OrderMark,
|
||||||
FristAddTaskNum = taskinfo.VisitTaskNum,
|
|
||||||
FristAddTaskId = taskinfo.Id,
|
FristAddTaskId = taskinfo.Id,
|
||||||
RowMark = questionInfo.OrderMark + decimal.Parse(maxnum.ToString()).GetLesionMark()
|
RowMark = questionInfo.OrderMark + decimal.Parse(maxnum.ToString()).GetLesionMark()
|
||||||
});
|
});
|
||||||
|
@ -842,7 +841,6 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
|
||||||
IsCurrentTaskAdd = true,
|
IsCurrentTaskAdd = true,
|
||||||
BlindName = inDto.BlindName,
|
BlindName = inDto.BlindName,
|
||||||
OrderMark = questionInfo.OrderMark,
|
OrderMark = questionInfo.OrderMark,
|
||||||
FristAddTaskNum = inDto.VisitTaskNum,
|
|
||||||
FristAddTaskId = inDto.VisitTaskId,
|
FristAddTaskId = inDto.VisitTaskId,
|
||||||
RowMark = questionInfo.OrderMark + decimal.Parse(item.ToString()).GetLesionMark()
|
RowMark = questionInfo.OrderMark + decimal.Parse(item.ToString()).GetLesionMark()
|
||||||
});
|
});
|
||||||
|
@ -903,7 +901,6 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
|
||||||
IsCurrentTaskAdd = true,
|
IsCurrentTaskAdd = true,
|
||||||
BlindName = inDto.BlindName,
|
BlindName = inDto.BlindName,
|
||||||
OrderMark = pAVquestionInfo.OrderMark,
|
OrderMark = pAVquestionInfo.OrderMark,
|
||||||
FristAddTaskNum = inDto.VisitTaskNum,
|
|
||||||
FristAddTaskId = inDto.VisitTaskId,
|
FristAddTaskId = inDto.VisitTaskId,
|
||||||
RowMark = pAVquestionInfo.OrderMark + decimal.Parse(item.ToString()).GetLesionMark()
|
RowMark = pAVquestionInfo.OrderMark + decimal.Parse(item.ToString()).GetLesionMark()
|
||||||
});
|
});
|
||||||
|
|
|
@ -558,7 +558,6 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
|
||||||
IsCurrentTaskAdd = true,
|
IsCurrentTaskAdd = true,
|
||||||
BlindName = taskinfo.TaskBlindName,
|
BlindName = taskinfo.TaskBlindName,
|
||||||
OrderMark = questionInfo.OrderMark,
|
OrderMark = questionInfo.OrderMark,
|
||||||
FristAddTaskNum = taskinfo.VisitTaskNum,
|
|
||||||
FristAddTaskId = taskinfo.Id,
|
FristAddTaskId = taskinfo.Id,
|
||||||
RowMark = questionInfo.OrderMark + decimal.Parse(maxnum.ToString()).GetLesionMark()
|
RowMark = questionInfo.OrderMark + decimal.Parse(maxnum.ToString()).GetLesionMark()
|
||||||
});
|
});
|
||||||
|
@ -769,7 +768,6 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
|
||||||
IsCurrentTaskAdd = true,
|
IsCurrentTaskAdd = true,
|
||||||
BlindName = taskinfo.TaskBlindName,
|
BlindName = taskinfo.TaskBlindName,
|
||||||
OrderMark = questionInfo.OrderMark,
|
OrderMark = questionInfo.OrderMark,
|
||||||
FristAddTaskNum = taskinfo.VisitTaskNum,
|
|
||||||
FristAddTaskId = taskinfo.Id,
|
FristAddTaskId = taskinfo.Id,
|
||||||
RowMark = questionInfo.OrderMark + decimal.Parse(maxnum.ToString()).GetLesionMark()
|
RowMark = questionInfo.OrderMark + decimal.Parse(maxnum.ToString()).GetLesionMark()
|
||||||
});
|
});
|
||||||
|
@ -1043,7 +1041,6 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
|
||||||
IsCurrentTaskAdd = true,
|
IsCurrentTaskAdd = true,
|
||||||
BlindName = inDto.BlindName,
|
BlindName = inDto.BlindName,
|
||||||
OrderMark = patchDataStatisticsInfo.OrderMark,
|
OrderMark = patchDataStatisticsInfo.OrderMark,
|
||||||
FristAddTaskNum = inDto.VisitTaskNum,
|
|
||||||
FristAddTaskId = inDto.VisitTaskId,
|
FristAddTaskId = inDto.VisitTaskId,
|
||||||
RowMark = patchDataStatisticsInfo.OrderMark + decimal.Parse(item.ToString()).GetLesionMark()
|
RowMark = patchDataStatisticsInfo.OrderMark + decimal.Parse(item.ToString()).GetLesionMark()
|
||||||
});
|
});
|
||||||
|
|
|
@ -10,12 +10,19 @@ public class ReadingTableAnswerRowInfo : BaseFullDeleteAuditEntity
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
[ForeignKey("InstanceId")]
|
[ForeignKey("InstanceId")]
|
||||||
public DicomInstance Instance { get; set; }
|
public DicomInstance Instance { get; set; }
|
||||||
[JsonIgnore]
|
|
||||||
[ForeignKey("VisitTaskId")]
|
|
||||||
public VisitTask VisitTask { get; set; }
|
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
[ForeignKey("OrganInfoId")]
|
[ForeignKey("OrganInfoId")]
|
||||||
public OrganInfo OrganInfo { get; set; }
|
public OrganInfo OrganInfo { get; set; }
|
||||||
|
|
||||||
|
[JsonIgnore]
|
||||||
|
[ForeignKey("VisitTaskId")]
|
||||||
|
public VisitTask VisitTask { get; set; }
|
||||||
|
|
||||||
|
[JsonIgnore]
|
||||||
|
[ForeignKey("FristAddTaskId")]
|
||||||
|
public VisitTask FristAddTask { get; set; }
|
||||||
|
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
[ForeignKey("SplitRowId")]
|
[ForeignKey("SplitRowId")]
|
||||||
public ReadingTableAnswerRowInfo SplitRow { get; set; }
|
public ReadingTableAnswerRowInfo SplitRow { get; set; }
|
||||||
|
@ -76,9 +83,6 @@ public class ReadingTableAnswerRowInfo : BaseFullDeleteAuditEntity
|
||||||
[StringLength(1000)]
|
[StringLength(1000)]
|
||||||
public string PicturePath { get; set; } = string.Empty;
|
public string PicturePath { get; set; } = string.Empty;
|
||||||
|
|
||||||
[Comment("第一次添加的任务ID")]
|
|
||||||
public decimal FristAddTaskNum { get; set; } = 0;
|
|
||||||
|
|
||||||
[Comment("首次添加任务ID")]
|
[Comment("首次添加任务ID")]
|
||||||
public Guid FristAddTaskId { get; set; }
|
public Guid FristAddTaskId { get; set; }
|
||||||
|
|
||||||
|
|
|
@ -23,6 +23,10 @@ namespace IRaCIS.Core.Infra.EFCore.EntityConfigration
|
||||||
//subject 删除了,但是任务没删除,导致的查询问题
|
//subject 删除了,但是任务没删除,导致的查询问题
|
||||||
builder.HasQueryFilter(b => b.Subject.IsDeleted == false);
|
builder.HasQueryFilter(b => b.Subject.IsDeleted == false);
|
||||||
|
|
||||||
|
|
||||||
|
builder.HasMany(t => t.LesionList).WithOne(s => s.VisitTask).HasForeignKey(t => t.VisitTaskId);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
public class ReadingQuestionTrialConfigration : IEntityTypeConfiguration<ReadingQuestionTrial>
|
public class ReadingQuestionTrialConfigration : IEntityTypeConfiguration<ReadingQuestionTrial>
|
||||||
|
@ -35,4 +39,6 @@ namespace IRaCIS.Core.Infra.EFCore.EntityConfigration
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
19186
IRaCIS.Core.Infra.EFCore/Migrations/20250912024946_FristAddTaskNum.Designer.cs
generated
Normal file
19186
IRaCIS.Core.Infra.EFCore/Migrations/20250912024946_FristAddTaskNum.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,32 @@
|
||||||
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
|
|
||||||
|
#nullable disable
|
||||||
|
|
||||||
|
namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
|
public partial class FristAddTaskNum : Migration
|
||||||
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "FristAddTaskNum",
|
||||||
|
table: "ReadingTableAnswerRowInfo");
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.AddColumn<decimal>(
|
||||||
|
name: "FristAddTaskNum",
|
||||||
|
table: "ReadingTableAnswerRowInfo",
|
||||||
|
type: "decimal(18,2)",
|
||||||
|
precision: 18,
|
||||||
|
scale: 2,
|
||||||
|
nullable: false,
|
||||||
|
defaultValue: 0m,
|
||||||
|
comment: "第一次添加的任务ID");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
19196
IRaCIS.Core.Infra.EFCore/Migrations/20250912030004_FristAddTaskNum1.Designer.cs
generated
Normal file
19196
IRaCIS.Core.Infra.EFCore/Migrations/20250912030004_FristAddTaskNum1.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,39 @@
|
||||||
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
|
|
||||||
|
#nullable disable
|
||||||
|
|
||||||
|
namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
|
public partial class FristAddTaskNum1 : Migration
|
||||||
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.CreateIndex(
|
||||||
|
name: "IX_ReadingTableAnswerRowInfo_FristAddTaskId",
|
||||||
|
table: "ReadingTableAnswerRowInfo",
|
||||||
|
column: "FristAddTaskId");
|
||||||
|
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_ReadingTableAnswerRowInfo_VisitTask_FristAddTaskId",
|
||||||
|
table: "ReadingTableAnswerRowInfo",
|
||||||
|
column: "FristAddTaskId",
|
||||||
|
principalTable: "VisitTask",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.DropForeignKey(
|
||||||
|
name: "FK_ReadingTableAnswerRowInfo_VisitTask_FristAddTaskId",
|
||||||
|
table: "ReadingTableAnswerRowInfo");
|
||||||
|
|
||||||
|
migrationBuilder.DropIndex(
|
||||||
|
name: "IX_ReadingTableAnswerRowInfo_FristAddTaskId",
|
||||||
|
table: "ReadingTableAnswerRowInfo");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -6641,11 +6641,6 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
.HasColumnType("uniqueidentifier")
|
.HasColumnType("uniqueidentifier")
|
||||||
.HasComment("首次添加任务ID");
|
.HasComment("首次添加任务ID");
|
||||||
|
|
||||||
b.Property<decimal>("FristAddTaskNum")
|
|
||||||
.HasPrecision(18, 2)
|
|
||||||
.HasColumnType("decimal(18,2)")
|
|
||||||
.HasComment("第一次添加的任务ID");
|
|
||||||
|
|
||||||
b.Property<string>("FromMark")
|
b.Property<string>("FromMark")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
.HasMaxLength(400)
|
.HasMaxLength(400)
|
||||||
|
@ -6786,6 +6781,8 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
|
|
||||||
b.HasIndex("CreateUserId");
|
b.HasIndex("CreateUserId");
|
||||||
|
|
||||||
|
b.HasIndex("FristAddTaskId");
|
||||||
|
|
||||||
b.HasIndex("InstanceId");
|
b.HasIndex("InstanceId");
|
||||||
|
|
||||||
b.HasIndex("MergeRowId");
|
b.HasIndex("MergeRowId");
|
||||||
|
@ -16787,6 +16784,12 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
.OnDelete(DeleteBehavior.Cascade)
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
.IsRequired();
|
.IsRequired();
|
||||||
|
|
||||||
|
b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "FristAddTask")
|
||||||
|
.WithMany()
|
||||||
|
.HasForeignKey("FristAddTaskId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
b.HasOne("IRaCIS.Core.Domain.Models.DicomInstance", "Instance")
|
b.HasOne("IRaCIS.Core.Domain.Models.DicomInstance", "Instance")
|
||||||
.WithMany("ReadingTableAnswerRowInfoList")
|
.WithMany("ReadingTableAnswerRowInfoList")
|
||||||
.HasForeignKey("InstanceId")
|
.HasForeignKey("InstanceId")
|
||||||
|
@ -16818,6 +16821,8 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
|
|
||||||
b.Navigation("CreateUserRole");
|
b.Navigation("CreateUserRole");
|
||||||
|
|
||||||
|
b.Navigation("FristAddTask");
|
||||||
|
|
||||||
b.Navigation("Instance");
|
b.Navigation("Instance");
|
||||||
|
|
||||||
b.Navigation("MergeRow");
|
b.Navigation("MergeRow");
|
||||||
|
|
Loading…
Reference in New Issue